@quillsql/react 2.12.31 → 2.12.33

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.
Files changed (44) hide show
  1. package/dist/cjs/hooks/useQuill.d.ts.map +1 -1
  2. package/dist/cjs/hooks/useQuill.js +2 -2
  3. package/dist/cjs/utils/dataProcessing.d.ts +1 -1
  4. package/dist/cjs/utils/dataProcessing.d.ts.map +1 -1
  5. package/dist/cjs/utils/dataProcessing.js +7 -1
  6. package/dist/esm/hooks/useQuill.d.ts.map +1 -1
  7. package/dist/esm/hooks/useQuill.js +3 -3
  8. package/dist/esm/utils/dataProcessing.d.ts +1 -1
  9. package/dist/esm/utils/dataProcessing.d.ts.map +1 -1
  10. package/dist/esm/utils/dataProcessing.js +7 -1
  11. package/package.json +1 -1
  12. package/dist/esm/components/ReportBuilder/convert.uspec.d.ts +0 -2
  13. package/dist/esm/components/ReportBuilder/convert.uspec.d.ts.map +0 -1
  14. package/dist/esm/components/ReportBuilder/convert.uspec.js +0 -1419
  15. package/dist/esm/test-utils/constants.d.ts +0 -56
  16. package/dist/esm/test-utils/constants.d.ts.map +0 -1
  17. package/dist/esm/test-utils/constants.js +0 -271
  18. package/dist/esm/test-utils/generators.d.ts +0 -4
  19. package/dist/esm/test-utils/generators.d.ts.map +0 -1
  20. package/dist/esm/test-utils/generators.js +0 -37
  21. package/dist/esm/utils/astFilterProcessing.uspec.d.ts +0 -2
  22. package/dist/esm/utils/astFilterProcessing.uspec.d.ts.map +0 -1
  23. package/dist/esm/utils/astFilterProcessing.uspec.js +0 -2877
  24. package/dist/esm/utils/columnProcessing.uspec.d.ts +0 -2
  25. package/dist/esm/utils/columnProcessing.uspec.d.ts.map +0 -1
  26. package/dist/esm/utils/columnProcessing.uspec.js +0 -65
  27. package/dist/esm/utils/dataProcessing.uspec.d.ts +0 -2
  28. package/dist/esm/utils/dataProcessing.uspec.d.ts.map +0 -1
  29. package/dist/esm/utils/dataProcessing.uspec.js +0 -205
  30. package/dist/esm/utils/filterProcessing.uspec.d.ts +0 -2
  31. package/dist/esm/utils/filterProcessing.uspec.d.ts.map +0 -1
  32. package/dist/esm/utils/filterProcessing.uspec.js +0 -245
  33. package/dist/esm/utils/queryConstructor.uspec.d.ts +0 -2
  34. package/dist/esm/utils/queryConstructor.uspec.d.ts.map +0 -1
  35. package/dist/esm/utils/queryConstructor.uspec.js +0 -223
  36. package/dist/esm/utils/report.ispec.d.ts +0 -2
  37. package/dist/esm/utils/report.ispec.d.ts.map +0 -1
  38. package/dist/esm/utils/report.ispec.js +0 -46
  39. package/dist/esm/utils/report.uspec.d.ts +0 -2
  40. package/dist/esm/utils/report.uspec.d.ts.map +0 -1
  41. package/dist/esm/utils/report.uspec.js +0 -66
  42. package/dist/esm/utils/tableProcessing.ispec.d.ts +0 -2
  43. package/dist/esm/utils/tableProcessing.ispec.d.ts.map +0 -1
  44. package/dist/esm/utils/tableProcessing.ispec.js +0 -61
@@ -1,56 +0,0 @@
1
- import { Pivot } from '../internals/ReportBuilder/PivotModal';
2
- import { Column } from '../models/Columns';
3
- import { QuillReportInternal } from '../models/Report';
4
- export declare const DEFAULT_DASHBOARD_DATE_FILTER: {
5
- startDate: string;
6
- endDate: string;
7
- filterType: string;
8
- options: {
9
- label: string;
10
- value: string;
11
- }[];
12
- field: string;
13
- label: string;
14
- preset: {
15
- label: string;
16
- };
17
- comparison: boolean;
18
- start: string;
19
- end: string;
20
- };
21
- export declare const DEFAULT_COMPARISON_DATE_FILTER: {
22
- startDate: string;
23
- endDate: string;
24
- filterType: string;
25
- options: {
26
- label: string;
27
- value: string;
28
- }[];
29
- field: string;
30
- label: string;
31
- preset: {
32
- label: string;
33
- };
34
- comparison: boolean;
35
- comparisonRange: {
36
- startDate: string;
37
- endDate: string;
38
- value: string;
39
- start: string;
40
- end: string;
41
- };
42
- start: string;
43
- end: string;
44
- };
45
- export declare const GENERIC_REPORT_INTERNAL: QuillReportInternal;
46
- export declare const TWO_D_PIVOT: {
47
- pivot: Pivot;
48
- pivotRows: any[];
49
- pivotColumns: Column[];
50
- };
51
- export declare const ONE_D_PIVOT: {
52
- pivot: Pivot;
53
- pivotRows: any[];
54
- pivotColumns: Column[];
55
- };
56
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/test-utils/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,uCAAuC,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;CA8CzC,CAAC;AAEF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;CAqD1C,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,mBA6DrC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE;IACxB,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,GAAG,EAAE,CAAC;IACjB,YAAY,EAAE,MAAM,EAAE,CAAC;CAiExB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE;IACxB,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,GAAG,EAAE,CAAC;IACjB,YAAY,EAAE,MAAM,EAAE,CAAC;CA2CxB,CAAC"}
@@ -1,271 +0,0 @@
1
- export const DEFAULT_DASHBOARD_DATE_FILTER = {
2
- startDate: '2024-05-09T07:00:00.000Z',
3
- endDate: '2024-08-08T06:59:59.999Z',
4
- filterType: 'date_range',
5
- options: [
6
- {
7
- label: 'This week',
8
- value: 'THIS_WEEK',
9
- },
10
- {
11
- label: 'This month',
12
- value: 'THIS_MONTH',
13
- },
14
- {
15
- label: 'This year',
16
- value: 'THIS_YEAR',
17
- },
18
- {
19
- label: 'Last 7 days',
20
- value: 'LAST_7_DAYS',
21
- },
22
- {
23
- label: 'Last 30 days',
24
- value: 'LAST_30_DAYS',
25
- },
26
- {
27
- label: 'Last 90 days',
28
- value: 'LAST_90_DAYS',
29
- },
30
- {
31
- label: 'Last 6 months',
32
- value: 'LAST_6_MONTHS',
33
- },
34
- {
35
- label: 'All time',
36
- value: 'ALL_TIME',
37
- },
38
- ],
39
- field: 'date_range',
40
- label: 'Date',
41
- preset: {
42
- label: 'Last 90 days',
43
- },
44
- comparison: false,
45
- start: '2024-05-09T07:00:00.000Z',
46
- end: '2024-08-08T06:59:59.999Z',
47
- };
48
- export const DEFAULT_COMPARISON_DATE_FILTER = {
49
- startDate: '2024-05-09T07:00:00.000Z',
50
- endDate: '2024-08-08T06:59:59.999Z',
51
- filterType: 'date_range',
52
- options: [
53
- {
54
- label: 'This week',
55
- value: 'THIS_WEEK',
56
- },
57
- {
58
- label: 'This month',
59
- value: 'THIS_MONTH',
60
- },
61
- {
62
- label: 'This year',
63
- value: 'THIS_YEAR',
64
- },
65
- {
66
- label: 'Last 7 days',
67
- value: 'LAST_7_DAYS',
68
- },
69
- {
70
- label: 'Last 30 days',
71
- value: 'LAST_30_DAYS',
72
- },
73
- {
74
- label: 'Last 90 days',
75
- value: 'LAST_90_DAYS',
76
- },
77
- {
78
- label: 'Last 6 months',
79
- value: 'LAST_6_MONTHS',
80
- },
81
- {
82
- label: 'All time',
83
- value: 'ALL_TIME',
84
- },
85
- ],
86
- field: 'date_range',
87
- label: 'Comparison',
88
- preset: {
89
- label: 'Last 90 days',
90
- },
91
- comparison: true,
92
- comparisonRange: {
93
- startDate: '2024-02-09T08:00:00.000Z',
94
- endDate: '2024-05-09T07:00:00.000Z',
95
- value: 'PREV_PERIOD',
96
- start: '2024-02-09T08:00:00.000Z',
97
- end: '2024-05-09T07:00:00.000Z',
98
- },
99
- start: '2024-05-09T07:00:00.000Z',
100
- end: '2024-08-08T06:59:59.999Z',
101
- };
102
- export const GENERIC_REPORT_INTERNAL = {
103
- id: '66b3d083f6b406000b46510e',
104
- name: 'Bar Test',
105
- dashboardName: 'Clear Dashboard',
106
- rows: [],
107
- columns: [
108
- {
109
- label: 'ID',
110
- field: 'id',
111
- format: 'whole_number',
112
- },
113
- {
114
- label: 'Amount',
115
- field: 'amount',
116
- format: 'whole_number',
117
- },
118
- {
119
- label: 'Created At',
120
- field: 'created_at',
121
- format: 'MMM_dd_yyyy',
122
- },
123
- {
124
- label: 'Merchant',
125
- field: 'merchant',
126
- format: 'string',
127
- },
128
- {
129
- label: 'User Name',
130
- field: 'user_name',
131
- format: 'string',
132
- },
133
- {
134
- label: 'Category',
135
- field: 'category',
136
- format: 'string',
137
- },
138
- ],
139
- compareRows: [],
140
- order: -1,
141
- chartType: 'column',
142
- dateField: {
143
- field: '"created_at"',
144
- table: 'transactions',
145
- },
146
- pivot: null,
147
- yAxisFields: [
148
- {
149
- field: 'id',
150
- label: 'ID',
151
- format: 'whole_number',
152
- },
153
- ],
154
- xAxisLabel: '',
155
- xAxisField: 'created_at',
156
- xAxisFormat: 'MMM_dd_yyyy',
157
- filtersApplied: [],
158
- rowCount: 779,
159
- queryString: 'SELECT * FROM "transactions";',
160
- itemQuery: [
161
- 'with subview as (SELECT * FROM "transactions") SELECT * FROM subview',
162
- ],
163
- };
164
- export const TWO_D_PIVOT = {
165
- pivot: {
166
- rowField: 'user_name',
167
- rowFieldType: 'string',
168
- columnField: 'category',
169
- columnFieldType: 'string',
170
- valueField: 'amount',
171
- aggregationType: 'sum',
172
- title: 'Sum Of Amount By User Name And Category',
173
- },
174
- pivotColumns: [
175
- {
176
- field: 'user_name',
177
- label: 'User Name',
178
- format: 'string',
179
- },
180
- {
181
- field: 'Food',
182
- label: 'Food',
183
- format: 'whole_number',
184
- },
185
- {
186
- field: 'Fuel',
187
- label: 'Fuel',
188
- format: 'whole_number',
189
- },
190
- {
191
- field: 'Other',
192
- label: 'Other',
193
- format: 'whole_number',
194
- },
195
- ],
196
- pivotRows: [
197
- {
198
- user_name: 'James Newton',
199
- Food: '5021.36',
200
- Fuel: '8131.96',
201
- Other: '1219.33',
202
- },
203
- {
204
- user_name: 'Juan Villareal',
205
- Food: '3234.57',
206
- Fuel: '8476.84',
207
- Other: '1558.47',
208
- },
209
- {
210
- user_name: 'Leslie Stephenson',
211
- Food: '3586.28',
212
- Fuel: '8760.39',
213
- Other: '658.38',
214
- },
215
- {
216
- user_name: 'Benjamin Johannsen',
217
- Food: '2736.41',
218
- Fuel: '7450.05',
219
- Other: '1205.22',
220
- },
221
- {
222
- user_name: 'Elizabeth Williamson',
223
- Food: '2753.24',
224
- Fuel: '7092.97',
225
- Other: '1317.17',
226
- },
227
- ],
228
- };
229
- export const ONE_D_PIVOT = {
230
- pivot: {
231
- rowField: 'user_name',
232
- rowFieldType: 'string',
233
- valueField: 'amount',
234
- aggregationType: 'sum',
235
- title: 'Sum Of Amount By User Name And Category',
236
- },
237
- pivotColumns: [
238
- {
239
- field: 'user_name',
240
- label: 'User Name',
241
- format: 'string',
242
- },
243
- {
244
- field: 'amount',
245
- label: 'Amount',
246
- format: 'whole_number',
247
- },
248
- ],
249
- pivotRows: [
250
- {
251
- user_name: 'James Newton',
252
- amount: '5021.36',
253
- },
254
- {
255
- user_name: 'Juan Villareal',
256
- amount: '3234.57',
257
- },
258
- {
259
- user_name: 'Leslie Stephenson',
260
- amount: '658.38',
261
- },
262
- {
263
- user_name: 'Benjamin Johannsen',
264
- amount: '1205.22',
265
- },
266
- {
267
- user_name: 'Elizabeth Williamson',
268
- amount: '1317.17',
269
- },
270
- ],
271
- };
@@ -1,4 +0,0 @@
1
- import { Column } from '../models/Columns';
2
- export declare function createRows(columns: Column[], rowCount: number): any[];
3
- export declare function createComparisonColumnsFromColumns(columns: Column[]): Column[];
4
- //# sourceMappingURL=generators.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generators.d.ts","sourceRoot":"","sources":["../../../src/test-utils/generators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAkB3C,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,GAAG,GAAG,EAAE,CAoBrE;AAED,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,MAAM,EAAE,GAChB,MAAM,EAAE,CAOV"}
@@ -1,37 +0,0 @@
1
- function createRandomDate() {
2
- const start = new Date(2020, 0, 1);
3
- const end = new Date();
4
- return new Date(start.getTime() + Math.random() * (end.getTime() - start.getTime()));
5
- }
6
- function createRandomString() {
7
- return Math.random().toString(36).substring(7);
8
- }
9
- function createRandomNumber() {
10
- return Math.floor(Math.random() * 1000);
11
- }
12
- export function createRows(columns, rowCount) {
13
- const rows = [];
14
- for (let i = 0; i < rowCount; i++) {
15
- rows.push(columns.reduce((row, column) => {
16
- if (column.format === 'MMM_dd_yyyy') {
17
- row[column.field] = createRandomDate().toDateString();
18
- }
19
- else if (column.format === 'whole_number') {
20
- row[column.field] = createRandomNumber().toString();
21
- }
22
- else {
23
- row[column.field] = createRandomString();
24
- }
25
- return row;
26
- }, {}));
27
- }
28
- return rows;
29
- }
30
- export function createComparisonColumnsFromColumns(columns) {
31
- const comparisons = columns.map((column) => ({
32
- ...column,
33
- field: `comparison_${column.field}`,
34
- label: `comparison ${column.label}`,
35
- }));
36
- return [...columns, ...comparisons];
37
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=astFilterProcessing.uspec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"astFilterProcessing.uspec.d.ts","sourceRoot":"","sources":["../../../src/utils/astFilterProcessing.uspec.ts"],"names":[],"mappings":""}