@mediusinc/mng-commons 2.4.2-rc.0 → 2.5.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/i18n/en.json +14 -0
- package/assets/i18n/sl.json +14 -0
- package/esm2020/index.mjs +2 -1
- package/esm2020/lib/api/utils/medius-rest.util.mjs +8 -1
- package/esm2020/lib/components/action/editor/action-editor.component.mjs +1 -1
- package/esm2020/lib/components/form/autocomplete/autocomplete.component.mjs +3 -2
- package/esm2020/lib/components/form/dropdown/dropdown.component.mjs +3 -2
- package/esm2020/lib/components/form/editor/form-editor.component.mjs +4 -11
- package/esm2020/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.mjs +4 -3
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +7 -6
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +22 -8
- package/esm2020/lib/components/pages/error/error-page.component.mjs +21 -0
- package/esm2020/lib/components/pages/index.mjs +3 -0
- package/esm2020/lib/components/pages/not-found/not-found-page.component.mjs +21 -0
- package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +18 -10
- package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +8 -3
- package/esm2020/lib/components/tableview/table/table.component.mjs +14 -3
- package/esm2020/lib/components/tableview/tableview.component.mjs +36 -4
- package/esm2020/lib/descriptors/action/action-button.descriptor.mjs +2 -2
- package/esm2020/lib/descriptors/action/action.descriptor.mjs +55 -6
- package/esm2020/lib/descriptors/editor/editor.descriptor.mjs +3 -2
- package/esm2020/lib/descriptors/editor/field.descriptor.mjs +13 -1
- package/esm2020/lib/descriptors/filter/filter.descriptor.mjs +5 -4
- package/esm2020/lib/descriptors/table/column.descriptor.mjs +27 -3
- package/esm2020/lib/descriptors/tableview/tableview.descriptor.mjs +3 -2
- package/esm2020/lib/mng-commons.module.mjs +18 -5
- package/esm2020/lib/models/error-internal.model.mjs +27 -0
- package/esm2020/lib/models/index.mjs +2 -1
- package/esm2020/lib/router/route-builder.mjs +4 -3
- package/esm2020/lib/router/routes-builder.mjs +3 -2
- package/esm2020/lib/services/action-executor.service.mjs +4 -3
- package/esm2020/lib/services/configuration.service.mjs +9 -4
- package/esm2020/lib/styles/button-style.builder.mjs +10 -1
- package/esm2020/lib/utils/action-data-provider.util.mjs +7 -6
- package/esm2020/lib/utils/file.util.mjs +18 -0
- package/esm2020/lib/utils/index.mjs +2 -1
- package/esm2020/lib/utils/route.util.mjs +3 -2
- package/esm2020/lib/utils/tableview.util.mjs +3 -2
- package/esm2020/lib/utils/type.util.mjs +3 -2
- package/fesm2015/mediusinc-mng-commons.mjs +322 -75
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +313 -72
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/lib/api/utils/medius-rest.util.d.ts +2 -0
- package/lib/components/form/editor/form-editor.component.d.ts +1 -3
- package/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +4 -0
- package/lib/components/pages/error/error-page.component.d.ts +8 -0
- package/lib/components/pages/index.d.ts +2 -0
- package/lib/components/pages/not-found/not-found-page.component.d.ts +8 -0
- package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +1 -1
- package/lib/components/tableview/table/table.component.d.ts +3 -1
- package/lib/components/tableview/tableview.component.d.ts +4 -1
- package/lib/descriptors/action/action.descriptor.d.ts +2 -0
- package/lib/descriptors/editor/field.descriptor.d.ts +5 -0
- package/lib/descriptors/table/column.descriptor.d.ts +9 -1
- package/lib/mng-commons.module.d.ts +3 -1
- package/lib/models/error-internal.model.d.ts +29 -0
- package/lib/models/index.d.ts +1 -0
- package/lib/styles/button-style.builder.d.ts +1 -0
- package/lib/utils/file.util.d.ts +3 -0
- package/lib/utils/index.d.ts +1 -0
- package/package.json +1 -2
- package/scss/mng-overrides/_layout_styles.scss +4 -0
- package/scss/mng-overrides/_theme_dialog.scss +35 -0
package/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './lib/components/form/formly/fields';
|
|
|
13
13
|
export * from './lib/components/form/formly/wrappers';
|
|
14
14
|
export * from './lib/components/layout';
|
|
15
15
|
export * from './lib/components/tableview';
|
|
16
|
+
export * from './lib/components/pages';
|
|
16
17
|
export * from './lib/directives';
|
|
17
18
|
export * from './lib/pipes';
|
|
18
19
|
export * from './lib/api/models';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Params } from '@angular/router';
|
|
2
2
|
import { FilterMetadata, LazyLoadEvent } from 'primeng/api';
|
|
3
3
|
import { FilterDescriptor } from '../../descriptors/filter';
|
|
4
|
+
import { ColumnDescriptor } from '../../descriptors/table';
|
|
4
5
|
import { FilterTypeEnum } from '../../descriptors/types';
|
|
5
6
|
import { MatchModeMapType } from '../../types';
|
|
6
7
|
import { MediusFilterMatchType, MediusQueryParam, MediusQueryParamBuilder } from '../models';
|
|
@@ -21,6 +22,7 @@ export declare class MediusRestUtil {
|
|
|
21
22
|
}): void;
|
|
22
23
|
fromAngularQueryParamsToMediusQueryParams(params: Params, filterDescriptors: Array<FilterDescriptor<any>>, defaultItemsPerPage?: number, defaultOffset?: number): MediusQueryParam;
|
|
23
24
|
fromPrimeLazyLoadEventToAngularQueryParams(event: LazyLoadEvent): Params;
|
|
25
|
+
modifySortProperties(mediusQueryParams: MediusQueryParam, columnDescriptors: Array<ColumnDescriptor<any, any>> | undefined): void;
|
|
24
26
|
modifyFilterProperties(mediusQueryParams: MediusQueryParam, filterDescriptors: Array<FilterDescriptor<any>>): void;
|
|
25
27
|
fromPrimeLazyLoadEventToMediusQueryParams(event: LazyLoadEvent): MediusQueryParam;
|
|
26
28
|
addMediusFilterFromPrimeFilterMetadata(queryParamBuilder: MediusQueryParamBuilder, property: string, filterMetadata: FilterMetadata): void;
|
|
@@ -19,8 +19,6 @@ export declare class MngFormEditorComponent<T> implements IFormEditorComponent<T
|
|
|
19
19
|
viewContainerInit?: IViewContainer<T, unknown>;
|
|
20
20
|
private viewContainerSubject;
|
|
21
21
|
viewContainer$: Observable<IViewContainer<T, unknown>>;
|
|
22
|
-
isSubmitButtonVisible: boolean;
|
|
23
|
-
isFormDisabled: null;
|
|
24
22
|
formSubmitEventEmitter: EventEmitter<MngFormEditorSubmitEvent<T>>;
|
|
25
23
|
templates: QueryList<MngTemplateDirective>;
|
|
26
24
|
submitButtonElementRef?: ElementRef;
|
|
@@ -53,5 +51,5 @@ export declare class MngFormEditorComponent<T> implements IFormEditorComponent<T
|
|
|
53
51
|
*/
|
|
54
52
|
private setInitialFormState;
|
|
55
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormEditorComponent<any>, never>;
|
|
56
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormEditorComponent<any>, "mng-form-editor", never, { "descriptor": "descriptor"; "submitLoading": "submitLoading"; "item": "item"; "viewContainerInit": "viewContainer";
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormEditorComponent<any>, "mng-form-editor", never, { "descriptor": "descriptor"; "submitLoading": "submitLoading"; "item": "item"; "viewContainerInit": "viewContainer"; }, { "formSubmitEventEmitter": "formSubmit"; }, ["templates"], never, true, never>;
|
|
57
55
|
}
|
|
@@ -4,6 +4,7 @@ import { Observable, Subject } from 'rxjs';
|
|
|
4
4
|
import { MediusQueryResult } from '../../../../../api/models';
|
|
5
5
|
import { FieldManyToManyEditorDescriptor } from '../../../../../descriptors/editor';
|
|
6
6
|
import { IViewContainer } from '../../../../../models';
|
|
7
|
+
import { MngTableComponent } from '../../../../tableview';
|
|
7
8
|
import { MngFormlyFieldConfig } from '../../models';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class MngFormlyFieldTableDialogMultiselectComponent<T, ET> extends FieldType<MngFormlyFieldConfig> implements OnInit, AfterViewInit, OnDestroy {
|
|
@@ -22,9 +23,11 @@ export declare class MngFormlyFieldTableDialogMultiselectComponent<T, ET> extend
|
|
|
22
23
|
dialogIsLoading$: Observable<boolean>;
|
|
23
24
|
hasAddAction: boolean;
|
|
24
25
|
hasDeleteAction: boolean;
|
|
26
|
+
private searchDebounceSubject;
|
|
25
27
|
private lookupDataProviderSubscription?;
|
|
26
28
|
private subscriptions;
|
|
27
29
|
viewContainer?: IViewContainer<any, unknown>;
|
|
30
|
+
addTableComponent?: MngTableComponent<T, ET>;
|
|
28
31
|
constructor(injector: Injector);
|
|
29
32
|
ngOnInit(): void;
|
|
30
33
|
ngAfterViewInit(): void;
|
|
@@ -34,6 +37,7 @@ export declare class MngFormlyFieldTableDialogMultiselectComponent<T, ET> extend
|
|
|
34
37
|
hideDialog(): void;
|
|
35
38
|
addItems(): void;
|
|
36
39
|
removeItem(item: any): void;
|
|
40
|
+
onSearch(event: Event): void;
|
|
37
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldTableDialogMultiselectComponent<any, any>, never>;
|
|
38
42
|
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldTableDialogMultiselectComponent<any, any>, "mng-formly-table-multiselect-add-field", never, {}, {}, never, never, true, never>;
|
|
39
43
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MngCommonsService } from '../../../services';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MngErrorPageComponent {
|
|
4
|
+
mngCommons: MngCommonsService;
|
|
5
|
+
constructor(mngCommons: MngCommonsService);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngErrorPageComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngErrorPageComponent, "mng-error-page", never, {}, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MngCommonsService } from '../../../services';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MngNotFoundPageComponent {
|
|
4
|
+
mngCommons: MngCommonsService;
|
|
5
|
+
constructor(mngCommons: MngCommonsService);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngNotFoundPageComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngNotFoundPageComponent, "mng-not-found-page", never, {}, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -23,7 +23,7 @@ export declare abstract class AMngTableviewRouteComponent<T, S> implements OnIni
|
|
|
23
23
|
protected createActionDescriptorForDetails(descriptor?: EditorDescriptor<T>): ActionEditorDetailsDescriptor<T> | null;
|
|
24
24
|
protected createActionDescriptorForAdd(descriptor?: EditorDescriptor<T>): ActionEditorAddDescriptor<T> | null;
|
|
25
25
|
protected createActionDescriptorForEdit(descriptor?: EditorDescriptor<T>): ActionEditorEditDescriptor<T> | null;
|
|
26
|
-
protected createActionDescriptorForDetailsEditLink(descriptor
|
|
26
|
+
protected createActionDescriptorForDetailsEditLink(descriptor: ModelDescriptor<T> | undefined, editDescriptor: ActionEditorEditDescriptor<T> | null): ActionLinkDescriptor<T> | null;
|
|
27
27
|
protected createActionDescriptorForDetailsDelete(): ActionDescriptor<T> | null;
|
|
28
28
|
protected createActionDescriptorForDelete(descriptor?: ModelDescriptor<T>): ActionDeleteDescriptor<T> | null;
|
|
29
29
|
protected createActionDescriptorForExport(descriptor?: ModelDescriptor<T>): ActionDescriptor<T> | null;
|
|
@@ -40,6 +40,7 @@ export declare class MngTableComponent<T, S> implements OnInit, OnChanges, After
|
|
|
40
40
|
captionComponent?: Type<any>;
|
|
41
41
|
columnActionComponent?: Type<any>;
|
|
42
42
|
columnActionMinWidth: number | null;
|
|
43
|
+
globalFilterFieldsInit?: string[];
|
|
43
44
|
loadEventEmitter: EventEmitter<MngTableLoadEvent>;
|
|
44
45
|
cellClickEventEmitter: EventEmitter<MngTableCellClickEvent<T>>;
|
|
45
46
|
selectionChangeEventEmitter: EventEmitter<T[]>;
|
|
@@ -68,6 +69,7 @@ export declare class MngTableComponent<T, S> implements OnInit, OnChanges, After
|
|
|
68
69
|
filterMetadata: {
|
|
69
70
|
[s: string]: FilterMetadata;
|
|
70
71
|
};
|
|
72
|
+
globalFilterFields: string[];
|
|
71
73
|
infiniteScroll: boolean;
|
|
72
74
|
className: string;
|
|
73
75
|
tableFullHeightOffset: number | null;
|
|
@@ -113,5 +115,5 @@ export declare class MngTableComponent<T, S> implements OnInit, OnChanges, After
|
|
|
113
115
|
private initializeDataLoadingTriggers;
|
|
114
116
|
private initializeViewContainer;
|
|
115
117
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngTableComponent<any, any>, [null, null, null, null, null, null, { optional: true; }]>;
|
|
116
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableComponent<any, any>, "mng-table", never, { "initialDescriptor": "descriptor"; "items": "items"; "queryResult": "queryResult"; "loading": "loading"; "dataProvider": "dataProvider"; "useQueryParams": "useQueryParams"; "selectionMode": "selectionMode"; "selectionEnabled": "selectionEnabled"; "actions": "actions"; "isColumnClickable": "isColumnClickable"; "viewContainerInit": "viewContainer"; "captionComponent": "captionComponent"; "columnActionComponent": "columnActionComponent"; "columnActionMinWidth": "columnActionMinWidth"; }, { "loadEventEmitter": "tableLoad"; "cellClickEventEmitter": "cellClick"; "selectionChangeEventEmitter": "selectionChange"; "captionCmpInstEventEmitter": "captionComponentInstance"; "columnActionCmpInstEventEmitter": "columnActionComponentInstance"; }, ["templates"], never, true, never>;
|
|
118
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableComponent<any, any>, "mng-table", never, { "initialDescriptor": "descriptor"; "items": "items"; "queryResult": "queryResult"; "loading": "loading"; "dataProvider": "dataProvider"; "useQueryParams": "useQueryParams"; "selectionMode": "selectionMode"; "selectionEnabled": "selectionEnabled"; "actions": "actions"; "isColumnClickable": "isColumnClickable"; "viewContainerInit": "viewContainer"; "captionComponent": "captionComponent"; "columnActionComponent": "columnActionComponent"; "columnActionMinWidth": "columnActionMinWidth"; "globalFilterFieldsInit": "globalFilterFields"; }, { "loadEventEmitter": "tableLoad"; "cellClickEventEmitter": "cellClick"; "selectionChangeEventEmitter": "selectionChange"; "captionCmpInstEventEmitter": "captionComponentInstance"; "columnActionCmpInstEventEmitter": "columnActionComponentInstance"; }, ["templates"], never, true, never>;
|
|
117
119
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AfterContentInit, OnDestroy, OnInit, QueryList, TemplateRef } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute } from '@angular/router';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
-
import { ConfirmationService, MessageService } from 'primeng/api';
|
|
4
|
+
import { ConfirmationService, Message, MessageService } from 'primeng/api';
|
|
5
5
|
import { MediusQueryParam } from '../../api/models';
|
|
6
6
|
import { IDataProvider, ITableviewDataProvider } from '../../data-providers';
|
|
7
7
|
import { ActionDescriptor } from '../../descriptors/action';
|
|
@@ -32,6 +32,8 @@ export declare class MngTableviewComponent<T, S> implements OnInit, OnDestroy, A
|
|
|
32
32
|
selectedItems: T[];
|
|
33
33
|
templates: QueryList<MngTemplateDirective>;
|
|
34
34
|
footerTemplate?: TemplateRef<any>;
|
|
35
|
+
showingNotification: Message | null;
|
|
36
|
+
readonly notificationCutoff = 70;
|
|
35
37
|
constructor(route: ActivatedRoute, messageService: MessageService, translateService: TranslateService, confirmationService: ConfirmationService, actionExecutor: MngActionExecutorService, viewContainerService: MngViewContainerComponentService<T, S>);
|
|
36
38
|
ngOnInit(): void;
|
|
37
39
|
ngAfterContentInit(): void;
|
|
@@ -42,6 +44,7 @@ export declare class MngTableviewComponent<T, S> implements OnInit, OnDestroy, A
|
|
|
42
44
|
reloadTable(): void;
|
|
43
45
|
onTableLoad(event: MngTableLoadEvent): void;
|
|
44
46
|
selectionChange(selectedItems: Array<T>): void;
|
|
47
|
+
getNotificationIconClass(message: Message | null): string;
|
|
45
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngTableviewComponent<any, any>, never>;
|
|
46
49
|
static ɵcmp: i0.ɵɵComponentDeclaration<MngTableviewComponent<any, any>, "mng-tableview", never, { "descriptor": "descriptor"; "dataProvider": "dataProvider"; "actions": "actions"; }, {}, ["templates"], never, true, never>;
|
|
47
50
|
}
|
|
@@ -112,6 +112,7 @@ export declare class ActionDescriptor<T> {
|
|
|
112
112
|
withI18nBase(base: ClassType<unknown> | string): this;
|
|
113
113
|
withSubactionsAsMenu(): this;
|
|
114
114
|
withSubactions(...subactions: Array<ActionDescriptor<T>>): this;
|
|
115
|
+
copyTo(descriptor: ActionDescriptor<T>): ActionDescriptor<T>;
|
|
115
116
|
}
|
|
116
117
|
export declare class ActionSimpleDescriptor<T> extends ActionDescriptor<T> {
|
|
117
118
|
constructor(actionName: string, modelType?: ClassType<T>, idProperty?: string, titleProperty?: string, i18nBaseKey?: string | ClassType<unknown>);
|
|
@@ -209,6 +210,7 @@ export declare class ActionLinkDescriptor<T> extends ActionDescriptor<T> {
|
|
|
209
210
|
private _target;
|
|
210
211
|
private _isStyleLink;
|
|
211
212
|
constructor(model?: ModelDescriptor<T> | null, actionName?: string);
|
|
213
|
+
static fromActionDescriptor<T>(actionDescriptor: ActionDescriptor<T>): ActionLinkDescriptor<T>;
|
|
212
214
|
get url(): string;
|
|
213
215
|
get pathSegments(): string[];
|
|
214
216
|
get queryParams(): Params | undefined;
|
|
@@ -276,6 +276,8 @@ export declare class FieldManyToManyEditorDescriptor<T, ET> extends AFieldDescri
|
|
|
276
276
|
private _hasLookupExcludeValues;
|
|
277
277
|
private _excludeFilterProperty;
|
|
278
278
|
private _excludeValueProperty;
|
|
279
|
+
private _searchEnabled;
|
|
280
|
+
private _searchFields?;
|
|
279
281
|
constructor(editor: EditorDescriptor<ET>, property: string, mainTableDescriptor: TableDescriptor<T>, lookupTableDescriptor: TableDescriptor<T>);
|
|
280
282
|
get fieldType(): FieldManyToManyEditorTypeEnum;
|
|
281
283
|
get lookupTableDataProvider(): ITableDataProvider<T, any> | null;
|
|
@@ -285,10 +287,13 @@ export declare class FieldManyToManyEditorDescriptor<T, ET> extends AFieldDescri
|
|
|
285
287
|
get excludeValueProperty(): string;
|
|
286
288
|
get mainTableDescriptor(): TableDescriptor<T>;
|
|
287
289
|
get lookupTableDescriptor(): TableDescriptor<T>;
|
|
290
|
+
get searchEnabled(): boolean;
|
|
291
|
+
get searchFields(): string[] | undefined;
|
|
288
292
|
withLookup<S>(getAll: (queryParam: MediusQueryParam, service?: S) => Observable<MediusQueryResult<T>>, serviceType?: Type<S>): this;
|
|
289
293
|
withLookupDataProvider(dataProvider: ITableDataProvider<T, any>): this;
|
|
290
294
|
withActions(actions?: Array<FieldManyToManyEditorActionEnum>): this;
|
|
291
295
|
withLookupExclude(filterProperty: string, valueProperty: string, hasLookupExclude?: boolean): this;
|
|
296
|
+
withSearch(enabled?: boolean, searchFields?: string[]): this;
|
|
292
297
|
copy(): FieldManyToManyEditorDescriptor<T, ET>;
|
|
293
298
|
}
|
|
294
299
|
export declare class FieldManyEditorDescriptor<T, ET> extends AFieldDescriptor<T, ET, T[]> {
|
|
@@ -12,11 +12,14 @@ export declare class ColumnDescriptor<T, TT> {
|
|
|
12
12
|
protected _title?: string;
|
|
13
13
|
private _jsonPath?;
|
|
14
14
|
private _isSortEnabled;
|
|
15
|
+
private _sortProperty?;
|
|
15
16
|
private _filterDescriptor?;
|
|
16
17
|
private _displayFormat?;
|
|
17
18
|
private _locale?;
|
|
18
19
|
private _template?;
|
|
19
20
|
private _getter?;
|
|
21
|
+
private _isMultiline;
|
|
22
|
+
private _hasValueAsTooltip;
|
|
20
23
|
private _headerClassName;
|
|
21
24
|
private _className;
|
|
22
25
|
private _width;
|
|
@@ -43,6 +46,7 @@ export declare class ColumnDescriptor<T, TT> {
|
|
|
43
46
|
get title(): string | undefined;
|
|
44
47
|
get jsonPath(): string | undefined;
|
|
45
48
|
get isSortEnabled(): boolean;
|
|
49
|
+
get sortProperty(): string | undefined;
|
|
46
50
|
get filterDescriptor(): FilterDescriptor<unknown> | undefined;
|
|
47
51
|
get displayFormat(): string | undefined;
|
|
48
52
|
get table(): TableDescriptor<TT>;
|
|
@@ -68,6 +72,8 @@ export declare class ColumnDescriptor<T, TT> {
|
|
|
68
72
|
get hasCopyToClipboard(): boolean;
|
|
69
73
|
get template(): string | undefined;
|
|
70
74
|
get getter(): ((item: TT, value?: T | null | undefined) => unknown) | undefined;
|
|
75
|
+
get isMultiline(): boolean;
|
|
76
|
+
get hasValueAsTooltip(): boolean;
|
|
71
77
|
get isLocalized(): boolean;
|
|
72
78
|
get localizationExistsProperty(): string | undefined;
|
|
73
79
|
/**
|
|
@@ -91,11 +97,13 @@ export declare class ColumnDescriptor<T, TT> {
|
|
|
91
97
|
withFilter(forceSimple?: boolean): FilterDescriptor<any>;
|
|
92
98
|
withFilterLookup(): FilterLookupDescriptor<unknown>;
|
|
93
99
|
withFilterLookupEnum(options?: Array<EnumConstantType>): FilterLookupEnumDescriptor;
|
|
94
|
-
withSort(isEnabled?: boolean): this;
|
|
100
|
+
withSort(isEnabled?: boolean, sortProperty?: string): this;
|
|
95
101
|
withDefaultSort(asc?: boolean): this;
|
|
96
102
|
withCopyToClipboard(hasCopyToCliboard?: boolean): this;
|
|
97
103
|
withTemplate(template: string): this;
|
|
98
104
|
withGetter(getter?: (item: TT, value?: T | null) => unknown): this;
|
|
105
|
+
withMultiline(isMultiline?: boolean): this;
|
|
106
|
+
withValueAsTooltip(valueAsTooltip?: boolean): this;
|
|
99
107
|
localized(existsProperty?: string): this;
|
|
100
108
|
copy(): ColumnDescriptor<T, TT>;
|
|
101
109
|
protected copyFieldsTo(obj: ColumnDescriptor<T, TT>): void;
|
|
@@ -91,10 +91,12 @@ import * as i86 from "./components/form/editor/form-editor.component";
|
|
|
91
91
|
import * as i87 from "./components/action/action.component";
|
|
92
92
|
import * as i88 from "./components/action/editor/action-editor.component";
|
|
93
93
|
import * as i89 from "./components/action/localization/data-language-dropdown.component";
|
|
94
|
+
import * as i90 from "./components/pages/error/error-page.component";
|
|
95
|
+
import * as i91 from "./components/pages/not-found/not-found-page.component";
|
|
94
96
|
export declare const primeNgModules: (typeof RippleModule)[];
|
|
95
97
|
export declare class MngCommonsModule {
|
|
96
98
|
static forRoot(config: MngModuleConfig): ModuleWithProviders<MngCommonsModule>;
|
|
97
99
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngCommonsModule, never>;
|
|
98
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MngCommonsModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.HttpClientModule, typeof i4.ReactiveFormsModule, typeof i5.TranslateModule, typeof i6.FormlyModule, typeof i7.AutoCompleteModule, typeof i8.BreadcrumbModule, typeof i9.ButtonModule, typeof i10.CalendarModule, typeof i11.CardModule, typeof i12.CheckboxModule, typeof i13.ChipModule, typeof i14.ConfirmDialogModule, typeof i15.ConfirmPopupModule, typeof i16.DialogModule, typeof i17.DynamicDialogModule, typeof i18.DropdownModule, typeof i19.FileUploadModule, typeof i20.InputNumberModule, typeof i21.InputMaskModule, typeof i22.InputSwitchModule, typeof i23.InputTextModule, typeof i24.InputTextareaModule, typeof i25.PaginatorModule, typeof i26.RadioButtonModule, typeof i27.RippleModule, typeof i28.SelectButtonModule, typeof i29.SplitButtonModule, typeof i30.TableModule, typeof i31.TagModule, typeof i32.ToastModule, typeof i33.ToggleButtonModule, typeof i34.ToolbarModule, typeof i35.TooltipModule, typeof i36.MessagesModule, typeof i37.ProgressSpinnerModule, typeof i38.TabViewModule, typeof i39.FieldsetModule, typeof i40.MultiSelectModule, typeof i41.SkeletonModule, typeof i42.SlideMenuModule, typeof i43.ImageModule, typeof i44.MngActionRouteComponent, typeof i45.MngComponentDirective, typeof i46.MngTemplateDirective, typeof i47.JsonPathPipe, typeof i48.MngEnumPipe, typeof i49.MngBooleanPipe, typeof i50.MngI18nPropertyPipe, typeof i51.MngParametrizePipe, typeof i52.MngGetterPipe, typeof i53.MngTemplatePipe, typeof i54.MngClassMapPipe, typeof i55.MngEnumeratePipe, typeof i56.MngEnumerateAsyncPipe, typeof i57.MngLocaleDefaultRowClassPipe, typeof i58.MngBreadcrumbComponent, typeof i59.MngFooterComponent, typeof i60.MngMainLayoutComponent, typeof i61.MngMenuComponent, typeof i62.MngMenuItemComponent, typeof i63.MngTopbarComponent, typeof i64.MngTopbarUserComponent, typeof i65.MngVersionComponent, typeof i66.MngAutocompleteComponent, typeof i67.MngDropdownComponent, typeof i68.MngDateRangeComponent, typeof i69.MngFormlyFieldWrapperComponent, typeof i70.MngFormlyFieldNoLabelWrapperComponent, typeof i71.MngFormlyFieldInputComponent, typeof i72.MngFormlyFieldLabelComponent, typeof i73.MngFormlyFieldDropdownComponent, typeof i74.MngFormlyFieldAutocompleteComponent, typeof i75.MngFormlyFieldLookupDialogComponent, typeof i76.MngFormlyFieldTableDialogMultiselectComponent, typeof i77.MngFormlyFieldTableDialogFormComponent, typeof i78.MngFormlyFieldTabsComponent, typeof i79.MngFormlyFieldFieldsetComponent, typeof i80.MngFormlyFieldActionComponent, typeof i81.MngTableComponent, typeof i82.MngTableviewComponent, typeof i83.MngTableColumnValueComponent, typeof i84.MngTableColumnFilterComponent, typeof i85.MngTableviewRouteComponent, typeof i86.MngFormEditorComponent, typeof i87.MngActionComponent, typeof i88.MngActionEditorComponent, typeof i89.MngDataLanguageDropdownComponent], [typeof i7.AutoCompleteModule, typeof i8.BreadcrumbModule, typeof i9.ButtonModule, typeof i10.CalendarModule, typeof i11.CardModule, typeof i12.CheckboxModule, typeof i13.ChipModule, typeof i14.ConfirmDialogModule, typeof i15.ConfirmPopupModule, typeof i16.DialogModule, typeof i17.DynamicDialogModule, typeof i18.DropdownModule, typeof i19.FileUploadModule, typeof i20.InputNumberModule, typeof i21.InputMaskModule, typeof i22.InputSwitchModule, typeof i23.InputTextModule, typeof i24.InputTextareaModule, typeof i25.PaginatorModule, typeof i26.RadioButtonModule, typeof i27.RippleModule, typeof i28.SelectButtonModule, typeof i29.SplitButtonModule, typeof i30.TableModule, typeof i31.TagModule, typeof i32.ToastModule, typeof i33.ToggleButtonModule, typeof i34.ToolbarModule, typeof i35.TooltipModule, typeof i36.MessagesModule, typeof i37.ProgressSpinnerModule, typeof i38.TabViewModule, typeof i39.FieldsetModule, typeof i40.MultiSelectModule, typeof i41.SkeletonModule, typeof i42.SlideMenuModule, typeof i43.ImageModule, typeof i44.MngActionRouteComponent, typeof i45.MngComponentDirective, typeof i46.MngTemplateDirective, typeof i47.JsonPathPipe, typeof i48.MngEnumPipe, typeof i49.MngBooleanPipe, typeof i50.MngI18nPropertyPipe, typeof i51.MngParametrizePipe, typeof i52.MngGetterPipe, typeof i53.MngTemplatePipe, typeof i54.MngClassMapPipe, typeof i55.MngEnumeratePipe, typeof i56.MngEnumerateAsyncPipe, typeof i57.MngLocaleDefaultRowClassPipe, typeof i58.MngBreadcrumbComponent, typeof i59.MngFooterComponent, typeof i60.MngMainLayoutComponent, typeof i61.MngMenuComponent, typeof i62.MngMenuItemComponent, typeof i63.MngTopbarComponent, typeof i64.MngTopbarUserComponent, typeof i65.MngVersionComponent, typeof i66.MngAutocompleteComponent, typeof i67.MngDropdownComponent, typeof i68.MngDateRangeComponent, typeof i69.MngFormlyFieldWrapperComponent, typeof i70.MngFormlyFieldNoLabelWrapperComponent, typeof i71.MngFormlyFieldInputComponent, typeof i72.MngFormlyFieldLabelComponent, typeof i73.MngFormlyFieldDropdownComponent, typeof i74.MngFormlyFieldAutocompleteComponent, typeof i75.MngFormlyFieldLookupDialogComponent, typeof i76.MngFormlyFieldTableDialogMultiselectComponent, typeof i77.MngFormlyFieldTableDialogFormComponent, typeof i78.MngFormlyFieldTabsComponent, typeof i79.MngFormlyFieldFieldsetComponent, typeof i80.MngFormlyFieldActionComponent, typeof i81.MngTableComponent, typeof i82.MngTableviewComponent, typeof i83.MngTableColumnValueComponent, typeof i84.MngTableColumnFilterComponent, typeof i85.MngTableviewRouteComponent, typeof i86.MngFormEditorComponent, typeof i87.MngActionComponent, typeof i88.MngActionEditorComponent, typeof i89.MngDataLanguageDropdownComponent]>;
|
|
100
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MngCommonsModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.HttpClientModule, typeof i4.ReactiveFormsModule, typeof i5.TranslateModule, typeof i6.FormlyModule, typeof i7.AutoCompleteModule, typeof i8.BreadcrumbModule, typeof i9.ButtonModule, typeof i10.CalendarModule, typeof i11.CardModule, typeof i12.CheckboxModule, typeof i13.ChipModule, typeof i14.ConfirmDialogModule, typeof i15.ConfirmPopupModule, typeof i16.DialogModule, typeof i17.DynamicDialogModule, typeof i18.DropdownModule, typeof i19.FileUploadModule, typeof i20.InputNumberModule, typeof i21.InputMaskModule, typeof i22.InputSwitchModule, typeof i23.InputTextModule, typeof i24.InputTextareaModule, typeof i25.PaginatorModule, typeof i26.RadioButtonModule, typeof i27.RippleModule, typeof i28.SelectButtonModule, typeof i29.SplitButtonModule, typeof i30.TableModule, typeof i31.TagModule, typeof i32.ToastModule, typeof i33.ToggleButtonModule, typeof i34.ToolbarModule, typeof i35.TooltipModule, typeof i36.MessagesModule, typeof i37.ProgressSpinnerModule, typeof i38.TabViewModule, typeof i39.FieldsetModule, typeof i40.MultiSelectModule, typeof i41.SkeletonModule, typeof i42.SlideMenuModule, typeof i43.ImageModule, typeof i44.MngActionRouteComponent, typeof i45.MngComponentDirective, typeof i46.MngTemplateDirective, typeof i47.JsonPathPipe, typeof i48.MngEnumPipe, typeof i49.MngBooleanPipe, typeof i50.MngI18nPropertyPipe, typeof i51.MngParametrizePipe, typeof i52.MngGetterPipe, typeof i53.MngTemplatePipe, typeof i54.MngClassMapPipe, typeof i55.MngEnumeratePipe, typeof i56.MngEnumerateAsyncPipe, typeof i57.MngLocaleDefaultRowClassPipe, typeof i58.MngBreadcrumbComponent, typeof i59.MngFooterComponent, typeof i60.MngMainLayoutComponent, typeof i61.MngMenuComponent, typeof i62.MngMenuItemComponent, typeof i63.MngTopbarComponent, typeof i64.MngTopbarUserComponent, typeof i65.MngVersionComponent, typeof i66.MngAutocompleteComponent, typeof i67.MngDropdownComponent, typeof i68.MngDateRangeComponent, typeof i69.MngFormlyFieldWrapperComponent, typeof i70.MngFormlyFieldNoLabelWrapperComponent, typeof i71.MngFormlyFieldInputComponent, typeof i72.MngFormlyFieldLabelComponent, typeof i73.MngFormlyFieldDropdownComponent, typeof i74.MngFormlyFieldAutocompleteComponent, typeof i75.MngFormlyFieldLookupDialogComponent, typeof i76.MngFormlyFieldTableDialogMultiselectComponent, typeof i77.MngFormlyFieldTableDialogFormComponent, typeof i78.MngFormlyFieldTabsComponent, typeof i79.MngFormlyFieldFieldsetComponent, typeof i80.MngFormlyFieldActionComponent, typeof i81.MngTableComponent, typeof i82.MngTableviewComponent, typeof i83.MngTableColumnValueComponent, typeof i84.MngTableColumnFilterComponent, typeof i85.MngTableviewRouteComponent, typeof i86.MngFormEditorComponent, typeof i87.MngActionComponent, typeof i88.MngActionEditorComponent, typeof i89.MngDataLanguageDropdownComponent, typeof i90.MngErrorPageComponent, typeof i91.MngNotFoundPageComponent], [typeof i7.AutoCompleteModule, typeof i8.BreadcrumbModule, typeof i9.ButtonModule, typeof i10.CalendarModule, typeof i11.CardModule, typeof i12.CheckboxModule, typeof i13.ChipModule, typeof i14.ConfirmDialogModule, typeof i15.ConfirmPopupModule, typeof i16.DialogModule, typeof i17.DynamicDialogModule, typeof i18.DropdownModule, typeof i19.FileUploadModule, typeof i20.InputNumberModule, typeof i21.InputMaskModule, typeof i22.InputSwitchModule, typeof i23.InputTextModule, typeof i24.InputTextareaModule, typeof i25.PaginatorModule, typeof i26.RadioButtonModule, typeof i27.RippleModule, typeof i28.SelectButtonModule, typeof i29.SplitButtonModule, typeof i30.TableModule, typeof i31.TagModule, typeof i32.ToastModule, typeof i33.ToggleButtonModule, typeof i34.ToolbarModule, typeof i35.TooltipModule, typeof i36.MessagesModule, typeof i37.ProgressSpinnerModule, typeof i38.TabViewModule, typeof i39.FieldsetModule, typeof i40.MultiSelectModule, typeof i41.SkeletonModule, typeof i42.SlideMenuModule, typeof i43.ImageModule, typeof i44.MngActionRouteComponent, typeof i45.MngComponentDirective, typeof i46.MngTemplateDirective, typeof i47.JsonPathPipe, typeof i48.MngEnumPipe, typeof i49.MngBooleanPipe, typeof i50.MngI18nPropertyPipe, typeof i51.MngParametrizePipe, typeof i52.MngGetterPipe, typeof i53.MngTemplatePipe, typeof i54.MngClassMapPipe, typeof i55.MngEnumeratePipe, typeof i56.MngEnumerateAsyncPipe, typeof i57.MngLocaleDefaultRowClassPipe, typeof i58.MngBreadcrumbComponent, typeof i59.MngFooterComponent, typeof i60.MngMainLayoutComponent, typeof i61.MngMenuComponent, typeof i62.MngMenuItemComponent, typeof i63.MngTopbarComponent, typeof i64.MngTopbarUserComponent, typeof i65.MngVersionComponent, typeof i66.MngAutocompleteComponent, typeof i67.MngDropdownComponent, typeof i68.MngDateRangeComponent, typeof i69.MngFormlyFieldWrapperComponent, typeof i70.MngFormlyFieldNoLabelWrapperComponent, typeof i71.MngFormlyFieldInputComponent, typeof i72.MngFormlyFieldLabelComponent, typeof i73.MngFormlyFieldDropdownComponent, typeof i74.MngFormlyFieldAutocompleteComponent, typeof i75.MngFormlyFieldLookupDialogComponent, typeof i76.MngFormlyFieldTableDialogMultiselectComponent, typeof i77.MngFormlyFieldTableDialogFormComponent, typeof i78.MngFormlyFieldTabsComponent, typeof i79.MngFormlyFieldFieldsetComponent, typeof i80.MngFormlyFieldActionComponent, typeof i81.MngTableComponent, typeof i82.MngTableviewComponent, typeof i83.MngTableColumnValueComponent, typeof i84.MngTableColumnFilterComponent, typeof i85.MngTableviewRouteComponent, typeof i86.MngFormEditorComponent, typeof i87.MngActionComponent, typeof i88.MngActionEditorComponent, typeof i89.MngDataLanguageDropdownComponent, typeof i90.MngErrorPageComponent, typeof i91.MngNotFoundPageComponent]>;
|
|
99
101
|
static ɵinj: i0.ɵɵInjectorDeclaration<MngCommonsModule>;
|
|
100
102
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Message } from 'primeng/api';
|
|
2
|
+
import { IdType } from '../types';
|
|
3
|
+
import { MngError } from './index';
|
|
4
|
+
export declare class MngErrorInternal implements MngError {
|
|
5
|
+
id?: IdType;
|
|
6
|
+
messageCode?: number | string;
|
|
7
|
+
notification?: Message;
|
|
8
|
+
details?: any;
|
|
9
|
+
status?: number;
|
|
10
|
+
statusDescription?: string;
|
|
11
|
+
url?: string;
|
|
12
|
+
cause?: Error;
|
|
13
|
+
stack?: string;
|
|
14
|
+
name: string;
|
|
15
|
+
message: string;
|
|
16
|
+
constructor(message: string, name?: string, options?: {
|
|
17
|
+
id?: IdType;
|
|
18
|
+
messageCode?: number | string;
|
|
19
|
+
notification?: Message;
|
|
20
|
+
details?: any;
|
|
21
|
+
status?: number;
|
|
22
|
+
statusDescription?: string;
|
|
23
|
+
url?: string;
|
|
24
|
+
cause?: Error;
|
|
25
|
+
stack?: string;
|
|
26
|
+
});
|
|
27
|
+
consoleError(): this;
|
|
28
|
+
private generateNotification;
|
|
29
|
+
}
|
package/lib/models/index.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ export declare class ButtonStyleBuilder {
|
|
|
52
52
|
withCustomClass(customClass: string): ButtonStyleBuilder;
|
|
53
53
|
private convertActionLevelToStyleClass;
|
|
54
54
|
private convertSizeToStyleClass;
|
|
55
|
+
copy(): ButtonStyleBuilder;
|
|
55
56
|
get actionLevel(): StyleLevelEnum;
|
|
56
57
|
get size(): StyleSizeEnum;
|
|
57
58
|
get textButton(): boolean;
|
package/lib/utils/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediusinc/mng-commons",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0-rc.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^15.2.6",
|
|
6
6
|
"@angular/core": "^15.2.6",
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
"rxjs": "^7.8.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"file-saver": "^2.0.5",
|
|
18
17
|
"reflect-metadata": "^0.1.13",
|
|
19
18
|
"tslib": "^2.5.0"
|
|
20
19
|
},
|
|
@@ -64,3 +64,38 @@
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
+
|
|
68
|
+
.mng-message-detail-dialog {
|
|
69
|
+
overflow: hidden;
|
|
70
|
+
|
|
71
|
+
.p-dialog-header,
|
|
72
|
+
.p-dialog-content {
|
|
73
|
+
border-left: 12px solid transparent;
|
|
74
|
+
border-radius: 0 !important;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&-info {
|
|
78
|
+
.p-dialog-header,
|
|
79
|
+
.p-dialog-content {
|
|
80
|
+
border-left-color: $infoButtonBg;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
&-success {
|
|
84
|
+
.p-dialog-header,
|
|
85
|
+
.p-dialog-content {
|
|
86
|
+
border-left-color: $successButtonBg;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
&-warning {
|
|
90
|
+
.p-dialog-header,
|
|
91
|
+
.p-dialog-content {
|
|
92
|
+
border-left-color: $warningButtonBg;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
&-error {
|
|
96
|
+
.p-dialog-header,
|
|
97
|
+
.p-dialog-content {
|
|
98
|
+
border-left-color: $errorColor;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|