ngx-material-entity 0.1.3 → 1.0.0
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 +914 -336
- package/capsulation/lodash.utilities.d.ts +62 -0
- package/capsulation/reflect.utilities.d.ts +56 -0
- package/classes/{base-builder.class.d.ts → base.builder.d.ts} +2 -1
- package/classes/date.utilities.d.ts +70 -0
- package/classes/entity.model.d.ts +20 -0
- package/classes/entity.service.d.ts +108 -0
- package/classes/{entity-utilities.class.d.ts → entity.utilities.d.ts} +52 -16
- package/classes/file.utilities.d.ts +52 -0
- package/components/confirm-dialog/confirm-dialog-data.builder.d.ts +1 -1
- package/components/input/add-array-item-dialog-data.builder.d.ts +4 -4
- package/components/input/add-array-item-dialog-data.d.ts +2 -2
- package/components/input/array/array-date-input/array-date-input.component.d.ts +11 -0
- package/components/input/array/array-date-range-input/array-date-range-input.component.d.ts +20 -0
- package/components/input/array/array-date-time-input/array-date-time-input.component.d.ts +22 -0
- package/components/input/array/array-string-autocomplete-chips/array-string-autocomplete-chips.component.d.ts +51 -0
- package/components/input/array/array-string-chips-input/array-string-chips-input.component.d.ts +44 -0
- package/components/input/array/array-table.class.d.ts +49 -0
- package/components/input/base-input.component.d.ts +31 -0
- package/components/input/boolean/boolean-checkbox-input/boolean-checkbox-input.component.d.ts +10 -0
- package/components/input/boolean/boolean-dropdown-input/boolean-dropdown-input.component.d.ts +9 -0
- package/components/input/boolean/boolean-toggle-input/boolean-toggle-input.component.d.ts +10 -0
- package/components/input/custom/custom.component.d.ts +13 -0
- package/components/input/date/date-input/date-input.component.d.ts +13 -0
- package/components/input/date/date-range-input/date-range-input.component.d.ts +20 -0
- package/components/input/date/date-time-input/date-time-input.component.d.ts +31 -0
- package/components/input/file/file-default-input/file-default-input.component.d.ts +13 -0
- package/components/input/file/file-image-input/file-image-input.component.d.ts +22 -0
- package/components/input/file/file-input/dragDrop.directive.d.ts +32 -0
- package/components/input/file/file-input/file-input.component.d.ts +32 -0
- package/components/input/input.component.d.ts +49 -73
- package/components/input/input.module.d.ts +38 -15
- package/components/input/number/number-dropdown-input/number-dropdown-input.component.d.ts +9 -0
- package/components/input/number/number-input/number-input.component.d.ts +9 -0
- package/components/input/string/string-autocomplete-input/string-autocomplete-input.component.d.ts +18 -0
- package/components/input/string/string-dropdown-input/string-dropdown-input.component.d.ts +9 -0
- package/components/input/string/string-input/string-input.component.d.ts +9 -0
- package/components/input/string/string-textbox-input/string-textbox-input.component.d.ts +9 -0
- package/components/table/create-dialog/create-dialog-data.builder.d.ts +1 -1
- package/components/table/create-dialog/create-entity-dialog-data.builder.d.ts +5 -5
- package/components/table/create-dialog/create-entity-dialog-data.d.ts +3 -3
- package/components/table/create-dialog/create-entity-dialog.component.d.ts +9 -5
- package/components/table/edit-dialog/edit-dialog-data.builder.d.ts +4 -4
- package/components/table/edit-dialog/edit-entity-dialog-data.d.ts +3 -3
- package/components/table/edit-dialog/edit-entity-dialog.builder.d.ts +5 -5
- package/components/table/edit-dialog/edit-entity-dialog.component.d.ts +7 -5
- package/components/table/table-data.builder.d.ts +9 -9
- package/components/table/table-data.d.ts +8 -8
- package/components/table/table.component.d.ts +2 -2
- package/decorators/array/array-decorator-internal.data.d.ts +72 -7
- package/decorators/array/array-decorator.data.d.ts +179 -13
- package/decorators/array/array.decorator.d.ts +3 -3
- package/decorators/base/base-property.decorator.d.ts +2 -3
- package/decorators/base/decorator-types.enum.d.ts +15 -4
- package/decorators/base/dropdown-value.interface.d.ts +14 -0
- package/decorators/custom/custom-decorator-internal.data.d.ts +17 -0
- package/decorators/custom/custom-decorator.data.d.ts +33 -0
- package/decorators/custom/custom.decorator.d.ts +11 -0
- package/decorators/date/date-decorator-internal.data.d.ts +44 -0
- package/decorators/date/date-decorator.data.d.ts +129 -0
- package/decorators/date/date.decorator.d.ts +8 -0
- package/decorators/file/file-decorator-internal.data.d.ts +92 -0
- package/decorators/file/file-decorator.data.d.ts +92 -0
- package/decorators/file/file.decorator.d.ts +9 -0
- package/decorators/number/number-decorator-internal.data.d.ts +2 -4
- package/decorators/number/number-decorator.data.d.ts +2 -4
- package/decorators/number/number.decorator.d.ts +2 -2
- package/decorators/object/object-decorator-internal.data.d.ts +3 -3
- package/decorators/object/object-decorator.data.d.ts +5 -5
- package/decorators/object/object.decorator.d.ts +2 -2
- package/decorators/string/string-decorator-internal.data.d.ts +2 -4
- package/decorators/string/string-decorator.data.d.ts +2 -4
- package/esm2020/capsulation/lodash.utilities.mjs +75 -0
- package/esm2020/capsulation/reflect.utilities.mjs +69 -0
- package/esm2020/classes/base.builder.mjs +42 -0
- package/esm2020/classes/date.utilities.mjs +158 -0
- package/esm2020/classes/entity.model.mjs +23 -0
- package/esm2020/classes/entity.service.mjs +180 -0
- package/esm2020/classes/entity.utilities.mjs +686 -0
- package/esm2020/classes/file.utilities.mjs +123 -0
- package/esm2020/components/confirm-dialog/confirm-dialog-data.builder.mjs +5 -5
- package/esm2020/components/confirm-dialog/confirm-dialog.component.mjs +3 -3
- package/esm2020/components/input/add-array-item-dialog-data.builder.mjs +4 -4
- package/esm2020/components/input/add-array-item-dialog-data.mjs +1 -1
- package/esm2020/components/input/array/array-date-input/array-date-input.component.mjs +26 -0
- package/esm2020/components/input/array/array-date-range-input/array-date-range-input.component.mjs +50 -0
- package/esm2020/components/input/array/array-date-time-input/array-date-time-input.component.mjs +50 -0
- package/esm2020/components/input/array/array-string-autocomplete-chips/array-string-autocomplete-chips.component.mjs +119 -0
- package/esm2020/components/input/array/array-string-chips-input/array-string-chips-input.component.mjs +104 -0
- package/esm2020/components/input/array/array-table.class.mjs +107 -0
- package/esm2020/components/input/base-input.component.mjs +39 -0
- package/esm2020/components/input/boolean/boolean-checkbox-input/boolean-checkbox-input.component.mjs +23 -0
- package/esm2020/components/input/boolean/boolean-dropdown-input/boolean-dropdown-input.component.mjs +17 -0
- package/esm2020/components/input/boolean/boolean-toggle-input/boolean-toggle-input.component.mjs +23 -0
- package/esm2020/components/input/custom/custom.component.mjs +25 -0
- package/esm2020/components/input/date/date-input/date-input.component.mjs +23 -0
- package/esm2020/components/input/date/date-range-input/date-range-input.component.mjs +51 -0
- package/esm2020/components/input/date/date-time-input/date-time-input.component.mjs +63 -0
- package/esm2020/components/input/file/file-default-input/file-default-input.component.mjs +24 -0
- package/esm2020/components/input/file/file-image-input/file-image-input.component.mjs +79 -0
- package/esm2020/components/input/file/file-input/dragDrop.directive.mjs +64 -0
- package/esm2020/components/input/file/file-input/file-input.component.mjs +152 -0
- package/esm2020/components/input/input.component.mjs +143 -179
- package/esm2020/components/input/input.module.mjs +76 -6
- package/esm2020/components/input/number/number-dropdown-input/number-dropdown-input.component.mjs +18 -0
- package/esm2020/components/input/number/number-input/number-input.component.mjs +16 -0
- package/esm2020/components/input/string/string-autocomplete-input/string-autocomplete-input.component.mjs +37 -0
- package/esm2020/components/input/string/string-dropdown-input/string-dropdown-input.component.mjs +18 -0
- package/esm2020/components/input/string/string-input/string-input.component.mjs +16 -0
- package/esm2020/components/input/string/string-textbox-input/string-textbox-input.component.mjs +17 -0
- package/esm2020/components/table/create-dialog/create-dialog-data.builder.mjs +3 -3
- package/esm2020/components/table/create-dialog/create-entity-dialog-data.builder.mjs +2 -2
- package/esm2020/components/table/create-dialog/create-entity-dialog-data.mjs +1 -1
- package/esm2020/components/table/create-dialog/create-entity-dialog.component.mjs +16 -9
- package/esm2020/components/table/edit-dialog/edit-dialog-data.builder.mjs +3 -3
- package/esm2020/components/table/edit-dialog/edit-entity-dialog-data.mjs +1 -1
- package/esm2020/components/table/edit-dialog/edit-entity-dialog.builder.mjs +3 -3
- package/esm2020/components/table/edit-dialog/edit-entity-dialog.component.mjs +19 -11
- package/esm2020/components/table/table-data.builder.mjs +4 -4
- package/esm2020/components/table/table-data.mjs +1 -1
- package/esm2020/components/table/table.component.mjs +21 -23
- package/esm2020/decorators/array/array-decorator-internal.data.mjs +102 -14
- package/esm2020/decorators/array/array-decorator.data.mjs +2 -2
- package/esm2020/decorators/array/array.decorator.mjs +8 -2
- package/esm2020/decorators/base/base-property.decorator.mjs +4 -3
- package/esm2020/decorators/base/decorator-types.enum.mjs +10 -1
- package/esm2020/decorators/base/dropdown-value.interface.mjs +2 -0
- package/esm2020/decorators/base/property-decorator-internal.data.mjs +10 -10
- package/esm2020/decorators/base/property-decorator.data.mjs +1 -1
- package/esm2020/decorators/boolean/boolean-decorator-internal.data.mjs +3 -3
- package/esm2020/decorators/custom/custom-decorator-internal.data.mjs +26 -0
- package/esm2020/decorators/custom/custom-decorator.data.mjs +2 -0
- package/esm2020/decorators/custom/custom.decorator.mjs +13 -0
- package/esm2020/decorators/date/date-decorator-internal.data.mjs +48 -0
- package/esm2020/decorators/date/date-decorator.data.mjs +7 -0
- package/esm2020/decorators/date/date.decorator.mjs +21 -0
- package/esm2020/decorators/file/file-decorator-internal.data.mjs +98 -0
- package/esm2020/decorators/file/file-decorator.data.mjs +7 -0
- package/esm2020/decorators/file/file.decorator.mjs +22 -0
- package/esm2020/decorators/number/number-decorator-internal.data.mjs +1 -1
- package/esm2020/decorators/number/number-decorator.data.mjs +1 -1
- package/esm2020/decorators/number/number.decorator.mjs +3 -3
- package/esm2020/decorators/object/object-decorator-internal.data.mjs +2 -2
- package/esm2020/decorators/object/object-decorator.data.mjs +1 -1
- package/esm2020/decorators/object/object.decorator.mjs +1 -1
- package/esm2020/decorators/string/string-decorator-internal.data.mjs +1 -1
- package/esm2020/decorators/string/string-decorator.data.mjs +1 -1
- package/esm2020/decorators/string/string.decorator.mjs +1 -1
- package/esm2020/mocks/placeholder-data.png.mjs +3 -0
- package/esm2020/public-api.mjs +15 -5
- package/fesm2015/ngx-material-entity.mjs +2649 -422
- package/fesm2015/ngx-material-entity.mjs.map +1 -1
- package/fesm2020/ngx-material-entity.mjs +2537 -397
- package/fesm2020/ngx-material-entity.mjs.map +1 -1
- package/mocks/placeholder-data.png.d.ts +1 -0
- package/package.json +7 -1
- package/public-api.d.ts +15 -4
- package/classes/entity-model.class.d.ts +0 -9
- package/classes/entity-service.class.d.ts +0 -66
- package/esm2020/classes/base-builder.class.mjs +0 -43
- package/esm2020/classes/entity-model.class.mjs +0 -19
- package/esm2020/classes/entity-service.class.mjs +0 -76
- package/esm2020/classes/entity-utilities.class.mjs +0 -377
|
@@ -1,20 +1,43 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./input.component";
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "
|
|
9
|
-
import * as i8 from "
|
|
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 "
|
|
2
|
+
import * as i1 from "./string/string-input/string-input.component";
|
|
3
|
+
import * as i2 from "./string/string-textbox-input/string-textbox-input.component";
|
|
4
|
+
import * as i3 from "./string/string-autocomplete-input/string-autocomplete-input.component";
|
|
5
|
+
import * as i4 from "./string/string-dropdown-input/string-dropdown-input.component";
|
|
6
|
+
import * as i5 from "./boolean/boolean-checkbox-input/boolean-checkbox-input.component";
|
|
7
|
+
import * as i6 from "./boolean/boolean-toggle-input/boolean-toggle-input.component";
|
|
8
|
+
import * as i7 from "./boolean/boolean-dropdown-input/boolean-dropdown-input.component";
|
|
9
|
+
import * as i8 from "./number/number-input/number-input.component";
|
|
10
|
+
import * as i9 from "./number/number-dropdown-input/number-dropdown-input.component";
|
|
11
|
+
import * as i10 from "./array/array-string-chips-input/array-string-chips-input.component";
|
|
12
|
+
import * as i11 from "./array/array-string-autocomplete-chips/array-string-autocomplete-chips.component";
|
|
13
|
+
import * as i12 from "./date/date-input/date-input.component";
|
|
14
|
+
import * as i13 from "./date/date-range-input/date-range-input.component";
|
|
15
|
+
import * as i14 from "./date/date-time-input/date-time-input.component";
|
|
16
|
+
import * as i15 from "./array/array-date-input/array-date-input.component";
|
|
17
|
+
import * as i16 from "./array/array-date-time-input/array-date-time-input.component";
|
|
18
|
+
import * as i17 from "./array/array-date-range-input/array-date-range-input.component";
|
|
19
|
+
import * as i18 from "./file/file-input/file-input.component";
|
|
20
|
+
import * as i19 from "./file/file-image-input/file-image-input.component";
|
|
21
|
+
import * as i20 from "./file/file-default-input/file-default-input.component";
|
|
22
|
+
import * as i21 from "./file/file-input/dragDrop.directive";
|
|
23
|
+
import * as i22 from "./custom/custom.component";
|
|
24
|
+
import * as i23 from "./input.component";
|
|
25
|
+
import * as i24 from "@angular/common";
|
|
26
|
+
import * as i25 from "@angular/material/input";
|
|
27
|
+
import * as i26 from "@angular/forms";
|
|
28
|
+
import * as i27 from "@angular/material/form-field";
|
|
29
|
+
import * as i28 from "@angular/material/select";
|
|
30
|
+
import * as i29 from "@angular/material/autocomplete";
|
|
31
|
+
import * as i30 from "@angular/material/checkbox";
|
|
32
|
+
import * as i31 from "@angular/material/slide-toggle";
|
|
33
|
+
import * as i32 from "@angular/material/chips";
|
|
34
|
+
import * as i33 from "@angular/material/icon";
|
|
35
|
+
import * as i34 from "@angular/material/table";
|
|
36
|
+
import * as i35 from "@angular/material/dialog";
|
|
37
|
+
import * as i36 from "@angular/material/button";
|
|
38
|
+
import * as i37 from "@angular/material/datepicker";
|
|
16
39
|
export declare class NgxMatEntityInputModule {
|
|
17
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatEntityInputModule, never>;
|
|
18
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxMatEntityInputModule, [typeof i1.NgxMatEntityInputComponent], [typeof
|
|
41
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxMatEntityInputModule, [typeof i1.StringInputComponent, typeof i2.StringTextboxInputComponent, typeof i3.StringAutocompleteInputComponent, typeof i4.StringDropdownInputComponent, typeof i5.BooleanCheckboxInputComponent, typeof i6.BooleanToggleInputComponent, typeof i7.BooleanDropdownInputComponent, typeof i8.NumberInputComponent, typeof i9.NumberDropdownInputComponent, typeof i10.ArrayStringChipsInputComponent, typeof i11.ArrayStringAutocompleteChipsComponent, typeof i12.DateInputComponent, typeof i13.DateRangeInputComponent, typeof i14.DateTimeInputComponent, typeof i15.ArrayDateInputComponent, typeof i16.ArrayDateTimeInputComponent, typeof i17.ArrayDateRangeInputComponent, typeof i18.FileInputComponent, typeof i19.FileImageInputComponent, typeof i20.FileDefaultInputComponent, typeof i21.DragDropDirective, typeof i22.CustomInputComponent, typeof i23.NgxMatEntityInputComponent], [typeof i24.CommonModule, typeof i25.MatInputModule, typeof i26.FormsModule, typeof i27.MatFormFieldModule, typeof i28.MatSelectModule, typeof i29.MatAutocompleteModule, typeof i30.MatCheckboxModule, typeof i31.MatSlideToggleModule, typeof i32.MatChipsModule, typeof i33.MatIconModule, typeof i34.MatTableModule, typeof i35.MatDialogModule, typeof i36.MatButtonModule, typeof i37.MatDatepickerModule], [typeof i23.NgxMatEntityInputComponent]>;
|
|
19
42
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgxMatEntityInputModule>;
|
|
20
43
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
3
|
+
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
4
|
+
import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class NumberDropdownInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.NUMBER_DROPDOWN> implements OnInit {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NumberDropdownInputComponent<any>, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumberDropdownInputComponent<any>, "number-dropdown-input", never, {}, {}, never, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
3
|
+
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
4
|
+
import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class NumberInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.NUMBER> implements OnInit {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NumberInputComponent<any>, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumberInputComponent<any>, "number-input", never, {}, {}, never, never>;
|
|
9
|
+
}
|
package/components/input/string/string-autocomplete-input/string-autocomplete-input.component.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
3
|
+
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
4
|
+
import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class StringAutocompleteInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.STRING_AUTOCOMPLETE> implements OnInit {
|
|
7
|
+
autocompleteStrings: string[];
|
|
8
|
+
filteredAutocompleteStrings: string[];
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
/**
|
|
11
|
+
* Dynamically filters the Autocomplete options when the user inputs something.
|
|
12
|
+
*
|
|
13
|
+
* @param input - The input of the user.
|
|
14
|
+
*/
|
|
15
|
+
filterAutocompleteStrings(input: unknown): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StringAutocompleteInputComponent<any>, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StringAutocompleteInputComponent<any>, "string-autocomplete-input", never, {}, {}, never, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
3
|
+
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
4
|
+
import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class StringDropdownInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.STRING_DROPDOWN> implements OnInit {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StringDropdownInputComponent<any>, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StringDropdownInputComponent<any>, "string-dropdown-input", never, {}, {}, never, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
3
|
+
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
4
|
+
import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class StringInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.STRING> implements OnInit {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StringInputComponent<any>, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StringInputComponent<any>, "string-input", never, {}, {}, never, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
3
|
+
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
4
|
+
import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class StringTextboxInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.STRING_TEXTBOX> implements OnInit {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StringTextboxInputComponent<any>, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StringTextboxInputComponent<any>, "string-textbox-input", never, {}, {}, never, never>;
|
|
9
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseBuilder } from '../../../classes/base
|
|
1
|
+
import { BaseBuilder } from '../../../classes/base.builder';
|
|
2
2
|
import { ConfirmDialogDataInternal } from '../../confirm-dialog/confirm-dialog-data.builder';
|
|
3
3
|
import { CreateDialogData } from '../table-data';
|
|
4
4
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { EntityService } from '../../../classes/entity
|
|
2
|
-
import { Entity } from '../../../classes/entity-model.class';
|
|
1
|
+
import { EntityService } from '../../../classes/entity.service';
|
|
3
2
|
import { CreateEntityDialogData } from './create-entity-dialog-data';
|
|
4
3
|
import { HttpClient } from '@angular/common/http';
|
|
5
4
|
import { CreateDialogDataInternal } from './create-dialog-data.builder';
|
|
6
|
-
import { BaseBuilder } from '../../../classes/base
|
|
5
|
+
import { BaseBuilder } from '../../../classes/base.builder';
|
|
6
|
+
import { BaseEntityType } from '../../../classes/entity.model';
|
|
7
7
|
/**
|
|
8
8
|
* The internal CreateEntityDialogData. Requires all default values the user can leave out.
|
|
9
9
|
*/
|
|
10
|
-
export declare class CreateEntityDialogDataInternal<EntityType extends
|
|
10
|
+
export declare class CreateEntityDialogDataInternal<EntityType extends BaseEntityType<EntityType>> implements CreateEntityDialogData<EntityType> {
|
|
11
11
|
entity: EntityType;
|
|
12
12
|
EntityServiceClass: new (httpClient: HttpClient) => EntityService<EntityType>;
|
|
13
13
|
createDialogData: CreateDialogDataInternal;
|
|
@@ -16,7 +16,7 @@ export declare class CreateEntityDialogDataInternal<EntityType extends Entity> i
|
|
|
16
16
|
/**
|
|
17
17
|
* The Builder for the CreateEntityDialogData. Sets default values.
|
|
18
18
|
*/
|
|
19
|
-
export declare class CreateEntityDialogDataBuilder<EntityType extends
|
|
19
|
+
export declare class CreateEntityDialogDataBuilder<EntityType extends BaseEntityType<EntityType>> extends BaseBuilder<CreateEntityDialogDataInternal<EntityType>, CreateEntityDialogData<EntityType>> {
|
|
20
20
|
constructor(data: CreateEntityDialogData<EntityType>);
|
|
21
21
|
protected generateBaseData(data: CreateEntityDialogData<EntityType>): CreateEntityDialogDataInternal<EntityType>;
|
|
22
22
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { BaseEntityType } from '../../../classes/entity.model';
|
|
3
|
+
import { EntityService } from '../../../classes/entity.service';
|
|
4
4
|
import { CreateDialogData } from '../table-data';
|
|
5
5
|
/**
|
|
6
6
|
* The Definition of the Create Entity Dialog Data.
|
|
7
7
|
*/
|
|
8
|
-
export interface CreateEntityDialogData<EntityType extends
|
|
8
|
+
export interface CreateEntityDialogData<EntityType extends BaseEntityType<EntityType>> {
|
|
9
9
|
/**
|
|
10
10
|
* An empty entity that is used as the data model.
|
|
11
11
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Injector, OnInit } from '@angular/core';
|
|
2
2
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
3
|
-
import { EntityService } from '../../../classes/entity
|
|
4
|
-
import {
|
|
5
|
-
import { EntityRow, EntityUtilities } from '../../../classes/entity-utilities.class';
|
|
3
|
+
import { EntityService } from '../../../classes/entity.service';
|
|
4
|
+
import { EntityRow, EntityUtilities } from '../../../classes/entity.utilities';
|
|
6
5
|
import { CreateEntityDialogDataInternal } from './create-entity-dialog-data.builder';
|
|
7
6
|
import { CreateEntityDialogData } from './create-entity-dialog-data';
|
|
7
|
+
import { BaseEntityType } from '../../../classes/entity.model';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
10
10
|
* The default dialog used to create new entities based on the configuration passed in the MAT_DIALOG_DATA "inputData".
|
|
@@ -12,7 +12,7 @@ import * as i0 from "@angular/core";
|
|
|
12
12
|
*
|
|
13
13
|
* It offers a lot of customization options which can be found in "CreateEntityDialogData".
|
|
14
14
|
*/
|
|
15
|
-
export declare class NgxMatEntityCreateDialogComponent<EntityType extends
|
|
15
|
+
export declare class NgxMatEntityCreateDialogComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
|
|
16
16
|
private readonly inputData;
|
|
17
17
|
dialogRef: MatDialogRef<NgxMatEntityCreateDialogComponent<EntityType>>;
|
|
18
18
|
private readonly injector;
|
|
@@ -21,9 +21,13 @@ export declare class NgxMatEntityCreateDialogComponent<EntityType extends Entity
|
|
|
21
21
|
entityRows: EntityRow<EntityType>[];
|
|
22
22
|
entityService: EntityService<EntityType>;
|
|
23
23
|
data: CreateEntityDialogDataInternal<EntityType>;
|
|
24
|
-
|
|
24
|
+
isEntityValid: boolean;
|
|
25
25
|
constructor(inputData: CreateEntityDialogData<EntityType>, dialogRef: MatDialogRef<NgxMatEntityCreateDialogComponent<EntityType>>, injector: Injector, dialog: MatDialog);
|
|
26
26
|
ngOnInit(): void;
|
|
27
|
+
/**
|
|
28
|
+
* Checks if the entity is valid.
|
|
29
|
+
*/
|
|
30
|
+
checkIsEntityValid(): void;
|
|
27
31
|
/**
|
|
28
32
|
* Tries add the new entity and close the dialog afterwards.
|
|
29
33
|
* Also handles the confirmation if required.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { BaseEntityType } from '../../../classes/entity.model';
|
|
2
|
+
import { BaseBuilder } from '../../../classes/base.builder';
|
|
3
3
|
import { ConfirmDialogData } from '../../confirm-dialog/confirm-dialog-data';
|
|
4
4
|
import { EditDialogData } from '../table-data';
|
|
5
5
|
/**
|
|
6
6
|
* The internal EditDialogData. Requires all default values the user can leave out.
|
|
7
7
|
*/
|
|
8
|
-
export declare class EditDialogDataInternal<EntityType extends
|
|
8
|
+
export declare class EditDialogDataInternal<EntityType extends BaseEntityType<EntityType>> implements EditDialogData<EntityType> {
|
|
9
9
|
title: (entity: EntityType) => string;
|
|
10
10
|
confirmButtonLabel: string;
|
|
11
11
|
deleteButtonLabel: string;
|
|
@@ -19,7 +19,7 @@ export declare class EditDialogDataInternal<EntityType extends Entity> implement
|
|
|
19
19
|
/**
|
|
20
20
|
* The Builder for the EditDialogData. Sets default values.
|
|
21
21
|
*/
|
|
22
|
-
export declare class EditDialogDataBuilder<EntityType extends
|
|
22
|
+
export declare class EditDialogDataBuilder<EntityType extends BaseEntityType<EntityType>> extends BaseBuilder<EditDialogDataInternal<EntityType>, EditDialogData<EntityType>> {
|
|
23
23
|
constructor(data?: EditDialogData<EntityType>);
|
|
24
24
|
protected generateBaseData(data?: EditDialogData<EntityType>): EditDialogDataInternal<EntityType>;
|
|
25
25
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { BaseEntityType } from '../../../classes/entity.model';
|
|
3
|
+
import { EntityService } from '../../../classes/entity.service';
|
|
4
4
|
import { EditDialogData } from '../table-data';
|
|
5
5
|
/**
|
|
6
6
|
* The Definition of the Edit Entity Dialog Data.
|
|
7
7
|
*/
|
|
8
|
-
export interface EditEntityDialogData<EntityType extends
|
|
8
|
+
export interface EditEntityDialogData<EntityType extends BaseEntityType<EntityType>> {
|
|
9
9
|
/**
|
|
10
10
|
* The entity to edit.
|
|
11
11
|
*/
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { EntityService } from '../../../classes/entity
|
|
2
|
-
import { Entity } from '../../../classes/entity-model.class';
|
|
1
|
+
import { EntityService } from '../../../classes/entity.service';
|
|
3
2
|
import { HttpClient } from '@angular/common/http';
|
|
4
3
|
import { EditEntityDialogData } from './edit-entity-dialog-data';
|
|
5
4
|
import { EditDialogDataInternal } from './edit-dialog-data.builder';
|
|
6
|
-
import { BaseBuilder } from '../../../classes/base
|
|
5
|
+
import { BaseBuilder } from '../../../classes/base.builder';
|
|
6
|
+
import { BaseEntityType } from '../../../classes/entity.model';
|
|
7
7
|
/**
|
|
8
8
|
* The internal EditEntityDialogData. Requires all default values the user can leave out.
|
|
9
9
|
*/
|
|
10
|
-
export declare class EditEntityDialogDataInternal<EntityType extends
|
|
10
|
+
export declare class EditEntityDialogDataInternal<EntityType extends BaseEntityType<EntityType>> implements EditEntityDialogData<EntityType> {
|
|
11
11
|
entity: EntityType;
|
|
12
12
|
EntityServiceClass: new (httpClient: HttpClient) => EntityService<EntityType>;
|
|
13
13
|
editDialogData: EditDialogDataInternal<EntityType>;
|
|
@@ -17,7 +17,7 @@ export declare class EditEntityDialogDataInternal<EntityType extends Entity> imp
|
|
|
17
17
|
/**
|
|
18
18
|
* The Builder for the EditEntityDialogData. Sets default values.
|
|
19
19
|
*/
|
|
20
|
-
export declare class EditEntityDialogDataBuilder<EntityType extends
|
|
20
|
+
export declare class EditEntityDialogDataBuilder<EntityType extends BaseEntityType<EntityType>> extends BaseBuilder<EditEntityDialogDataInternal<EntityType>, EditEntityDialogData<EntityType>> {
|
|
21
21
|
constructor(data: EditEntityDialogData<EntityType>);
|
|
22
22
|
protected generateBaseData(data: EditEntityDialogData<EntityType>): EditEntityDialogDataInternal<EntityType>;
|
|
23
23
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Injector, OnInit } from '@angular/core';
|
|
2
2
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
3
|
-
import { EntityService } from '../../../classes/entity
|
|
4
|
-
import {
|
|
5
|
-
import { EntityRow, EntityUtilities } from '../../../classes/entity-utilities.class';
|
|
3
|
+
import { EntityService } from '../../../classes/entity.service';
|
|
4
|
+
import { EntityRow, EntityUtilities } from '../../../classes/entity.utilities';
|
|
6
5
|
import { EditEntityDialogData } from './edit-entity-dialog-data';
|
|
7
6
|
import { EditEntityDialogDataInternal } from './edit-entity-dialog.builder';
|
|
7
|
+
import { BaseEntityType } from '../../../classes/entity.model';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
10
10
|
* The default dialog used to edit an existing entity based on the configuration passed in the MAT_DIALOG_DATA "inputData".
|
|
@@ -12,7 +12,7 @@ import * as i0 from "@angular/core";
|
|
|
12
12
|
*
|
|
13
13
|
* It offers a lot of customization options which can be found in "EditEntityDialogData".
|
|
14
14
|
*/
|
|
15
|
-
export declare class NgxMatEntityEditDialogComponent<EntityType extends
|
|
15
|
+
export declare class NgxMatEntityEditDialogComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
|
|
16
16
|
private readonly inputData;
|
|
17
17
|
dialogRef: MatDialogRef<NgxMatEntityEditDialogComponent<EntityType>>;
|
|
18
18
|
private readonly injector;
|
|
@@ -22,9 +22,11 @@ export declare class NgxMatEntityEditDialogComponent<EntityType extends Entity>
|
|
|
22
22
|
entityService: EntityService<EntityType>;
|
|
23
23
|
entityPriorChanges: EntityType;
|
|
24
24
|
data: EditEntityDialogDataInternal<EntityType>;
|
|
25
|
-
|
|
25
|
+
isEntityValid: boolean;
|
|
26
|
+
isEntityDirty: Promise<boolean>;
|
|
26
27
|
constructor(inputData: EditEntityDialogData<EntityType>, dialogRef: MatDialogRef<NgxMatEntityEditDialogComponent<EntityType>>, injector: Injector, dialog: MatDialog);
|
|
27
28
|
ngOnInit(): void;
|
|
29
|
+
checkEntity(): void;
|
|
28
30
|
/**
|
|
29
31
|
* Tries to save the changes and close the dialog afterwards.
|
|
30
32
|
* Also handles the confirmation if required.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { EntityService } from '../../classes/entity
|
|
2
|
-
import { Entity } from '../../classes/entity-model.class';
|
|
1
|
+
import { EntityService } from '../../classes/entity.service';
|
|
3
2
|
import { CreateDialogDataInternal } from './create-dialog/create-dialog-data.builder';
|
|
4
3
|
import { EditDialogDataInternal } from './edit-dialog/edit-dialog-data.builder';
|
|
5
4
|
import { BaseData, DisplayColumn, MultiSelectAction, TableData } from './table-data';
|
|
6
5
|
import { HttpClient } from '@angular/common/http';
|
|
7
|
-
import { BaseBuilder } from '../../classes/base
|
|
6
|
+
import { BaseBuilder } from '../../classes/base.builder';
|
|
7
|
+
import { BaseEntityType, EntityClassNewable } from '../../classes/entity.model';
|
|
8
8
|
/**
|
|
9
9
|
* The internal TableData. Requires all default values the user can leave out.
|
|
10
10
|
*/
|
|
11
|
-
export declare class TableDataInternal<EntityType extends
|
|
11
|
+
export declare class TableDataInternal<EntityType extends BaseEntityType<EntityType>> implements TableData<EntityType> {
|
|
12
12
|
baseData: BaseDataInternal<EntityType>;
|
|
13
13
|
createDialogData: CreateDialogDataInternal;
|
|
14
14
|
editDialogData: EditDialogDataInternal<EntityType>;
|
|
@@ -17,14 +17,14 @@ export declare class TableDataInternal<EntityType extends Entity> implements Tab
|
|
|
17
17
|
/**
|
|
18
18
|
* The Builder for the table BaseData. Sets default values.
|
|
19
19
|
*/
|
|
20
|
-
export declare class BaseDataBuilder<EntityType extends
|
|
20
|
+
export declare class BaseDataBuilder<EntityType extends BaseEntityType<EntityType>> extends BaseBuilder<BaseDataInternal<EntityType>, BaseData<EntityType>> {
|
|
21
21
|
constructor(data: BaseData<EntityType>);
|
|
22
22
|
protected generateBaseData(data: BaseData<EntityType>): BaseDataInternal<EntityType>;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* The internal TableData. Requires all default values the user can leave out.
|
|
26
26
|
*/
|
|
27
|
-
export declare class BaseDataInternal<EntityType extends
|
|
27
|
+
export declare class BaseDataInternal<EntityType extends BaseEntityType<EntityType>> implements BaseData<EntityType> {
|
|
28
28
|
title: string;
|
|
29
29
|
displayColumns: DisplayColumn<EntityType>[];
|
|
30
30
|
EntityServiceClass: new (httpClient: HttpClient) => EntityService<EntityType>;
|
|
@@ -36,15 +36,15 @@ export declare class BaseDataInternal<EntityType extends Entity> implements Base
|
|
|
36
36
|
allowDelete: (entity: EntityType) => boolean;
|
|
37
37
|
multiSelectActions: MultiSelectAction<EntityType>[];
|
|
38
38
|
multiSelectLabel: string;
|
|
39
|
-
EntityClass?:
|
|
39
|
+
EntityClass?: EntityClassNewable<EntityType>;
|
|
40
40
|
edit?: (entity: EntityType) => unknown;
|
|
41
41
|
create?: (entity: EntityType) => unknown;
|
|
42
|
-
constructor(title: string, displayColumns: DisplayColumn<EntityType>[], EntityServiceClass: new (httpClient: HttpClient) => EntityService<EntityType>, searchLabel: string, createButtonLabel: string, searchString: (entity: EntityType) => string, allowCreate: boolean, allowEdit: (entity: EntityType) => boolean, allowDelete: (entity: EntityType) => boolean, multiSelectActions: MultiSelectAction<EntityType>[], multiSelectLabel: string, EntityClass?:
|
|
42
|
+
constructor(title: string, displayColumns: DisplayColumn<EntityType>[], EntityServiceClass: new (httpClient: HttpClient) => EntityService<EntityType>, searchLabel: string, createButtonLabel: string, searchString: (entity: EntityType) => string, allowCreate: boolean, allowEdit: (entity: EntityType) => boolean, allowDelete: (entity: EntityType) => boolean, multiSelectActions: MultiSelectAction<EntityType>[], multiSelectLabel: string, EntityClass?: EntityClassNewable<EntityType>, edit?: (entity: EntityType) => unknown, create?: (entity: EntityType) => unknown);
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
45
|
* The Builder for the complete TableData. Sets default values and validates user input.
|
|
46
46
|
*/
|
|
47
|
-
export declare class TableDataBuilder<EntityType extends
|
|
47
|
+
export declare class TableDataBuilder<EntityType extends BaseEntityType<EntityType>> extends BaseBuilder<TableDataInternal<EntityType>, TableData<EntityType>> {
|
|
48
48
|
constructor(data: TableData<EntityType>);
|
|
49
49
|
protected generateBaseData(data: TableData<EntityType>): TableDataInternal<EntityType>;
|
|
50
50
|
protected validateInput(data: TableData<EntityType>): void;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { EntityService } from '../../classes/entity.service';
|
|
3
|
+
import { BaseEntityType, EntityClassNewable } from '../../classes/entity.model';
|
|
4
4
|
import { ConfirmDialogData } from '../confirm-dialog/confirm-dialog-data';
|
|
5
5
|
/**
|
|
6
6
|
* The Definition of a Column inside the table.
|
|
7
7
|
*/
|
|
8
|
-
export interface DisplayColumn<EntityType extends
|
|
8
|
+
export interface DisplayColumn<EntityType extends BaseEntityType<EntityType>> {
|
|
9
9
|
/**
|
|
10
10
|
* The name inside the header.
|
|
11
11
|
*/
|
|
@@ -18,7 +18,7 @@ export interface DisplayColumn<EntityType extends Entity> {
|
|
|
18
18
|
/**
|
|
19
19
|
* The Definition of an Action that can be run on multiple selected entities.
|
|
20
20
|
*/
|
|
21
|
-
export interface MultiSelectAction<EntityType extends
|
|
21
|
+
export interface MultiSelectAction<EntityType extends BaseEntityType<EntityType>> {
|
|
22
22
|
/**
|
|
23
23
|
* The name of the action.
|
|
24
24
|
*/
|
|
@@ -47,7 +47,7 @@ export interface MultiSelectAction<EntityType extends Entity> {
|
|
|
47
47
|
/**
|
|
48
48
|
* The base data of the ngx-mat-entity-table.
|
|
49
49
|
*/
|
|
50
|
-
export interface BaseData<EntityType extends
|
|
50
|
+
export interface BaseData<EntityType extends BaseEntityType<EntityType>> {
|
|
51
51
|
/**
|
|
52
52
|
* The title of the table.
|
|
53
53
|
*/
|
|
@@ -65,7 +65,7 @@ export interface BaseData<EntityType extends Entity> {
|
|
|
65
65
|
/**
|
|
66
66
|
* The Class of the entities to manage.
|
|
67
67
|
*/
|
|
68
|
-
EntityClass?:
|
|
68
|
+
EntityClass?: EntityClassNewable<EntityType>;
|
|
69
69
|
/**
|
|
70
70
|
* The label on the search bar. Defaults to "Search".
|
|
71
71
|
*/
|
|
@@ -144,7 +144,7 @@ export interface CreateDialogData {
|
|
|
144
144
|
/**
|
|
145
145
|
* The data of the default edit-dialog.
|
|
146
146
|
*/
|
|
147
|
-
export interface EditDialogData<EntityType extends
|
|
147
|
+
export interface EditDialogData<EntityType extends BaseEntityType<EntityType>> {
|
|
148
148
|
/**
|
|
149
149
|
* The title of the default edit-dialog.
|
|
150
150
|
*/
|
|
@@ -181,7 +181,7 @@ export interface EditDialogData<EntityType extends Entity> {
|
|
|
181
181
|
/**
|
|
182
182
|
* All the configuration data required to display a ngx-mat-entity-table.
|
|
183
183
|
*/
|
|
184
|
-
export interface TableData<EntityType extends
|
|
184
|
+
export interface TableData<EntityType extends BaseEntityType<EntityType>> {
|
|
185
185
|
/**
|
|
186
186
|
* The base data for the table-component.
|
|
187
187
|
* Includes stuff like the title for the table, what to display inside the rows etc.
|
|
@@ -2,11 +2,11 @@ import { Injector, OnDestroy, OnInit } from '@angular/core';
|
|
|
2
2
|
import { MatPaginator } from '@angular/material/paginator';
|
|
3
3
|
import { MatSort } from '@angular/material/sort';
|
|
4
4
|
import { MatTableDataSource } from '@angular/material/table';
|
|
5
|
-
import { Entity } from '../../classes/entity-model.class';
|
|
6
5
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
7
6
|
import { MatDialog } from '@angular/material/dialog';
|
|
8
7
|
import { MultiSelectAction, TableData } from './table-data';
|
|
9
8
|
import { TableDataInternal } from './table-data.builder';
|
|
9
|
+
import { BaseEntityType } from '../../classes/entity.model';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
12
|
* Generates a fully functional table for displaying, creating, updating and deleting entities
|
|
@@ -14,7 +14,7 @@ import * as i0 from "@angular/core";
|
|
|
14
14
|
*
|
|
15
15
|
* It offers a lot of customization options which can be found in "TableData".
|
|
16
16
|
*/
|
|
17
|
-
export declare class NgxMatEntityTableComponent<EntityType extends
|
|
17
|
+
export declare class NgxMatEntityTableComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit, OnDestroy {
|
|
18
18
|
private readonly dialog;
|
|
19
19
|
private readonly injector;
|
|
20
20
|
/**
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
import { Entity } from '../../classes/entity-model.class';
|
|
2
1
|
import { CreateDialogData } from '../../components/table/table-data';
|
|
2
|
+
import { BaseEntityType, EntityClassNewable } from '../../classes/entity.model';
|
|
3
3
|
import { DecoratorTypes } from '../base/decorator-types.enum';
|
|
4
4
|
import { PropertyDecoratorConfigInternal } from '../base/property-decorator-internal.data';
|
|
5
|
-
import { ArrayTableDisplayColumn, AutocompleteStringChipsArrayDecoratorConfig, EntityArrayDecoratorConfig, StringChipsArrayDecoratorConfig } from './array-decorator.data';
|
|
5
|
+
import { ArrayTableDisplayColumn, AutocompleteStringChipsArrayDecoratorConfig, DateArrayDecoratorConfig, DateRangeArrayDecoratorConfig, DateTimeArrayDecoratorConfig, EntityArrayDecoratorConfig, StringChipsArrayDecoratorConfig } from './array-decorator.data';
|
|
6
|
+
import { DateFilterFn } from '@angular/material/datepicker';
|
|
7
|
+
import { Time } from '@angular/common';
|
|
8
|
+
import { DropdownValue } from '../base/dropdown-value.interface';
|
|
9
|
+
import { DateRange } from '../date/date-decorator.data';
|
|
10
|
+
import { ConfirmDialogData } from '../../components/confirm-dialog/confirm-dialog-data';
|
|
6
11
|
/**
|
|
7
12
|
* The internal EntityArrayDecoratorConfig. Sets default values.
|
|
8
13
|
*/
|
|
9
|
-
export declare class EntityArrayDecoratorConfigInternal<EntityType extends
|
|
14
|
+
export declare class EntityArrayDecoratorConfigInternal<EntityType extends BaseEntityType<EntityType>> extends PropertyDecoratorConfigInternal implements EntityArrayDecoratorConfig<EntityType> {
|
|
10
15
|
itemType: DecoratorTypes.OBJECT;
|
|
11
|
-
|
|
12
|
-
|
|
16
|
+
allowDuplicates: boolean;
|
|
17
|
+
duplicatesErrorDialog: ConfirmDialogData;
|
|
18
|
+
EntityClass: EntityClassNewable<EntityType>;
|
|
13
19
|
displayColumns: ArrayTableDisplayColumn<EntityType>[];
|
|
14
20
|
createDialogData?: CreateDialogData;
|
|
15
21
|
createInline: boolean;
|
|
@@ -18,12 +24,70 @@ export declare class EntityArrayDecoratorConfigInternal<EntityType extends Entit
|
|
|
18
24
|
removeButtonLabel: string;
|
|
19
25
|
constructor(data: EntityArrayDecoratorConfig<EntityType>);
|
|
20
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* The internal DateArrayDecoratorConfig. Sets default values.
|
|
29
|
+
*/
|
|
30
|
+
export declare class DateArrayDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements DateArrayDecoratorConfig {
|
|
31
|
+
itemType: DecoratorTypes.DATE;
|
|
32
|
+
allowDuplicates: boolean;
|
|
33
|
+
duplicatesErrorDialog: ConfirmDialogData;
|
|
34
|
+
displayColumns: ArrayTableDisplayColumn<Date>[];
|
|
35
|
+
addButtonLabel: string;
|
|
36
|
+
removeButtonLabel: string;
|
|
37
|
+
missingErrorMessage: string;
|
|
38
|
+
min?: (date?: Date) => Date;
|
|
39
|
+
max?: (date?: Date) => Date;
|
|
40
|
+
filter?: DateFilterFn<Date | null | undefined>;
|
|
41
|
+
constructor(data: DateArrayDecoratorConfig);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* The internal DateTimeArrayDecoratorConfig. Sets default values.
|
|
45
|
+
*/
|
|
46
|
+
export declare class DateTimeArrayDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements DateTimeArrayDecoratorConfig {
|
|
47
|
+
itemType: DecoratorTypes.DATE_TIME;
|
|
48
|
+
allowDuplicates: boolean;
|
|
49
|
+
duplicatesErrorDialog: ConfirmDialogData;
|
|
50
|
+
displayColumns: ArrayTableDisplayColumn<Date>[];
|
|
51
|
+
addButtonLabel: string;
|
|
52
|
+
removeButtonLabel: string;
|
|
53
|
+
missingErrorMessage: string;
|
|
54
|
+
times: DropdownValue<Time>[];
|
|
55
|
+
timeDisplayName: string;
|
|
56
|
+
minDate?: (date?: Date) => Date;
|
|
57
|
+
maxDate?: (date?: Date) => Date;
|
|
58
|
+
filterDate?: DateFilterFn<Date | null | undefined>;
|
|
59
|
+
minTime?: (date?: Date) => Time;
|
|
60
|
+
maxTime?: (date?: Date) => Time;
|
|
61
|
+
filterTime?: ((time: Time) => boolean) | (() => boolean);
|
|
62
|
+
constructor(data: DateTimeArrayDecoratorConfig);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* The internal DateRangeArrayDecoratorConfig. Sets default values.
|
|
66
|
+
*/
|
|
67
|
+
export declare class DateRangeArrayDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements DateRangeArrayDecoratorConfig {
|
|
68
|
+
itemType: DecoratorTypes.DATE_RANGE;
|
|
69
|
+
allowDuplicates: boolean;
|
|
70
|
+
duplicatesErrorDialog: ConfirmDialogData;
|
|
71
|
+
displayColumns: ArrayTableDisplayColumn<DateRange>[];
|
|
72
|
+
addButtonLabel: string;
|
|
73
|
+
removeButtonLabel: string;
|
|
74
|
+
missingErrorMessage: string;
|
|
75
|
+
placeholderStart: string;
|
|
76
|
+
placeholderEnd: string;
|
|
77
|
+
minStart?: (date?: Date) => Date;
|
|
78
|
+
maxStart?: (date?: Date) => Date;
|
|
79
|
+
minEnd?: (date?: Date) => Date;
|
|
80
|
+
maxEnd?: (date?: Date) => Date;
|
|
81
|
+
filter?: DateFilterFn<Date>;
|
|
82
|
+
constructor(data: DateRangeArrayDecoratorConfig);
|
|
83
|
+
}
|
|
21
84
|
/**
|
|
22
85
|
* The internal StringChipsArrayDecoratorConfig. Sets default values.
|
|
23
86
|
*/
|
|
24
87
|
export declare class StringChipsArrayDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements StringChipsArrayDecoratorConfig {
|
|
25
88
|
itemType: DecoratorTypes.STRING;
|
|
26
|
-
|
|
89
|
+
allowDuplicates: boolean;
|
|
90
|
+
duplicatesErrorDialog: ConfirmDialogData;
|
|
27
91
|
deleteIcon: string;
|
|
28
92
|
minLength?: number;
|
|
29
93
|
maxLength?: number;
|
|
@@ -36,7 +100,8 @@ export declare class StringChipsArrayDecoratorConfigInternal extends PropertyDec
|
|
|
36
100
|
export declare class AutocompleteStringChipsArrayDecoratorConfigInternal extends PropertyDecoratorConfigInternal implements AutocompleteStringChipsArrayDecoratorConfig {
|
|
37
101
|
autocompleteValues: string[];
|
|
38
102
|
itemType: DecoratorTypes.STRING_AUTOCOMPLETE;
|
|
39
|
-
|
|
103
|
+
allowDuplicates: boolean;
|
|
104
|
+
duplicatesErrorDialog: ConfirmDialogData;
|
|
40
105
|
deleteIcon: string;
|
|
41
106
|
minLength?: number;
|
|
42
107
|
maxLength?: number;
|