commons-shared-web-ui 0.0.5 → 0.0.6
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/index.d.ts
CHANGED
|
@@ -1885,6 +1885,8 @@ interface TableColumn {
|
|
|
1885
1885
|
sticky?: boolean;
|
|
1886
1886
|
labelPath?: string;
|
|
1887
1887
|
dateFormat?: string;
|
|
1888
|
+
clickAction?: 'route' | 'callback';
|
|
1889
|
+
clickRoute?: string;
|
|
1888
1890
|
}
|
|
1889
1891
|
interface TableFilter {
|
|
1890
1892
|
key: string;
|
|
@@ -1963,7 +1965,8 @@ interface TableConfig {
|
|
|
1963
1965
|
maxHeight?: string;
|
|
1964
1966
|
stickyHeader?: boolean;
|
|
1965
1967
|
stickyColumnCount?: number;
|
|
1966
|
-
|
|
1968
|
+
token?: string;
|
|
1969
|
+
tokenHeader?: string;
|
|
1967
1970
|
}
|
|
1968
1971
|
interface SearchConfig {
|
|
1969
1972
|
enabled: boolean;
|
|
@@ -1995,7 +1998,10 @@ declare class SmartTableComponent implements OnInit, OnChanges, AfterViewInit, O
|
|
|
1995
1998
|
value: any;
|
|
1996
1999
|
}>;
|
|
1997
2000
|
rowSelect: EventEmitter<any[]>;
|
|
1998
|
-
|
|
2001
|
+
columnClick: EventEmitter<{
|
|
2002
|
+
row: any;
|
|
2003
|
+
column: string;
|
|
2004
|
+
}>;
|
|
1999
2005
|
data: any[];
|
|
2000
2006
|
totalItems: number;
|
|
2001
2007
|
currentPage: number;
|
|
@@ -2044,9 +2050,10 @@ declare class SmartTableComponent implements OnInit, OnChanges, AfterViewInit, O
|
|
|
2044
2050
|
private calculateStickyPositions;
|
|
2045
2051
|
private toTitleCase;
|
|
2046
2052
|
get columnCount(): number;
|
|
2047
|
-
|
|
2053
|
+
onColumnClick(row: any, col: TableColumn): void;
|
|
2054
|
+
private getHeaders;
|
|
2048
2055
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartTableComponent, never>;
|
|
2049
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SmartTableComponent, "lib-smart-table", never, { "config": { "alias": "config"; "required": false; }; }, { "action": "action"; "topAction": "topAction"; "filterChange": "filterChange"; "rowSelect": "rowSelect"; "
|
|
2056
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SmartTableComponent, "lib-smart-table", never, { "config": { "alias": "config"; "required": false; }; }, { "action": "action"; "topAction": "topAction"; "filterChange": "filterChange"; "rowSelect": "rowSelect"; "columnClick": "columnClick"; }, never, never, false, never>;
|
|
2050
2057
|
}
|
|
2051
2058
|
|
|
2052
2059
|
declare class SmartTableModule {
|
package/package.json
CHANGED
|
@@ -22,8 +22,11 @@ $smart-table-theme-defaults: (
|
|
|
22
22
|
// Row Colors
|
|
23
23
|
row-bg: #ffffff,
|
|
24
24
|
row-hover-bg: #f9f9f9,
|
|
25
|
+
cell-hover-bg: #f0f0f0,
|
|
25
26
|
row-selected-bg: #f3e5f5,
|
|
26
27
|
|
|
28
|
+
|
|
29
|
+
|
|
27
30
|
// Header Styling
|
|
28
31
|
header-bg: #f5f5f5,
|
|
29
32
|
header-color: #333333,
|
|
@@ -130,6 +133,7 @@ $smart-table-theme-defaults: (
|
|
|
130
133
|
// --- Rows ---
|
|
131
134
|
--st-row-bg: #{map.get($theme, row-bg)};
|
|
132
135
|
--st-row-hover-bg: #{map.get($theme, row-hover-bg)};
|
|
136
|
+
--st-cell-hover-bg: #{map.get($theme, cell-hover-bg)};
|
|
133
137
|
--st-row-selected-bg: #{map.get($theme, row-selected-bg)};
|
|
134
138
|
|
|
135
139
|
// --- Header ---
|