@topconsultnpm/sdkui-react-beta 6.11.32 → 6.11.34
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.
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { UserAppSettings } from "@topconsultnpm/sdk-ts-beta";
|
|
2
|
-
import { DeviceType } from "../components";
|
|
3
2
|
export declare class SDKUI_Globals {
|
|
4
3
|
static userAppSettings: UserAppSettings | undefined;
|
|
5
4
|
private static _dataGridShowRowLines;
|
|
@@ -11,5 +10,4 @@ export declare class SDKUI_Globals {
|
|
|
11
10
|
static set dataGridShowColumnLines(theDataGridShowColumnLines: boolean | undefined);
|
|
12
11
|
static get dataGridUseNativeScrollbar(): boolean | undefined;
|
|
13
12
|
static set dataGridUseNativeScrollbar(theDataGridUseNativeScrollbar: boolean | undefined);
|
|
14
|
-
static getListMaxItems(deviceType: DeviceType | undefined): number;
|
|
15
13
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { DeviceType } from "../components";
|
|
2
1
|
export class SDKUI_Globals {
|
|
3
2
|
static get dataGridShowRowLines() { return this._dataGridShowRowLines; }
|
|
4
3
|
static set dataGridShowRowLines(theDataGridShowRowLines) { this._dataGridShowRowLines = theDataGridShowRowLines; }
|
|
@@ -6,5 +5,4 @@ export class SDKUI_Globals {
|
|
|
6
5
|
static set dataGridShowColumnLines(theDataGridShowColumnLines) { this._dataGridShowColumnLines = theDataGridShowColumnLines; }
|
|
7
6
|
static get dataGridUseNativeScrollbar() { return this._dataGridUseNativeScrollbar; }
|
|
8
7
|
static set dataGridUseNativeScrollbar(theDataGridUseNativeScrollbar) { this._dataGridUseNativeScrollbar = theDataGridUseNativeScrollbar; }
|
|
9
|
-
static getListMaxItems(deviceType) { return deviceType === DeviceType.MOBILE ? 8 : 12; }
|
|
10
8
|
}
|
package/lib/helper/helpers.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export { openApps, calcResponsiveDirection, calcResponsiveSizes, getColor, genUn
|
|
|
27
27
|
export declare function moduleVersion(module: moduleTypes): string;
|
|
28
28
|
export declare function buildtype(module: moduleTypes): string;
|
|
29
29
|
export declare function versionAndBuildtypeInfo(module: moduleTypes): string;
|
|
30
|
+
export declare const getListMaxItems: (deviceType: DeviceType | undefined) => number;
|
|
30
31
|
export declare const svgToString: (icon: React.ReactElement) => string;
|
|
31
32
|
export declare function stringIsNullOrEmpty(value: string | undefined): boolean;
|
|
32
33
|
export declare function sleep(ms: number): Promise<void>;
|
package/lib/helper/helpers.js
CHANGED
|
@@ -295,6 +295,7 @@ export function versionAndBuildtypeInfo(module) {
|
|
|
295
295
|
return `${vs[0]}.${vs[1]} PATCH ${vs[2]}`;
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
|
+
export const getListMaxItems = (deviceType) => { return deviceType === DeviceType.MOBILE ? 8 : 12; };
|
|
298
299
|
export const svgToString = (icon) => {
|
|
299
300
|
return ReactDOMServer.renderToString(icon);
|
|
300
301
|
};
|