@theseam/ui-common 0.3.13-beta.1 → 0.3.15-beta.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/bundles/theseam-ui-common-datatable.umd.js +53 -4
- package/bundles/theseam-ui-common-datatable.umd.js.map +1 -1
- package/datatable/datatable/datatable.component.d.ts +9 -0
- package/datatable/models/action-item-column-position.d.ts +13 -0
- package/datatable/services/columns-manager.service.d.ts +7 -0
- package/datatable/theseam-ui-common-datatable.metadata.json +1 -1
- package/datatable/utils/create-action-menu-column.d.ts +1 -1
- package/esm2015/datatable/datatable/datatable.component.js +16 -1
- package/esm2015/datatable/datatable-action-menu/datatable-action-menu.component.js +1 -1
- package/esm2015/datatable/models/action-item-column-position.js +5 -0
- package/esm2015/datatable/services/columns-manager.service.js +27 -2
- package/esm2015/datatable/utils/create-action-menu-column.js +4 -3
- package/fesm2015/theseam-ui-common-datatable.js +49 -4
- package/fesm2015/theseam-ui-common-datatable.js.map +1 -1
- package/package.json +2 -2
- package/styles/vendor/ngx-datatable/_ngx-datatable.scss +57 -14
- package/styles/vendor/ngx-datatable/_themes/bootstrap/_variables.scss +33 -5
|
@@ -20,6 +20,7 @@ import { TheSeamDatatableColumn } from '../models/table-column';
|
|
|
20
20
|
import { ColumnsManagerService } from '../services/columns-manager.service';
|
|
21
21
|
import { DatatablePreferencesService } from '../services/datatable-preferences.service';
|
|
22
22
|
import { ColumnsAlterationsManagerService } from '../services/columns-alterations-manager.service';
|
|
23
|
+
import { ActionItemColumnPosition } from '../models/action-item-column-position';
|
|
23
24
|
/**
|
|
24
25
|
* NOTE: This is still being worked on. I am trying to figure out this model
|
|
25
26
|
* because `ngx-datatable` just uses an untyped object and sets properties in
|
|
@@ -135,6 +136,14 @@ export declare class DatatableComponent implements OnInit, OnDestroy, TheSeamDat
|
|
|
135
136
|
scrollbarV: boolean;
|
|
136
137
|
scrollbarH: boolean;
|
|
137
138
|
set dataSource(value: DataSource<any> | any[] | undefined | null);
|
|
139
|
+
/**
|
|
140
|
+
* Sets position behavior for optional Action Menu Button column.
|
|
141
|
+
*
|
|
142
|
+
* Defaults to `frozenRight`.
|
|
143
|
+
*/
|
|
144
|
+
get actionItemColumnPosition(): ActionItemColumnPosition | undefined;
|
|
145
|
+
set actionItemColumnPosition(value: ActionItemColumnPosition | undefined);
|
|
146
|
+
private _actionItemColumnPosition;
|
|
138
147
|
readonly scroll: EventEmitter<any>;
|
|
139
148
|
readonly activate: EventEmitter<any>;
|
|
140
149
|
readonly select: EventEmitter<any>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const ActionItemColumnPosition: readonly ["frozenLeft", "frozenRight", "staticLeft", "staticRight"];
|
|
2
|
+
/**
|
|
3
|
+
* If `frozenLeft`, action item column will be fixed to the left side of the table.
|
|
4
|
+
*
|
|
5
|
+
* If `frozenRight`, action item column will be fixed to the right side of the table.
|
|
6
|
+
*
|
|
7
|
+
* If `staticLeft`, action item column will be the first static column on the left side of the table.
|
|
8
|
+
*
|
|
9
|
+
* If `staticRight`, action item column will be the last static column on the right side of the table.
|
|
10
|
+
*/
|
|
11
|
+
export declare type ActionItemColumnPosition = typeof ActionItemColumnPosition[number];
|
|
12
|
+
export declare function isActionItemColumnPosition(input: unknown): input is ActionItemColumnPosition;
|
|
13
|
+
export {};
|
|
@@ -5,6 +5,7 @@ import { DatatableColumnComponent } from '../datatable-column/datatable-column.c
|
|
|
5
5
|
import { DatatableRowActionItemDirective } from '../directives/datatable-row-action-item.directive';
|
|
6
6
|
import { TheSeamDatatableColumn } from '../models/table-column';
|
|
7
7
|
import { DatatableColumnChangesService } from './datatable-column-changes.service';
|
|
8
|
+
import { ActionItemColumnPosition } from '../models/action-item-column-position';
|
|
8
9
|
export declare type InternalColumnsGetter = () => TableColumn[];
|
|
9
10
|
export declare class ColumnsManagerService {
|
|
10
11
|
private readonly _differs;
|
|
@@ -20,6 +21,7 @@ export declare class ColumnsManagerService {
|
|
|
20
21
|
private _selectionType;
|
|
21
22
|
private _rowActionItem;
|
|
22
23
|
private _actionMenuCellTpl;
|
|
24
|
+
private _actionItemColumnPosition;
|
|
23
25
|
private _blankHeaderTpl;
|
|
24
26
|
private _treeToggleTpl;
|
|
25
27
|
private _headerTpl;
|
|
@@ -32,6 +34,7 @@ export declare class ColumnsManagerService {
|
|
|
32
34
|
setSelectionType(selectionType: SelectionType | undefined): void;
|
|
33
35
|
getSelectionType(): SelectionType | undefined;
|
|
34
36
|
setRowActionItem(rowActionItem: DatatableRowActionItemDirective | undefined): void;
|
|
37
|
+
setActionItemColumnPosition(actionItemColumnPosition: ActionItemColumnPosition | undefined): void;
|
|
35
38
|
setActionMenuCellTpl(actionMenuCellTpl: TemplateRef<DataTableColumnDirective> | undefined): void;
|
|
36
39
|
setBlankHeaderTpl(blankHeaderTpl: TemplateRef<DataTableColumnHeaderDirective> | undefined): void;
|
|
37
40
|
setTreeToggleTpl(treeToggleTpl: TemplateRef<DataTableColumnCellTreeToggle> | undefined): void;
|
|
@@ -49,6 +52,10 @@ export declare class ColumnsManagerService {
|
|
|
49
52
|
private _hasColumnsChanged;
|
|
50
53
|
private _shouldAddCheckboxColumn;
|
|
51
54
|
private _shouldAddRowActionColumn;
|
|
55
|
+
private _rowActionColumnIsFrozenLeft;
|
|
56
|
+
private _rowActionColumnIsFrozenRight;
|
|
57
|
+
private _rowActionColumnIsStaticLeft;
|
|
58
|
+
private _rowActionColumnIsStaticRight;
|
|
52
59
|
private _shouldAddTreeToggleColumn;
|
|
53
60
|
private _shouldAddHeaderTemplate;
|
|
54
61
|
private _shouldAddCellTypeSelectorTpl;
|