@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.
@@ -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
- withColumnsReorderable(columnsReorderable?: boolean): this;
107
- withColumnsToggleable(columnsToggleable?: boolean): this;
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
- withResizableColumns(resizableColumns?: boolean, columnResizeMode?: 'fit' | 'expand'): this;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediusinc/mng-commons",
3
- "version": "3.0.0-rc.1",
3
+ "version": "3.0.0-rc.3",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^16.0.0",
6
6
  "@angular/common": "^16.0.0",
@@ -62,3 +62,11 @@
62
62
  }
63
63
  }
64
64
  }
65
+
66
+ .mng-table-columns-multiselect {
67
+ width: 36px;
68
+
69
+ .p-multiselect-label-container {
70
+ width: 0;
71
+ }
72
+ }