@mediusinc/mng-commons 3.0.0-rc.6 → 3.0.0-rc.8
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/esm2022/lib/components/tableview/table/table.component.mjs +3 -3
- package/esm2022/lib/descriptors/table/table.descriptor.mjs +21 -3
- package/esm2022/lib/services/logger.service.mjs +2 -2
- package/esm2022/lib/services/router.service.mjs +106 -25
- package/fesm2022/mediusinc-mng-commons.mjs +126 -28
- package/fesm2022/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/descriptors/table/table.descriptor.d.ts +12 -2
- package/lib/services/router.service.d.ts +17 -2
- package/package.json +1 -1
- package/scss/mng-overrides/_theme_tableview.scss +4 -0
|
@@ -31,6 +31,8 @@ export declare class TableDescriptor<T> {
|
|
|
31
31
|
private _hasGridlines;
|
|
32
32
|
private _hasResizableColumns;
|
|
33
33
|
private _columnResizeMode;
|
|
34
|
+
private _selectionColumnFrozen?;
|
|
35
|
+
private _actionColumnFrozen?;
|
|
34
36
|
private _headerClassName?;
|
|
35
37
|
private _rowClassName?;
|
|
36
38
|
private _rowClassNameMapFn?;
|
|
@@ -78,6 +80,8 @@ export declare class TableDescriptor<T> {
|
|
|
78
80
|
get columnResizeMode(): "fit" | "expand";
|
|
79
81
|
get rowClassName(): string | undefined;
|
|
80
82
|
get rowClassNameMapFn(): ((className?: string | undefined, item?: T | undefined) => string) | undefined;
|
|
83
|
+
get selectionColumnFrozen(): boolean | undefined;
|
|
84
|
+
get actionColumnFrozen(): boolean | undefined;
|
|
81
85
|
get headerClassName(): string | undefined;
|
|
82
86
|
get isLocalized(): boolean;
|
|
83
87
|
get localizationLocaleProperty(): string | undefined;
|
|
@@ -122,10 +126,16 @@ export declare class TableDescriptor<T> {
|
|
|
122
126
|
withGridlines(gridlines: boolean): this;
|
|
123
127
|
/**
|
|
124
128
|
* Method that enables/disabled column resize feature with columnResizeMode on all columns.
|
|
125
|
-
* @param resizableColumns
|
|
126
|
-
* @param columnResizeMode
|
|
129
|
+
* @param resizableColumns True if enabled
|
|
130
|
+
* @param columnResizeMode 'fit' or 'expand' mode
|
|
127
131
|
*/
|
|
128
132
|
withColumnsResizable(resizableColumns?: boolean, columnResizeMode?: 'fit' | 'expand'): this;
|
|
133
|
+
/**
|
|
134
|
+
* Sets column to (un)frozen.
|
|
135
|
+
* @param selectionColumnFrozen True to freeze selection column, false to unfreeze it.
|
|
136
|
+
* @param actionColumnFrozen True to freeze action column, false to unfreeze it.
|
|
137
|
+
*/
|
|
138
|
+
withColumnFrozen(selectionColumnFrozen?: boolean, actionColumnFrozen?: boolean): this;
|
|
129
139
|
withRowClassName(rowClassName?: string, classNameMapFn?: (className?: string, item?: T) => string): this;
|
|
130
140
|
withHeaderClassName(headerClassName: string): this;
|
|
131
141
|
withLocalized(): this;
|
|
@@ -3,9 +3,10 @@ import { Observable } from 'rxjs';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class MngRouterService {
|
|
5
5
|
private router;
|
|
6
|
+
private readonly logger;
|
|
7
|
+
private readonly routesLoadedPropKey;
|
|
6
8
|
private currentNavigationPath?;
|
|
7
|
-
private
|
|
8
|
-
private currentNavigationConfigLoaded?;
|
|
9
|
+
private currentNavigationModuleKeys;
|
|
9
10
|
private lazyLoadedRoutesConfig;
|
|
10
11
|
constructor(router: Router);
|
|
11
12
|
getRouteLoadedChildren(path: string | Array<string>): Routes | undefined;
|
|
@@ -15,6 +16,20 @@ export declare class MngRouterService {
|
|
|
15
16
|
private finishNavigation;
|
|
16
17
|
private markNavigationConfigLoad;
|
|
17
18
|
private getLoadedRoutesFromRoute;
|
|
19
|
+
/**
|
|
20
|
+
* Search for route config by module path by recursive scanning of router config tree.
|
|
21
|
+
* @param modulePath Path of module that is searched.
|
|
22
|
+
* @param routes Routes to be scanned. If not provided, it starts on root router config.
|
|
23
|
+
* @private
|
|
24
|
+
*/
|
|
25
|
+
private findRouteInRouteConfig;
|
|
26
|
+
/**
|
|
27
|
+
* Finds longest path match of source to match string. If match is '', it is considered as a match in Angular routing.
|
|
28
|
+
* @param source Source string from on which comparison is based.
|
|
29
|
+
* @param match Match string to which the source is matched to.
|
|
30
|
+
* @private
|
|
31
|
+
*/
|
|
32
|
+
private findLongestPathMatch;
|
|
18
33
|
private getOrCreateRouteForModule;
|
|
19
34
|
private getModulePathFromRouterLink;
|
|
20
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngRouterService, never>;
|
package/package.json
CHANGED