@messaia/cdk 13.3.10 → 13.4.0-legacy
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/esm2020/lib/base/base.module.mjs +10 -32
- package/esm2020/lib/base/components/base.component.mjs +9 -61
- package/esm2020/lib/base/components/generic-form-base.component.mjs +23 -27
- package/esm2020/lib/base/components/generic-form.component.mjs +3 -3
- package/esm2020/lib/base/components/generic-list.component.mjs +31 -152
- package/esm2020/lib/base/components/generic-reactive-form.component.mjs +3 -6
- package/esm2020/lib/base/interceptors/base.interceptor.mjs +3 -3
- package/esm2020/lib/base/interceptors/caching-interceptor.mjs +3 -3
- package/esm2020/lib/base/interceptors/loading.interceptor.mjs +3 -3
- package/esm2020/lib/base/services/file.service.mjs +3 -3
- package/esm2020/lib/base/services/loading-screen.service.mjs +3 -3
- package/esm2020/lib/base/services/print.service.mjs +3 -3
- package/esm2020/lib/chips/chips.module.mjs +8 -21
- package/esm2020/lib/chips/components/chips.component.mjs +179 -243
- package/esm2020/lib/common/common.module.mjs +5 -6
- package/esm2020/lib/common/constants/constants.mjs +2 -3
- package/esm2020/lib/common/directives/disable-control.directive.mjs +3 -3
- package/esm2020/lib/common/functions/decorators.mjs +3 -3
- package/esm2020/lib/common/functions/functions.mjs +2 -3
- package/esm2020/lib/common/functions/utils.mjs +3 -17
- package/esm2020/lib/common/helpers/app-storage.mjs +7 -31
- package/esm2020/lib/common/helpers/dynamic-builder.mjs +3 -3
- package/esm2020/lib/common/helpers/dynamic-component-compiler.mjs +3 -3
- package/esm2020/lib/common/models/action-menu-item.mjs +1 -1
- package/esm2020/lib/common/models/app-setting.mjs +3 -3
- package/esm2020/lib/common/pipes/data-source.pipe.mjs +3 -3
- package/esm2020/lib/common/pipes/enum.pipe.mjs +3 -3
- package/esm2020/lib/common/pipes/file-size.pipe.mjs +3 -3
- package/esm2020/lib/common/pipes/filter.pipe.mjs +3 -3
- package/esm2020/lib/common/pipes/first-letter.mjs +3 -3
- package/esm2020/lib/common/pipes/keys.mjs +3 -3
- package/esm2020/lib/common/pipes/month-name.pipe.mjs +3 -3
- package/esm2020/lib/common/pipes/only-number.mjs +3 -3
- package/esm2020/lib/common/pipes/order.pipe.mjs +3 -3
- package/esm2020/lib/common/pipes/placeholder.pipe.mjs +3 -3
- package/esm2020/lib/common/pipes/safe-html.pipe.mjs +3 -3
- package/esm2020/lib/common/pipes/time.pipe.mjs +3 -3
- package/esm2020/lib/common/pipes/titlecase.pipe.mjs +3 -3
- package/esm2020/lib/common/pipes/truncate.pipe.mjs +3 -3
- package/esm2020/lib/common/pipes/values.mjs +3 -3
- package/esm2020/lib/common/services/base.service.mjs +3 -3
- package/esm2020/lib/common/services/enum.service.mjs +3 -3
- package/esm2020/lib/dialogs/alert-dialog/alert-dialog.component.mjs +4 -4
- package/esm2020/lib/dialogs/confirm-dialog/confirm-dialog.component.mjs +4 -4
- package/esm2020/lib/dialogs/dialog.component.mjs +9 -9
- package/esm2020/lib/dialogs/dialogs.module.mjs +4 -4
- package/esm2020/lib/dialogs/prompt-dialog/prompt-dialog.component.mjs +4 -4
- package/esm2020/lib/dialogs/services/dialog.service.mjs +3 -3
- package/esm2020/lib/file/file-input.component.mjs +3 -3
- package/esm2020/lib/file/file.module.mjs +4 -4
- package/esm2020/lib/form-validators/directives/base-directive.mjs +3 -3
- package/esm2020/lib/form-validators/directives/control-host.directive.mjs +3 -3
- package/esm2020/lib/form-validators/directives/html-control-template.directive.mjs +3 -3
- package/esm2020/lib/form-validators/directives/rx-form.directive.mjs +3 -3
- package/esm2020/lib/form-validators/directives/template-validations/async-validation.directive.mjs +3 -3
- package/esm2020/lib/form-validators/directives/template-validations/base-validator.directive.mjs +3 -3
- package/esm2020/lib/form-validators/directives/template-validations/control-expression-process.mjs +3 -3
- package/esm2020/lib/form-validators/directives/template-validations/file-control.directive.mjs +3 -3
- package/esm2020/lib/form-validators/directives/template-validations/image-file-control.directive.mjs +3 -3
- package/esm2020/lib/form-validators/directives/template-validations/rxformcontrol.directive.mjs +3 -3
- package/esm2020/lib/form-validators/domain/element-processor/decimal.provider.mjs +3 -3
- package/esm2020/lib/form-validators/services/reactive-form.module.mjs +7 -7
- package/esm2020/lib/form-validators/services/rx-form-builder.mjs +3 -3
- package/esm2020/lib/form-validators/services/typed-form-builder.mjs +3 -3
- package/esm2020/lib/forms/components/generic-form/generic-form.component.mjs +13 -30
- package/esm2020/lib/forms/constants/constants.mjs +2 -3
- package/esm2020/lib/forms/directives/mat-form-field-editor.directive.mjs +3 -3
- package/esm2020/lib/forms/directives/mat-form-field-readonly.directive.mjs +3 -3
- package/esm2020/lib/forms/forms.module.mjs +7 -7
- package/esm2020/lib/forms/functions/decorators.mjs +116 -36
- package/esm2020/lib/forms/functions/functions.mjs +7 -17
- package/esm2020/lib/forms/helpers/abstract-mat-form-field.mjs +15 -41
- package/esm2020/lib/forms/helpers/value-accessor-base.mjs +3 -3
- package/esm2020/lib/forms/models/form-field-definition.mjs +6 -7
- package/esm2020/lib/forms/models/form-field-group.mjs +12 -0
- package/esm2020/lib/forms/validators/equal-validator.directive.mjs +3 -3
- package/esm2020/lib/forms/validators/native-element-injector.directive.mjs +3 -3
- package/esm2020/lib/forms/validators/unique-validator-directive.mjs +3 -3
- package/esm2020/lib/http/http.module.mjs +4 -4
- package/esm2020/lib/layout/form-toolbar/form-toolbar.component.mjs +3 -3
- package/esm2020/lib/layout/form-toolbar-menu/form-toolbar-menu.component.mjs +3 -3
- package/esm2020/lib/layout/layout-card-over/layout-card-over.component.mjs +4 -4
- package/esm2020/lib/layout/layout-footer/layout-footer.component.mjs +3 -3
- package/esm2020/lib/layout/layout-manage-list/layout-manage-list.component.mjs +4 -4
- package/esm2020/lib/layout/layout-manage-list/layout-manage-list.directives.mjs +7 -7
- package/esm2020/lib/layout/layout-nav/layout-nav.component.mjs +3 -3
- package/esm2020/lib/layout/layout-nav-list/layout-nav-list.component.mjs +32 -21
- package/esm2020/lib/layout/layout-nav-list/layout-nav-list.directives.mjs +26 -50
- package/esm2020/lib/layout/layout-toggle.class.mjs +3 -3
- package/esm2020/lib/layout/layout.component.mjs +3 -3
- package/esm2020/lib/layout/layout.directives.mjs +7 -7
- package/esm2020/lib/layout/layout.module.mjs +9 -9
- package/esm2020/lib/layout/list-toolbar/list-toolbar.component.mjs +9 -20
- package/esm2020/lib/layout/list-toolbar-menu/list-toolbar-menu.component.mjs +19 -0
- package/esm2020/lib/layout/navigation-drawer/navigation-drawer.component.mjs +8 -8
- package/esm2020/lib/media/directives/media-toggle.directive.mjs +3 -3
- package/esm2020/lib/media/media.module.mjs +4 -4
- package/esm2020/lib/media/services/media.service.mjs +3 -3
- package/esm2020/lib/menu/components/menu.component.mjs +3 -3
- package/esm2020/lib/menu/menu.module.mjs +4 -4
- package/esm2020/lib/menu/services/menu-items.service.mjs +3 -3
- package/esm2020/lib/menu/services/menu.resolve.mjs +5 -5
- package/esm2020/lib/menu/services/menu.service.mjs +3 -3
- package/esm2020/lib/search/search.module.mjs +4 -4
- package/esm2020/lib/search/vd-search-box/vd-search-box.component.mjs +3 -3
- package/esm2020/lib/search/vd-search-input/vd-search-input.component.mjs +3 -3
- package/esm2020/lib/select/components/select.component.mjs +11 -28
- package/esm2020/lib/select/directives/vd-select-option.directive.mjs +3 -3
- package/esm2020/lib/select/directives/vd-select-trigger.directive.mjs +3 -3
- package/esm2020/lib/select/public_api.mjs +2 -1
- package/esm2020/lib/select/select.module.mjs +4 -4
- package/esm2020/lib/table/components/dynamic-table/dynamic-table.component.mjs +43 -117
- package/esm2020/lib/table/components/filter-clear.component.mjs +4 -4
- package/esm2020/lib/table/components/filter-date.component.mjs +4 -4
- package/esm2020/lib/table/components/filter-input.component.mjs +4 -4
- package/esm2020/lib/table/components/filter-select.component.mjs +6 -6
- package/esm2020/lib/table/directives/data-source-filter.directive.mjs +3 -3
- package/esm2020/lib/table/enums/table-column-type.mjs +1 -2
- package/esm2020/lib/table/functions/decorators.mjs +45 -38
- package/esm2020/lib/table/functions/functions.mjs +5 -18
- package/esm2020/lib/table/models/table-column.mjs +1 -2
- package/esm2020/lib/table/models/table-definition.mjs +1 -1
- package/esm2020/lib/table/models/table-menu-item.mjs +1 -1
- package/esm2020/lib/table/paginator-intl.mjs +3 -3
- package/esm2020/lib/table/table.data-source.mjs +15 -49
- package/esm2020/lib/table/table.module.mjs +4 -11
- package/fesm2015/messaia-cdk.mjs +9541 -10197
- package/fesm2015/messaia-cdk.mjs.map +1 -1
- package/fesm2020/messaia-cdk.mjs +8052 -8695
- package/fesm2020/messaia-cdk.mjs.map +1 -1
- package/lib/base/base.module.d.ts +5 -18
- package/lib/base/components/base.component.d.ts +4 -31
- package/lib/base/components/generic-form-base.component.d.ts +7 -9
- package/lib/base/components/generic-list.component.d.ts +8 -55
- package/lib/chips/chips.module.d.ts +10 -18
- package/lib/chips/components/chips.component.d.ts +73 -131
- package/lib/common/common.module.d.ts +1 -2
- package/lib/common/constants/constants.d.ts +1 -2
- package/lib/common/functions/utils.d.ts +0 -7
- package/lib/common/helpers/app-storage.d.ts +1 -12
- package/lib/common/models/action-menu-item.d.ts +16 -7
- package/lib/common/styles/_common-theme.scss +5 -10
- package/lib/common/styles/_layout.scss +92 -149
- package/lib/common/styles/utilities/_general.scss +7 -428
- package/lib/forms/components/generic-form/generic-form.component.d.ts +3 -13
- package/lib/forms/constants/constants.d.ts +1 -2
- package/lib/forms/forms.module.d.ts +3 -3
- package/lib/forms/functions/decorators.d.ts +8 -3
- package/lib/forms/functions/functions.d.ts +3 -3
- package/lib/forms/helpers/abstract-mat-form-field.d.ts +14 -28
- package/lib/forms/models/form-field-definition.d.ts +34 -41
- package/lib/forms/models/form-field-group.d.ts +12 -0
- package/lib/layout/_layout-theme.scss +79 -114
- package/lib/layout/layout-nav-list/layout-nav-list.component.d.ts +9 -12
- package/lib/layout/layout-nav-list/layout-nav-list.directives.d.ts +0 -36
- package/lib/layout/layout.module.d.ts +4 -4
- package/lib/layout/list-toolbar/list-toolbar.component.d.ts +4 -13
- package/lib/layout/list-toolbar-menu/list-toolbar-menu.component.d.ts +14 -0
- package/lib/select/components/select.component.d.ts +8 -15
- package/lib/select/public_api.d.ts +1 -0
- package/lib/table/components/dynamic-table/dynamic-table.component.d.ts +12 -58
- package/lib/table/components/filter-clear.component.d.ts +1 -1
- package/lib/table/components/filter-date.component.d.ts +1 -1
- package/lib/table/components/filter-input.component.d.ts +1 -1
- package/lib/table/components/filter-select.component.d.ts +1 -1
- package/lib/table/enums/table-column-type.d.ts +1 -2
- package/lib/table/functions/decorators.d.ts +5 -3
- package/lib/table/models/table-column.d.ts +34 -39
- package/lib/table/models/table-definition.d.ts +5 -8
- package/lib/table/models/table-menu-item.d.ts +2 -2
- package/lib/table/table.data-source.d.ts +4 -26
- package/lib/table/table.module.d.ts +19 -23
- package/package.json +1 -1
- package/esm2020/lib/base/components/dynamic-table-config-dialog.comnponent.mjs +0 -96
- package/esm2020/lib/base/interfaces/ibase-component.mjs +0 -2
- package/esm2020/lib/base/interfaces/igeneric-form-base.mjs +0 -2
- package/esm2020/lib/base/interfaces/igeneric-list-component.mjs +0 -2
- package/esm2020/lib/chips/directives/autocomplete-option.directive.mjs +0 -18
- package/esm2020/lib/chips/directives/chip.directive.mjs +0 -18
- package/esm2020/lib/common/models/action-menu.mjs +0 -12
- package/esm2020/lib/forms/models/form-field-group-definition.mjs +0 -12
- package/esm2020/lib/layout/dynamic-menu/dynamic-menu.component.mjs +0 -40
- package/esm2020/lib/table/constants/constants.mjs +0 -3
- package/esm2020/lib/table/models/table-column-config.mjs +0 -63
- package/esm2020/lib/table/models/table-menu.mjs +0 -12
- package/lib/base/components/dynamic-table-config-dialog.comnponent.d.ts +0 -39
- package/lib/base/interfaces/ibase-component.d.ts +0 -87
- package/lib/base/interfaces/igeneric-form-base.d.ts +0 -81
- package/lib/base/interfaces/igeneric-list-component.d.ts +0 -80
- package/lib/chips/directives/autocomplete-option.directive.d.ts +0 -11
- package/lib/chips/directives/chip.directive.d.ts +0 -11
- package/lib/common/models/action-menu.d.ts +0 -16
- package/lib/forms/models/form-field-group-definition.d.ts +0 -16
- package/lib/layout/dynamic-menu/dynamic-menu.component.d.ts +0 -29
- package/lib/table/constants/constants.d.ts +0 -2
- package/lib/table/models/table-column-config.d.ts +0 -30
- package/lib/table/models/table-menu.d.ts +0 -8
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BaseComponent } from './components/base.component';
|
|
2
|
-
import { VdDynamicTableConfigDialogComponent } from './components/dynamic-table-config-dialog.comnponent';
|
|
3
2
|
import { GenericFormBaseComponent } from './components/generic-form-base.component';
|
|
4
3
|
import { GenericFormComponent } from './components/generic-form.component';
|
|
5
4
|
import { GenericListComponent } from './components/generic-list.component';
|
|
@@ -10,29 +9,17 @@ import { AuthHelper } from './helpers/auth-helper';
|
|
|
10
9
|
import { BaseInterceptor } from './interceptors/base.interceptor';
|
|
11
10
|
import { CachingInterceptor } from './interceptors/caching-interceptor';
|
|
12
11
|
import { LoadingScreenInterceptor } from './interceptors/loading.interceptor';
|
|
13
|
-
import { IBaseComponent } from './interfaces/ibase-component';
|
|
14
|
-
import { IGenericFormBaseComponent } from './interfaces/igeneric-form-base';
|
|
15
|
-
import { IGenericListComponent } from './interfaces/igeneric-list-component';
|
|
16
12
|
import { AuthUser } from './models/auth-user';
|
|
17
13
|
import { FileService } from './services/file.service';
|
|
18
14
|
import { LoadingScreenService } from './services/loading-screen.service';
|
|
19
15
|
import { PrintService } from './services/print.service';
|
|
20
16
|
import * as i0 from "@angular/core";
|
|
21
|
-
import * as i1 from "@angular/
|
|
22
|
-
import * as i2 from "@angular/
|
|
23
|
-
import * as i3 from "
|
|
24
|
-
|
|
25
|
-
import * as i5 from "@angular/forms";
|
|
26
|
-
import * as i6 from "@angular/material/dialog";
|
|
27
|
-
import * as i7 from "../table/table.module";
|
|
28
|
-
export { AuthHelper, AuthUser, BaseComponent, BaseInterceptor, CachingInterceptor, FileService, GenericFormBaseComponent, GenericFormComponent, GenericListComponent, GenericReactiveFormComponent, IBaseComponent, IGenericListComponent, IGenericFormBaseComponent, LoadingScreenInterceptor, LoadingScreenService, MessageType, PrintService, VdDynamicTableConfigDialogComponent, Common };
|
|
29
|
-
export declare class MaterialModule {
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialModule, never>;
|
|
31
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialModule, never, never, [typeof i1.MatButtonModule, typeof i2.DragDropModule]>;
|
|
32
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MaterialModule>;
|
|
33
|
-
}
|
|
17
|
+
import * as i1 from "@angular/common";
|
|
18
|
+
import * as i2 from "@angular/forms";
|
|
19
|
+
import * as i3 from "@angular/material/dialog";
|
|
20
|
+
export { AuthUser, MessageType, AuthHelper, BaseComponent, GenericListComponent, GenericFormComponent, GenericFormBaseComponent, GenericReactiveFormComponent, Common, BaseInterceptor, CachingInterceptor, LoadingScreenInterceptor, FileService, LoadingScreenService, PrintService };
|
|
34
21
|
export declare class VdBaseModule {
|
|
35
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<VdBaseModule, never>;
|
|
36
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<VdBaseModule,
|
|
23
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<VdBaseModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i2.ReactiveFormsModule, typeof i3.MatDialogModule], never>;
|
|
37
24
|
static ɵinj: i0.ɵɵInjectorDeclaration<VdBaseModule>;
|
|
38
25
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Location } from '@angular/common';
|
|
2
2
|
import { HttpHeaders } from '@angular/common/http';
|
|
3
3
|
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnInit, QueryList, Type } from '@angular/core';
|
|
4
|
-
import { MatDialog, MatDialogConfig } from '@angular/material/dialog';
|
|
5
4
|
import { MatExpansionPanel } from '@angular/material/expansion';
|
|
6
5
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
7
6
|
import { Title } from '@angular/platform-browser';
|
|
@@ -12,13 +11,12 @@ import { VdDialogService } from '../../dialogs/services/dialog.service';
|
|
|
12
11
|
import { VdMediaService } from '../../media/services/media.service';
|
|
13
12
|
import { Menu } from '../../menu/models/menu';
|
|
14
13
|
import { MessageType } from '../enums/message-type';
|
|
15
|
-
import { IBaseComponent } from '../interfaces/ibase-component';
|
|
16
14
|
import { AuthUser } from '../models/auth-user';
|
|
17
15
|
import * as i0 from "@angular/core";
|
|
18
16
|
/**
|
|
19
17
|
* A base list component for components with pagination support
|
|
20
18
|
*/
|
|
21
|
-
export declare abstract class BaseComponent implements
|
|
19
|
+
export declare abstract class BaseComponent implements OnInit, AfterViewInit {
|
|
22
20
|
protected route: ActivatedRoute;
|
|
23
21
|
protected changeDetectorRef: ChangeDetectorRef;
|
|
24
22
|
/**
|
|
@@ -107,14 +105,6 @@ export declare abstract class BaseComponent implements IBaseComponent, OnInit, A
|
|
|
107
105
|
* Current route
|
|
108
106
|
*/
|
|
109
107
|
currentRoute: string;
|
|
110
|
-
/**
|
|
111
|
-
* Current base route
|
|
112
|
-
*/
|
|
113
|
-
currentBaseRoute: string;
|
|
114
|
-
/**
|
|
115
|
-
* A url to return to after save
|
|
116
|
-
*/
|
|
117
|
-
returnUrl: string;
|
|
118
108
|
/**
|
|
119
109
|
* Current user object
|
|
120
110
|
*/
|
|
@@ -131,10 +121,6 @@ export declare abstract class BaseComponent implements IBaseComponent, OnInit, A
|
|
|
131
121
|
* A service to show conirm and prompt dialogs.
|
|
132
122
|
*/
|
|
133
123
|
protected dialogService: VdDialogService;
|
|
134
|
-
/**
|
|
135
|
-
* A service to show conirm and prompt dialogs.
|
|
136
|
-
*/
|
|
137
|
-
protected dialog: MatDialog;
|
|
138
124
|
/**
|
|
139
125
|
* location: Location
|
|
140
126
|
*/
|
|
@@ -168,15 +154,6 @@ export declare abstract class BaseComponent implements IBaseComponent, OnInit, A
|
|
|
168
154
|
* Refreshs this page/component
|
|
169
155
|
*/
|
|
170
156
|
reloadPage(): void;
|
|
171
|
-
/**
|
|
172
|
-
* Navigates back to return url
|
|
173
|
-
*/
|
|
174
|
-
navigateToReturnUrl(): void;
|
|
175
|
-
/**
|
|
176
|
-
* Sets return url
|
|
177
|
-
* @param returnUrl
|
|
178
|
-
*/
|
|
179
|
-
protected setReturnUrl(returnUrl: string): void;
|
|
180
157
|
/**
|
|
181
158
|
* Listen for expansion panel changes
|
|
182
159
|
*/
|
|
@@ -195,8 +172,8 @@ export declare abstract class BaseComponent implements IBaseComponent, OnInit, A
|
|
|
195
172
|
*/
|
|
196
173
|
protected getMainRoute(snapshot: ActivatedRouteSnapshot): ActivatedRouteSnapshot;
|
|
197
174
|
/**
|
|
198
|
-
|
|
199
|
-
|
|
175
|
+
* Shows a confirm dialog to delete an item
|
|
176
|
+
*/
|
|
200
177
|
protected showDeleteItemDialog(): Observable<any>;
|
|
201
178
|
/**
|
|
202
179
|
* Shows a confirm dialog to delete multiple items
|
|
@@ -210,10 +187,6 @@ export declare abstract class BaseComponent implements IBaseComponent, OnInit, A
|
|
|
210
187
|
* @param errorCallback An error callback
|
|
211
188
|
*/
|
|
212
189
|
showConfirmationDialog(message: string, observabe: Observable<any>, successCallback?: Function, errorCallback?: Function): void;
|
|
213
|
-
/**
|
|
214
|
-
* Navigates to the add page.
|
|
215
|
-
*/
|
|
216
|
-
openDialog<T, D = any>(dialogType: Type<T>, config: MatDialogConfig<D>, callback: Function): void;
|
|
217
190
|
/**
|
|
218
191
|
* Shows a message
|
|
219
192
|
* @param message The message to display
|
|
@@ -232,7 +205,7 @@ export declare abstract class BaseComponent implements IBaseComponent, OnInit, A
|
|
|
232
205
|
* Navigate based on the provided array of commands and a starting point.
|
|
233
206
|
* @param commands
|
|
234
207
|
*/
|
|
235
|
-
navigate(commands: any[], queryParams?: any
|
|
208
|
+
protected navigate(commands: any[], queryParams?: any): void;
|
|
236
209
|
/**
|
|
237
210
|
* Convert Object to HttpHeaders
|
|
238
211
|
*
|
|
@@ -6,13 +6,12 @@ import { ActivatedRoute } from '@angular/router';
|
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
7
7
|
import { IEntity } from '../../common/models/entity';
|
|
8
8
|
import { SaveAction } from '../../common/models/save-action';
|
|
9
|
-
import {
|
|
9
|
+
import { FormFieldGroup } from '../../forms/models/form-field-group';
|
|
10
10
|
import { GenericService } from '../../http/services/generic.service';
|
|
11
11
|
import { TableMenuItem } from '../../table/models/table-menu-item';
|
|
12
|
-
import { IGenericFormBaseComponent } from '../interfaces/igeneric-form-base';
|
|
13
12
|
import { BaseComponent } from './base.component';
|
|
14
13
|
import * as i0 from "@angular/core";
|
|
15
|
-
export declare abstract class GenericFormBaseComponent<TEntity extends IEntity, TService extends GenericService<TEntity>> extends BaseComponent
|
|
14
|
+
export declare abstract class GenericFormBaseComponent<TEntity extends IEntity, TService extends GenericService<TEntity>> extends BaseComponent {
|
|
16
15
|
entityCtor: {
|
|
17
16
|
new (): TEntity;
|
|
18
17
|
};
|
|
@@ -23,6 +22,10 @@ export declare abstract class GenericFormBaseComponent<TEntity extends IEntity,
|
|
|
23
22
|
* The action of the form (add | edit)
|
|
24
23
|
*/
|
|
25
24
|
action: string;
|
|
25
|
+
/**
|
|
26
|
+
* A url to return to after save
|
|
27
|
+
*/
|
|
28
|
+
returnUrl: string;
|
|
26
29
|
/**
|
|
27
30
|
* Action = edit?
|
|
28
31
|
*/
|
|
@@ -147,7 +150,7 @@ export declare abstract class GenericFormBaseComponent<TEntity extends IEntity,
|
|
|
147
150
|
/**
|
|
148
151
|
* fieldGroups: FormFieldGroup[]
|
|
149
152
|
*/
|
|
150
|
-
fieldGroups:
|
|
153
|
+
fieldGroups: FormFieldGroup[];
|
|
151
154
|
/**
|
|
152
155
|
* panelId: string
|
|
153
156
|
*/
|
|
@@ -228,11 +231,6 @@ export declare abstract class GenericFormBaseComponent<TEntity extends IEntity,
|
|
|
228
231
|
* @param action
|
|
229
232
|
*/
|
|
230
233
|
back(action?: SaveAction): void;
|
|
231
|
-
/**
|
|
232
|
-
* Sets return url
|
|
233
|
-
* @param returnUrl
|
|
234
|
-
*/
|
|
235
|
-
protected setReturnUrl(returnUrl: string): void;
|
|
236
234
|
/**
|
|
237
235
|
* Creates a new instance of the TEntity
|
|
238
236
|
*/
|
|
@@ -7,16 +7,14 @@ import { IEntity } from '../../common/models/entity';
|
|
|
7
7
|
import { GenericService } from '../../http/services/generic.service';
|
|
8
8
|
import { VdDynamicTableComponent } from '../../table/components/dynamic-table/dynamic-table.component';
|
|
9
9
|
import { TableColumn } from '../../table/models/table-column';
|
|
10
|
-
import { TableColumnConfig } from '../../table/models/table-column-config';
|
|
11
10
|
import { TableMenuItem } from '../../table/models/table-menu-item';
|
|
12
11
|
import { TableDataSource } from '../../table/table.data-source';
|
|
13
|
-
import { IGenericListComponent } from '../interfaces/igeneric-list-component';
|
|
14
12
|
import { BaseComponent } from './base.component';
|
|
15
13
|
import * as i0 from "@angular/core";
|
|
16
14
|
/**
|
|
17
15
|
* A base list component for components with pagination support
|
|
18
16
|
*/
|
|
19
|
-
export declare abstract class GenericListComponent<TEntity extends IEntity | any, TService extends GenericService<TEntity>> extends BaseComponent implements
|
|
17
|
+
export declare abstract class GenericListComponent<TEntity extends IEntity | any, TService extends GenericService<TEntity>> extends BaseComponent implements OnDestroy {
|
|
20
18
|
service: TService;
|
|
21
19
|
protected route: ActivatedRoute;
|
|
22
20
|
protected changeDetectorRef: ChangeDetectorRef;
|
|
@@ -43,10 +41,6 @@ export declare abstract class GenericListComponent<TEntity extends IEntity | any
|
|
|
43
41
|
* The navigations to includes
|
|
44
42
|
*/
|
|
45
43
|
includes: Array<string>;
|
|
46
|
-
/**
|
|
47
|
-
* projection: string | string[]
|
|
48
|
-
*/
|
|
49
|
-
projection: string | string[];
|
|
50
44
|
/**
|
|
51
45
|
* The navigations to includes
|
|
52
46
|
*/
|
|
@@ -107,22 +101,14 @@ export declare abstract class GenericListComponent<TEntity extends IEntity | any
|
|
|
107
101
|
* If true, show the menu 'Duplicate'
|
|
108
102
|
*/
|
|
109
103
|
duplicable: boolean;
|
|
110
|
-
/**
|
|
111
|
-
* If true, show the menu 'Configure table'
|
|
112
|
-
*/
|
|
113
|
-
configurable: boolean;
|
|
114
104
|
/**
|
|
115
105
|
* rowNgClass: Function
|
|
116
106
|
*/
|
|
117
|
-
rowNgClass:
|
|
107
|
+
rowNgClass: Function;
|
|
118
108
|
/**
|
|
119
109
|
* rowClick: Function
|
|
120
110
|
*/
|
|
121
|
-
rowClick:
|
|
122
|
-
/**
|
|
123
|
-
* editRoute: Function
|
|
124
|
-
*/
|
|
125
|
-
onEdit: (x: TEntity, ctx: any) => any;
|
|
111
|
+
rowClick: Function;
|
|
126
112
|
/**
|
|
127
113
|
* detailsTemplate: Function
|
|
128
114
|
*/
|
|
@@ -130,26 +116,15 @@ export declare abstract class GenericListComponent<TEntity extends IEntity | any
|
|
|
130
116
|
/**
|
|
131
117
|
* Toolbar menu items
|
|
132
118
|
*/
|
|
133
|
-
toolbarMenuItems: TableMenuItem
|
|
119
|
+
toolbarMenuItems: TableMenuItem[];
|
|
134
120
|
/**
|
|
135
121
|
* Table row menu items
|
|
136
122
|
*/
|
|
137
|
-
rowMenuItems: TableMenuItem
|
|
123
|
+
rowMenuItems: TableMenuItem[];
|
|
138
124
|
/**
|
|
139
125
|
* DataLoaded event subscription
|
|
140
126
|
*/
|
|
141
127
|
protected dataLoadedSubscription: Subscription;
|
|
142
|
-
/**
|
|
143
|
-
* The key for configs
|
|
144
|
-
*/
|
|
145
|
-
protected configsKey: string;
|
|
146
|
-
/**
|
|
147
|
-
* listConfig: {configs: any, query: any}
|
|
148
|
-
*/
|
|
149
|
-
protected listConfig: {
|
|
150
|
-
configs: TableColumnConfig[];
|
|
151
|
-
query: any;
|
|
152
|
-
};
|
|
153
128
|
/**
|
|
154
129
|
* Constructor
|
|
155
130
|
* @param service
|
|
@@ -167,10 +142,6 @@ export declare abstract class GenericListComponent<TEntity extends IEntity | any
|
|
|
167
142
|
* @param staticFieldFilters
|
|
168
143
|
*/
|
|
169
144
|
connect(staticFieldFilters?: any): void;
|
|
170
|
-
/**
|
|
171
|
-
* Updates the table columns
|
|
172
|
-
*/
|
|
173
|
-
updateColumns(loadConfig?: boolean): void;
|
|
174
145
|
/**
|
|
175
146
|
* Reloads items
|
|
176
147
|
*/
|
|
@@ -188,7 +159,7 @@ export declare abstract class GenericListComponent<TEntity extends IEntity | any
|
|
|
188
159
|
* Navigates to the edit page.
|
|
189
160
|
* @param item The id of the item
|
|
190
161
|
*/
|
|
191
|
-
edit(item: TEntity
|
|
162
|
+
edit(item: TEntity): void;
|
|
192
163
|
/**
|
|
193
164
|
* Patches the entity
|
|
194
165
|
* Patches the entity
|
|
@@ -197,7 +168,7 @@ export declare abstract class GenericListComponent<TEntity extends IEntity | any
|
|
|
197
168
|
* @param value The (optional) value to change
|
|
198
169
|
* @param includes Includes some navigations
|
|
199
170
|
*/
|
|
200
|
-
patch(id: number, fields: Array<string>, value: any, includes
|
|
171
|
+
patch(id: number, fields: Array<string>, value: any, includes: any): void;
|
|
201
172
|
/**
|
|
202
173
|
* Patches the entity
|
|
203
174
|
* @param id The ID of the entity
|
|
@@ -206,7 +177,7 @@ export declare abstract class GenericListComponent<TEntity extends IEntity | any
|
|
|
206
177
|
* @param includes Includes some navigations
|
|
207
178
|
* @param successCallback A callback function to e called on success
|
|
208
179
|
*/
|
|
209
|
-
protected _patch(id: number, fields: Array<string>, value: any, includes
|
|
180
|
+
protected _patch(id: number, fields: Array<string>, value: any, includes: any, successCallback?: Function): void;
|
|
210
181
|
/**
|
|
211
182
|
* Deletes an item from the database.
|
|
212
183
|
*/
|
|
@@ -244,19 +215,6 @@ export declare abstract class GenericListComponent<TEntity extends IEntity | any
|
|
|
244
215
|
* @param item
|
|
245
216
|
*/
|
|
246
217
|
trackById(_: number, item: any): any;
|
|
247
|
-
/**
|
|
248
|
-
* Opens the config dialog
|
|
249
|
-
*/
|
|
250
|
-
openConfigDialog(): void;
|
|
251
|
-
/**
|
|
252
|
-
* Saves the table config
|
|
253
|
-
* @param configs
|
|
254
|
-
*/
|
|
255
|
-
saveConfigs(configs: TableColumnConfig[]): void;
|
|
256
|
-
/**
|
|
257
|
-
* Gets and applies the table configs
|
|
258
|
-
*/
|
|
259
|
-
loadConfigs(): void;
|
|
260
218
|
/**
|
|
261
219
|
* Includes some navigations
|
|
262
220
|
* @param inc
|
|
@@ -315,11 +273,6 @@ export declare abstract class GenericListComponent<TEntity extends IEntity | any
|
|
|
315
273
|
* when the instance is destroyed.
|
|
316
274
|
*/
|
|
317
275
|
ngOnDestroy(): void;
|
|
318
|
-
/**
|
|
319
|
-
* The Symbol.toStringTag well-known symbol is a string valued property that is used
|
|
320
|
-
* in the creation of the default string description of an object
|
|
321
|
-
*/
|
|
322
|
-
get [Symbol.toStringTag](): string;
|
|
323
276
|
static ɵfac: i0.ɵɵFactoryDeclaration<GenericListComponent<any, any>, never>;
|
|
324
277
|
static ɵdir: i0.ɵɵDirectiveDeclaration<GenericListComponent<any, any>, never, never, {}, {}, never>;
|
|
325
278
|
}
|
|
@@ -1,24 +1,16 @@
|
|
|
1
|
-
import { VdAutocompleteOptionDirective } from './directives/autocomplete-option.directive';
|
|
2
|
-
import { VdChipDirective } from './directives/chip.directive';
|
|
3
1
|
import * as i0 from "@angular/core";
|
|
4
2
|
import * as i1 from "./components/chips.component";
|
|
5
|
-
import * as i2 from "
|
|
6
|
-
import * as i3 from "
|
|
7
|
-
import * as i4 from "@angular/
|
|
8
|
-
import * as i5 from "@angular/
|
|
9
|
-
import * as i6 from "
|
|
10
|
-
import * as i7 from "@angular/material/
|
|
11
|
-
import * as i8 from "@angular/material/
|
|
12
|
-
import * as i9 from "@angular/material/
|
|
13
|
-
import * as i10 from "@angular/material/
|
|
14
|
-
import * as i11 from "@angular/material/select";
|
|
15
|
-
import * as i12 from "@angular/material/autocomplete";
|
|
16
|
-
import * as i13 from "@angular/material/progress-spinner";
|
|
17
|
-
import * as i14 from "@angular/material/paginator";
|
|
18
|
-
import * as i15 from "@angular/material/divider";
|
|
19
|
-
export { VdAutocompleteOptionDirective, VdChipDirective };
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "@angular/material/chips";
|
|
6
|
+
import * as i5 from "@angular/material/icon";
|
|
7
|
+
import * as i6 from "@angular/material/button";
|
|
8
|
+
import * as i7 from "@angular/material/input";
|
|
9
|
+
import * as i8 from "@angular/material/select";
|
|
10
|
+
import * as i9 from "@angular/material/autocomplete";
|
|
11
|
+
import * as i10 from "@angular/material/progress-spinner";
|
|
20
12
|
export declare class VdChipsModule {
|
|
21
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<VdChipsModule, never>;
|
|
22
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<VdChipsModule, [typeof i1.VdChipsComponent, typeof
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<VdChipsModule, [typeof i1.VdChipsComponent, typeof i1.VdAutocompleteOptionDirective, typeof i1.VdChipDirective], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.MatChipsModule, typeof i5.MatIconModule, typeof i6.MatButtonModule, typeof i7.MatInputModule, typeof i8.MatSelectModule, typeof i9.MatAutocompleteModule, typeof i10.MatProgressSpinnerModule], [typeof i1.VdChipsComponent, typeof i1.VdAutocompleteOptionDirective, typeof i1.VdChipDirective]>;
|
|
23
15
|
static ɵinj: i0.ɵɵInjectorDeclaration<VdChipsModule>;
|
|
24
16
|
}
|