bt-core-app 2.0.312 → 2.0.313
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/dist/bt-core-app.js +11133 -11089
- package/dist/index.d.ts +28 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -309,6 +309,11 @@ export declare interface BTBlobStoreDefinition extends StoreDefinition<any, {},
|
|
|
309
309
|
}> {
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
+
export declare interface BTColorizer {
|
|
313
|
+
getColor: () => string;
|
|
314
|
+
getSpecificColor: (ind: number) => string;
|
|
315
|
+
}
|
|
316
|
+
|
|
312
317
|
export { BTColorPickerMenu }
|
|
313
318
|
|
|
314
319
|
export declare interface BTCosmetics {
|
|
@@ -406,6 +411,7 @@ export declare interface BTGlobalBlades {
|
|
|
406
411
|
export declare interface BTGraphs {
|
|
407
412
|
getDataForChartJS: <T>(options: GetXYOptions<T>[], chartType?: ChartType, chartOptions?: any) => GetChartResult;
|
|
408
413
|
getBarChartData: <T>(options: GetBarChartOptions<T>, chartOptions?: any) => GetChartResult;
|
|
414
|
+
getGraphData: <T>(options: GetGraphDataOptions<T>, chartOptions?: any) => GetChartResult;
|
|
409
415
|
getPieData: (labels: string[], values: number[], chartOptions?: any) => GetChartResult;
|
|
410
416
|
getPieChartData: <T>(options: GetBarChartOptions<T>, chartOptions?: any) => GetChartResult;
|
|
411
417
|
getXY: <T>(options: GetXYOptions<T>) => GraphedData[];
|
|
@@ -973,6 +979,18 @@ export declare interface GetChartResult {
|
|
|
973
979
|
|
|
974
980
|
export declare function getColors(): string[];
|
|
975
981
|
|
|
982
|
+
export declare interface GetDataSetOptions<T> {
|
|
983
|
+
backgroundColor?: string;
|
|
984
|
+
borderColor?: string;
|
|
985
|
+
data: T[];
|
|
986
|
+
getBackgroundColor?: (item: T, ind: number, colorizer: BTColorizer) => string;
|
|
987
|
+
getLabelValue: (item: T) => string;
|
|
988
|
+
getValue: (item: T) => number;
|
|
989
|
+
lineLabel?: string;
|
|
990
|
+
noBackgroundColor?: boolean;
|
|
991
|
+
noBorderColor?: boolean;
|
|
992
|
+
}
|
|
993
|
+
|
|
976
994
|
/**
|
|
977
995
|
*
|
|
978
996
|
* @param value converts location to a single string and standardizes state and road names, etc.
|
|
@@ -980,6 +998,15 @@ export declare function getColors(): string[];
|
|
|
980
998
|
*/
|
|
981
999
|
export declare function getGoogleMapsLocationLine(value: any): string;
|
|
982
1000
|
|
|
1001
|
+
export declare interface GetGraphDataOptions<T> {
|
|
1002
|
+
chartType?: ChartType;
|
|
1003
|
+
datasets: GetDataSetOptions<T>[];
|
|
1004
|
+
fillGaps?: boolean;
|
|
1005
|
+
labelFormat?: 'day' | 'week' | 'month' | 'year';
|
|
1006
|
+
labelFormatFilter?: string;
|
|
1007
|
+
labelFormatString?: string;
|
|
1008
|
+
}
|
|
1009
|
+
|
|
983
1010
|
export declare function getImageData(url?: string, throwErrorOnFail?: boolean): Promise<unknown>;
|
|
984
1011
|
|
|
985
1012
|
declare interface GetLabelOptions<T> {
|
|
@@ -1992,9 +2019,7 @@ declare interface UseBlobStoreOptions extends UseStoreOptions {
|
|
|
1992
2019
|
storeName?: string;
|
|
1993
2020
|
}
|
|
1994
2021
|
|
|
1995
|
-
export declare function useColorizer():
|
|
1996
|
-
getColor: () => string;
|
|
1997
|
-
};
|
|
2022
|
+
export declare function useColorizer(): BTColorizer;
|
|
1998
2023
|
|
|
1999
2024
|
export declare function useConfirm(action: any, requireConfirmation?: boolean): Promise<void>;
|
|
2000
2025
|
|
package/package.json
CHANGED