@quillsql/react 2.16.58 → 2.16.59

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.
package/dist/index.cjs CHANGED
@@ -35,7 +35,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
35
35
 
36
36
  // src/utils/textProcessing.ts
37
37
  function capitalize(text) {
38
- return text.charAt(0).toUpperCase() + text.slice(1);
38
+ const capitalized = text.charAt(0).toUpperCase() + text.slice(1);
39
+ return text.charAt(1) === "/" ? capitalized.slice(0, 2) + capitalized.charAt(2).toUpperCase() + capitalized.slice(3) : capitalized;
39
40
  }
40
41
  function matchCasing(text, template) {
41
42
  if (!text || !template) {
@@ -62155,7 +62156,9 @@ function moveArrayItem(items, oldIndex, newIndex) {
62155
62156
  var CHART_TYPES2 = [
62156
62157
  "column",
62157
62158
  "stacked",
62159
+ "stacked bar",
62158
62160
  "line",
62161
+ "radar",
62159
62162
  "table",
62160
62163
  "metric",
62161
62164
  "gauge",
package/dist/index.d.cts CHANGED
@@ -2982,7 +2982,7 @@ type FilterFieldOptions = {
2982
2982
  type SetFiltersInput = QueryBuilderRuleGroup | ((prev: QueryBuilderRuleGroup) => QueryBuilderRuleGroup);
2983
2983
  /** Maps table column format dropdown values to persisted report column `format` (used by `columnActions.update`). */
2984
2984
  declare function tableColumnFormatFromUiSelection(raw: string): string;
2985
- declare const CHART_TYPES: readonly ["column", "stacked", "line", "table", "metric", "gauge", "bar", "pie", "US map", "World map"];
2985
+ declare const CHART_TYPES: readonly ["column", "stacked", "stacked bar", "line", "radar", "table", "metric", "gauge", "bar", "pie", "US map", "World map"];
2986
2986
  type ChartType = (typeof CHART_TYPES)[number];
2987
2987
  type ChartTypeOption = {
2988
2988
  label: string;
@@ -3216,7 +3216,7 @@ declare function useReport(reportIdArg?: string, options?: UseReportOptions): {
3216
3216
  label: string;
3217
3217
  value: string;
3218
3218
  }[];
3219
- chartType: "table" | "column" | "metric" | "gauge" | "stacked" | "line" | "bar" | "pie" | "US map" | "World map";
3219
+ chartType: "table" | "column" | "metric" | "gauge" | "stacked" | "stacked bar" | "line" | "bar" | "pie" | "radar" | "US map" | "World map";
3220
3220
  chartTypeOptions: ChartTypeOption[];
3221
3221
  /** Selected tabular columns in display order. */
3222
3222
  columns: ReportColumnValue[];
package/dist/index.d.ts CHANGED
@@ -2982,7 +2982,7 @@ type FilterFieldOptions = {
2982
2982
  type SetFiltersInput = QueryBuilderRuleGroup | ((prev: QueryBuilderRuleGroup) => QueryBuilderRuleGroup);
2983
2983
  /** Maps table column format dropdown values to persisted report column `format` (used by `columnActions.update`). */
2984
2984
  declare function tableColumnFormatFromUiSelection(raw: string): string;
2985
- declare const CHART_TYPES: readonly ["column", "stacked", "line", "table", "metric", "gauge", "bar", "pie", "US map", "World map"];
2985
+ declare const CHART_TYPES: readonly ["column", "stacked", "stacked bar", "line", "radar", "table", "metric", "gauge", "bar", "pie", "US map", "World map"];
2986
2986
  type ChartType = (typeof CHART_TYPES)[number];
2987
2987
  type ChartTypeOption = {
2988
2988
  label: string;
@@ -3216,7 +3216,7 @@ declare function useReport(reportIdArg?: string, options?: UseReportOptions): {
3216
3216
  label: string;
3217
3217
  value: string;
3218
3218
  }[];
3219
- chartType: "table" | "column" | "metric" | "gauge" | "stacked" | "line" | "bar" | "pie" | "US map" | "World map";
3219
+ chartType: "table" | "column" | "metric" | "gauge" | "stacked" | "stacked bar" | "line" | "bar" | "pie" | "radar" | "US map" | "World map";
3220
3220
  chartTypeOptions: ChartTypeOption[];
3221
3221
  /** Selected tabular columns in display order. */
3222
3222
  columns: ReportColumnValue[];
package/dist/index.js CHANGED
@@ -39,7 +39,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
39
39
 
40
40
  // src/utils/textProcessing.ts
41
41
  function capitalize(text) {
42
- return text.charAt(0).toUpperCase() + text.slice(1);
42
+ const capitalized = text.charAt(0).toUpperCase() + text.slice(1);
43
+ return text.charAt(1) === "/" ? capitalized.slice(0, 2) + capitalized.charAt(2).toUpperCase() + capitalized.slice(3) : capitalized;
43
44
  }
44
45
  function matchCasing(text, template) {
45
46
  if (!text || !template) {
@@ -62367,7 +62368,9 @@ function moveArrayItem(items, oldIndex, newIndex) {
62367
62368
  var CHART_TYPES2 = [
62368
62369
  "column",
62369
62370
  "stacked",
62371
+ "stacked bar",
62370
62372
  "line",
62373
+ "radar",
62371
62374
  "table",
62372
62375
  "metric",
62373
62376
  "gauge",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quillsql/react",
3
- "version": "2.16.58",
3
+ "version": "2.16.59",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {