pace-table-lib 1.0.2 → 1.0.4

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.
@@ -9,3 +9,6 @@ export declare function formatValue(value: any, format: string, decimalValues?:
9
9
  export declare function getFontStyleObj(stylePayload: any): CSSProperties;
10
10
  export declare function interpolateColor(minColor: string, maxColor: string, ratio: number): string;
11
11
  export declare function computeMatrix<T>(rawDataMatrix: number[][], mode: "All" | "Column-wise" | "Row-wise", transformFn: (v: number, min: number, max: number) => T): T[][];
12
+ export declare function compareVal(a: number, op: string, b: number): boolean;
13
+ export declare function applyConditionalFormatting(style: CSSProperties, conFormat?: any): CSSProperties;
14
+ export declare function applyFormat(obj: any, format: any): void;
@@ -1,3 +1,4 @@
1
+ import { CONDITIONAL_FORMAT_FOR } from "./StaticTableTypeDec.types";
1
2
  export declare const TOTAL = "Total";
2
3
  export declare const BORDER_STYLE = "1px solid #ccc";
3
4
  export declare const MONTHS_SHORT: string[];
@@ -62,3 +63,4 @@ export declare const VALUE_FORMAT_OBJ: {
62
63
  readonly COMMA_SHORT: ",";
63
64
  readonly COMMA: "Comma Separated";
64
65
  };
66
+ export declare const ConFormattingTypeMap: Record<CONDITIONAL_FORMAT_FOR, string>;
@@ -155,6 +155,7 @@ type TableStyleConfig = {
155
155
  DataFieldVerticalLineStyle: "solid" | string;
156
156
  DataFieldHorizontalLineStyle: "solid" | string;
157
157
  NumberFormat: "Comma Separated" | string;
158
+ percentageBy?: "Column-wise" | "Row-wise";
158
159
  };
159
160
  KPI: {
160
161
  KPIBaseFormat: "All" | "Column-wise" | "Row-wise";
@@ -230,4 +231,15 @@ type TableStyleConfig = {
230
231
  idOfAppliedStyle: string;
231
232
  };
232
233
  };
234
+ export declare enum CONDITIONAL_FORMAT_FOR {
235
+ VALUE = 0,
236
+ ROW = 1,
237
+ COLUMN = 2
238
+ }
239
+ export declare enum STYLE_FOR {
240
+ CORNER = 0,
241
+ COLUMN = 1,
242
+ ROW = 2,
243
+ DATA_CELL = 3
244
+ }
233
245
  export {};