@smartbit4all/ng-client 3.3.147 → 3.3.149
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/esm2020/lib/smart-client/smart-component-api-client.mjs +3 -2
- package/esm2020/lib/smart-component-layout/smart-component-layout.component.mjs +3 -3
- package/esm2020/lib/smart-form/services/smartform.service.mjs +3 -2
- package/esm2020/lib/smart-grid/api/grid-api/model/gridRow.mjs +1 -1
- package/esm2020/lib/smart-table/tables/material-table/material-table.component.mjs +3 -3
- package/esm2020/lib/smart-table/tables/table.mjs +28 -1
- package/esm2020/lib/view-context/utility/smart-style-utility.mjs +61 -0
- package/fesm2015/smartbit4all-ng-client.mjs +186 -99
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +186 -99
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-grid/api/grid-api/model/gridRow.d.ts +5 -0
- package/lib/smart-table/tables/table.d.ts +7 -0
- package/lib/view-context/utility/smart-style-utility.d.ts +12 -0
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.3.149.tgz +0 -0
- package/smartbit4all-ng-client-3.3.147.tgz +0 -0
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ImageResource } from '../../../../view-context/api';
|
|
13
|
+
import { Style } from '../../../../view-context/api/model/style';
|
|
13
14
|
import { UiAction } from '../../../../view-context/api';
|
|
14
15
|
/**
|
|
15
16
|
* This object is a grid row containening the identifier and actions releted with the row.
|
|
@@ -31,4 +32,8 @@ export interface GridRow {
|
|
|
31
32
|
* If the grid can be hierarchical then the children list contains the identifiers of the children rows. The rows are not necessarily included in the page but the client can ask for this. The children is not required to see if it is empty or not set.
|
|
32
33
|
*/
|
|
33
34
|
children?: Array<string>;
|
|
35
|
+
/**
|
|
36
|
+
* If present, this Style will be applied to the row.
|
|
37
|
+
*/
|
|
38
|
+
style?: Style;
|
|
34
39
|
}
|
|
@@ -50,6 +50,13 @@ export declare class Table implements OnInit, OnDestroy {
|
|
|
50
50
|
/** The label for the checkbox on the passed row */
|
|
51
51
|
checkboxLabel(row?: any): string;
|
|
52
52
|
isHighlighted(row: any): boolean;
|
|
53
|
+
getRowClasses(row: any): {
|
|
54
|
+
[className: string]: boolean;
|
|
55
|
+
};
|
|
56
|
+
getRowStyles(row: any): {
|
|
57
|
+
[key: string]: string | number;
|
|
58
|
+
};
|
|
59
|
+
private toCamelCase;
|
|
53
60
|
onRowClick(row: any): void;
|
|
54
61
|
onRowDoubleClick(row: any): void;
|
|
55
62
|
onToggle(element: any, event?: any): Promise<void>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import { Style } from '../api/model/style';
|
|
3
|
+
export declare class SmartStyleUtility {
|
|
4
|
+
static applyStyle(style: Style | undefined, elementRef?: ElementRef, renderer?: Renderer2): void;
|
|
5
|
+
static getNgClasses(style: Style | undefined, classesToAdd?: string[], classesToRemove?: string[]): {
|
|
6
|
+
[className: string]: boolean;
|
|
7
|
+
};
|
|
8
|
+
static getNgStyles(style: Style | undefined): {
|
|
9
|
+
[key: string]: string | number;
|
|
10
|
+
};
|
|
11
|
+
private static toCamelCase;
|
|
12
|
+
}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|