@messaia/cdk 13.3.5 → 13.3.6-rc03
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 +32 -10
- package/esm2020/lib/base/components/base.component.mjs +4 -3
- package/esm2020/lib/base/components/dynamic-table-config-dialog.comnponent.mjs +98 -0
- package/esm2020/lib/base/components/generic-form-base.component.mjs +3 -3
- package/esm2020/lib/base/components/generic-form.component.mjs +3 -3
- package/esm2020/lib/base/components/generic-list.component.mjs +93 -8
- package/esm2020/lib/base/components/generic-reactive-form.component.mjs +3 -3
- 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 +4 -4
- package/esm2020/lib/chips/components/chips.component.mjs +7 -7
- package/esm2020/lib/common/common.module.mjs +4 -4
- package/esm2020/lib/common/directives/disable-control.directive.mjs +3 -3
- package/esm2020/lib/common/functions/utils.mjs +3 -3
- package/esm2020/lib/common/helpers/app-storage.mjs +31 -7
- 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/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 +3 -3
- package/esm2020/lib/dialogs/confirm-dialog/confirm-dialog.component.mjs +3 -3
- 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 +3 -3
- 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 +18 -11
- 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 +4 -4
- package/esm2020/lib/forms/helpers/abstract-mat-form-field.mjs +3 -3
- package/esm2020/lib/forms/helpers/value-accessor-base.mjs +3 -3
- 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 +3 -3
- package/esm2020/lib/layout/layout-footer/layout-footer.component.mjs +3 -3
- package/esm2020/lib/layout/layout-manage-list/layout-manage-list.component.mjs +3 -3
- 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 +3 -3
- package/esm2020/lib/layout/layout-nav-list/layout-nav-list.directives.mjs +7 -7
- 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 +4 -4
- package/esm2020/lib/layout/list-toolbar/list-toolbar.component.mjs +3 -3
- package/esm2020/lib/layout/list-toolbar-menu/list-toolbar-menu.component.mjs +3 -3
- package/esm2020/lib/layout/navigation-drawer/navigation-drawer.component.mjs +7 -7
- 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 +3 -3
- 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/select.module.mjs +4 -4
- package/esm2020/lib/table/components/dynamic-table/dynamic-table.component.mjs +93 -39
- 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/functions/decorators.mjs +5 -3
- package/esm2020/lib/table/functions/functions.mjs +2 -2
- package/esm2020/lib/table/models/table-column-config.mjs +63 -0
- package/esm2020/lib/table/models/table-column.mjs +2 -1
- package/esm2020/lib/table/paginator-intl.mjs +3 -3
- package/esm2020/lib/table/table.module.mjs +5 -4
- package/fesm2015/messaia-cdk.mjs +3674 -3330
- package/fesm2015/messaia-cdk.mjs.map +1 -1
- package/fesm2020/messaia-cdk.mjs +3656 -3323
- package/fesm2020/messaia-cdk.mjs.map +1 -1
- package/lib/base/base.module.d.ts +15 -5
- package/lib/base/components/base.component.d.ts +4 -0
- package/lib/base/components/dynamic-table-config-dialog.comnponent.d.ts +39 -0
- package/lib/base/components/generic-list.component.d.ts +34 -0
- package/lib/common/helpers/app-storage.d.ts +12 -1
- package/lib/common/styles/_layout.scss +149 -92
- package/lib/forms/components/generic-form/generic-form.component.d.ts +5 -1
- package/lib/table/components/dynamic-table/dynamic-table.component.d.ts +44 -10
- 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/models/table-column-config.d.ts +30 -0
- package/lib/table/models/table-column.d.ts +2 -0
- package/lib/table/table.module.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseComponent } from './components/base.component';
|
|
2
|
+
import { VdDynamicTableConfigDialogComponent } from './components/dynamic-table-config-dialog.comnponent';
|
|
2
3
|
import { GenericFormBaseComponent } from './components/generic-form-base.component';
|
|
3
4
|
import { GenericFormComponent } from './components/generic-form.component';
|
|
4
5
|
import { GenericListComponent } from './components/generic-list.component';
|
|
@@ -14,12 +15,21 @@ import { FileService } from './services/file.service';
|
|
|
14
15
|
import { LoadingScreenService } from './services/loading-screen.service';
|
|
15
16
|
import { PrintService } from './services/print.service';
|
|
16
17
|
import * as i0 from "@angular/core";
|
|
17
|
-
import * as i1 from "@angular/
|
|
18
|
-
import * as i2 from "@angular/
|
|
19
|
-
import * as i3 from "
|
|
20
|
-
|
|
18
|
+
import * as i1 from "@angular/material/button";
|
|
19
|
+
import * as i2 from "@angular/cdk/drag-drop";
|
|
20
|
+
import * as i3 from "./components/dynamic-table-config-dialog.comnponent";
|
|
21
|
+
import * as i4 from "@angular/common";
|
|
22
|
+
import * as i5 from "@angular/forms";
|
|
23
|
+
import * as i6 from "@angular/material/dialog";
|
|
24
|
+
import * as i7 from "../table/table.module";
|
|
25
|
+
export { AuthUser, MessageType, AuthHelper, BaseComponent, GenericListComponent, GenericFormComponent, GenericFormBaseComponent, GenericReactiveFormComponent, VdDynamicTableConfigDialogComponent, BaseInterceptor, CachingInterceptor, LoadingScreenInterceptor, FileService, LoadingScreenService, PrintService, Common };
|
|
26
|
+
export declare class MaterialModule {
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialModule, never>;
|
|
28
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialModule, never, never, [typeof i1.MatButtonModule, typeof i2.DragDropModule]>;
|
|
29
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MaterialModule>;
|
|
30
|
+
}
|
|
21
31
|
export declare class VdBaseModule {
|
|
22
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<VdBaseModule, never>;
|
|
23
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<VdBaseModule,
|
|
33
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<VdBaseModule, [typeof i3.VdDynamicTableConfigDialogComponent], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.MatDialogModule, typeof i7.VdTableModule, typeof MaterialModule], [typeof i3.VdDynamicTableConfigDialogComponent]>;
|
|
24
34
|
static ɵinj: i0.ɵɵInjectorDeclaration<VdBaseModule>;
|
|
25
35
|
}
|
|
@@ -106,6 +106,10 @@ export declare abstract class BaseComponent implements OnInit, AfterViewInit {
|
|
|
106
106
|
* Current route
|
|
107
107
|
*/
|
|
108
108
|
currentRoute: string;
|
|
109
|
+
/**
|
|
110
|
+
* Current base route
|
|
111
|
+
*/
|
|
112
|
+
currentBaseRoute: string;
|
|
109
113
|
/**
|
|
110
114
|
* A url to return to after save
|
|
111
115
|
*/
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { ActivatedRoute } from '@angular/router';
|
|
4
|
+
import { TableColumnConfig } from '../../table/models/table-column-config';
|
|
5
|
+
import { BaseComponent } from './base.component';
|
|
6
|
+
import { GenericListComponent } from './generic-list.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class VdDynamicTableConfigDialogComponent extends BaseComponent {
|
|
9
|
+
protected route: ActivatedRoute;
|
|
10
|
+
protected changeDetectorRef: ChangeDetectorRef;
|
|
11
|
+
dialogRef: MatDialogRef<VdDynamicTableConfigDialogComponent>;
|
|
12
|
+
genericList: GenericListComponent<any, any>;
|
|
13
|
+
/**
|
|
14
|
+
* columns: TableColumn[]
|
|
15
|
+
*/
|
|
16
|
+
columns: TableColumnConfig[];
|
|
17
|
+
/**
|
|
18
|
+
* classType: typeof TableColumnConfig
|
|
19
|
+
*/
|
|
20
|
+
classType: typeof TableColumnConfig;
|
|
21
|
+
/**
|
|
22
|
+
* Constructor
|
|
23
|
+
*/
|
|
24
|
+
constructor(route: ActivatedRoute, changeDetectorRef: ChangeDetectorRef, dialogRef: MatDialogRef<VdDynamicTableConfigDialogComponent>, genericList: GenericListComponent<any, any>);
|
|
25
|
+
/**
|
|
26
|
+
* Saves config
|
|
27
|
+
*/
|
|
28
|
+
save(): void;
|
|
29
|
+
/**
|
|
30
|
+
* Applies config
|
|
31
|
+
*/
|
|
32
|
+
apply(): void;
|
|
33
|
+
/**
|
|
34
|
+
* Updates the columns
|
|
35
|
+
*/
|
|
36
|
+
updateColumns(): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VdDynamicTableConfigDialogComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VdDynamicTableConfigDialogComponent, "vd-dynamic-table-config-dialog", never, {}, {}, never, never>;
|
|
39
|
+
}
|
|
@@ -7,6 +7,7 @@ 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';
|
|
10
11
|
import { TableMenuItem } from '../../table/models/table-menu-item';
|
|
11
12
|
import { TableDataSource } from '../../table/table.data-source';
|
|
12
13
|
import { BaseComponent } from './base.component';
|
|
@@ -129,6 +130,17 @@ export declare abstract class GenericListComponent<TEntity extends IEntity | any
|
|
|
129
130
|
* DataLoaded event subscription
|
|
130
131
|
*/
|
|
131
132
|
protected dataLoadedSubscription: Subscription;
|
|
133
|
+
/**
|
|
134
|
+
* The key for configs
|
|
135
|
+
*/
|
|
136
|
+
protected configsKey: string;
|
|
137
|
+
/**
|
|
138
|
+
* listConfig: {configs: any, query: any}
|
|
139
|
+
*/
|
|
140
|
+
protected listConfig: {
|
|
141
|
+
configs: TableColumnConfig[];
|
|
142
|
+
query: any;
|
|
143
|
+
};
|
|
132
144
|
/**
|
|
133
145
|
* Constructor
|
|
134
146
|
* @param service
|
|
@@ -146,6 +158,10 @@ export declare abstract class GenericListComponent<TEntity extends IEntity | any
|
|
|
146
158
|
* @param staticFieldFilters
|
|
147
159
|
*/
|
|
148
160
|
connect(staticFieldFilters?: any): void;
|
|
161
|
+
/**
|
|
162
|
+
* Updates the table columns
|
|
163
|
+
*/
|
|
164
|
+
updateColumns(loadConfig?: boolean): void;
|
|
149
165
|
/**
|
|
150
166
|
* Reloads items
|
|
151
167
|
*/
|
|
@@ -219,6 +235,19 @@ export declare abstract class GenericListComponent<TEntity extends IEntity | any
|
|
|
219
235
|
* @param item
|
|
220
236
|
*/
|
|
221
237
|
trackById(_: number, item: any): any;
|
|
238
|
+
/**
|
|
239
|
+
* Opens the config dialog
|
|
240
|
+
*/
|
|
241
|
+
openConfigDialog(): void;
|
|
242
|
+
/**
|
|
243
|
+
* Saves the table config
|
|
244
|
+
* @param configs
|
|
245
|
+
*/
|
|
246
|
+
saveConfigs(configs: TableColumnConfig[]): void;
|
|
247
|
+
/**
|
|
248
|
+
* Gets and applies the table configs
|
|
249
|
+
*/
|
|
250
|
+
loadConfigs(): void;
|
|
222
251
|
/**
|
|
223
252
|
* Includes some navigations
|
|
224
253
|
* @param inc
|
|
@@ -277,6 +306,11 @@ export declare abstract class GenericListComponent<TEntity extends IEntity | any
|
|
|
277
306
|
* when the instance is destroyed.
|
|
278
307
|
*/
|
|
279
308
|
ngOnDestroy(): void;
|
|
309
|
+
/**
|
|
310
|
+
* The Symbol.toStringTag well-known symbol is a string valued property that is used
|
|
311
|
+
* in the creation of the default string description of an object
|
|
312
|
+
*/
|
|
313
|
+
get [Symbol.toStringTag](): string;
|
|
280
314
|
static ɵfac: i0.ɵɵFactoryDeclaration<GenericListComponent<any, any>, never>;
|
|
281
315
|
static ɵdir: i0.ɵɵDirectiveDeclaration<GenericListComponent<any, any>, never, never, {}, {}, never>;
|
|
282
316
|
}
|
|
@@ -22,11 +22,22 @@ export declare abstract class AppStorage {
|
|
|
22
22
|
* @param value The value to store
|
|
23
23
|
*/
|
|
24
24
|
static setObject: (key: string, value: any) => void;
|
|
25
|
+
/**
|
|
26
|
+
* Sets an object from localStorage
|
|
27
|
+
* @param key The key of the item to store
|
|
28
|
+
* @param value The value to store
|
|
29
|
+
*/
|
|
30
|
+
static setObjectEncoded: (key: string, value: any) => void;
|
|
31
|
+
/**
|
|
32
|
+
* Gets an object from localStorage
|
|
33
|
+
* @param key The key of the item
|
|
34
|
+
*/
|
|
35
|
+
static getObject: (key: string, defaultValue?: any) => any;
|
|
25
36
|
/**
|
|
26
37
|
* Gets an object from localStorage
|
|
27
38
|
* @param key The key of the item
|
|
28
39
|
*/
|
|
29
|
-
static
|
|
40
|
+
static getObjectEncoded: (key: string, defaultValue?: any) => any;
|
|
30
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppStorage, never>;
|
|
31
42
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AppStorage, never, never, {}, {}, never>;
|
|
32
43
|
}
|