@harbortouch/skytab-analytics-report-utils 0.6.0 → 0.6.2

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.
@@ -6,3 +6,4 @@ export interface ColumnMetadata {
6
6
  }
7
7
  export declare const COLUMN_REGISTRY: Record<ReportColumnKey, ColumnMetadata>;
8
8
  export declare function getColumnMetadata(key: ReportColumnKey): ColumnMetadata;
9
+ export declare function getColumnExportHeaderLabel(colTitle: string, groupTitle: string | null): string;
package/dist/index.cjs CHANGED
@@ -60,6 +60,7 @@ __export(index_exports, {
60
60
  dailySalesTrendsConfig: () => dailySalesTrendsConfig,
61
61
  employeeTimecardConfig: () => employeeTimecardConfig,
62
62
  getColumnAlignment: () => getColumnAlignment,
63
+ getColumnExportHeaderLabel: () => getColumnExportHeaderLabel,
63
64
  getColumnMetadata: () => getColumnMetadata,
64
65
  getReportConfig: () => getReportConfig,
65
66
  isNumericType: () => isNumericType,
@@ -1472,6 +1473,12 @@ var COLUMN_REGISTRY = {
1472
1473
  function getColumnMetadata(key) {
1473
1474
  return COLUMN_REGISTRY[key];
1474
1475
  }
1476
+ function getColumnExportHeaderLabel(colTitle, groupTitle) {
1477
+ if (groupTitle) {
1478
+ return `${groupTitle}: ${colTitle}`;
1479
+ }
1480
+ return colTitle;
1481
+ }
1475
1482
 
1476
1483
  // src/utils/alignment.ts
1477
1484
  function getColumnAlignment(type) {
@@ -1622,6 +1629,7 @@ var dailySalesTaxesConfig = {
1622
1629
  dailySalesTrendsConfig,
1623
1630
  employeeTimecardConfig,
1624
1631
  getColumnAlignment,
1632
+ getColumnExportHeaderLabel,
1625
1633
  getColumnMetadata,
1626
1634
  getReportConfig,
1627
1635
  isNumericType,
package/dist/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  export type { FieldType, ColumnAlignment, FooterCalculationType, FooterCalculation, ColumnPresentationConfig, ColumnGroupConfig, ReportConfig, } from './types';
2
2
  export { type ReportType, Report, getReportConfig } from './report';
3
- export type { ReportColumnKey, ColumnMetadata } from './columns';
4
- export { COLUMN_REGISTRY, getColumnMetadata } from './columns';
3
+ export { type ReportColumnKey, type ColumnMetadata, COLUMN_REGISTRY, getColumnMetadata, getColumnExportHeaderLabel, } from './columns';
5
4
  export { getColumnAlignment, isNumericType } from './utils/alignment';
6
5
  export { calculateReportTotals } from './totals';
7
6
  export type { CalculateReportTotalsOptions } from './totals';
package/dist/index.js CHANGED
@@ -1397,6 +1397,12 @@ var COLUMN_REGISTRY = {
1397
1397
  function getColumnMetadata(key) {
1398
1398
  return COLUMN_REGISTRY[key];
1399
1399
  }
1400
+ function getColumnExportHeaderLabel(colTitle, groupTitle) {
1401
+ if (groupTitle) {
1402
+ return `${groupTitle}: ${colTitle}`;
1403
+ }
1404
+ return colTitle;
1405
+ }
1400
1406
 
1401
1407
  // src/utils/alignment.ts
1402
1408
  function getColumnAlignment(type) {
@@ -1546,6 +1552,7 @@ export {
1546
1552
  dailySalesTrendsConfig,
1547
1553
  employeeTimecardConfig,
1548
1554
  getColumnAlignment,
1555
+ getColumnExportHeaderLabel,
1549
1556
  getColumnMetadata,
1550
1557
  getReportConfig,
1551
1558
  isNumericType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harbortouch/skytab-analytics-report-utils",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "description": "Centralized report column presentation configuration for SkyTab Analytics",
5
5
  "engines": {
6
6
  "node": ">=22.6.0",