@quillsql/react 2.13.49 → 2.13.51

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 (129) hide show
  1. package/dist/cjs/Chart.d.ts.map +1 -1
  2. package/dist/cjs/Chart.js +3 -2
  3. package/dist/cjs/ChartBuilder.d.ts +3 -1
  4. package/dist/cjs/ChartBuilder.d.ts.map +1 -1
  5. package/dist/cjs/ChartBuilder.js +62 -39
  6. package/dist/cjs/Context.d.ts.map +1 -1
  7. package/dist/cjs/Context.js +14 -10
  8. package/dist/cjs/Dashboard.js +2 -2
  9. package/dist/cjs/DateRangePicker/QuillDateRangePicker.d.ts.map +1 -1
  10. package/dist/cjs/DateRangePicker/QuillDateRangePicker.js +32 -11
  11. package/dist/cjs/QuillProvider.d.ts +4 -0
  12. package/dist/cjs/QuillProvider.d.ts.map +1 -1
  13. package/dist/cjs/QuillProvider.js +4 -3
  14. package/dist/cjs/ReportBuilder.d.ts.map +1 -1
  15. package/dist/cjs/ReportBuilder.js +9 -5
  16. package/dist/cjs/SQLEditor.js +6 -6
  17. package/dist/cjs/components/Chart/BarChart.d.ts.map +1 -1
  18. package/dist/cjs/components/Chart/BarChart.js +2 -1
  19. package/dist/cjs/components/Chart/BarList.d.ts.map +1 -1
  20. package/dist/cjs/components/Chart/BarList.js +2 -1
  21. package/dist/cjs/components/Chart/InternalChart.d.ts.map +1 -1
  22. package/dist/cjs/components/Chart/InternalChart.js +2 -1
  23. package/dist/cjs/components/Chart/LineChart.d.ts.map +1 -1
  24. package/dist/cjs/components/Chart/LineChart.js +6 -2
  25. package/dist/cjs/components/Chart/PieChart.d.ts.map +1 -1
  26. package/dist/cjs/components/Chart/PieChart.js +2 -1
  27. package/dist/cjs/components/Dashboard/DashboardFilter.d.ts.map +1 -1
  28. package/dist/cjs/components/Dashboard/DashboardFilter.js +2 -1
  29. package/dist/cjs/components/Dashboard/MetricComponent.d.ts.map +1 -1
  30. package/dist/cjs/components/Dashboard/MetricComponent.js +2 -1
  31. package/dist/cjs/components/QuillMultiSelect.d.ts.map +1 -1
  32. package/dist/cjs/components/QuillMultiSelect.js +15 -9
  33. package/dist/cjs/components/QuillMultiSelectSectionList.d.ts.map +1 -1
  34. package/dist/cjs/components/QuillMultiSelectSectionList.js +20 -12
  35. package/dist/cjs/components/QuillMultiSelectWithCombo.d.ts.map +1 -1
  36. package/dist/cjs/components/QuillMultiSelectWithCombo.js +23 -17
  37. package/dist/cjs/components/QuillSelect.d.ts.map +1 -1
  38. package/dist/cjs/components/QuillSelect.js +12 -9
  39. package/dist/cjs/components/QuillSelectWithCombo.d.ts.map +1 -1
  40. package/dist/cjs/components/QuillSelectWithCombo.js +87 -92
  41. package/dist/cjs/components/QuillTable.d.ts.map +1 -1
  42. package/dist/cjs/components/QuillTable.js +1 -0
  43. package/dist/cjs/components/ReportBuilder/FilterModal.d.ts +3 -1
  44. package/dist/cjs/components/ReportBuilder/FilterModal.d.ts.map +1 -1
  45. package/dist/cjs/components/ReportBuilder/FilterModal.js +13 -4
  46. package/dist/cjs/components/ReportBuilder/FilterStack.d.ts +3 -2
  47. package/dist/cjs/components/ReportBuilder/FilterStack.d.ts.map +1 -1
  48. package/dist/cjs/components/ReportBuilder/FilterStack.js +2 -2
  49. package/dist/cjs/components/ReportBuilder/ui.d.ts +3 -2
  50. package/dist/cjs/components/ReportBuilder/ui.d.ts.map +1 -1
  51. package/dist/cjs/components/ReportBuilder/ui.js +3 -2
  52. package/dist/cjs/components/UiComponents.d.ts +7 -0
  53. package/dist/cjs/components/UiComponents.d.ts.map +1 -1
  54. package/dist/cjs/components/UiComponents.js +93 -5
  55. package/dist/cjs/hooks/useExport.d.ts.map +1 -1
  56. package/dist/cjs/hooks/useExport.js +1 -0
  57. package/dist/cjs/utils/dashboard.d.ts +5 -1
  58. package/dist/cjs/utils/dashboard.d.ts.map +1 -1
  59. package/dist/cjs/utils/dashboard.js +21 -4
  60. package/dist/cjs/utils/dataFetcher.d.ts.map +1 -1
  61. package/dist/cjs/utils/dataFetcher.js +0 -1
  62. package/dist/cjs/utils/report.d.ts +5 -1
  63. package/dist/cjs/utils/report.d.ts.map +1 -1
  64. package/dist/cjs/utils/report.js +3 -1
  65. package/dist/esm/Chart.d.ts.map +1 -1
  66. package/dist/esm/Chart.js +3 -2
  67. package/dist/esm/ChartBuilder.d.ts +3 -1
  68. package/dist/esm/ChartBuilder.d.ts.map +1 -1
  69. package/dist/esm/ChartBuilder.js +62 -39
  70. package/dist/esm/Context.d.ts.map +1 -1
  71. package/dist/esm/Context.js +14 -10
  72. package/dist/esm/Dashboard.js +2 -2
  73. package/dist/esm/DateRangePicker/QuillDateRangePicker.d.ts.map +1 -1
  74. package/dist/esm/DateRangePicker/QuillDateRangePicker.js +32 -11
  75. package/dist/esm/QuillProvider.d.ts +4 -0
  76. package/dist/esm/QuillProvider.d.ts.map +1 -1
  77. package/dist/esm/QuillProvider.js +4 -3
  78. package/dist/esm/ReportBuilder.d.ts.map +1 -1
  79. package/dist/esm/ReportBuilder.js +9 -5
  80. package/dist/esm/SQLEditor.js +6 -6
  81. package/dist/esm/components/Chart/BarChart.d.ts.map +1 -1
  82. package/dist/esm/components/Chart/BarChart.js +2 -1
  83. package/dist/esm/components/Chart/BarList.d.ts.map +1 -1
  84. package/dist/esm/components/Chart/BarList.js +2 -1
  85. package/dist/esm/components/Chart/InternalChart.d.ts.map +1 -1
  86. package/dist/esm/components/Chart/InternalChart.js +2 -1
  87. package/dist/esm/components/Chart/LineChart.d.ts.map +1 -1
  88. package/dist/esm/components/Chart/LineChart.js +6 -2
  89. package/dist/esm/components/Chart/PieChart.d.ts.map +1 -1
  90. package/dist/esm/components/Chart/PieChart.js +2 -1
  91. package/dist/esm/components/Dashboard/DashboardFilter.d.ts.map +1 -1
  92. package/dist/esm/components/Dashboard/DashboardFilter.js +2 -1
  93. package/dist/esm/components/Dashboard/MetricComponent.d.ts.map +1 -1
  94. package/dist/esm/components/Dashboard/MetricComponent.js +2 -1
  95. package/dist/esm/components/QuillMultiSelect.d.ts.map +1 -1
  96. package/dist/esm/components/QuillMultiSelect.js +15 -9
  97. package/dist/esm/components/QuillMultiSelectSectionList.d.ts.map +1 -1
  98. package/dist/esm/components/QuillMultiSelectSectionList.js +20 -12
  99. package/dist/esm/components/QuillMultiSelectWithCombo.d.ts.map +1 -1
  100. package/dist/esm/components/QuillMultiSelectWithCombo.js +23 -17
  101. package/dist/esm/components/QuillSelect.d.ts.map +1 -1
  102. package/dist/esm/components/QuillSelect.js +12 -9
  103. package/dist/esm/components/QuillSelectWithCombo.d.ts.map +1 -1
  104. package/dist/esm/components/QuillSelectWithCombo.js +88 -93
  105. package/dist/esm/components/QuillTable.d.ts.map +1 -1
  106. package/dist/esm/components/QuillTable.js +1 -0
  107. package/dist/esm/components/ReportBuilder/FilterModal.d.ts +3 -1
  108. package/dist/esm/components/ReportBuilder/FilterModal.d.ts.map +1 -1
  109. package/dist/esm/components/ReportBuilder/FilterModal.js +13 -4
  110. package/dist/esm/components/ReportBuilder/FilterStack.d.ts +3 -2
  111. package/dist/esm/components/ReportBuilder/FilterStack.d.ts.map +1 -1
  112. package/dist/esm/components/ReportBuilder/FilterStack.js +2 -2
  113. package/dist/esm/components/ReportBuilder/ui.d.ts +3 -2
  114. package/dist/esm/components/ReportBuilder/ui.d.ts.map +1 -1
  115. package/dist/esm/components/ReportBuilder/ui.js +3 -2
  116. package/dist/esm/components/UiComponents.d.ts +7 -0
  117. package/dist/esm/components/UiComponents.d.ts.map +1 -1
  118. package/dist/esm/components/UiComponents.js +91 -4
  119. package/dist/esm/hooks/useExport.d.ts.map +1 -1
  120. package/dist/esm/hooks/useExport.js +1 -0
  121. package/dist/esm/utils/dashboard.d.ts +5 -1
  122. package/dist/esm/utils/dashboard.d.ts.map +1 -1
  123. package/dist/esm/utils/dashboard.js +21 -4
  124. package/dist/esm/utils/dataFetcher.d.ts.map +1 -1
  125. package/dist/esm/utils/dataFetcher.js +0 -1
  126. package/dist/esm/utils/report.d.ts +5 -1
  127. package/dist/esm/utils/report.d.ts.map +1 -1
  128. package/dist/esm/utils/report.js +3 -1
  129. package/package.json +1 -1
@@ -143,7 +143,6 @@ function QuillMultiSelectSectionList({ options, width, onChange, label, sectionH
143
143
  fontWeight: 600,
144
144
  }, children: label })), (0, jsx_runtime_1.jsxs)("button", { style: {
145
145
  fontFamily: theme?.fontFamily,
146
- color: theme?.primaryTextColor,
147
146
  width: '100%',
148
147
  display: 'flex',
149
148
  alignItems: 'center',
@@ -163,8 +162,8 @@ function QuillMultiSelectSectionList({ options, width, onChange, label, sectionH
163
162
  height: 40,
164
163
  minHeight: 40,
165
164
  maxHeight: 40,
166
- }, className: 'quill-select-button', onClick: () => setShowModal((showModal) => !showModal), disabled: disabled, ref: buttonRef, children: [(0, jsx_runtime_1.jsx)("style", { children: ` .quill-select-button { background: ${theme?.backgroundColor}; }
167
- .quill-select-button:hover { background: ${theme?.hoverBackgroundColor}; }
165
+ }, className: 'quill-select-button', onClick: () => setShowModal((showModal) => !showModal), disabled: disabled, ref: buttonRef, children: [(0, jsx_runtime_1.jsx)("style", { children: ` .quill-select-button { background: ${theme?.backgroundColor}; color: ${theme?.primaryTextColor}; }
166
+ .quill-select-button:hover { background: ${theme?.hoverBackgroundColor}; color: ${theme?.hoverTextColor}; }
168
167
  .quill-select-button:disabled {
169
168
  cursor: not-allowed;
170
169
  background: ${theme?.hoverBackgroundColor};
@@ -186,7 +185,7 @@ function QuillMultiSelectSectionList({ options, width, onChange, label, sectionH
186
185
  borderStyle: 'solid',
187
186
  borderColor: theme?.borderColor,
188
187
  borderRadius: 6,
189
- background: 'white',
188
+ background: theme?.backgroundColor,
190
189
  marginTop: 12,
191
190
  zIndex: 100,
192
191
  padding: 6,
@@ -220,10 +219,10 @@ function QuillMultiSelectSectionList({ options, width, onChange, label, sectionH
220
219
  overflow: 'hidden',
221
220
  }, children: [(0, jsx_runtime_1.jsx)("style", { children: `
222
221
  .quill-option {
223
- background: white;
222
+ background: ${theme?.backgroundColor};
224
223
  }
225
224
  .quill-option:hover {
226
- background: #F4F4F5;
225
+ background: ${theme?.hoverBackgroundColor};
227
226
  }
228
227
  ` }), (0, jsx_runtime_1.jsx)("span", { style: {
229
228
  textOverflow: 'ellipsis',
@@ -264,10 +263,12 @@ function QuillMultiSelectSectionList({ options, width, onChange, label, sectionH
264
263
  debounce(updatedChangeEvent);
265
264
  }, children: [(0, jsx_runtime_1.jsx)("style", { children: `
266
265
  .quill-option {
267
- background: white;
266
+ background: ${theme?.backgroundColor};
267
+ color: ${theme?.primaryTextColor};
268
268
  }
269
269
  .quill-option:hover {
270
- background: #F4F4F5;
270
+ background: ${theme?.hoverBackgroundColor};
271
+ color: ${theme?.hoverTextColor};
271
272
  }
272
273
  ` }), (0, jsx_runtime_1.jsx)("input", { type: "checkbox", checked: options[key]?.length === value[key]?.length, style: { width: '14px', height: '14px', margin: 'auto 0' }, readOnly: true }), (0, jsx_runtime_1.jsx)("span", { style: {
273
274
  textOverflow: 'ellipsis',
@@ -314,10 +315,12 @@ function QuillMultiSelectSectionList({ options, width, onChange, label, sectionH
314
315
  debounce(updatedChangeEvent);
315
316
  }, children: [(0, jsx_runtime_1.jsx)("style", { children: `
316
317
  .quill-option {
317
- background: white;
318
+ background: ${theme?.backgroundColor};
319
+ color: ${theme?.primaryTextColor};
318
320
  }
319
321
  .quill-option:hover {
320
- background: #F4F4F5;
322
+ background: ${theme?.hoverBackgroundColor};
323
+ color: ${theme?.hoverTextColor};
321
324
  }
322
325
  ` }), (0, jsx_runtime_1.jsx)("input", { type: "checkbox", checked: value[key]?.includes(option.value) ?? false, style: {
323
326
  width: '14px',
@@ -330,6 +333,7 @@ function QuillMultiSelectSectionList({ options, width, onChange, label, sectionH
330
333
  }, children: option.label })] }, 'v-' + key + '-' + option.value)))] }, 'sp-' + key)))) : ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(UiComponents_1.LoadingSpinner, {}) }))] }))] }));
331
334
  }
332
335
  const ListboxTextInput = ({ value, onChange, placeholder, }) => {
336
+ const [theme] = (0, react_1.useContext)(Context_1.ThemeContext);
333
337
  return ((0, jsx_runtime_1.jsxs)("div", { style: {
334
338
  position: 'relative',
335
339
  display: 'flex',
@@ -349,10 +353,14 @@ const ListboxTextInput = ({ value, onChange, placeholder, }) => {
349
353
  padding-bottom: 0px;
350
354
  box-sizing: content-box;
351
355
  margin-left: 6px;
352
- border: 0 solid #e5e7eb;
356
+ border: 0 solid ${theme?.borderColor ?? '#e5e7eb'};
353
357
  }
354
358
  .quill-text-input:focus {
355
359
  outline: none;
356
- }` }), (0, jsx_runtime_1.jsx)("div", { style: { width: 6 } }), (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "rgba(56, 65, 81, 0.7)", height: "16", width: "16", children: (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", d: "M9.965 11.026a5 5 0 1 1 1.06-1.06l2.755 2.754a.75.75 0 1 1-1.06 1.06l-2.755-2.754ZM10.5 7a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z", clipRule: "evenodd" }) }), (0, jsx_runtime_1.jsx)("input", { className: "quill-text-input", type: "text", value: value, onChange: (event) => onChange(event.target.value), placeholder: placeholder })] }));
360
+ }` }), (0, jsx_runtime_1.jsx)("div", { style: { width: 6 } }), (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "rgba(56, 65, 81, 0.7)", height: "16", width: "16", children: (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", d: "M9.965 11.026a5 5 0 1 1 1.06-1.06l2.755 2.754a.75.75 0 1 1-1.06 1.06l-2.755-2.754ZM10.5 7a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z", clipRule: "evenodd" }) }), (0, jsx_runtime_1.jsx)("input", { className: "quill-text-input", type: "text", value: value, onChange: (event) => onChange(event.target.value), placeholder: placeholder, style: {
361
+ fontFamily: theme?.fontFamily,
362
+ color: theme?.primaryTextColor,
363
+ background: theme?.backgroundColor,
364
+ } })] }));
357
365
  };
358
366
  exports.ListboxTextInput = ListboxTextInput;
@@ -1 +1 @@
1
- {"version":3,"file":"QuillMultiSelectWithCombo.d.ts","sourceRoot":"","sources":["../../../src/components/QuillMultiSelectWithCombo.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAkB,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAc,EAEZ,aAAa,EAMd,MAAM,OAAO,CAAC;AAKf;;GAEG;AACH,wBAAgB,kCAAkC,CAAC,EACjD,OAAO,EACP,KAAK,EACL,QAAQ,EACR,KAAK,EACL,KAAK,EACL,SAAS,EACT,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,KAAK,GACN,EAAE,yBAAyB,GAAG;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB,2CAwmBA;AAED,eAAO,MAAM,gBAAgB,sCAI1B;IACD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC;CACrB,4CAwDA,CAAC"}
1
+ {"version":3,"file":"QuillMultiSelectWithCombo.d.ts","sourceRoot":"","sources":["../../../src/components/QuillMultiSelectWithCombo.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAkB,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAc,EAEZ,aAAa,EAMd,MAAM,OAAO,CAAC;AAKf;;GAEG;AACH,wBAAgB,kCAAkC,CAAC,EACjD,OAAO,EACP,KAAK,EACL,QAAQ,EACR,KAAK,EACL,KAAK,EACL,SAAS,EACT,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,KAAK,GACN,EAAE,yBAAyB,GAAG;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB,2CAwmBA;AAED,eAAO,MAAM,gBAAgB,sCAI1B;IACD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC;CACrB,4CA8DA,CAAC"}
@@ -244,7 +244,6 @@ function QuillMultiSelectComponentWithCombo({ options, width, onChange, label, v
244
244
  fontWeight: 600,
245
245
  }, children: label ?? nullLabel })), (0, jsx_runtime_1.jsxs)("button", { style: {
246
246
  fontFamily: theme?.fontFamily,
247
- color: theme?.primaryTextColor,
248
247
  width: '100%',
249
248
  display: 'flex',
250
249
  alignItems: 'center',
@@ -264,8 +263,8 @@ function QuillMultiSelectComponentWithCombo({ options, width, onChange, label, v
264
263
  height: 40,
265
264
  minHeight: 40,
266
265
  maxHeight: 40,
267
- }, className: 'quill-select-button', onClick: () => setShowModal((showModal) => !showModal), disabled: disabled, ref: buttonRef, children: [(0, jsx_runtime_1.jsx)("style", { children: ` .quill-select-button { background: ${theme?.backgroundColor}; }
268
- .quill-select-button:hover { background: ${theme?.hoverBackgroundColor}; }
266
+ }, className: 'quill-select-button', onClick: () => setShowModal((showModal) => !showModal), disabled: disabled, ref: buttonRef, children: [(0, jsx_runtime_1.jsx)("style", { children: ` .quill-select-button { background: ${theme?.backgroundColor}; color: ${theme?.primaryTextColor}; }
267
+ .quill-select-button:hover { background: ${theme?.hoverBackgroundColor}; color: ${theme?.hoverTextColor}; }
269
268
  .quill-select-button:disabled {
270
269
  cursor: not-allowed;
271
270
  background: ${theme?.hoverBackgroundColor};
@@ -278,9 +277,6 @@ function QuillMultiSelectComponentWithCombo({ options, width, onChange, label, v
278
277
  textAlign: 'left',
279
278
  zIndex: 1,
280
279
  fontWeight: value?.length || isLoading ? undefined : 300,
281
- color: value?.length || isLoading
282
- ? undefined
283
- : theme?.secondaryTextColor,
284
280
  }, children: selectedOptionsLabel }), (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", "data-slot": "icon", height: 20, width: 20, style: { minHeight: 20, minWidth: 20 }, children: (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", d: "M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z", clipRule: "evenodd" }) })] }), showModal &&
285
281
  (0, react_dom_1.createPortal)((0, jsx_runtime_1.jsxs)("div", { style: {
286
282
  position: 'absolute',
@@ -297,7 +293,7 @@ function QuillMultiSelectComponentWithCombo({ options, width, onChange, label, v
297
293
  borderStyle: 'solid',
298
294
  borderColor: theme?.borderColor,
299
295
  borderRadius: 6,
300
- background: 'white',
296
+ background: theme?.backgroundColor,
301
297
  marginTop: 12,
302
298
  zIndex: z,
303
299
  padding: 6,
@@ -333,10 +329,12 @@ function QuillMultiSelectComponentWithCombo({ options, width, onChange, label, v
333
329
  overflow: 'hidden',
334
330
  }, children: [(0, jsx_runtime_1.jsx)("style", { children: `
335
331
  .quill-option {
336
- background: white;
332
+ background: ${theme?.backgroundColor};
333
+ color: ${theme?.primaryTextColor};
337
334
  }
338
335
  .quill-option:hover {
339
- background: #F4F4F5;
336
+ background: ${theme?.hoverBackgroundColor};
337
+ color: ${theme?.hoverTextColor};
340
338
  }
341
339
  ` }), (0, jsx_runtime_1.jsx)("span", { style: {
342
340
  textOverflow: 'ellipsis',
@@ -386,10 +384,12 @@ function QuillMultiSelectComponentWithCombo({ options, width, onChange, label, v
386
384
  debounce(updatedChangeEvent);
387
385
  }, children: [(0, jsx_runtime_1.jsx)("style", { children: `
388
386
  .quill-option {
389
- background: white;
387
+ background: ${theme?.backgroundColor};
388
+ color: ${theme?.primaryTextColor};
390
389
  }
391
390
  .quill-option:hover {
392
- background: #F4F4F5;
391
+ background: ${theme?.hoverBackgroundColor};
392
+ color: ${theme?.hoverTextColor};
393
393
  }
394
394
  ` }), (0, jsx_runtime_1.jsx)("input", { ref: selectAllRef, type: "checkbox", checked: selectAllCheckboxState === CheckboxState.SELECTED, style: {
395
395
  width: '14px',
@@ -400,7 +400,6 @@ function QuillMultiSelectComponentWithCombo({ options, width, onChange, label, v
400
400
  whiteSpace: 'nowrap',
401
401
  overflow: 'hidden',
402
402
  }, children: (0, jsx_runtime_1.jsx)("span", { style: {
403
- color: theme?.secondaryTextColor,
404
403
  fontWeight: 300,
405
404
  }, children: "Select all" }) })] })), filteredItems.map((option) => ((0, jsx_runtime_1.jsxs)("button", { style: {
406
405
  display: 'flex',
@@ -457,10 +456,12 @@ function QuillMultiSelectComponentWithCombo({ options, width, onChange, label, v
457
456
  debounce(updatedChangeEvent);
458
457
  }, children: [(0, jsx_runtime_1.jsx)("style", { children: `
459
458
  .quill-option {
460
- background: white;
459
+ background: ${theme?.backgroundColor};
460
+ color: ${theme?.primaryTextColor};
461
461
  }
462
462
  .quill-option:hover {
463
- background: #F4F4F5;
463
+ background: ${theme?.hoverBackgroundColor};
464
+ color: ${theme?.hoverTextColor};
464
465
  }
465
466
  ` }), (0, jsx_runtime_1.jsx)("input", { type: "checkbox", checked: selectedOptions.includes(option.value), style: {
466
467
  width: '14px',
@@ -473,6 +474,7 @@ function QuillMultiSelectComponentWithCombo({ options, width, onChange, label, v
473
474
  }, children: option.label ?? nullLabel })] }, option.value)))] })) : isLoading ? ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(UiComponents_1.LoadingSpinner, {}) })) : null] }), document.body)] }));
474
475
  }
475
476
  const ListboxTextInput = ({ value, onChange, placeholder, }) => {
477
+ const [theme] = (0, react_1.useContext)(Context_1.ThemeContext);
476
478
  return ((0, jsx_runtime_1.jsxs)("div", { style: {
477
479
  position: 'relative',
478
480
  display: 'flex',
@@ -485,17 +487,21 @@ const ListboxTextInput = ({ value, onChange, placeholder, }) => {
485
487
  height: 40px;
486
488
  width: 145px;
487
489
  z-index: 2;
488
- color: #384151;
490
+ color: ${theme?.primaryTextColor ?? '#384151'};
489
491
  border-radius: 4px;
490
492
  text-align: left;
491
493
  padding-top: 0px;
492
494
  padding-bottom: 0px;
493
495
  box-sizing: content-box;
494
496
  margin-left: 6px;
495
- border: 0 solid #e5e7eb;
497
+ border: 0 solid ${theme?.borderColor ?? '#e5e7eb'};
496
498
  }
497
499
  .quill-text-input:focus {
498
500
  outline: none;
499
- }` }), (0, jsx_runtime_1.jsx)("div", { style: { width: 6 } }), (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "rgba(56, 65, 81, 0.7)", height: "16", width: "16", children: (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", d: "M9.965 11.026a5 5 0 1 1 1.06-1.06l2.755 2.754a.75.75 0 1 1-1.06 1.06l-2.755-2.754ZM10.5 7a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z", clipRule: "evenodd" }) }), (0, jsx_runtime_1.jsx)("input", { className: "quill-text-input", type: "text", value: value, onChange: (event) => onChange(event.target.value), placeholder: placeholder })] }));
501
+ }` }), (0, jsx_runtime_1.jsx)("div", { style: { width: 6 } }), (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "rgba(56, 65, 81, 0.7)", height: "16", width: "16", children: (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", d: "M9.965 11.026a5 5 0 1 1 1.06-1.06l2.755 2.754a.75.75 0 1 1-1.06 1.06l-2.755-2.754ZM10.5 7a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z", clipRule: "evenodd" }) }), (0, jsx_runtime_1.jsx)("input", { className: "quill-text-input", type: "text", value: value, onChange: (event) => onChange(event.target.value), placeholder: placeholder, style: {
502
+ fontFamily: theme?.fontFamily,
503
+ color: theme?.primaryTextColor,
504
+ background: theme?.backgroundColor,
505
+ } })] }));
500
506
  };
501
507
  exports.ListboxTextInput = ListboxTextInput;
@@ -1 +1 @@
1
- {"version":3,"file":"QuillSelect.d.ts","sourceRoot":"","sources":["../../../src/components/QuillSelect.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAkB,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAatE;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,KAAK,EACL,KAAK,EACL,QAAQ,EACR,KAAK,EACL,SAAS,EACT,QAAQ,EACR,eAAe,GAChB,EAAE,oBAAoB,2CA2TtB"}
1
+ {"version":3,"file":"QuillSelect.d.ts","sourceRoot":"","sources":["../../../src/components/QuillSelect.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAkB,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAatE;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,KAAK,EACL,KAAK,EACL,QAAQ,EACR,KAAK,EACL,SAAS,EACT,QAAQ,EACR,eAAe,GAChB,EAAE,oBAAoB,2CA0TtB"}
@@ -128,7 +128,6 @@ function QuillSelectComponent({ options, value, width, onChange, label, isLoadin
128
128
  fontWeight: 600,
129
129
  }, children: label ?? nullLabel })), (0, jsx_runtime_1.jsxs)("button", { style: {
130
130
  fontFamily: theme?.fontFamily,
131
- color: theme?.primaryTextColor,
132
131
  width: '100%',
133
132
  display: 'flex',
134
133
  alignItems: 'center',
@@ -148,8 +147,8 @@ function QuillSelectComponent({ options, value, width, onChange, label, isLoadin
148
147
  minHeight: 40,
149
148
  maxHeight: 40,
150
149
  }, className: "quill-select-button", onClick: () => setShowModal((showModal) => !showModal), disabled: disabled, ref: buttonRef, children: [(0, jsx_runtime_1.jsx)("style", { children: `
151
- .quill-select-button { background: ${theme?.backgroundColor}; }
152
- .quill-select-button:hover { background: ${theme?.hoverBackgroundColor}; }
150
+ .quill-select-button { background: ${theme?.backgroundColor}; color: ${theme?.primaryTextColor}; }
151
+ .quill-select-button:hover { background: ${theme?.hoverBackgroundColor}; color: ${theme?.hoverTextColor}; }
153
152
  .quill-select-button:disabled, {
154
153
  background: ${theme?.hoverBackgroundColor};
155
154
  cursor: not-allowed;
@@ -176,7 +175,7 @@ function QuillSelectComponent({ options, value, width, onChange, label, isLoadin
176
175
  borderStyle: 'solid',
177
176
  borderColor: theme?.borderColor,
178
177
  borderRadius: 6,
179
- background: 'white',
178
+ background: theme?.backgroundColor,
180
179
  marginTop: 12,
181
180
  zIndex: z,
182
181
  padding: 6,
@@ -207,12 +206,14 @@ function QuillSelectComponent({ options, value, width, onChange, label, isLoadin
207
206
  setShowModal(false);
208
207
  }, disabled: disabled, children: [(0, jsx_runtime_1.jsx)("style", { children: `
209
208
  .quill-option {
210
- background: white;
209
+ background: ${theme?.backgroundColor};
210
+ color: ${theme?.secondaryTextColor};
211
211
  }
212
212
  .quill-option:hover {
213
- background: #F4F4F5;
213
+ background: ${theme?.hoverBackgroundColor};
214
+ color: ${theme?.hoverTextColor};
214
215
  }
215
- ` }), (0, jsx_runtime_1.jsx)("span", { style: { color: theme?.secondaryTextColor, fontWeight: 300 }, children: "Select" })] })), !isLoading ? (options.map((option) => ((0, jsx_runtime_1.jsxs)("button", { style: {
216
+ ` }), (0, jsx_runtime_1.jsx)("span", { style: { fontWeight: 300 }, children: "Select" })] })), !isLoading ? (options.map((option) => ((0, jsx_runtime_1.jsxs)("button", { style: {
216
217
  display: 'flex',
217
218
  alignItems: 'center',
218
219
  justifyContent: 'space-between',
@@ -236,10 +237,12 @@ function QuillSelectComponent({ options, value, width, onChange, label, isLoadin
236
237
  setShowModal(false);
237
238
  }, disabled: disabled, children: [(0, jsx_runtime_1.jsx)("style", { children: `
238
239
  .quill-option {
239
- background: white;
240
+ background: ${theme?.backgroundColor};
241
+ color: ${theme?.primaryTextColor};
240
242
  }
241
243
  .quill-option:hover {
242
- background: #F4F4F5;
244
+ background: ${theme?.hoverBackgroundColor};
245
+ color: ${theme?.hoverTextColor};
243
246
  }
244
247
  ` }), (0, jsx_runtime_1.jsx)("span", { style: {
245
248
  textOverflow: 'ellipsis',
@@ -1 +1 @@
1
- {"version":3,"file":"QuillSelectWithCombo.d.ts","sourceRoot":"","sources":["../../../src/components/QuillSelectWithCombo.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkB,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAWtE;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,EAC5C,OAAO,EACP,KAAK,EACL,KAAK,EACL,QAAQ,EACR,KAAK,EACL,SAAS,EACT,eAAe,EACf,QAAQ,GACT,EAAE,oBAAoB,2CAkUtB"}
1
+ {"version":3,"file":"QuillSelectWithCombo.d.ts","sourceRoot":"","sources":["../../../src/components/QuillSelectWithCombo.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;AAWxB;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,EAC5C,OAAO,EACP,KAAK,EACL,KAAK,EACL,QAAQ,EACR,KAAK,EACL,SAAS,EACT,eAAe,EACf,QAAQ,GACT,EAAE,oBAAoB,2CA0TtB"}
@@ -35,7 +35,6 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.QuillSelectComponentWithCombo = QuillSelectComponentWithCombo;
37
37
  const jsx_runtime_1 = require("react/jsx-runtime");
38
- const hooks_1 = require("../hooks");
39
38
  const UiComponents_1 = require("./UiComponents");
40
39
  const react_1 = __importStar(require("react"));
41
40
  const Context_1 = require("../Context");
@@ -107,10 +106,6 @@ function QuillSelectComponentWithCombo({ options, value, width, onChange, label,
107
106
  ? nullLabel
108
107
  : (selectedOption?.label ?? 'Select');
109
108
  }, [value, options, nullLabel]);
110
- (0, hooks_1.useOnClickOutside)(modalRef, (event) => {
111
- if (!buttonRef.current?.contains(event.target))
112
- setShowModal(false);
113
- }, showModal);
114
109
  return ((0, jsx_runtime_1.jsxs)("div", { style: {
115
110
  position: 'relative',
116
111
  // width: 200,
@@ -126,7 +121,6 @@ function QuillSelectComponentWithCombo({ options, value, width, onChange, label,
126
121
  fontWeight: 600,
127
122
  }, children: label })), (0, jsx_runtime_1.jsxs)("button", { style: {
128
123
  fontFamily: theme?.fontFamily,
129
- color: theme?.primaryTextColor,
130
124
  width: '100%',
131
125
  display: 'flex',
132
126
  alignItems: 'center',
@@ -146,8 +140,8 @@ function QuillSelectComponentWithCombo({ options, value, width, onChange, label,
146
140
  minHeight: 40,
147
141
  maxHeight: 40,
148
142
  }, className: 'quill-select-button', onClick: () => setShowModal((showModal) => !showModal), disabled: disabled, ref: buttonRef, children: [(0, jsx_runtime_1.jsx)("style", { children: `
149
- .quill-select-button { background: ${theme?.backgroundColor}; }
150
- .quill-select-button:hover { background: ${theme?.hoverBackgroundColor}; }
143
+ .quill-select-button { background: ${theme?.backgroundColor}; color: ${theme?.primaryTextColor}; }
144
+ .quill-select-button:hover { background: ${theme?.hoverBackgroundColor}; color: ${theme?.hoverTextColor}; }
151
145
  .quill-select-button:disabled {
152
146
  cursor: not-allowed;
153
147
  background: ${theme?.hoverBackgroundColor};
@@ -158,97 +152,98 @@ function QuillSelectComponentWithCombo({ options, value, width, onChange, label,
158
152
  whiteSpace: 'nowrap',
159
153
  overflow: 'hidden',
160
154
  fontWeight: value?.length || isLoading ? undefined : 300,
161
- color: value?.length || isLoading
162
- ? undefined
163
- : theme?.secondaryTextColor,
164
- }, children: selectedLabel }), (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", "data-slot": "icon", height: 20, width: 20, style: { minHeight: 20, minWidth: 20 }, children: (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", d: "M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z", clipRule: "evenodd" }) })] }), showModal && ((0, jsx_runtime_1.jsxs)("div", { style: {
165
- position: 'absolute',
166
- width: '100%',
167
- display: 'flex',
168
- flexDirection: 'column',
169
- boxSizing: 'border-box',
170
- borderWidth: 1,
171
- borderStyle: 'solid',
172
- borderColor: theme?.borderColor,
173
- borderRadius: 6,
174
- background: 'white',
175
- marginTop: 12,
176
- zIndex: 100,
177
- paddingTop: 6,
178
- paddingBottom: 6,
179
- paddingLeft: 6,
180
- paddingRight: 6,
181
- fontFamily: theme?.fontFamily,
182
- maxHeight: '50vh',
183
- overflow: 'scroll',
184
- fontSize: 14,
185
- }, ref: modalRef, children: [options && options.length > 20 && !isLoading && ((0, jsx_runtime_1.jsx)(QuillMultiSelectWithCombo_1.ListboxTextInput, { value: searchQuery, placeholder: "Search", onChange: (value) => {
186
- setSearchQuery(value);
187
- } })), searchQuery === '' &&
188
- !isLoading &&
189
- (!hideEmptyOption || !options.length) && ((0, jsx_runtime_1.jsxs)("button", { style: {
190
- display: 'flex',
191
- alignItems: 'center',
192
- justifyContent: 'space-between',
193
- padding: '8px 8px',
194
- margin: 0,
195
- boxSizing: 'border-box',
196
- borderWidth: 0,
197
- fontSize: 14,
198
- borderStyle: 'solid',
199
- borderColor: theme?.borderColor,
200
- borderRadius: 4,
201
- fontFamily: theme?.fontFamily,
202
- textOverflow: 'ellipsis',
203
- whiteSpace: 'nowrap',
204
- overflow: 'hidden',
205
- height: 34,
206
- minHeight: 34,
207
- }, className: "quill-option", onClick: () => {
208
- // Manually create a synthetic ChangeEvent and pass it to callback
209
- const changeEvent = { target: { value: undefined } };
210
- onChange(changeEvent);
211
- setShowModal(false);
212
- }, children: [(0, jsx_runtime_1.jsx)("style", { children: `
155
+ }, children: selectedLabel }), (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true", "data-slot": "icon", height: 20, width: 20, style: { minHeight: 20, minWidth: 20 }, children: (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", d: "M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z", clipRule: "evenodd" }) })] }), showModal && ((0, jsx_runtime_1.jsx)(UiComponents_1.QuillPortal, { anchorRef: buttonRef, showModal: showModal, setShowModal: setShowModal, children: (0, jsx_runtime_1.jsxs)("div", { style: {
156
+ position: 'absolute',
157
+ width: '100%',
158
+ display: 'flex',
159
+ flexDirection: 'column',
160
+ boxSizing: 'border-box',
161
+ borderWidth: 1,
162
+ borderStyle: 'solid',
163
+ borderColor: theme?.borderColor,
164
+ borderRadius: 6,
165
+ background: theme?.backgroundColor,
166
+ marginTop: 12,
167
+ zIndex: 100,
168
+ paddingTop: 6,
169
+ paddingBottom: 6,
170
+ paddingLeft: 6,
171
+ paddingRight: 6,
172
+ fontFamily: theme?.fontFamily,
173
+ maxHeight: '50vh',
174
+ overflow: 'scroll',
175
+ fontSize: 14,
176
+ }, ref: modalRef, children: [options && options.length > 20 && !isLoading && ((0, jsx_runtime_1.jsx)(QuillMultiSelectWithCombo_1.ListboxTextInput, { value: searchQuery, placeholder: "Search", onChange: (value) => {
177
+ setSearchQuery(value);
178
+ } })), searchQuery === '' &&
179
+ !isLoading &&
180
+ (!hideEmptyOption || !options.length) && ((0, jsx_runtime_1.jsxs)("button", { style: {
181
+ display: 'flex',
182
+ alignItems: 'center',
183
+ justifyContent: 'space-between',
184
+ padding: '8px 8px',
185
+ margin: 0,
186
+ boxSizing: 'border-box',
187
+ borderWidth: 0,
188
+ fontSize: 14,
189
+ borderStyle: 'solid',
190
+ borderColor: theme?.borderColor,
191
+ borderRadius: 4,
192
+ fontFamily: theme?.fontFamily,
193
+ textOverflow: 'ellipsis',
194
+ whiteSpace: 'nowrap',
195
+ overflow: 'hidden',
196
+ height: 34,
197
+ minHeight: 34,
198
+ }, className: "quill-option", onClick: () => {
199
+ // Manually create a synthetic ChangeEvent and pass it to callback
200
+ const changeEvent = { target: { value: undefined } };
201
+ onChange(changeEvent);
202
+ setShowModal(false);
203
+ }, children: [(0, jsx_runtime_1.jsx)("style", { children: `
213
204
  .quill-option {
214
- background: white;
205
+ background: ${theme?.backgroundColor};
206
+ color: ${theme?.secondaryTextColor};
215
207
  }
216
208
  .quill-option:hover {
217
- background: #F4F4F5;
209
+ background: ${theme?.hoverBackgroundColor};
210
+ color: ${theme?.hoverTextColor};
218
211
  }
219
- ` }), (0, jsx_runtime_1.jsx)("span", { style: { color: theme?.secondaryTextColor, fontWeight: 300 }, children: "Select" })] })), !isLoading ? (filteredItems.map((option) => ((0, jsx_runtime_1.jsxs)("button", { style: {
220
- display: 'flex',
221
- alignItems: 'center',
222
- justifyContent: 'space-between',
223
- padding: '8px 8px',
224
- margin: 0,
225
- boxSizing: 'border-box',
226
- borderWidth: 0,
227
- fontSize: 14,
228
- borderStyle: 'solid',
229
- borderColor: theme?.borderColor,
230
- borderRadius: 4,
231
- fontFamily: theme?.fontFamily,
232
- textOverflow: 'ellipsis',
233
- whiteSpace: 'nowrap',
234
- height: 34,
235
- minHeight: 34,
236
- overflow: 'hidden',
237
- }, className: "quill-option", onClick: () => {
238
- // Manually create a synthetic ChangeEvent and pass it to callback
239
- const changeEvent = { target: { value: option.value } };
240
- onChange(changeEvent);
241
- setShowModal(false);
242
- }, children: [(0, jsx_runtime_1.jsx)("style", { children: `
212
+ ` }), (0, jsx_runtime_1.jsx)("span", { style: { fontWeight: 300 }, children: "Select" })] })), !isLoading ? (filteredItems.map((option) => ((0, jsx_runtime_1.jsxs)("button", { style: {
213
+ display: 'flex',
214
+ alignItems: 'center',
215
+ justifyContent: 'space-between',
216
+ padding: '8px 8px',
217
+ margin: 0,
218
+ boxSizing: 'border-box',
219
+ borderWidth: 0,
220
+ fontSize: 14,
221
+ borderStyle: 'solid',
222
+ borderColor: theme?.borderColor,
223
+ borderRadius: 4,
224
+ fontFamily: theme?.fontFamily,
225
+ textOverflow: 'ellipsis',
226
+ whiteSpace: 'nowrap',
227
+ height: 34,
228
+ minHeight: 34,
229
+ overflow: 'hidden',
230
+ }, className: "quill-option", onClick: () => {
231
+ // Manually create a synthetic ChangeEvent and pass it to callback
232
+ const changeEvent = { target: { value: option.value } };
233
+ onChange(changeEvent);
234
+ setShowModal(false);
235
+ }, children: [(0, jsx_runtime_1.jsx)("style", { children: `
243
236
  .quill-option {
244
- background: white;
237
+ background: ${theme?.backgroundColor};
238
+ color: ${theme?.primaryTextColor};
245
239
  }
246
240
  .quill-option:hover {
247
- background: #F4F4F5;
241
+ background: ${theme?.hoverBackgroundColor};
242
+ color: ${theme?.hoverTextColor};
248
243
  }
249
244
  ` }), (0, jsx_runtime_1.jsx)("span", { style: {
250
- textOverflow: 'ellipsis',
251
- whiteSpace: 'nowrap',
252
- overflow: 'hidden',
253
- }, children: option.label ?? nullLabel })] }, option.value)))) : ((0, jsx_runtime_1.jsx)(UiComponents_1.LoadingSpinner, {}))] }))] }));
245
+ textOverflow: 'ellipsis',
246
+ whiteSpace: 'nowrap',
247
+ overflow: 'hidden',
248
+ }, children: option.label ?? nullLabel })] }, option.value)))) : ((0, jsx_runtime_1.jsx)(UiComponents_1.LoadingSpinner, {}))] }) }))] }));
254
249
  }
@@ -1 +1 @@
1
- {"version":3,"file":"QuillTable.d.ts","sourceRoot":"","sources":["../../../src/components/QuillTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAG/D,OAAO,EAAE,oBAAoB,EAAyB,MAAM,gBAAgB,CAAC;AAE7E,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,GAAG,CAAC,OAAO,CAAC;IACrC,0BAA0B,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,GAAG,CAAC,OAAO,CAAC;IAC1E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CACrE;AAED,UAAU,wBAAyB,SAAQ,mBAAmB;IAC5D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,IAAI,EACJ,QAAQ,EACR,iBAAiB,EACjB,OAAO,EACP,SAAS,EACT,WAAW,EACX,IAAI,EACJ,qBAA4B,EAC5B,cAAc,EACd,SAAS,EACT,gBAAwC,EACxC,WAAgB,EAChB,eAA8B,EAC9B,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,WAAW,GACZ,EAAE,wBAAwB,2CA8e1B"}
1
+ {"version":3,"file":"QuillTable.d.ts","sourceRoot":"","sources":["../../../src/components/QuillTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAG/D,OAAO,EAAE,oBAAoB,EAAyB,MAAM,gBAAgB,CAAC;AAE7E,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,GAAG,CAAC,OAAO,CAAC;IACrC,0BAA0B,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,GAAG,CAAC,OAAO,CAAC;IAC1E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CACrE;AAED,UAAU,wBAAyB,SAAQ,mBAAmB;IAC5D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,IAAI,EACJ,QAAQ,EACR,iBAAiB,EACjB,OAAO,EACP,SAAS,EACT,WAAW,EACX,IAAI,EACJ,qBAA4B,EAC5B,cAAc,EACd,SAAS,EACT,gBAAwC,EACxC,WAAgB,EAChB,eAA8B,EAC9B,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,WAAW,GACZ,EAAE,wBAAwB,2CA+e1B"}
@@ -195,6 +195,7 @@ function QuillTable({ rows, rowCount, rowCountIsLoading, columns, isLoading, cur
195
195
  justifyContent: 'center',
196
196
  alignItems: 'center',
197
197
  fontSize: 13,
198
+ fontFamily: theme?.fontFamily,
198
199
  color: theme?.secondaryTextColor || 'rgb(55, 65, 81)',
199
200
  position: 'absolute',
200
201
  width: '100%',
@@ -1,5 +1,6 @@
1
1
  import { InternalFilter, Operator } from '../../models/Filter';
2
2
  import { UniqueValuesByTable, Table, UniqueValuesByColumn } from '../../models/Tables';
3
+ import { ReportBuilderColumn } from '../../models/ReportBuilder';
3
4
  interface FilterModalProps {
4
5
  schema: Table[];
5
6
  tables?: string[];
@@ -15,6 +16,7 @@ interface FilterModalProps {
15
16
  TextInputComponent: React.ComponentType<any>;
16
17
  SecondaryButtonComponent?: React.ComponentType<any>;
17
18
  MultiSelectComponent: React.ComponentType<any>;
19
+ reportBuilderColumns?: ReportBuilderColumn[];
18
20
  }
19
21
  type OperatorOptionsMap = {
20
22
  [key: string]: Operator[];
@@ -22,6 +24,6 @@ type OperatorOptionsMap = {
22
24
  /**
23
25
  * Modal for adding, editing, and deleting Filters
24
26
  */
25
- export default function FilterModal({ schema, tables, filter, fieldValuesMap, fieldValuesMapIsLoading, customOperatorOptions, hideTableName, onSubmitFilter, onDeleteFilter, ButtonComponent, SelectComponent, TextInputComponent, SecondaryButtonComponent, MultiSelectComponent, }: FilterModalProps): import("react/jsx-runtime").JSX.Element | null;
27
+ export default function FilterModal({ schema, tables, filter, fieldValuesMap, fieldValuesMapIsLoading, customOperatorOptions, hideTableName, onSubmitFilter, onDeleteFilter, ButtonComponent, SelectComponent, TextInputComponent, SecondaryButtonComponent, MultiSelectComponent, reportBuilderColumns, }: FilterModalProps): import("react/jsx-runtime").JSX.Element | null;
26
28
  export {};
27
29
  //# sourceMappingURL=FilterModal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FilterModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ReportBuilder/FilterModal.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,cAAc,EAId,QAAQ,EAMT,MAAM,qBAAqB,CAAC;AAO7B,OAAO,EACL,mBAAmB,EACnB,KAAK,EACL,oBAAoB,EACrB,MAAM,qBAAqB,CAAC;AAC7B,UAAU,gBAAgB;IACxB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,cAAc,EACZ,oBAAoB,GAClB,mBAAmB,CAAC;IACxB,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,qBAAqB,CAAC,EAAE,kBAAkB,CAAC;IAC3C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAC;IACjD,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC1C,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC1C,kBAAkB,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC7C,wBAAwB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IACpD,oBAAoB,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;CAChD;AAQD,KAAK,kBAAkB,GAAG;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,EAAE,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,MAAM,EACN,MAAM,EACN,MAAM,EACN,cAAc,EACd,uBAAuB,EACvB,qBAAqB,EACrB,aAAa,EACb,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,wBAAwB,EACxB,oBAAoB,GACrB,EAAE,gBAAgB,kDAk4BlB"}
1
+ {"version":3,"file":"FilterModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ReportBuilder/FilterModal.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,cAAc,EAId,QAAQ,EAMT,MAAM,qBAAqB,CAAC;AAO7B,OAAO,EACL,mBAAmB,EACnB,KAAK,EACL,oBAAoB,EACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,UAAU,gBAAgB;IACxB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,cAAc,EACZ,oBAAoB,GAClB,mBAAmB,CAAC;IACxB,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,qBAAqB,CAAC,EAAE,kBAAkB,CAAC;IAC3C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAC;IACjD,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC1C,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC1C,kBAAkB,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC7C,wBAAwB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IACpD,oBAAoB,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC/C,oBAAoB,CAAC,EAAE,mBAAmB,EAAE,CAAC;CAC9C;AAQD,KAAK,kBAAkB,GAAG;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,EAAE,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,MAAM,EACN,MAAM,EACN,MAAM,EACN,cAAc,EACd,uBAAuB,EACvB,qBAAqB,EACrB,aAAa,EACb,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,GACrB,EAAE,gBAAgB,kDA84BlB"}
@@ -13,7 +13,7 @@ const filterProcessing_1 = require("../../utils/filterProcessing");
13
13
  /**
14
14
  * Modal for adding, editing, and deleting Filters
15
15
  */
16
- function FilterModal({ schema, tables, filter, fieldValuesMap, fieldValuesMapIsLoading, customOperatorOptions, hideTableName, onSubmitFilter, onDeleteFilter, ButtonComponent, SelectComponent, TextInputComponent, SecondaryButtonComponent, MultiSelectComponent, }) {
16
+ function FilterModal({ schema, tables, filter, fieldValuesMap, fieldValuesMapIsLoading, customOperatorOptions, hideTableName, onSubmitFilter, onDeleteFilter, ButtonComponent, SelectComponent, TextInputComponent, SecondaryButtonComponent, MultiSelectComponent, reportBuilderColumns, }) {
17
17
  const [field, setField] = (0, react_1.useState)('');
18
18
  const [fieldOptions, setFieldOptions] = (0, react_1.useState)([]);
19
19
  const [fieldValues, setFieldValues] = (0, react_1.useState)([]);
@@ -549,6 +549,17 @@ function FilterModal({ schema, tables, filter, fieldValuesMap, fieldValuesMapIsL
549
549
  const handleDelete = () => {
550
550
  onDeleteFilter();
551
551
  };
552
+ const filterColumnLabel = (option) => {
553
+ if (reportBuilderColumns) {
554
+ const column = reportBuilderColumns.find((col) => col.field === option.name && (col.table || '') === option.table);
555
+ if (column && column.alias) {
556
+ return (0, textProcessing_1.snakeAndCamelCaseToTitleCase)(column.alias);
557
+ }
558
+ }
559
+ return option.table !== '' && !hideTableName
560
+ ? `${(0, textProcessing_1.snakeAndCamelCaseToTitleCase)(option.name)} (${option.table})`
561
+ : (0, textProcessing_1.snakeAndCamelCaseToTitleCase)(option.name);
562
+ };
552
563
  if (filter && !filterInitialized) {
553
564
  return null; // prevent flashing
554
565
  }
@@ -570,9 +581,7 @@ function FilterModal({ schema, tables, filter, fieldValuesMap, fieldValuesMapIsL
570
581
  }, children: [(0, jsx_runtime_1.jsx)("div", { style: { display: 'flex', gap: 20 }, children: (0, jsx_runtime_1.jsx)(SelectComponent, { value: `${table ?? ''}:${field}`, width: 200, onChange: handleFieldChange, options: [
571
582
  ...fieldOptions.map((option) => ({
572
583
  value: `${option.table}:${option.name}`,
573
- label: option.table !== '' && !hideTableName
574
- ? `${(0, textProcessing_1.snakeAndCamelCaseToTitleCase)(option.name)} (${option.table})`
575
- : (0, textProcessing_1.snakeAndCamelCaseToTitleCase)(option.name),
584
+ label: filterColumnLabel(option),
576
585
  })),
577
586
  ] }) }), operatorOptions.length > 0 && ((0, jsx_runtime_1.jsx)("div", { style: { display: 'flex', gap: 20 }, children: (0, jsx_runtime_1.jsx)(SelectComponent, { value: operator, width: 200, onChange: handleOperatorChange, options: [
578
587
  ...operatorOptions.map((operator) => ({