ngx-material-entity 18.2.6 → 20.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/ngx-material-entity.mjs +173 -168
- package/fesm2022/ngx-material-entity.mjs.map +1 -1
- package/index.d.ts +4501 -3
- package/package.json +10 -12
- package/classes/base.builder.d.ts +0 -37
- package/classes/entity.model.d.ts +0 -27
- package/components/confirm-dialog/confirm-dialog-data.builder.d.ts +0 -24
- package/components/confirm-dialog/confirm-dialog-data.d.ts +0 -48
- package/components/confirm-dialog/confirm-dialog.component.d.ts +0 -36
- package/components/create-page/create-data.route.d.ts +0 -16
- package/components/create-page/create-page.component.d.ts +0 -141
- package/components/create-page/page-create-data.builder.d.ts +0 -18
- package/components/custom-table/custom-table-configuration.model.d.ts +0 -65
- package/components/custom-table/custom-table.component.d.ts +0 -111
- package/components/edit-page/edit-data.route.d.ts +0 -16
- package/components/edit-page/edit-page.component.d.ts +0 -167
- package/components/edit-page/page-edit-data.builder.d.ts +0 -18
- package/components/form/form.component.d.ts +0 -64
- package/components/input/array/array-date-input/array-date-input.component.d.ts +0 -17
- package/components/input/array/array-date-range-input/array-date-range-input.component.d.ts +0 -25
- package/components/input/array/array-date-time-input/array-date-time-input.component.d.ts +0 -26
- package/components/input/array/array-string-autocomplete-chips/array-string-autocomplete-chips.component.d.ts +0 -30
- package/components/input/array/array-string-chips-input/array-string-chips-input.component.d.ts +0 -36
- package/components/input/array/array-table.class.d.ts +0 -56
- package/components/input/base-input.component.d.ts +0 -64
- package/components/input/boolean/boolean-checkbox-input/boolean-checkbox-input.component.d.ts +0 -10
- package/components/input/boolean/boolean-dropdown-input/boolean-dropdown-input.component.d.ts +0 -13
- package/components/input/boolean/boolean-toggle-input/boolean-toggle-input.component.d.ts +0 -10
- package/components/input/custom/custom.component.d.ts +0 -13
- package/components/input/date/date-input/date-input.component.d.ts +0 -11
- package/components/input/date/date-range-input/date-range-input.component.d.ts +0 -22
- package/components/input/date/date-time-input/date-time-input.component.d.ts +0 -32
- package/components/input/file/file-default-input/file-default-input.component.d.ts +0 -11
- package/components/input/file/file-image-input/file-image-input.component.d.ts +0 -28
- package/components/input/file/file-input/file-input.component.d.ts +0 -45
- package/components/input/input.component.d.ts +0 -590
- package/components/input/number/number-dropdown-input/number-dropdown-input.component.d.ts +0 -24
- package/components/input/number/number-input/number-input.component.d.ts +0 -9
- package/components/input/number/number-slider-input/number-slider-input.component.d.ts +0 -10
- package/components/input/relations/references-many-input/references-many-input.component.d.ts +0 -43
- package/components/input/string/string-autocomplete-input/string-autocomplete-input.component.d.ts +0 -19
- package/components/input/string/string-dropdown-input/string-dropdown-input.component.d.ts +0 -24
- package/components/input/string/string-input/string-input.component.d.ts +0 -9
- package/components/input/string/string-password-input/string-password-input.component.d.ts +0 -31
- package/components/input/string/string-textbox-input/string-textbox-input.component.d.ts +0 -9
- package/components/table/create-dialog/create-data.builder.d.ts +0 -25
- package/components/table/create-dialog/create-entity-data.builder.d.ts +0 -21
- package/components/table/create-dialog/create-entity-data.d.ts +0 -19
- package/components/table/create-dialog/create-entity-dialog.component.d.ts +0 -77
- package/components/table/default.actions.d.ts +0 -25
- package/components/table/display-column-value/base-display-column-value.component.d.ts +0 -15
- package/components/table/display-column-value/display-column-value.component.d.ts +0 -26
- package/components/table/edit-dialog/edit-data.builder.d.ts +0 -44
- package/components/table/edit-dialog/edit-entity-data.d.ts +0 -27
- package/components/table/edit-dialog/edit-entity-dialog.component.d.ts +0 -118
- package/components/table/edit-dialog/edit-entity.builder.d.ts +0 -23
- package/components/table/table-data.builder.d.ts +0 -102
- package/components/table/table-data.d.ts +0 -340
- package/components/table/table.component.d.ts +0 -119
- package/components/tooltip/tooltip.component.d.ts +0 -14
- package/decorators/array/array-decorator-internal.data.d.ts +0 -129
- package/decorators/array/array-decorator.data.d.ts +0 -252
- package/decorators/array/array.decorator.d.ts +0 -9
- package/decorators/base/base-property.decorator.d.ts +0 -9
- package/decorators/base/decorator-types.enum.d.ts +0 -48
- package/decorators/base/dropdown-value.interface.d.ts +0 -14
- package/decorators/base/property-decorator-internal.data.d.ts +0 -41
- package/decorators/base/property-decorator.data.d.ts +0 -88
- package/decorators/boolean/boolean-decorator-internal.data.d.ts +0 -26
- package/decorators/boolean/boolean-decorator.data.d.ts +0 -39
- package/decorators/boolean/boolean.decorator.d.ts +0 -7
- package/decorators/custom/custom-decorator-internal.data.d.ts +0 -17
- package/decorators/custom/custom-decorator.data.d.ts +0 -35
- package/decorators/custom/custom.decorator.d.ts +0 -9
- package/decorators/date/date-decorator-internal.data.d.ts +0 -45
- package/decorators/date/date-decorator.data.d.ts +0 -126
- package/decorators/date/date.decorator.d.ts +0 -7
- package/decorators/file/file-decorator-internal.data.d.ts +0 -93
- package/decorators/file/file-decorator.data.d.ts +0 -88
- package/decorators/file/file.decorator.d.ts +0 -8
- package/decorators/has-many/has-many-decorator-internal.data.d.ts +0 -16
- package/decorators/has-many/has-many-decorator.data.d.ts +0 -34
- package/decorators/has-many/has-many.decorator.d.ts +0 -8
- package/decorators/number/number-decorator-internal.data.d.ts +0 -38
- package/decorators/number/number-decorator.data.d.ts +0 -63
- package/decorators/number/number.decorator.d.ts +0 -7
- package/decorators/object/object-decorator-internal.data.d.ts +0 -23
- package/decorators/object/object-decorator.data.d.ts +0 -42
- package/decorators/object/object.decorator.d.ts +0 -8
- package/decorators/references-many/references-many-decorator-internal.data.d.ts +0 -30
- package/decorators/references-many/references-many-decorator.data.d.ts +0 -63
- package/decorators/references-many/references-many.decorator.d.ts +0 -8
- package/decorators/references-one/references-one-decorator-internal.data.d.ts +0 -16
- package/decorators/references-one/references-one-decorator.data.d.ts +0 -32
- package/decorators/references-one/references-one.decorator.d.ts +0 -8
- package/decorators/string/string-decorator-internal.data.d.ts +0 -56
- package/decorators/string/string-decorator.data.d.ts +0 -116
- package/decorators/string/string.decorator.d.ts +0 -7
- package/default-global-configuration-values.d.ts +0 -13
- package/directives/drag-drop.directive.d.ts +0 -29
- package/directives/dynamic-style-class.directive.d.ts +0 -24
- package/directives/included-in.directive.d.ts +0 -14
- package/directives/number.directive.d.ts +0 -16
- package/directives/password-match.directive.d.ts +0 -14
- package/directives/tooltip.directive.d.ts +0 -42
- package/encapsulation/js-2-xml.utilities.d.ts +0 -14
- package/encapsulation/jszip.utilities.d.ts +0 -12
- package/encapsulation/lodash.utilities.d.ts +0 -60
- package/encapsulation/reflect.utilities.d.ts +0 -59
- package/encapsulation/uuid.utilities.d.ts +0 -10
- package/esm2022/classes/base.builder.mjs +0 -47
- package/esm2022/classes/entity.model.mjs +0 -26
- package/esm2022/components/confirm-dialog/confirm-dialog-data.builder.mjs +0 -57
- package/esm2022/components/confirm-dialog/confirm-dialog-data.mjs +0 -2
- package/esm2022/components/confirm-dialog/confirm-dialog.component.mjs +0 -71
- package/esm2022/components/create-page/create-data.route.mjs +0 -12
- package/esm2022/components/create-page/create-page.component.mjs +0 -276
- package/esm2022/components/create-page/page-create-data.builder.mjs +0 -30
- package/esm2022/components/custom-table/custom-table-configuration.model.mjs +0 -37
- package/esm2022/components/custom-table/custom-table.component.mjs +0 -213
- package/esm2022/components/edit-page/edit-data.route.mjs +0 -12
- package/esm2022/components/edit-page/edit-page.component.mjs +0 -362
- package/esm2022/components/edit-page/page-edit-data.builder.mjs +0 -33
- package/esm2022/components/form/form.component.mjs +0 -106
- package/esm2022/components/input/array/array-date-input/array-date-input.component.mjs +0 -56
- package/esm2022/components/input/array/array-date-range-input/array-date-range-input.component.mjs +0 -82
- package/esm2022/components/input/array/array-date-time-input/array-date-time-input.component.mjs +0 -82
- package/esm2022/components/input/array/array-string-autocomplete-chips/array-string-autocomplete-chips.component.mjs +0 -81
- package/esm2022/components/input/array/array-string-chips-input/array-string-chips-input.component.mjs +0 -74
- package/esm2022/components/input/array/array-table.class.mjs +0 -107
- package/esm2022/components/input/base-input.component.mjs +0 -102
- package/esm2022/components/input/boolean/boolean-checkbox-input/boolean-checkbox-input.component.mjs +0 -29
- package/esm2022/components/input/boolean/boolean-dropdown-input/boolean-dropdown-input.component.mjs +0 -40
- package/esm2022/components/input/boolean/boolean-toggle-input/boolean-toggle-input.component.mjs +0 -29
- package/esm2022/components/input/custom/custom.component.mjs +0 -28
- package/esm2022/components/input/date/date-input/date-input.component.mjs +0 -28
- package/esm2022/components/input/date/date-range-input/date-range-input.component.mjs +0 -84
- package/esm2022/components/input/date/date-time-input/date-time-input.component.mjs +0 -90
- package/esm2022/components/input/file/file-default-input/file-default-input.component.mjs +0 -18
- package/esm2022/components/input/file/file-image-input/file-image-input.component.mjs +0 -104
- package/esm2022/components/input/file/file-input/file-input.component.mjs +0 -228
- package/esm2022/components/input/input.component.mjs +0 -1367
- package/esm2022/components/input/number/number-dropdown-input/number-dropdown-input.component.mjs +0 -65
- package/esm2022/components/input/number/number-input/number-input.component.mjs +0 -23
- package/esm2022/components/input/number/number-slider-input/number-slider-input.component.mjs +0 -27
- package/esm2022/components/input/relations/references-many-input/references-many-input.component.mjs +0 -145
- package/esm2022/components/input/string/string-autocomplete-input/string-autocomplete-input.component.mjs +0 -56
- package/esm2022/components/input/string/string-dropdown-input/string-dropdown-input.component.mjs +0 -65
- package/esm2022/components/input/string/string-input/string-input.component.mjs +0 -23
- package/esm2022/components/input/string/string-password-input/string-password-input.component.mjs +0 -107
- package/esm2022/components/input/string/string-textbox-input/string-textbox-input.component.mjs +0 -24
- package/esm2022/components/table/create-dialog/create-data.builder.mjs +0 -56
- package/esm2022/components/table/create-dialog/create-entity-data.builder.mjs +0 -32
- package/esm2022/components/table/create-dialog/create-entity-data.mjs +0 -2
- package/esm2022/components/table/create-dialog/create-entity-dialog.component.mjs +0 -180
- package/esm2022/components/table/default.actions.mjs +0 -83
- package/esm2022/components/table/display-column-value/base-display-column-value.component.mjs +0 -27
- package/esm2022/components/table/display-column-value/display-column-value.component.mjs +0 -41
- package/esm2022/components/table/edit-dialog/edit-data.builder.mjs +0 -136
- package/esm2022/components/table/edit-dialog/edit-entity-data.mjs +0 -2
- package/esm2022/components/table/edit-dialog/edit-entity-dialog.component.mjs +0 -295
- package/esm2022/components/table/edit-dialog/edit-entity.builder.mjs +0 -39
- package/esm2022/components/table/table-data.builder.mjs +0 -304
- package/esm2022/components/table/table-data.mjs +0 -2
- package/esm2022/components/table/table.component.mjs +0 -324
- package/esm2022/components/tooltip/tooltip.component.mjs +0 -26
- package/esm2022/decorators/array/array-decorator-internal.data.mjs +0 -310
- package/esm2022/decorators/array/array-decorator.data.mjs +0 -51
- package/esm2022/decorators/array/array.decorator.mjs +0 -37
- package/esm2022/decorators/base/base-property.decorator.mjs +0 -17
- package/esm2022/decorators/base/decorator-types.enum.mjs +0 -35
- package/esm2022/decorators/base/dropdown-value.interface.mjs +0 -2
- package/esm2022/decorators/base/property-decorator-internal.data.mjs +0 -101
- package/esm2022/decorators/base/property-decorator.data.mjs +0 -59
- package/esm2022/decorators/boolean/boolean-decorator-internal.data.mjs +0 -45
- package/esm2022/decorators/boolean/boolean-decorator.data.mjs +0 -11
- package/esm2022/decorators/boolean/boolean.decorator.mjs +0 -21
- package/esm2022/decorators/custom/custom-decorator-internal.data.mjs +0 -34
- package/esm2022/decorators/custom/custom-decorator.data.mjs +0 -2
- package/esm2022/decorators/custom/custom.decorator.mjs +0 -13
- package/esm2022/decorators/date/date-decorator-internal.data.mjs +0 -92
- package/esm2022/decorators/date/date-decorator.data.mjs +0 -11
- package/esm2022/decorators/date/date.decorator.mjs +0 -22
- package/esm2022/decorators/file/file-decorator-internal.data.mjs +0 -143
- package/esm2022/decorators/file/file-decorator.data.mjs +0 -59
- package/esm2022/decorators/file/file.decorator.mjs +0 -25
- package/esm2022/decorators/has-many/has-many-decorator-internal.data.mjs +0 -41
- package/esm2022/decorators/has-many/has-many-decorator.data.mjs +0 -2
- package/esm2022/decorators/has-many/has-many.decorator.mjs +0 -13
- package/esm2022/decorators/number/number-decorator-internal.data.mjs +0 -68
- package/esm2022/decorators/number/number-decorator.data.mjs +0 -11
- package/esm2022/decorators/number/number.decorator.mjs +0 -22
- package/esm2022/decorators/object/object-decorator-internal.data.mjs +0 -42
- package/esm2022/decorators/object/object-decorator.data.mjs +0 -22
- package/esm2022/decorators/object/object.decorator.mjs +0 -20
- package/esm2022/decorators/references-many/references-many-decorator-internal.data.mjs +0 -55
- package/esm2022/decorators/references-many/references-many-decorator.data.mjs +0 -2
- package/esm2022/decorators/references-many/references-many.decorator.mjs +0 -13
- package/esm2022/decorators/references-one/references-one-decorator-internal.data.mjs +0 -34
- package/esm2022/decorators/references-one/references-one-decorator.data.mjs +0 -2
- package/esm2022/decorators/references-one/references-one.decorator.mjs +0 -12
- package/esm2022/decorators/string/string-decorator-internal.data.mjs +0 -119
- package/esm2022/decorators/string/string-decorator.data.mjs +0 -11
- package/esm2022/decorators/string/string.decorator.mjs +0 -29
- package/esm2022/default-global-configuration-values.mjs +0 -91
- package/esm2022/directives/drag-drop.directive.mjs +0 -60
- package/esm2022/directives/dynamic-style-class.directive.mjs +0 -51
- package/esm2022/directives/included-in.directive.mjs +0 -33
- package/esm2022/directives/number.directive.mjs +0 -37
- package/esm2022/directives/password-match.directive.mjs +0 -30
- package/esm2022/directives/tooltip.directive.mjs +0 -142
- package/esm2022/encapsulation/js-2-xml.utilities.mjs +0 -17
- package/esm2022/encapsulation/jszip.utilities.mjs +0 -16
- package/esm2022/encapsulation/lodash.utilities.mjs +0 -80
- package/esm2022/encapsulation/reflect.utilities.mjs +0 -79
- package/esm2022/encapsulation/uuid.utilities.mjs +0 -14
- package/esm2022/functions/default-false.function.mjs +0 -9
- package/esm2022/functions/default-style-classes.function.mjs +0 -7
- package/esm2022/functions/default-true.function.mjs +0 -9
- package/esm2022/functions/dropdown-values-to-function.function.mjs +0 -15
- package/esm2022/functions/get-changes-tooltip-content.function.mjs +0 -23
- package/esm2022/functions/get-config-value.function.mjs +0 -14
- package/esm2022/functions/get-validation-error-message.function.mjs +0 -54
- package/esm2022/functions/get-validation-errors-tooltip-content.function.mjs +0 -23
- package/esm2022/functions/is-async-function.function.mjs +0 -9
- package/esm2022/functions/table-column-value-to-sort-value.function.mjs +0 -33
- package/esm2022/global-configuration-values.mjs +0 -27
- package/esm2022/mocks/placeholder-data.png.mjs +0 -3
- package/esm2022/ngx-material-entity.mjs +0 -5
- package/esm2022/public-api.mjs +0 -68
- package/esm2022/services/entity.service.mjs +0 -269
- package/esm2022/services/unsaved-changes.guard.mjs +0 -13
- package/esm2022/utilities/date.utilities.mjs +0 -138
- package/esm2022/utilities/entity.utilities.mjs +0 -611
- package/esm2022/utilities/file.utilities.mjs +0 -172
- package/esm2022/utilities/selection.utilities.mjs +0 -49
- package/esm2022/utilities/validation.utilities.mjs +0 -543
- package/functions/default-false.function.d.ts +0 -6
- package/functions/default-style-classes.function.d.ts +0 -6
- package/functions/default-true.function.d.ts +0 -6
- package/functions/dropdown-values-to-function.function.d.ts +0 -11
- package/functions/get-changes-tooltip-content.function.d.ts +0 -13
- package/functions/get-config-value.function.d.ts +0 -7
- package/functions/get-validation-error-message.function.d.ts +0 -5
- package/functions/get-validation-errors-tooltip-content.function.d.ts +0 -12
- package/functions/is-async-function.function.d.ts +0 -6
- package/functions/table-column-value-to-sort-value.function.d.ts +0 -9
- package/global-configuration-values.d.ts +0 -205
- package/mocks/placeholder-data.png.d.ts +0 -1
- package/public-api.d.ts +0 -60
- package/services/entity.service.d.ts +0 -146
- package/services/unsaved-changes.guard.d.ts +0 -23
- package/utilities/date.utilities.d.ts +0 -92
- package/utilities/entity.utilities.d.ts +0 -236
- package/utilities/file.utilities.d.ts +0 -67
- package/utilities/selection.utilities.d.ts +0 -28
- package/utilities/validation.utilities.d.ts +0 -58
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
3
|
-
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
4
|
-
import { FileData } from '../../../../decorators/file/file-decorator.data';
|
|
5
|
-
import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class FileDefaultInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.FILE_DEFAULT, FileData | FileData[]> implements OnInit {
|
|
8
|
-
refreshFileData(fileData?: FileData | FileData[]): void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FileDefaultInputComponent<any>, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileDefaultInputComponent<any>, "file-default-input", never, {}, {}, never, never, true, never>;
|
|
11
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { OnInit } from '@angular/core';
|
|
3
|
-
import { IconDefinition } from '@fortawesome/angular-fontawesome';
|
|
4
|
-
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
5
|
-
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
6
|
-
import { FileData } from '../../../../decorators/file/file-decorator.data';
|
|
7
|
-
import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class FileImageInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.FILE_IMAGE, FileData | FileData[]> implements OnInit {
|
|
10
|
-
private readonly http;
|
|
11
|
-
faAngleLeft: IconDefinition;
|
|
12
|
-
faAngleRight: IconDefinition;
|
|
13
|
-
get multiPreviewImages(): string[] | undefined;
|
|
14
|
-
set multiPreviewImages(value: string[] | undefined);
|
|
15
|
-
get singlePreviewImage(): string | undefined;
|
|
16
|
-
set singlePreviewImage(value: string | undefined);
|
|
17
|
-
imageIndex: number;
|
|
18
|
-
placeHolder: string;
|
|
19
|
-
constructor(http: HttpClient);
|
|
20
|
-
private setSinglePreviewImage;
|
|
21
|
-
private setMultiPreviewImages;
|
|
22
|
-
refreshFileData(fileData?: FileData | FileData[]): Promise<void>;
|
|
23
|
-
prev(): Promise<void>;
|
|
24
|
-
next(): Promise<void>;
|
|
25
|
-
setIndex(index: number): Promise<void>;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FileImageInputComponent<any>, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileImageInputComponent<any>, "file-image-input", never, {}, {}, never, never, true, never>;
|
|
28
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
3
|
-
import { NgModel } from '@angular/forms';
|
|
4
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
5
|
-
import { IconDefinition } from '@fortawesome/angular-fontawesome';
|
|
6
|
-
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
7
|
-
import { DefaultFileDecoratorConfigInternal, ImageFileDecoratorConfigInternal } from '../../../../decorators/file/file-decorator-internal.data';
|
|
8
|
-
import { FileData } from '../../../../decorators/file/file-decorator.data';
|
|
9
|
-
import { FileUtilities } from '../../../../utilities/file.utilities';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class FileInputComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
|
|
12
|
-
private readonly dialog;
|
|
13
|
-
private readonly http;
|
|
14
|
-
faFileArrowUp: IconDefinition;
|
|
15
|
-
faUpload: IconDefinition;
|
|
16
|
-
faPlusCircle: IconDefinition;
|
|
17
|
-
faFileZipper: IconDefinition;
|
|
18
|
-
faDownload: IconDefinition;
|
|
19
|
-
get filenames(): string[] | undefined;
|
|
20
|
-
set filenames(value: string[] | undefined);
|
|
21
|
-
FileUtilities: typeof FileUtilities;
|
|
22
|
-
propertyValue: FileData | FileData[] | undefined;
|
|
23
|
-
entity: EntityType;
|
|
24
|
-
key: keyof EntityType;
|
|
25
|
-
metadata: DefaultFileDecoratorConfigInternal | ImageFileDecoratorConfigInternal;
|
|
26
|
-
getValidationErrorMessage: (model: NgModel) => string;
|
|
27
|
-
isReadOnly: boolean;
|
|
28
|
-
readonly fileDataChangeEvent: EventEmitter<FileData | FileData[]>;
|
|
29
|
-
acceptString: string;
|
|
30
|
-
constructor(dialog: MatDialog, http: HttpClient);
|
|
31
|
-
ngOnInit(): void;
|
|
32
|
-
private initMultiFile;
|
|
33
|
-
private initSingleFile;
|
|
34
|
-
setFileFromInput(event: Event): void;
|
|
35
|
-
setFile(files: File[]): void;
|
|
36
|
-
private resetFileInputs;
|
|
37
|
-
private setMultiFile;
|
|
38
|
-
private setSingleFile;
|
|
39
|
-
removeFile(name: string): void;
|
|
40
|
-
downloadFile(name: string): Promise<void>;
|
|
41
|
-
downloadAllEnabled(): boolean;
|
|
42
|
-
downloadAll(): Promise<void>;
|
|
43
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FileInputComponent<any>, never>;
|
|
44
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileInputComponent<any>, "file-input", never, { "propertyValue": { "alias": "propertyValue"; "required": true; }; "entity": { "alias": "entity"; "required": true; }; "key": { "alias": "key"; "required": true; }; "metadata": { "alias": "metadata"; "required": true; }; "getValidationErrorMessage": { "alias": "getValidationErrorMessage"; "required": true; }; "isReadOnly": { "alias": "isReadOnly"; "required": true; }; }, { "fileDataChangeEvent": "fileDataChangeEvent"; }, never, never, true, never>;
|
|
45
|
-
}
|
|
@@ -1,590 +0,0 @@
|
|
|
1
|
-
import { SelectionModel } from '@angular/cdk/collections';
|
|
2
|
-
import { HttpClient } from '@angular/common/http';
|
|
3
|
-
import { EnvironmentInjector, EventEmitter, OnInit } from '@angular/core';
|
|
4
|
-
import { NgModel } from '@angular/forms';
|
|
5
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
6
|
-
import { MatTableDataSource } from '@angular/material/table';
|
|
7
|
-
import { Router } from '@angular/router';
|
|
8
|
-
import { IconDefinition } from '@fortawesome/angular-fontawesome';
|
|
9
|
-
import { BaseEntityType } from '../../classes/entity.model';
|
|
10
|
-
import { EditArrayItemDialogDataInternal, EntityArrayDecoratorConfigInternal } from '../../decorators/array/array-decorator-internal.data';
|
|
11
|
-
import { DecoratorTypes } from '../../decorators/base/decorator-types.enum';
|
|
12
|
-
import { DropdownValue } from '../../decorators/base/dropdown-value.interface';
|
|
13
|
-
import { PropertyDecoratorConfigInternal } from '../../decorators/base/property-decorator-internal.data';
|
|
14
|
-
import { HasManyDecoratorConfigInternal } from '../../decorators/has-many/has-many-decorator-internal.data';
|
|
15
|
-
import { DefaultObjectDecoratorConfigInternal, DropdownObjectDecoratorConfigInternal } from '../../decorators/object/object-decorator-internal.data';
|
|
16
|
-
import { ReferencesOneDecoratorConfigInternal } from '../../decorators/references-one/references-one-decorator-internal.data';
|
|
17
|
-
import { NgxGlobalDefaultValues } from '../../global-configuration-values';
|
|
18
|
-
import { DateUtilities } from '../../utilities/date.utilities';
|
|
19
|
-
import { Difference, EntityTab, EntityUtilities } from '../../utilities/entity.utilities';
|
|
20
|
-
import { SelectionUtilities } from '../../utilities/selection.utilities';
|
|
21
|
-
import { ValidationError } from '../../utilities/validation.utilities';
|
|
22
|
-
import { InternalCustomTableConfiguration } from '../custom-table/custom-table-configuration.model';
|
|
23
|
-
import { CreateDataInternal } from '../table/create-dialog/create-data.builder';
|
|
24
|
-
import { EditActionInternal } from '../table/edit-dialog/edit-data.builder';
|
|
25
|
-
import { DisplayColumn } from '../table/table-data';
|
|
26
|
-
import { BaseTableActionInternal, TableActionInternal } from '../table/table-data.builder';
|
|
27
|
-
import * as i0 from "@angular/core";
|
|
28
|
-
/**
|
|
29
|
-
* Generic type for contexts that can fill an inline template.
|
|
30
|
-
*/
|
|
31
|
-
type TemplateContext<T> = {
|
|
32
|
-
/**
|
|
33
|
-
* The actual value. The $implicit is needed so that we don't need to specify a key when writing "let-context" in the html template.
|
|
34
|
-
*/
|
|
35
|
-
$implicit: T;
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* A form context that is used to fill an inline template.
|
|
39
|
-
* This is used to go around the limitations of having everything in the same file due to circular dependencies.
|
|
40
|
-
* The forms are used for object, hasMany, referencesMany and the dialogs.
|
|
41
|
-
*/
|
|
42
|
-
type FormContext<EntityType extends BaseEntityType<EntityType>> = {
|
|
43
|
-
/**
|
|
44
|
-
* The entity to build the form for.
|
|
45
|
-
*/
|
|
46
|
-
entity: EntityType;
|
|
47
|
-
/**
|
|
48
|
-
* The tabs to display.
|
|
49
|
-
*/
|
|
50
|
-
tabs: EntityTab<EntityType>[];
|
|
51
|
-
/**
|
|
52
|
-
* Whether or not edit values should be omitted.
|
|
53
|
-
*/
|
|
54
|
-
hideOmitForEdit?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Whether or not create values should be omitted.
|
|
57
|
-
*/
|
|
58
|
-
hideOmitForCreate?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* What happens when the input changes.
|
|
61
|
-
*/
|
|
62
|
-
inputChangeEvent: () => void | Promise<void>;
|
|
63
|
-
/**
|
|
64
|
-
* Whether or not the input is readonly.
|
|
65
|
-
*/
|
|
66
|
-
isReadOnly?: (property: EntityType, key: keyof EntityType) => boolean;
|
|
67
|
-
/**
|
|
68
|
-
* Whether or not the input is valid empty.
|
|
69
|
-
*/
|
|
70
|
-
validEmpty?: () => boolean;
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* A table context that is used to fill an inline template.
|
|
74
|
-
* This is used to go around the limitations of having everything in the same file due to circular dependencies.
|
|
75
|
-
* The table is used for entity array and hasMany.
|
|
76
|
-
*/
|
|
77
|
-
type TableContext<T> = InternalCustomTableConfiguration & {
|
|
78
|
-
/**
|
|
79
|
-
* The data source of the table.
|
|
80
|
-
*/
|
|
81
|
-
dataSource: MatTableDataSource<T>;
|
|
82
|
-
/**
|
|
83
|
-
* Whether or not a error message should be shown when the table is empty.
|
|
84
|
-
*/
|
|
85
|
-
shouldShowMissingError: boolean;
|
|
86
|
-
/**
|
|
87
|
-
* The selection of the table.
|
|
88
|
-
*/
|
|
89
|
-
selection: SelectionModel<T>;
|
|
90
|
-
/**
|
|
91
|
-
* What happens when a cell is clicked.
|
|
92
|
-
*/
|
|
93
|
-
clickCell: (value: T, displayColumn: DisplayColumn<T>) => void;
|
|
94
|
-
/**
|
|
95
|
-
* Whether or not the data for the table is currently being loaded.
|
|
96
|
-
*/
|
|
97
|
-
isLoading: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* All columns that should be displayed.
|
|
100
|
-
*/
|
|
101
|
-
displayedColumns: string[];
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* The default input component. It gets the metadata of the property from the given @Input "entity" and @Input "propertyKey"
|
|
105
|
-
* and displays the input field accordingly.
|
|
106
|
-
*
|
|
107
|
-
* You can also define a method that generates error-messages and if the input should be hidden when its metadata says
|
|
108
|
-
* that it should be omitted for creating or updating.
|
|
109
|
-
* The last part being mostly relevant if you want to use this component inside an ngFor.
|
|
110
|
-
*/
|
|
111
|
-
export declare class NgxMatEntityInputComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
|
|
112
|
-
private readonly dialog;
|
|
113
|
-
private readonly injector;
|
|
114
|
-
private readonly router;
|
|
115
|
-
protected readonly defaultGetValidationErrorMessage: (model: NgModel) => string;
|
|
116
|
-
protected readonly globalConfig: NgxGlobalDefaultValues;
|
|
117
|
-
private readonly http;
|
|
118
|
-
faSearch: IconDefinition;
|
|
119
|
-
/**
|
|
120
|
-
* The entity on which the property exists. Used in conjunction with the "propertyKey"
|
|
121
|
-
* to determine the property for which the input should be generated.
|
|
122
|
-
*/
|
|
123
|
-
entity: EntityType;
|
|
124
|
-
/**
|
|
125
|
-
* The name of the property to generate the input for. Used in conjunction with the "entity".
|
|
126
|
-
*/
|
|
127
|
-
propertyKey: keyof EntityType;
|
|
128
|
-
/**
|
|
129
|
-
* (optional) A custom function to generate the error-message for invalid inputs.
|
|
130
|
-
*/
|
|
131
|
-
getValidationErrorMessage?: (model: NgModel) => string;
|
|
132
|
-
internalGetValidationErrorMessage: (model: NgModel) => string;
|
|
133
|
-
/**
|
|
134
|
-
* Whether to hide a value if it is omitted for creation.
|
|
135
|
-
* Is used internally for the object property.
|
|
136
|
-
* @default false
|
|
137
|
-
*/
|
|
138
|
-
hideOmitForCreate?: boolean;
|
|
139
|
-
/**
|
|
140
|
-
* Whether to hide a value if it is omitted for editing.
|
|
141
|
-
* Is used internally for the object property.
|
|
142
|
-
* @default false
|
|
143
|
-
*/
|
|
144
|
-
hideOmitForEdit?: boolean;
|
|
145
|
-
/**
|
|
146
|
-
* Whether or not an empty value should be valid.
|
|
147
|
-
* Is used internally for the object property.
|
|
148
|
-
* @default undefined
|
|
149
|
-
*/
|
|
150
|
-
validEmpty?: boolean;
|
|
151
|
-
/**
|
|
152
|
-
* Whether or not the input should be readonly.
|
|
153
|
-
* In that case it is disabled, but most of the default styling is overwritten.
|
|
154
|
-
* @default false
|
|
155
|
-
*/
|
|
156
|
-
isReadOnly?: boolean;
|
|
157
|
-
internalIsReadOnly: boolean;
|
|
158
|
-
/**
|
|
159
|
-
* Emits when the input value has been changed.
|
|
160
|
-
*/
|
|
161
|
-
readonly inputChangeEvent: EventEmitter<void>;
|
|
162
|
-
/**
|
|
163
|
-
* A setter for the has many and array sort.
|
|
164
|
-
* Is needed because the sort is inside a switch case,
|
|
165
|
-
* which means that at ngOnInit it can't be initialized.
|
|
166
|
-
*/
|
|
167
|
-
private set sort(value);
|
|
168
|
-
/**
|
|
169
|
-
* A setter for the has many and array paginator.
|
|
170
|
-
* Is needed because the paginator is inside a switch case,
|
|
171
|
-
* which means that at ngOnInit it can't be initialized.
|
|
172
|
-
*/
|
|
173
|
-
private set paginator(value);
|
|
174
|
-
/**
|
|
175
|
-
* The type of the decorator for this input.
|
|
176
|
-
*/
|
|
177
|
-
type: DecoratorTypes;
|
|
178
|
-
/**
|
|
179
|
-
* The property metadata received from the decorator.
|
|
180
|
-
*/
|
|
181
|
-
metadata: PropertyDecoratorConfigInternal<unknown>;
|
|
182
|
-
/**
|
|
183
|
-
* The metadata of an object property.
|
|
184
|
-
*/
|
|
185
|
-
metadataDefaultObject: DefaultObjectDecoratorConfigInternal<EntityType>;
|
|
186
|
-
/**
|
|
187
|
-
* The form context for an object property.
|
|
188
|
-
*/
|
|
189
|
-
objectFormContext: TemplateContext<FormContext<EntityType>>;
|
|
190
|
-
/**
|
|
191
|
-
* The metadata of an dropdown object property.
|
|
192
|
-
*/
|
|
193
|
-
metadataDropdownObject: DropdownObjectDecoratorConfigInternal<EntityType>;
|
|
194
|
-
/**
|
|
195
|
-
* All possible dropdown values for the object property.
|
|
196
|
-
*/
|
|
197
|
-
private objectDropdownValues;
|
|
198
|
-
/**
|
|
199
|
-
* A unique input name for the references one property.
|
|
200
|
-
*/
|
|
201
|
-
objectDropdownName: string;
|
|
202
|
-
/**
|
|
203
|
-
* All currently shown dropdown values for the object property.
|
|
204
|
-
*/
|
|
205
|
-
filteredObjectDropdownValues: DropdownValue<EntityType | undefined>[];
|
|
206
|
-
/**
|
|
207
|
-
* The currently selected object as a drop down value.
|
|
208
|
-
*/
|
|
209
|
-
get currentObjectDropdownValue(): DropdownValue<EntityType | undefined> | undefined;
|
|
210
|
-
/**
|
|
211
|
-
* Whether or not the current object dropdown value should be shown in the dropdown.
|
|
212
|
-
*/
|
|
213
|
-
get shouldDisplayCurrentObjectDropdownValue(): boolean;
|
|
214
|
-
/**
|
|
215
|
-
* A compareWith method for the select.
|
|
216
|
-
* Uses bind.
|
|
217
|
-
*/
|
|
218
|
-
compareObjectsBound: (value1?: EntityType, value2?: EntityType) => boolean;
|
|
219
|
-
private readonly addArrayItemDialog;
|
|
220
|
-
private addArrayItemDialogRef;
|
|
221
|
-
private readonly editArrayItemDialog;
|
|
222
|
-
private editArrayItemDialogRef;
|
|
223
|
-
/**
|
|
224
|
-
* The metadata of an entity array property.
|
|
225
|
-
*/
|
|
226
|
-
metadataEntityArray: EntityArrayDecoratorConfigInternal<EntityType>;
|
|
227
|
-
/**
|
|
228
|
-
* The table context for the entity array input.
|
|
229
|
-
*/
|
|
230
|
-
entityArrayTableContext: TemplateContext<TableContext<EntityType>>;
|
|
231
|
-
/**
|
|
232
|
-
* The current array item to be added or updated.
|
|
233
|
-
*/
|
|
234
|
-
arrayItem: EntityType;
|
|
235
|
-
/**
|
|
236
|
-
* The array item before any changes have been made. Used to check if the form is dirty.
|
|
237
|
-
*/
|
|
238
|
-
arrayItemPriorChanges: EntityType;
|
|
239
|
-
/**
|
|
240
|
-
* The form context for adding an array item.
|
|
241
|
-
*/
|
|
242
|
-
addArrayItemFormContext: TemplateContext<FormContext<EntityType>>;
|
|
243
|
-
addArrayItemFormContext2: TemplateContext<FormContext<EntityType>>;
|
|
244
|
-
/**
|
|
245
|
-
* The form context for editing an array item.
|
|
246
|
-
*/
|
|
247
|
-
editArrayItemFormContext: TemplateContext<FormContext<EntityType>>;
|
|
248
|
-
/**
|
|
249
|
-
* Whether or not the array item is valid.
|
|
250
|
-
*/
|
|
251
|
-
isArrayItemValid: boolean;
|
|
252
|
-
/**
|
|
253
|
-
* Whether or not the array item is dirty.
|
|
254
|
-
*/
|
|
255
|
-
isArrayItemDirty: boolean;
|
|
256
|
-
/**
|
|
257
|
-
* The index of the array item that is being edited.
|
|
258
|
-
*/
|
|
259
|
-
private indexOfEditedArrayItem;
|
|
260
|
-
/**
|
|
261
|
-
* Config for the dialog that adds a new array item.
|
|
262
|
-
*/
|
|
263
|
-
addArrayItemDialogData: CreateDataInternal;
|
|
264
|
-
/**
|
|
265
|
-
* The tabs to display inside the edit array item dialog.
|
|
266
|
-
*/
|
|
267
|
-
editArrayItemDialogData: EditArrayItemDialogDataInternal<EntityType>;
|
|
268
|
-
/**
|
|
269
|
-
* All validation errors for the array item.
|
|
270
|
-
*/
|
|
271
|
-
arrayItemValidationErrors: ValidationError[];
|
|
272
|
-
/**
|
|
273
|
-
* All the changes that have been done to the array item.
|
|
274
|
-
*/
|
|
275
|
-
arrayItemChanges: Difference<EntityType>[];
|
|
276
|
-
/**
|
|
277
|
-
* What to display inside the array item tooltip.
|
|
278
|
-
*/
|
|
279
|
-
arrayItemTooltipContent: string;
|
|
280
|
-
/**
|
|
281
|
-
* Metadata of a has many property.
|
|
282
|
-
*/
|
|
283
|
-
metadataHasMany: HasManyDecoratorConfigInternal<EntityType, EntityType>;
|
|
284
|
-
/**
|
|
285
|
-
* The table context for the has many input.
|
|
286
|
-
*/
|
|
287
|
-
hasManyTableContext: TemplateContext<TableContext<EntityType>>;
|
|
288
|
-
/**
|
|
289
|
-
* The has many import action.
|
|
290
|
-
*/
|
|
291
|
-
hasManyImportAction: BaseTableActionInternal;
|
|
292
|
-
private hasManyEntityService;
|
|
293
|
-
private readonly createHasManyDialog;
|
|
294
|
-
private createHasManyDialogRef;
|
|
295
|
-
private readonly editHasManyDialog;
|
|
296
|
-
private editHasManyDialogRef;
|
|
297
|
-
/**
|
|
298
|
-
* A single has many entity.
|
|
299
|
-
*/
|
|
300
|
-
hasManyEntity: EntityType;
|
|
301
|
-
/**
|
|
302
|
-
* The single has many entity before any changes have been made. Is used to determine if the form is dirty.
|
|
303
|
-
*/
|
|
304
|
-
hasManyEntityPriorChanges: EntityType;
|
|
305
|
-
/**
|
|
306
|
-
* Whether or not the has many entity is valid.
|
|
307
|
-
*/
|
|
308
|
-
isHasManyEntityValid: boolean;
|
|
309
|
-
/**
|
|
310
|
-
* All validation errors of the has many entity.
|
|
311
|
-
*/
|
|
312
|
-
hasManyValidationErrors: ValidationError[];
|
|
313
|
-
/**
|
|
314
|
-
* All the changes that have been done to the has many entity.
|
|
315
|
-
*/
|
|
316
|
-
hasManyChanges: Difference<EntityType>[];
|
|
317
|
-
/**
|
|
318
|
-
* What to display inside the has many tooltip.
|
|
319
|
-
*/
|
|
320
|
-
hasManyTooltipContent: string;
|
|
321
|
-
/**
|
|
322
|
-
* Whether or not the has many entity is dirty.
|
|
323
|
-
*/
|
|
324
|
-
isHasManyEntityDirty: boolean;
|
|
325
|
-
/**
|
|
326
|
-
* Whether or not the current user is allowed to create a has many entity.
|
|
327
|
-
*/
|
|
328
|
-
hasManyAllowCreate: boolean;
|
|
329
|
-
/**
|
|
330
|
-
* The form context for creating an has many entity.
|
|
331
|
-
*/
|
|
332
|
-
hasManyCreateFormContext: TemplateContext<FormContext<EntityType>>;
|
|
333
|
-
/**
|
|
334
|
-
* The form context for editing an has many entity.
|
|
335
|
-
*/
|
|
336
|
-
hasManyEditFormContext: TemplateContext<FormContext<EntityType>>;
|
|
337
|
-
private hasManyCreateBaseUrl;
|
|
338
|
-
/**
|
|
339
|
-
* The metadata for a references one property.
|
|
340
|
-
*/
|
|
341
|
-
metadataReferencesOne: ReferencesOneDecoratorConfigInternal<EntityType>;
|
|
342
|
-
/**
|
|
343
|
-
* The values that can be possibly referenced.
|
|
344
|
-
*/
|
|
345
|
-
private referencesOneAllReferencedEntities;
|
|
346
|
-
/**
|
|
347
|
-
* The possible references one dropdown values.
|
|
348
|
-
*/
|
|
349
|
-
private referencesOneDropdownValues;
|
|
350
|
-
/**
|
|
351
|
-
* The filtered dropdown values that get displayed in the references one dropdown input.
|
|
352
|
-
*/
|
|
353
|
-
filteredReferencesOneDropdownValues: DropdownValue<string>[];
|
|
354
|
-
/**
|
|
355
|
-
* A unique input name for the references one property.
|
|
356
|
-
*/
|
|
357
|
-
referencesOneName: string;
|
|
358
|
-
/**
|
|
359
|
-
* The form context for an references one property.
|
|
360
|
-
*/
|
|
361
|
-
referencesOneFormContext: TemplateContext<FormContext<EntityType>>;
|
|
362
|
-
/**
|
|
363
|
-
* The enum Values for all the different DecoratorTypes.
|
|
364
|
-
*/
|
|
365
|
-
readonly DecoratorTypes: typeof DecoratorTypes;
|
|
366
|
-
/**
|
|
367
|
-
* Contains HelperMethods around handling Entities and their property-metadata.
|
|
368
|
-
*/
|
|
369
|
-
EntityUtilities: typeof EntityUtilities;
|
|
370
|
-
/**
|
|
371
|
-
* Contains Helper Functions for handling date properties.
|
|
372
|
-
*/
|
|
373
|
-
DateUtilities: typeof DateUtilities;
|
|
374
|
-
/**
|
|
375
|
-
* Provides functionality around material selections inside of tables.
|
|
376
|
-
*/
|
|
377
|
-
SelectionUtilities: typeof SelectionUtilities;
|
|
378
|
-
/**
|
|
379
|
-
* Gets the currently selected dropdown value for references one.
|
|
380
|
-
* Is needed so that the dropdown value will still be displayed,
|
|
381
|
-
* even when the filter method removes the value from the selectable dropdown values.
|
|
382
|
-
*/
|
|
383
|
-
get currentReferencesOneDropdownValue(): DropdownValue<string> | undefined;
|
|
384
|
-
/**
|
|
385
|
-
* Whether or not the currently selected references one value should be shown,
|
|
386
|
-
* although it would have been filtered out by the search.
|
|
387
|
-
*/
|
|
388
|
-
get shouldDisplayCurrentReferencesOneDropdownValue(): boolean;
|
|
389
|
-
constructor(dialog: MatDialog, injector: EnvironmentInjector, router: Router, defaultGetValidationErrorMessage: (model: NgModel) => string, globalConfig: NgxGlobalDefaultValues, http: HttpClient);
|
|
390
|
-
/**
|
|
391
|
-
* Checks if the input with the given key on the given property is readonly.
|
|
392
|
-
* @param property - The property on which to check the input.
|
|
393
|
-
* @param key - The key for the input to check.
|
|
394
|
-
* @returns Whether or not the input is readonly.
|
|
395
|
-
*/
|
|
396
|
-
isPropertyReadOnly(property: EntityType, key: keyof EntityType): boolean;
|
|
397
|
-
/**
|
|
398
|
-
* Gets the value to display in the column.
|
|
399
|
-
* Runs in environment context to enable injection.
|
|
400
|
-
* @param entity - The entity to get the value from.
|
|
401
|
-
* @param displayColumn - The display column to get the value from.
|
|
402
|
-
* @returns The value of the display column.
|
|
403
|
-
*/
|
|
404
|
-
getDisplayColumnValue(entity: EntityType, displayColumn: DisplayColumn<EntityType>): unknown;
|
|
405
|
-
/**
|
|
406
|
-
* Emits a cellClicked event when the clicked column is enabled and clicking is allowed by the configuration.
|
|
407
|
-
* @param value - The value of the row that was clicked.
|
|
408
|
-
* @param dCol - The display column of the row that was clicked.
|
|
409
|
-
* @param context - The context of the table where the cell was clicked.
|
|
410
|
-
*/
|
|
411
|
-
clickCell<T>(value: T, dCol: DisplayColumn<T>, context: TableContext<T>): void;
|
|
412
|
-
ngOnInit(): void;
|
|
413
|
-
private initReferencesOne;
|
|
414
|
-
/**
|
|
415
|
-
* Filters the references one dropdown values.
|
|
416
|
-
* @param searchInput - The search input to filter for.
|
|
417
|
-
*/
|
|
418
|
-
filterReferencesOneValues(searchInput: string): void;
|
|
419
|
-
private initHasMany;
|
|
420
|
-
private initEntityArray;
|
|
421
|
-
private initDropdownObjectInput;
|
|
422
|
-
private initObjectInput;
|
|
423
|
-
private startImportJson;
|
|
424
|
-
private importJson;
|
|
425
|
-
/**
|
|
426
|
-
* Checks if two objects are equal. Is needed for the dropdown.
|
|
427
|
-
* @param value1 - The first object to compare.
|
|
428
|
-
* @param value2 - The second object to compare.
|
|
429
|
-
* @returns Whether or not the objects are the same.
|
|
430
|
-
*/
|
|
431
|
-
private compareObjects;
|
|
432
|
-
/**
|
|
433
|
-
* Filters the dropdown values.
|
|
434
|
-
* @param searchInput - The search input to filter for.
|
|
435
|
-
*/
|
|
436
|
-
filterObjectDropdownValues(searchInput: string): void;
|
|
437
|
-
/**
|
|
438
|
-
* Sets the references one object using the input id.
|
|
439
|
-
*/
|
|
440
|
-
setReferencesOneObject(): void;
|
|
441
|
-
/**
|
|
442
|
-
* Edits an entity. This either calls the edit-Method provided by the user or uses a default edit-dialog.
|
|
443
|
-
* @param entity - The entity that should be updated.
|
|
444
|
-
* @param dCol - The display column that was clicked on.
|
|
445
|
-
* @throws When no EntityClass was provided, as a new call is needed to initialize metadata.
|
|
446
|
-
*/
|
|
447
|
-
editHasManyEntity(entity: EntityType, dCol: DisplayColumn<EntityType>): void;
|
|
448
|
-
/**
|
|
449
|
-
* Whether updating the provided entity from the has many property is allowed.
|
|
450
|
-
* @param entity - A single value of the has many property that the user wants to edit.
|
|
451
|
-
* @returns True when the user can edit the provided entity and false otherwise.
|
|
452
|
-
*/
|
|
453
|
-
hasManyAllowUpdate(entity: EntityType): boolean;
|
|
454
|
-
/**
|
|
455
|
-
* Whether viewing the provided entity from the has many property is allowed.
|
|
456
|
-
* @param entity - A single value of the has many property that the user wants to view.
|
|
457
|
-
* @returns True when the user can view the provided entity and false otherwise.
|
|
458
|
-
*/
|
|
459
|
-
hasManyAllowRead(entity: EntityType): boolean;
|
|
460
|
-
/**
|
|
461
|
-
* Whether deleting the provided entity from the has many property is allowed.
|
|
462
|
-
* @param entity - A single value of the has many property that the user wants to delete.
|
|
463
|
-
* @returns True when the user can delete the provided entity and false otherwise.
|
|
464
|
-
*/
|
|
465
|
-
hasManyAllowDelete(entity: EntityType): boolean;
|
|
466
|
-
/**
|
|
467
|
-
* Checks if an EditAction is disabled (e.g. Because the current entry doesn't fullfil the requirements).
|
|
468
|
-
* @param action - The EditAction to check.
|
|
469
|
-
* @returns Whether or not the Action can be used.
|
|
470
|
-
*/
|
|
471
|
-
hasManyEditActionDisabled(action: EditActionInternal<EntityType>): boolean;
|
|
472
|
-
/**
|
|
473
|
-
* Runs the edit action on the entity.
|
|
474
|
-
* @param action - The action to run.
|
|
475
|
-
*/
|
|
476
|
-
hasManyRunEditAction(action: EditActionInternal<EntityType>): Promise<void>;
|
|
477
|
-
private confirmHasManyRunEditAction;
|
|
478
|
-
private editHasManyDefaultPage;
|
|
479
|
-
private editHasManyDefaultDialog;
|
|
480
|
-
/**
|
|
481
|
-
* Tries to save the changes and close the dialog afterwards.
|
|
482
|
-
* Also handles the confirmation if required.
|
|
483
|
-
*/
|
|
484
|
-
dialogEditHasMany(): Promise<void>;
|
|
485
|
-
private dialogConfirmEditHasMany;
|
|
486
|
-
/**
|
|
487
|
-
* Tries to delete the entity and close the dialog afterwards.
|
|
488
|
-
* Also handles the confirmation if required.
|
|
489
|
-
*/
|
|
490
|
-
deleteHasManyEntity(): Promise<void>;
|
|
491
|
-
private confirmDeleteHasManyEntity;
|
|
492
|
-
/**
|
|
493
|
-
* Cancels the editing of the has many entity and closes the dialog.
|
|
494
|
-
*/
|
|
495
|
-
dialogCancelEditHasMany(): void;
|
|
496
|
-
/**
|
|
497
|
-
* Creates a new Entity. This either calls the create-Method provided by the user or uses a default create-dialog.
|
|
498
|
-
* @throws When no EntityClass was provided, as a new call is needed to initialize metadata.
|
|
499
|
-
*/
|
|
500
|
-
createHasManyEntity(): void;
|
|
501
|
-
private createHasManyDefaultPage;
|
|
502
|
-
private createHasManyDefaultDialog;
|
|
503
|
-
/**
|
|
504
|
-
* Creates the has many entity over the dialog.
|
|
505
|
-
*/
|
|
506
|
-
dialogCreateHasMany(): Promise<void>;
|
|
507
|
-
private dialogConfirmCreateHasMany;
|
|
508
|
-
/**
|
|
509
|
-
* Cancels the creating of the has many entity and closes the dialog.
|
|
510
|
-
*/
|
|
511
|
-
dialogCancelCreateHasMany(): void;
|
|
512
|
-
/**
|
|
513
|
-
* Runs the TableAction for all selected entries.
|
|
514
|
-
* Also handles confirmation with an additional dial#og if configured.
|
|
515
|
-
* @param action - The TableAction to run.
|
|
516
|
-
*/
|
|
517
|
-
runHasManyTableAction(action: TableActionInternal<EntityType>): Promise<void>;
|
|
518
|
-
private confirmRunHasManyTableAction;
|
|
519
|
-
/**
|
|
520
|
-
* Checks if an TableAction is disabled (e.g. Because no entries have been selected).
|
|
521
|
-
* @param action - The TableAction to check.
|
|
522
|
-
* @returns Whether or not the Action can be used.
|
|
523
|
-
*/
|
|
524
|
-
hasManyTableActionDisabled(action: TableActionInternal<EntityType>): boolean;
|
|
525
|
-
/**
|
|
526
|
-
* Applies the search input to filter the table entries.
|
|
527
|
-
* @param event - The keyup-event which contains the search-string of the user.
|
|
528
|
-
*/
|
|
529
|
-
applyHasManyFilter(event: Event): void;
|
|
530
|
-
/**
|
|
531
|
-
* Checks if the entity is valid for updating and if it is dirty.
|
|
532
|
-
*/
|
|
533
|
-
checkHasManyEntity(): Promise<void>;
|
|
534
|
-
/**
|
|
535
|
-
* Checks if the entity is valid.
|
|
536
|
-
* @param omit - Whether values omitted for create or update should be left out.
|
|
537
|
-
*/
|
|
538
|
-
checkIsHasManyEntityValid(omit: 'create' | 'update'): Promise<void>;
|
|
539
|
-
/**
|
|
540
|
-
* Checks whether the array item is valid and if the array item is dirty.
|
|
541
|
-
*/
|
|
542
|
-
checkArrayItem(): Promise<void>;
|
|
543
|
-
/**
|
|
544
|
-
* Checks if the array item is dirty.
|
|
545
|
-
*/
|
|
546
|
-
checkIsArrayItemDirty(): Promise<void>;
|
|
547
|
-
/**
|
|
548
|
-
* Checks if the arrayItem is valid.
|
|
549
|
-
*/
|
|
550
|
-
checkIsArrayItemValid(): Promise<void>;
|
|
551
|
-
/**
|
|
552
|
-
* Emits that a the value has been changed.
|
|
553
|
-
*/
|
|
554
|
-
emitChange(): void;
|
|
555
|
-
/**
|
|
556
|
-
* Tries to add an item to the entity array.
|
|
557
|
-
* Does this either inline if the "createInline"-metadata is set to true
|
|
558
|
-
* or in a separate dialog if it is set to false.
|
|
559
|
-
*/
|
|
560
|
-
addEntity(): Promise<void>;
|
|
561
|
-
/**
|
|
562
|
-
* Adds the array item defined in the dialog.
|
|
563
|
-
*/
|
|
564
|
-
addArrayItem(): Promise<void>;
|
|
565
|
-
/**
|
|
566
|
-
* Cancels adding the array item defined in the dialog.
|
|
567
|
-
*/
|
|
568
|
-
closeAddArrayItemDialog(): Promise<void>;
|
|
569
|
-
/**
|
|
570
|
-
* Edits an entity array item.
|
|
571
|
-
* @param entity - The entity that has been clicked.
|
|
572
|
-
* @param dCol - The display column that was clicked on.
|
|
573
|
-
*/
|
|
574
|
-
editArrayItem(entity: EntityType, dCol: DisplayColumn<EntityType>): Promise<void>;
|
|
575
|
-
/**
|
|
576
|
-
* Saves changes on the array item in the dialog.
|
|
577
|
-
*/
|
|
578
|
-
saveArrayItem(): void;
|
|
579
|
-
/**
|
|
580
|
-
* Closes the edit array item dialog and resets changes.
|
|
581
|
-
*/
|
|
582
|
-
closeEditArrayItemDialog(): Promise<void>;
|
|
583
|
-
/**
|
|
584
|
-
* Removes all selected entries from the entity array.
|
|
585
|
-
*/
|
|
586
|
-
removeFromEntityArray(): void;
|
|
587
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatEntityInputComponent<any>, never>;
|
|
588
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgxMatEntityInputComponent<any>, "ngx-mat-entity-input", never, { "entity": { "alias": "entity"; "required": true; }; "propertyKey": { "alias": "propertyKey"; "required": true; }; "getValidationErrorMessage": { "alias": "getValidationErrorMessage"; "required": false; }; "hideOmitForCreate": { "alias": "hideOmitForCreate"; "required": false; }; "hideOmitForEdit": { "alias": "hideOmitForEdit"; "required": false; }; "validEmpty": { "alias": "validEmpty"; "required": false; }; "isReadOnly": { "alias": "isReadOnly"; "required": false; }; }, { "inputChangeEvent": "inputChangeEvent"; }, never, never, true, never>;
|
|
589
|
-
}
|
|
590
|
-
export {};
|