bt-core-app 2.0.310 → 2.0.312

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/index.d.ts CHANGED
@@ -406,6 +406,8 @@ export declare interface BTGlobalBlades {
406
406
  export declare interface BTGraphs {
407
407
  getDataForChartJS: <T>(options: GetXYOptions<T>[], chartType?: ChartType, chartOptions?: any) => GetChartResult;
408
408
  getBarChartData: <T>(options: GetBarChartOptions<T>, chartOptions?: any) => GetChartResult;
409
+ getPieData: (labels: string[], values: number[], chartOptions?: any) => GetChartResult;
410
+ getPieChartData: <T>(options: GetBarChartOptions<T>, chartOptions?: any) => GetChartResult;
409
411
  getXY: <T>(options: GetXYOptions<T>) => GraphedData[];
410
412
  getRawXY: <T>(options: GetRawXYOptions<T>) => GraphedData[];
411
413
  }
@@ -503,8 +505,8 @@ export declare interface ChartJSDataPoint {
503
505
  }
504
506
 
505
507
  export declare interface ChartJSDataSet {
506
- backgroundColor?: string;
507
- borderColor?: string;
508
+ backgroundColor?: string | string[];
509
+ borderColor?: string | string[];
508
510
  data: number[] | any[][] | ChartJSDataPoint[] | any[];
509
511
  label?: string;
510
512
  parsing?: ChartJSParsing;
@@ -520,7 +522,7 @@ export declare interface ChartJSParsing {
520
522
  xAxisKey?: string;
521
523
  }
522
524
 
523
- export declare type ChartType = 'line' | 'bar';
525
+ export declare type ChartType = 'line' | 'bar' | 'pie';
524
526
 
525
527
  export declare function checkImage(url: string, onGood: (this: GlobalEventHandlers, ev: Event) => void, onBad: OnErrorEventHandler): void;
526
528
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "2.0.310",
3
+ "version": "2.0.312",
4
4
  "description": "Core app tools for some basic features like navigation, authentication, server apis, and cosmetics",
5
5
  "homepage": "https://github.com/BlitzItTech/bt-core",
6
6
  "bugs": {