@harbortouch/skytab-analytics-report-utils 0.42.2 → 0.44.0

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.
@@ -46,6 +46,11 @@ var salesByItemDetailConfig = {
46
46
  hasFooter: false
47
47
  };
48
48
 
49
+ // src/utils/columnGroups.ts
50
+ var getColumnGroupFields = (groups) => [
51
+ ...new Set(groups.flatMap((g) => [...g.baseFields, ...g.lastWeekFields ?? [], ...g.lastYearFields ?? []]))
52
+ ];
53
+
49
54
  // src/reports/constants.ts
50
55
  var FIRST_COLUMN_WIDTH = 240;
51
56
 
@@ -122,9 +127,9 @@ var FIELDS2 = {
122
127
  denominatorField: "taxesAmount"
123
128
  }
124
129
  },
125
- ticketsCount: { type: "number" },
126
- ticketsCountLastWeek: { type: "number" },
127
- ticketsCountLastYear: { type: "number" },
130
+ ticketsCount: { type: "number", footerCalculation: { type: "sum" }, columnKey: "ticketCount" },
131
+ ticketsCountLastWeek: { type: "number", columnKey: "ticketCountVarLw" },
132
+ ticketsCountLastYear: { type: "number", columnKey: "ticketCountVarLy" },
128
133
  guestsCount: { type: "number", columnKey: "guestCount" },
129
134
  guestsVarLW: { type: "number", columnKey: "guestsVarLw" },
130
135
  guestsVarLY: { type: "number", columnKey: "guestsVarLy" },
@@ -178,7 +183,18 @@ var FIELDS2 = {
178
183
  denominatorField: "guestsCount",
179
184
  denominatorAdjustField: "guestsVarLY"
180
185
  }
181
- }
186
+ },
187
+ ticketAvgNetTY: {
188
+ type: "fixedNumber",
189
+ columnKey: "ticketAverage",
190
+ footerCalculation: {
191
+ type: "average",
192
+ numeratorField: "salesAmountNet",
193
+ denominatorField: "ticketsCount"
194
+ }
195
+ },
196
+ ticketsVarLWPct: { type: "percent", columnKey: "ticketCountLwPct", footerCalculation: { type: "none" } },
197
+ ticketsVarLYPct: { type: "percent", columnKey: "ticketCountLyPct", footerCalculation: { type: "none" } }
182
198
  };
183
199
  var COLUMN_GROUPS = [
184
200
  {
@@ -210,38 +226,21 @@ var COLUMN_GROUPS = [
210
226
  lastYearFields: ["guestsVarLY", "guestsVarLYPct"]
211
227
  },
212
228
  {
213
- id: "salesPerGuest",
214
- headerTranslationKey: "table.groups.sales-per-guest",
215
- baseFields: ["salesPerGuestTY"],
229
+ id: "tickets",
230
+ headerTranslationKey: "table.groups.tickets",
231
+ baseFields: ["ticketsCount"],
232
+ lastWeekFields: ["ticketsCountLastWeek", "ticketsVarLWPct"],
233
+ lastYearFields: ["ticketsCountLastYear", "ticketsVarLYPct"]
234
+ },
235
+ {
236
+ id: "other",
237
+ headerTranslationKey: "table.groups.other",
238
+ baseFields: ["ticketAvgNetTY", "salesPerGuestTY"],
216
239
  lastWeekFields: ["salesPerGuestLW"],
217
240
  lastYearFields: ["salesPerGuestLY"]
218
241
  }
219
242
  ];
220
- var SALES_SUMMARY_DEFAULT_VISIBLE_COLUMNS = [
221
- "salesAmountNet",
222
- "salesVarLW",
223
- "salesVarLWPct",
224
- "salesVarLY",
225
- "salesVarLYPct",
226
- "salesAmountGross",
227
- "grossVarLW",
228
- "grossVarLWPct",
229
- "grossVarLY",
230
- "grossVarLYPct",
231
- "taxesAmount",
232
- "taxesVarLW",
233
- "taxesVarLWPct",
234
- "taxesVarLY",
235
- "taxesVarLYPct",
236
- "guestsCount",
237
- "guestsVarLW",
238
- "guestsVarLWPct",
239
- "guestsVarLY",
240
- "guestsVarLYPct",
241
- "salesPerGuestTY",
242
- "salesPerGuestLW",
243
- "salesPerGuestLY"
244
- ];
243
+ var SALES_SUMMARY_DEFAULT_VISIBLE_COLUMNS = getColumnGroupFields(COLUMN_GROUPS);
245
244
  var SALES_SUMMARY_AVAILABLE_COLUMNS = ["groupByName", ...SALES_SUMMARY_DEFAULT_VISIBLE_COLUMNS];
246
245
  var salesSummaryConfig = {
247
246
  fields: FIELDS2,
@@ -249,6 +248,7 @@ var salesSummaryConfig = {
249
248
  defaultVisibleColumns: SALES_SUMMARY_DEFAULT_VISIBLE_COLUMNS,
250
249
  chartFields: SALES_SUMMARY_DEFAULT_VISIBLE_COLUMNS,
251
250
  columnGroups: COLUMN_GROUPS,
251
+ defaultColumnGroups: ["sales", "grossSales", "taxes", "guests", "tickets"],
252
252
  hasFooter: true
253
253
  };
254
254
 
@@ -752,9 +752,21 @@ var enUS = {
752
752
  "common.report-col.total-pay": "Total Pay",
753
753
  "common.report-col.total-pay.short": "Total Pay",
754
754
  "common.report-col.total-pay.info": "Total compensation including wages, overtime, and adjustments",
755
+ "common.report-col.ticket-count-var-lw-pct": "Ticket count \xB1 LW %",
756
+ "common.report-col.ticket-count-var-lw-pct.short": "\xB1 LW %",
757
+ "common.report-col.ticket-count-var-lw-pct.info": "Percentage change in ticket count compared to last week",
758
+ "common.report-col.ticket-count-var-ly-pct": "Ticket count \xB1 LY %",
759
+ "common.report-col.ticket-count-var-ly-pct.short": "\xB1 LY %",
760
+ "common.report-col.ticket-count-var-ly-pct.info": "Percentage change in ticket count compared to last year",
755
761
  "common.report-col.table-name": "Table Name",
756
762
  "common.report-col.table-name.short": "Table Name",
757
763
  "common.report-col.table-name.info": "Table Name if assigned",
764
+ "common.report-col.ticket-count-lw": "Ticket count \xB1 LW",
765
+ "common.report-col.ticket-count-lw.short": "\xB1 LW",
766
+ "common.report-col.ticket-count-lw.info": "Ticket count compared to last week",
767
+ "common.report-col.ticket-count-ly": "Ticket count \xB1 LY",
768
+ "common.report-col.ticket-count-ly.short": "\xB1 LY",
769
+ "common.report-col.ticket-count-ly.info": "Ticket count compared to last year",
758
770
  "common.report-section.revenue-class": "Sales by Revenue Class",
759
771
  "common.report-section.payments": "Payments",
760
772
  "common.report-section.cash": "Expected Closeout Cash",
@@ -820,6 +832,8 @@ var enUS = {
820
832
  "table.groups.gross-sales": "Gross Sales",
821
833
  "table.groups.guests": "Guests",
822
834
  "table.groups.sales-per-guest": "Sales/Guest",
835
+ "table.groups.other": "Other",
836
+ "table.groups.tickets": "Tickets",
823
837
  "employee-timecard.status.active": "Active",
824
838
  "employee-timecard.status.inactive": "Inactive",
825
839
  "employee-timecard.job.break-suffix": " * break"
@@ -1326,9 +1340,21 @@ var enUS2 = {
1326
1340
  "common.report-col.total-pay": "Total Pay",
1327
1341
  "common.report-col.total-pay.short": "Total Pay",
1328
1342
  "common.report-col.total-pay.info": "Total compensation including wages, overtime, and adjustments",
1343
+ "common.report-col.ticket-count-var-lw-pct": "Ticket count \xB1 LW %",
1344
+ "common.report-col.ticket-count-var-lw-pct.short": "\xB1 LW %",
1345
+ "common.report-col.ticket-count-var-lw-pct.info": "Percentage change in ticket count compared to last week",
1346
+ "common.report-col.ticket-count-var-ly-pct": "Ticket count \xB1 LY %",
1347
+ "common.report-col.ticket-count-var-ly-pct.short": "\xB1 LY %",
1348
+ "common.report-col.ticket-count-var-ly-pct.info": "Percentage change in ticket count compared to last year",
1329
1349
  "common.report-col.table-name": "Table Name",
1330
1350
  "common.report-col.table-name.short": "Table Name",
1331
1351
  "common.report-col.table-name.info": "Table Name if assigned",
1352
+ "common.report-col.ticket-count-lw": "Ticket count \xB1 LW",
1353
+ "common.report-col.ticket-count-lw.short": "\xB1 LW",
1354
+ "common.report-col.ticket-count-lw.info": "Ticket count compared to last week",
1355
+ "common.report-col.ticket-count-ly": "Ticket count \xB1 LY",
1356
+ "common.report-col.ticket-count-ly.short": "\xB1 LY",
1357
+ "common.report-col.ticket-count-ly.info": "Ticket count compared to last year",
1332
1358
  "common.report-section.revenue-class": "Sales by Revenue Class",
1333
1359
  "common.report-section.payments": "Payments",
1334
1360
  "common.report-section.cash": "Expected Closeout Cash",
@@ -1394,6 +1420,8 @@ var enUS2 = {
1394
1420
  "table.groups.gross-sales": "Gross Sales",
1395
1421
  "table.groups.guests": "Guests",
1396
1422
  "table.groups.sales-per-guest": "Sales/Guest",
1423
+ "table.groups.other": "Other",
1424
+ "table.groups.tickets": "Tickets",
1397
1425
  "employee-timecard.status.active": "Active",
1398
1426
  "employee-timecard.status.inactive": "Inactive",
1399
1427
  "employee-timecard.job.break-suffix": " * break"
@@ -1900,9 +1928,21 @@ var enUS3 = {
1900
1928
  "common.report-col.total-pay": "Total Pay",
1901
1929
  "common.report-col.total-pay.short": "Total Pay",
1902
1930
  "common.report-col.total-pay.info": "Total compensation including wages, overtime, and adjustments",
1931
+ "common.report-col.ticket-count-var-lw-pct": "Ticket count \xB1 LW %",
1932
+ "common.report-col.ticket-count-var-lw-pct.short": "\xB1 LW %",
1933
+ "common.report-col.ticket-count-var-lw-pct.info": "Percentage change in ticket count compared to last week",
1934
+ "common.report-col.ticket-count-var-ly-pct": "Ticket count \xB1 LY %",
1935
+ "common.report-col.ticket-count-var-ly-pct.short": "\xB1 LY %",
1936
+ "common.report-col.ticket-count-var-ly-pct.info": "Percentage change in ticket count compared to last year",
1903
1937
  "common.report-col.table-name": "Table Name",
1904
1938
  "common.report-col.table-name.short": "Table Name",
1905
1939
  "common.report-col.table-name.info": "Table Name if assigned",
1940
+ "common.report-col.ticket-count-lw": "Ticket count \xB1 LW",
1941
+ "common.report-col.ticket-count-lw.short": "\xB1 LW",
1942
+ "common.report-col.ticket-count-lw.info": "Ticket count compared to last week",
1943
+ "common.report-col.ticket-count-ly": "Ticket count \xB1 LY",
1944
+ "common.report-col.ticket-count-ly.short": "\xB1 LY",
1945
+ "common.report-col.ticket-count-ly.info": "Ticket count compared to last year",
1906
1946
  "common.report-section.revenue-class": "Sales by Revenue Class",
1907
1947
  "common.report-section.payments": "Payments",
1908
1948
  "common.report-section.cash": "Expected Closeout Cash",
@@ -1968,6 +2008,8 @@ var enUS3 = {
1968
2008
  "table.groups.gross-sales": "Gross Sales",
1969
2009
  "table.groups.guests": "Guests",
1970
2010
  "table.groups.sales-per-guest": "Sales/Guest",
2011
+ "table.groups.other": "Other",
2012
+ "table.groups.tickets": "Tickets",
1971
2013
  "employee-timecard.status.active": "Active",
1972
2014
  "employee-timecard.status.inactive": "Inactive",
1973
2015
  "employee-timecard.job.break-suffix": " * break"
@@ -3808,6 +3850,26 @@ var COLUMN_REGISTRY = {
3808
3850
  titleKey: "common.report-col.table-name",
3809
3851
  shortTitleKey: "common.report-col.table-name.short",
3810
3852
  infoTextKey: "common.report-col.table-name.info"
3853
+ },
3854
+ ticketCountLwPct: {
3855
+ titleKey: "common.report-col.ticket-count-var-lw-pct",
3856
+ shortTitleKey: "common.report-col.ticket-count-var-lw-pct.short",
3857
+ infoTextKey: "common.report-col.ticket-count-var-lw-pct.info"
3858
+ },
3859
+ ticketCountLyPct: {
3860
+ titleKey: "common.report-col.ticket-count-var-ly-pct",
3861
+ shortTitleKey: "common.report-col.ticket-count-var-ly-pct.short",
3862
+ infoTextKey: "common.report-col.ticket-count-var-ly-pct.info"
3863
+ },
3864
+ ticketCountVarLw: {
3865
+ titleKey: "common.report-col.ticket-count-lw",
3866
+ shortTitleKey: "common.report-col.ticket-count-lw.short",
3867
+ infoTextKey: "common.report-col.ticket-count-lw.info"
3868
+ },
3869
+ ticketCountVarLy: {
3870
+ titleKey: "common.report-col.ticket-count-ly",
3871
+ shortTitleKey: "common.report-col.ticket-count-ly.short",
3872
+ infoTextKey: "common.report-col.ticket-count-ly.info"
3811
3873
  }
3812
3874
  };
3813
3875
  function getColumnMetadata(key) {
@@ -525,9 +525,21 @@ var enUS = {
525
525
  "common.report-col.total-pay": "Total Pay",
526
526
  "common.report-col.total-pay.short": "Total Pay",
527
527
  "common.report-col.total-pay.info": "Total compensation including wages, overtime, and adjustments",
528
+ "common.report-col.ticket-count-var-lw-pct": "Ticket count \xB1 LW %",
529
+ "common.report-col.ticket-count-var-lw-pct.short": "\xB1 LW %",
530
+ "common.report-col.ticket-count-var-lw-pct.info": "Percentage change in ticket count compared to last week",
531
+ "common.report-col.ticket-count-var-ly-pct": "Ticket count \xB1 LY %",
532
+ "common.report-col.ticket-count-var-ly-pct.short": "\xB1 LY %",
533
+ "common.report-col.ticket-count-var-ly-pct.info": "Percentage change in ticket count compared to last year",
528
534
  "common.report-col.table-name": "Table Name",
529
535
  "common.report-col.table-name.short": "Table Name",
530
536
  "common.report-col.table-name.info": "Table Name if assigned",
537
+ "common.report-col.ticket-count-lw": "Ticket count \xB1 LW",
538
+ "common.report-col.ticket-count-lw.short": "\xB1 LW",
539
+ "common.report-col.ticket-count-lw.info": "Ticket count compared to last week",
540
+ "common.report-col.ticket-count-ly": "Ticket count \xB1 LY",
541
+ "common.report-col.ticket-count-ly.short": "\xB1 LY",
542
+ "common.report-col.ticket-count-ly.info": "Ticket count compared to last year",
531
543
  "common.report-section.revenue-class": "Sales by Revenue Class",
532
544
  "common.report-section.payments": "Payments",
533
545
  "common.report-section.cash": "Expected Closeout Cash",
@@ -593,6 +605,8 @@ var enUS = {
593
605
  "table.groups.gross-sales": "Gross Sales",
594
606
  "table.groups.guests": "Guests",
595
607
  "table.groups.sales-per-guest": "Sales/Guest",
608
+ "table.groups.other": "Other",
609
+ "table.groups.tickets": "Tickets",
596
610
  "employee-timecard.status.active": "Active",
597
611
  "employee-timecard.status.inactive": "Inactive",
598
612
  "employee-timecard.job.break-suffix": " * break"
@@ -1099,9 +1113,21 @@ var enUS2 = {
1099
1113
  "common.report-col.total-pay": "Total Pay",
1100
1114
  "common.report-col.total-pay.short": "Total Pay",
1101
1115
  "common.report-col.total-pay.info": "Total compensation including wages, overtime, and adjustments",
1116
+ "common.report-col.ticket-count-var-lw-pct": "Ticket count \xB1 LW %",
1117
+ "common.report-col.ticket-count-var-lw-pct.short": "\xB1 LW %",
1118
+ "common.report-col.ticket-count-var-lw-pct.info": "Percentage change in ticket count compared to last week",
1119
+ "common.report-col.ticket-count-var-ly-pct": "Ticket count \xB1 LY %",
1120
+ "common.report-col.ticket-count-var-ly-pct.short": "\xB1 LY %",
1121
+ "common.report-col.ticket-count-var-ly-pct.info": "Percentage change in ticket count compared to last year",
1102
1122
  "common.report-col.table-name": "Table Name",
1103
1123
  "common.report-col.table-name.short": "Table Name",
1104
1124
  "common.report-col.table-name.info": "Table Name if assigned",
1125
+ "common.report-col.ticket-count-lw": "Ticket count \xB1 LW",
1126
+ "common.report-col.ticket-count-lw.short": "\xB1 LW",
1127
+ "common.report-col.ticket-count-lw.info": "Ticket count compared to last week",
1128
+ "common.report-col.ticket-count-ly": "Ticket count \xB1 LY",
1129
+ "common.report-col.ticket-count-ly.short": "\xB1 LY",
1130
+ "common.report-col.ticket-count-ly.info": "Ticket count compared to last year",
1105
1131
  "common.report-section.revenue-class": "Sales by Revenue Class",
1106
1132
  "common.report-section.payments": "Payments",
1107
1133
  "common.report-section.cash": "Expected Closeout Cash",
@@ -1167,6 +1193,8 @@ var enUS2 = {
1167
1193
  "table.groups.gross-sales": "Gross Sales",
1168
1194
  "table.groups.guests": "Guests",
1169
1195
  "table.groups.sales-per-guest": "Sales/Guest",
1196
+ "table.groups.other": "Other",
1197
+ "table.groups.tickets": "Tickets",
1170
1198
  "employee-timecard.status.active": "Active",
1171
1199
  "employee-timecard.status.inactive": "Inactive",
1172
1200
  "employee-timecard.job.break-suffix": " * break"
@@ -1673,9 +1701,21 @@ var enUS3 = {
1673
1701
  "common.report-col.total-pay": "Total Pay",
1674
1702
  "common.report-col.total-pay.short": "Total Pay",
1675
1703
  "common.report-col.total-pay.info": "Total compensation including wages, overtime, and adjustments",
1704
+ "common.report-col.ticket-count-var-lw-pct": "Ticket count \xB1 LW %",
1705
+ "common.report-col.ticket-count-var-lw-pct.short": "\xB1 LW %",
1706
+ "common.report-col.ticket-count-var-lw-pct.info": "Percentage change in ticket count compared to last week",
1707
+ "common.report-col.ticket-count-var-ly-pct": "Ticket count \xB1 LY %",
1708
+ "common.report-col.ticket-count-var-ly-pct.short": "\xB1 LY %",
1709
+ "common.report-col.ticket-count-var-ly-pct.info": "Percentage change in ticket count compared to last year",
1676
1710
  "common.report-col.table-name": "Table Name",
1677
1711
  "common.report-col.table-name.short": "Table Name",
1678
1712
  "common.report-col.table-name.info": "Table Name if assigned",
1713
+ "common.report-col.ticket-count-lw": "Ticket count \xB1 LW",
1714
+ "common.report-col.ticket-count-lw.short": "\xB1 LW",
1715
+ "common.report-col.ticket-count-lw.info": "Ticket count compared to last week",
1716
+ "common.report-col.ticket-count-ly": "Ticket count \xB1 LY",
1717
+ "common.report-col.ticket-count-ly.short": "\xB1 LY",
1718
+ "common.report-col.ticket-count-ly.info": "Ticket count compared to last year",
1679
1719
  "common.report-section.revenue-class": "Sales by Revenue Class",
1680
1720
  "common.report-section.payments": "Payments",
1681
1721
  "common.report-section.cash": "Expected Closeout Cash",
@@ -1741,6 +1781,8 @@ var enUS3 = {
1741
1781
  "table.groups.gross-sales": "Gross Sales",
1742
1782
  "table.groups.guests": "Guests",
1743
1783
  "table.groups.sales-per-guest": "Sales/Guest",
1784
+ "table.groups.other": "Other",
1785
+ "table.groups.tickets": "Tickets",
1744
1786
  "employee-timecard.status.active": "Active",
1745
1787
  "employee-timecard.status.inactive": "Inactive",
1746
1788
  "employee-timecard.job.break-suffix": " * break"
@@ -1957,6 +1999,11 @@ var salesByItemDetailConfig = {
1957
1999
  hasFooter: false
1958
2000
  };
1959
2001
 
2002
+ // src/utils/columnGroups.ts
2003
+ var getColumnGroupFields = (groups) => [
2004
+ ...new Set(groups.flatMap((g) => [...g.baseFields, ...g.lastWeekFields ?? [], ...g.lastYearFields ?? []]))
2005
+ ];
2006
+
1960
2007
  // src/reports/constants.ts
1961
2008
  var FIRST_COLUMN_WIDTH = 240;
1962
2009
 
@@ -2033,9 +2080,9 @@ var FIELDS2 = {
2033
2080
  denominatorField: "taxesAmount"
2034
2081
  }
2035
2082
  },
2036
- ticketsCount: { type: "number" },
2037
- ticketsCountLastWeek: { type: "number" },
2038
- ticketsCountLastYear: { type: "number" },
2083
+ ticketsCount: { type: "number", footerCalculation: { type: "sum" }, columnKey: "ticketCount" },
2084
+ ticketsCountLastWeek: { type: "number", columnKey: "ticketCountVarLw" },
2085
+ ticketsCountLastYear: { type: "number", columnKey: "ticketCountVarLy" },
2039
2086
  guestsCount: { type: "number", columnKey: "guestCount" },
2040
2087
  guestsVarLW: { type: "number", columnKey: "guestsVarLw" },
2041
2088
  guestsVarLY: { type: "number", columnKey: "guestsVarLy" },
@@ -2089,7 +2136,18 @@ var FIELDS2 = {
2089
2136
  denominatorField: "guestsCount",
2090
2137
  denominatorAdjustField: "guestsVarLY"
2091
2138
  }
2092
- }
2139
+ },
2140
+ ticketAvgNetTY: {
2141
+ type: "fixedNumber",
2142
+ columnKey: "ticketAverage",
2143
+ footerCalculation: {
2144
+ type: "average",
2145
+ numeratorField: "salesAmountNet",
2146
+ denominatorField: "ticketsCount"
2147
+ }
2148
+ },
2149
+ ticketsVarLWPct: { type: "percent", columnKey: "ticketCountLwPct", footerCalculation: { type: "none" } },
2150
+ ticketsVarLYPct: { type: "percent", columnKey: "ticketCountLyPct", footerCalculation: { type: "none" } }
2093
2151
  };
2094
2152
  var COLUMN_GROUPS = [
2095
2153
  {
@@ -2121,38 +2179,21 @@ var COLUMN_GROUPS = [
2121
2179
  lastYearFields: ["guestsVarLY", "guestsVarLYPct"]
2122
2180
  },
2123
2181
  {
2124
- id: "salesPerGuest",
2125
- headerTranslationKey: "table.groups.sales-per-guest",
2126
- baseFields: ["salesPerGuestTY"],
2182
+ id: "tickets",
2183
+ headerTranslationKey: "table.groups.tickets",
2184
+ baseFields: ["ticketsCount"],
2185
+ lastWeekFields: ["ticketsCountLastWeek", "ticketsVarLWPct"],
2186
+ lastYearFields: ["ticketsCountLastYear", "ticketsVarLYPct"]
2187
+ },
2188
+ {
2189
+ id: "other",
2190
+ headerTranslationKey: "table.groups.other",
2191
+ baseFields: ["ticketAvgNetTY", "salesPerGuestTY"],
2127
2192
  lastWeekFields: ["salesPerGuestLW"],
2128
2193
  lastYearFields: ["salesPerGuestLY"]
2129
2194
  }
2130
2195
  ];
2131
- var SALES_SUMMARY_DEFAULT_VISIBLE_COLUMNS = [
2132
- "salesAmountNet",
2133
- "salesVarLW",
2134
- "salesVarLWPct",
2135
- "salesVarLY",
2136
- "salesVarLYPct",
2137
- "salesAmountGross",
2138
- "grossVarLW",
2139
- "grossVarLWPct",
2140
- "grossVarLY",
2141
- "grossVarLYPct",
2142
- "taxesAmount",
2143
- "taxesVarLW",
2144
- "taxesVarLWPct",
2145
- "taxesVarLY",
2146
- "taxesVarLYPct",
2147
- "guestsCount",
2148
- "guestsVarLW",
2149
- "guestsVarLWPct",
2150
- "guestsVarLY",
2151
- "guestsVarLYPct",
2152
- "salesPerGuestTY",
2153
- "salesPerGuestLW",
2154
- "salesPerGuestLY"
2155
- ];
2196
+ var SALES_SUMMARY_DEFAULT_VISIBLE_COLUMNS = getColumnGroupFields(COLUMN_GROUPS);
2156
2197
  var SALES_SUMMARY_AVAILABLE_COLUMNS = ["groupByName", ...SALES_SUMMARY_DEFAULT_VISIBLE_COLUMNS];
2157
2198
  var salesSummaryConfig = {
2158
2199
  fields: FIELDS2,
@@ -2160,6 +2201,7 @@ var salesSummaryConfig = {
2160
2201
  defaultVisibleColumns: SALES_SUMMARY_DEFAULT_VISIBLE_COLUMNS,
2161
2202
  chartFields: SALES_SUMMARY_DEFAULT_VISIBLE_COLUMNS,
2162
2203
  columnGroups: COLUMN_GROUPS,
2204
+ defaultColumnGroups: ["sales", "grossSales", "taxes", "guests", "tickets"],
2163
2205
  hasFooter: true
2164
2206
  };
2165
2207
 
@@ -3942,6 +3984,26 @@ var COLUMN_REGISTRY = {
3942
3984
  titleKey: "common.report-col.table-name",
3943
3985
  shortTitleKey: "common.report-col.table-name.short",
3944
3986
  infoTextKey: "common.report-col.table-name.info"
3987
+ },
3988
+ ticketCountLwPct: {
3989
+ titleKey: "common.report-col.ticket-count-var-lw-pct",
3990
+ shortTitleKey: "common.report-col.ticket-count-var-lw-pct.short",
3991
+ infoTextKey: "common.report-col.ticket-count-var-lw-pct.info"
3992
+ },
3993
+ ticketCountLyPct: {
3994
+ titleKey: "common.report-col.ticket-count-var-ly-pct",
3995
+ shortTitleKey: "common.report-col.ticket-count-var-ly-pct.short",
3996
+ infoTextKey: "common.report-col.ticket-count-var-ly-pct.info"
3997
+ },
3998
+ ticketCountVarLw: {
3999
+ titleKey: "common.report-col.ticket-count-lw",
4000
+ shortTitleKey: "common.report-col.ticket-count-lw.short",
4001
+ infoTextKey: "common.report-col.ticket-count-lw.info"
4002
+ },
4003
+ ticketCountVarLy: {
4004
+ titleKey: "common.report-col.ticket-count-ly",
4005
+ shortTitleKey: "common.report-col.ticket-count-ly.short",
4006
+ infoTextKey: "common.report-col.ticket-count-ly.info"
3945
4007
  }
3946
4008
  };
3947
4009
  function getColumnMetadata(key) {
@@ -1,4 +1,4 @@
1
- import { R as ReportType, A as AnalyticsField } from '../report-Dn4iDllO.cjs';
1
+ import { R as ReportType, A as AnalyticsField } from '../report-S9pw--Rv.cjs';
2
2
  import { E as ExportFilter, R as ReportMetadata, a as ExportSection } from '../types-D3IyO__4.cjs';
3
3
 
4
4
  declare function resolveRawFiltersToExportFilters(rawFilters: Record<string, (string | number)[] | undefined>, locale: string, reportType?: ReportType): ExportFilter[];
@@ -1,4 +1,4 @@
1
- import { R as ReportType, A as AnalyticsField } from '../report-Dn4iDllO.js';
1
+ import { R as ReportType, A as AnalyticsField } from '../report-S9pw--Rv.js';
2
2
  import { E as ExportFilter, R as ReportMetadata, a as ExportSection } from '../types-D3IyO__4.js';
3
3
 
4
4
  declare function resolveRawFiltersToExportFilters(rawFilters: Record<string, (string | number)[] | undefined>, locale: string, reportType?: ReportType): ExportFilter[];
@@ -8,7 +8,7 @@ import {
8
8
  getReportFormattingLocaleOptions,
9
9
  getReportName,
10
10
  resolveTranslate
11
- } from "../chunk-VWDEJMY3.js";
11
+ } from "../chunk-Z72HAUQJ.js";
12
12
 
13
13
  // src/utils/filter-resolver.ts
14
14
  var ANALYTICS_FIELDS = /* @__PURE__ */ new Set([