@mediusinc/mng-commons 3.0.0-rc.1 → 3.0.0-rc.3
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/README.md +8 -7
- package/esm2022/lib/components/action/action.component.mjs +3 -3
- package/esm2022/lib/components/tableview/table/table.component.mjs +3 -3
- package/esm2022/lib/descriptors/action/action-button.descriptor.mjs +10 -2
- package/esm2022/lib/descriptors/table/table.descriptor.mjs +17 -4
- package/fesm2022/mediusinc-mng-commons.mjs +29 -8
- package/fesm2022/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/descriptors/action/action-button.descriptor.d.ts +4 -1
- package/lib/descriptors/table/table.descriptor.d.ts +16 -3
- package/package.json +1 -1
- package/scss/mng-overrides/_theme_tableview.scss +8 -0
|
@@ -6,17 +6,20 @@ export declare class ActionButtonDescriptor {
|
|
|
6
6
|
private _styleClass;
|
|
7
7
|
private _badge?;
|
|
8
8
|
private _tooltip?;
|
|
9
|
+
private _tooltipPosition?;
|
|
9
10
|
withLabel(label?: string | null): this;
|
|
10
11
|
withIcon(icon: string | null): this;
|
|
11
12
|
withIconPosition(iconPosition: 'left' | 'right'): this;
|
|
12
13
|
withStyleClass(style: ButtonStyleBuilder): this;
|
|
13
14
|
withBadge(badge: string): this;
|
|
14
|
-
withTooltip(tooltip: string): this;
|
|
15
|
+
withTooltip(tooltip: string, position?: 'top' | 'bottom' | 'left' | 'right'): this;
|
|
16
|
+
withTooltipPosition(position: 'top' | 'bottom' | 'left' | 'right'): this;
|
|
15
17
|
get label(): string | null | undefined;
|
|
16
18
|
get icon(): string | null | undefined;
|
|
17
19
|
get iconPosition(): "left" | "right";
|
|
18
20
|
get styleClass(): ButtonStyleBuilder;
|
|
19
21
|
get badge(): string | undefined;
|
|
20
22
|
get tooltip(): string | undefined;
|
|
23
|
+
get tooltipPosition(): "top" | "bottom" | "left" | "right" | undefined;
|
|
21
24
|
copy(): ActionButtonDescriptor;
|
|
22
25
|
}
|
|
@@ -103,8 +103,16 @@ export declare class TableDescriptor<T> {
|
|
|
103
103
|
withHideHeader(hideHeader?: boolean): this;
|
|
104
104
|
withDataKeyProperty(property: string): this;
|
|
105
105
|
withLoading(text?: string, icon?: string | null): this;
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
/**
|
|
107
|
+
* Helper method that enables/disables reorderable property on all columns currently in the descriptor.
|
|
108
|
+
* @param columnsReorderable: boolean
|
|
109
|
+
*/
|
|
110
|
+
withCurrentColumnsReorderable(columnsReorderable?: boolean): this;
|
|
111
|
+
/**
|
|
112
|
+
* Helper method that enables/disables toggleable property on all columns currently in the descriptor.
|
|
113
|
+
* @param columnsToggleable: boolean
|
|
114
|
+
*/
|
|
115
|
+
withCurrentColumnsToggleable(columnsToggleable?: boolean): this;
|
|
108
116
|
withDefaultSort(property: string, asc?: boolean): this;
|
|
109
117
|
withClassName(className: string): this;
|
|
110
118
|
withSize(size?: TableSizeEnum): this;
|
|
@@ -112,7 +120,12 @@ export declare class TableDescriptor<T> {
|
|
|
112
120
|
withRowHeight(rowHeight: number): this;
|
|
113
121
|
withHover(hover: boolean): this;
|
|
114
122
|
withGridlines(gridlines: boolean): this;
|
|
115
|
-
|
|
123
|
+
/**
|
|
124
|
+
* Method that enables/disabled column resize feature with columnResizeMode on all columns.
|
|
125
|
+
* @param resizableColumns: boolean
|
|
126
|
+
* @param columnResizeMode: 'fit' | 'expand' = 'fit'
|
|
127
|
+
*/
|
|
128
|
+
withColumnsResizable(resizableColumns?: boolean, columnResizeMode?: 'fit' | 'expand'): this;
|
|
116
129
|
withRowClassName(rowClassName?: string, classNameMapFn?: (className?: string, item?: T) => string): this;
|
|
117
130
|
withHeaderClassName(headerClassName: string): this;
|
|
118
131
|
withLocalized(): this;
|
package/package.json
CHANGED