pace-table-lib 1.0.39 → 1.0.40

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.
@@ -55,8 +55,6 @@ type TableDataTypes = {
55
55
  minValueInRow: number;
56
56
  }[];
57
57
  totalNumberOfRows: number;
58
- rowDateFormatObj?: any;
59
- columnDateFormatObj?: any;
60
58
  };
61
59
  type TableStyleConfig = {
62
60
  ToolTip: {
@@ -233,6 +231,8 @@ type TableStyleConfig = {
233
231
  Styles: {
234
232
  idOfAppliedStyle: string;
235
233
  };
234
+ ColumnDateFormat: any;
235
+ RowDateFormat: any;
236
236
  };
237
237
  export declare enum CONDITIONAL_FORMAT_FOR {
238
238
  VALUE = 0,
@@ -17796,8 +17796,8 @@ function StaticTable({
17796
17796
  if (isFirstOccurrence(dimensionMarks, i, level)) {
17797
17797
  const span = getSpan(dimensionMarks, i, level);
17798
17798
  let colLabel = getCleanString(dimensionMarks[i][level]);
17799
- if (tableData.hasOwnProperty("columnDateFormatObj") && tableData?.columnDateFormatObj) {
17800
- const dFormat = tableData.columnDateFormatObj[level];
17799
+ if (tableStyleProps?.ColumnDateFormat) {
17800
+ const dFormat = tableStyleProps?.ColumnDateFormat[level];
17801
17801
  if (dFormat) {
17802
17802
  colLabel = formatValue(colLabel, dFormat);
17803
17803
  }
@@ -17903,7 +17903,6 @@ function StaticTable({
17903
17903
  // data
17904
17904
  dimensionMarks,
17905
17905
  columnTotalRow,
17906
- tableData.columnDateFormatObj,
17907
17906
  // layout
17908
17907
  fixedRowCount,
17909
17908
  fixedColCount,
@@ -18007,8 +18006,8 @@ function StaticTable({
18007
18006
  if (isFirstOccurrence(marks, i, level)) {
18008
18007
  const span = getSpan(marks, i, level);
18009
18008
  let rowLabel = marks[i][level];
18010
- if (tableData.hasOwnProperty("rowDateFormatObj") && tableData?.rowDateFormatObj) {
18011
- const dFormat = tableData.rowDateFormatObj[level];
18009
+ if (tableStyleProps?.RowDateFormat) {
18010
+ const dFormat = tableStyleProps?.RowDateFormat[level];
18012
18011
  if (dFormat) {
18013
18012
  rowLabel = formatValue(rowLabel, dFormat);
18014
18013
  }