@qrvey/utils 1.16.1-4 → 1.16.1-5
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/charts/helpers/styleSettingsByChartType.js +1 -0
- package/dist/charts/interfaces/IChartV2.d.ts +1 -0
- package/dist/cjs/charts/helpers/styleSettingsByChartType.js +1 -0
- package/dist/cjs/charts/interfaces/IChartV2.d.ts +1 -0
- package/dist/cjs/column_format/helpers/columnTypeByChart.d.ts +1 -1
- package/dist/cjs/column_format/helpers/parseFormulaTypeByCharts.d.ts +1 -1
- package/dist/cjs/columns/interfaces/IBColumn.d.ts +3 -1
- package/dist/cjs/columns/interfaces/IColumn.d.ts +6 -5
- package/dist/cjs/format/format.d.ts +1 -1
- package/dist/cjs/formulas/constants/FORMULA.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderMenuActions.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanelTooltips.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/table_charts/II18nTableCharts.d.ts +5 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.js +2 -1
- package/dist/cjs/globalization/labels/panel/I18N_PANEL.js +1 -0
- package/dist/cjs/globalization/labels/table_charts/I18N_TABLE_CHARTS.js +5 -0
- package/dist/cjs/services/adapters/BColumnsToUIColumns.adapter.js +1 -0
- package/dist/column_format/helpers/columnTypeByChart.d.ts +1 -1
- package/dist/column_format/helpers/parseFormulaTypeByCharts.d.ts +1 -1
- package/dist/columns/interfaces/IBColumn.d.ts +3 -1
- package/dist/columns/interfaces/IColumn.d.ts +6 -5
- package/dist/format/format.d.ts +1 -1
- package/dist/formulas/constants/FORMULA.d.ts +1 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderMenuActions.d.ts +1 -0
- package/dist/globalization/interfaces/panel/II18nPanelTooltips.d.ts +1 -0
- package/dist/globalization/interfaces/table_charts/II18nTableCharts.d.ts +5 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.js +2 -1
- package/dist/globalization/labels/panel/I18N_PANEL.js +1 -0
- package/dist/globalization/labels/table_charts/I18N_TABLE_CHARTS.js +5 -0
- package/dist/services/adapters/BColumnsToUIColumns.adapter.js +1 -0
- package/package.json +1 -1
|
@@ -199,6 +199,7 @@ export const parseStyleSettingByType = (type, { stylesSettings, globalSettings,
|
|
|
199
199
|
column_resizing: _get(globalSettings, "table_menu.column_resizing", true),
|
|
200
200
|
column_arrangement: _get(globalSettings, "table_menu.column_arrangement", true),
|
|
201
201
|
column_update: _get(globalSettings, "table_menu.column_update", false),
|
|
202
|
+
grouping_column_update: _get(globalSettings, "table_menu.grouping_column_update", false),
|
|
202
203
|
change_aggregation: _get(globalSettings, "table_menu.change_aggregation", false),
|
|
203
204
|
pagination: isGrouped
|
|
204
205
|
? {
|
|
@@ -202,6 +202,7 @@ const parseStyleSettingByType = (type, { stylesSettings, globalSettings, isGroup
|
|
|
202
202
|
column_resizing: (0, general_1._get)(globalSettings, "table_menu.column_resizing", true),
|
|
203
203
|
column_arrangement: (0, general_1._get)(globalSettings, "table_menu.column_arrangement", true),
|
|
204
204
|
column_update: (0, general_1._get)(globalSettings, "table_menu.column_update", false),
|
|
205
|
+
grouping_column_update: (0, general_1._get)(globalSettings, "table_menu.grouping_column_update", false),
|
|
205
206
|
change_aggregation: (0, general_1._get)(globalSettings, "table_menu.change_aggregation", false),
|
|
206
207
|
pagination: isGrouped
|
|
207
208
|
? {
|
|
@@ -13,4 +13,4 @@ import { IChartShelfType } from "../interfaces/IChartShelfType";
|
|
|
13
13
|
* grouped.
|
|
14
14
|
* @returns The column type of the column.
|
|
15
15
|
*/
|
|
16
|
-
export declare const columnTypeByChart: (column: IChartColumn, shelfType: IChartShelfType, chartGroup: IChartGroupType, isGroupedTable?: boolean) => "
|
|
16
|
+
export declare const columnTypeByChart: (column: IChartColumn, shelfType: IChartShelfType, chartGroup: IChartGroupType, isGroupedTable?: boolean) => import("../..").COMPLEX_COLUMN | import("../..").COMPOUND_COLUMN | "NUMERIC" | NUMERICAL_COLUMN | "DATE" | "TEXT_LABEL" | COLUMN.SINGLE_CHOICE | COLUMN.MULTIPLE_CHOICE | COLUMN.YES_NO | COLUMN.RANKING | COLUMN.DATE | COLUMN.TIME | COLUMN.SIGNATURE | COLUMN.DROPDOWN | COLUMN.IMAGE | COLUMN.EMAIL_FORM | COLUMN.PHONE | COLUMN.PASSWORD | COLUMN.TEXT_LABEL | COLUMN.TEXT_CATEGORY | COLUMN.LOOKUP | COLUMN.TEXT_FORMULA | COLUMN.NUMERIC_FORMULA | COLUMN.DATE_FORMULA | COLUMN.AGGREGATED_FORMULA | COLUMN.BUCKET | COLUMN.SLIDEBAR | COLUMN.NUMERIC | COLUMN.RATING | COLUMN.TEXTFIELD | COLUMN.LONGTEXT | COLUMN.IMAGEUPLOAD | COLUMN.FILEUPLOAD | COLUMN.EXPRESSION | COLUMN.NAME | COLUMN.USADDRESS | COLUMN.ADDRESS;
|
|
@@ -4,4 +4,4 @@ import { IFormulaType } from "../..";
|
|
|
4
4
|
* @param {IFormulaType} type - IFormulaType - this is the type of the formula.
|
|
5
5
|
* @returns The type of the formula.
|
|
6
6
|
*/
|
|
7
|
-
export declare const parseFormulaTypeByCharts: (type: IFormulaType) => "
|
|
7
|
+
export declare const parseFormulaTypeByCharts: (type: IFormulaType) => "NUMERIC" | "DATE" | "TEXT_LABEL";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IFormulaType } from "../../formulas/interfaces/IFormulaType";
|
|
2
1
|
import { IBColumAnswer } from "./IBColumAnswer";
|
|
3
2
|
import { IBColumnAnswerExpression } from "./IBColumnAnswerExpression";
|
|
4
3
|
import { IBColumnAnswerExpressionCategory } from "./IBColumnAnswerExpressionCategory";
|
|
@@ -8,6 +7,8 @@ import { IColumnImageUploadOption } from "./IColumnImageUploadOption";
|
|
|
8
7
|
import { IColumnOutputFormatSettings } from "./IColumnOutputFormatSettings";
|
|
9
8
|
import { IColumnPropertyType } from "./IColumnPropertyType";
|
|
10
9
|
import { IColumnType } from "./IColumnType";
|
|
10
|
+
import { AGGREGATE_FORMULA_TYPE } from "../../formulas/constants/FORMULA";
|
|
11
|
+
import { IFormulaType } from "../../formulas/interfaces/IFormulaType";
|
|
11
12
|
/**
|
|
12
13
|
* Structure for columns received in the question/list, model endpoints
|
|
13
14
|
*/
|
|
@@ -15,6 +16,7 @@ export interface IBColumn extends Partial<IBColumAnswer>, Partial<IBColumnAnswer
|
|
|
15
16
|
bucketId?: string;
|
|
16
17
|
formulaId?: string;
|
|
17
18
|
formulaType?: IFormulaType;
|
|
19
|
+
formulaInputType?: AGGREGATE_FORMULA_TYPE;
|
|
18
20
|
geogroup?: boolean;
|
|
19
21
|
id: string;
|
|
20
22
|
imageUploadOption?: IColumnImageUploadOption;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { IColumnCalculationType } from "../../qrvey/interfaces/ICalculationType";
|
|
2
|
-
import { IColumnPropertyType } from "./IColumnPropertyType";
|
|
3
|
-
import { IColumnSortingSettings } from "./IColumnSortingSettings";
|
|
4
1
|
import { IBColumn } from "./IBColumn";
|
|
5
|
-
import { IAggregateType } from "../../charts/interfaces/IAggregateType";
|
|
6
2
|
import { IBColumnAnswerExpressionWord } from "./IBColumnAnswerExpressionWord";
|
|
7
3
|
import { IBColumnAnswerLookupValueValue } from "./IBColumnAnswerLookupValueValue";
|
|
4
|
+
import { IColumnPropertyType } from "./IColumnPropertyType";
|
|
5
|
+
import { IColumnSortingSettings } from "./IColumnSortingSettings";
|
|
6
|
+
import { IAggregateType } from "../../charts/interfaces/IAggregateType";
|
|
7
|
+
import { AGGREGATE_FORMULA_TYPE } from "../../formulas/constants/FORMULA";
|
|
8
|
+
import { IColumnCalculationType } from "../../qrvey/interfaces/ICalculationType";
|
|
8
9
|
/**
|
|
9
10
|
* Structure for columns used in the App frontend side
|
|
10
11
|
*/
|
|
@@ -22,5 +23,5 @@ export interface IColumn extends Omit<IBColumn, "text" | "bucketId" | "formulaId
|
|
|
22
23
|
property?: IColumnPropertyType;
|
|
23
24
|
slidebarValue?: number;
|
|
24
25
|
sorting?: IColumnSortingSettings;
|
|
25
|
-
formulaInputType?:
|
|
26
|
+
formulaInputType?: AGGREGATE_FORMULA_TYPE;
|
|
26
27
|
}
|
|
@@ -19,6 +19,6 @@ export declare function isValidTimeString(timeString?: string): boolean;
|
|
|
19
19
|
*/
|
|
20
20
|
export declare function formatTime(timeString: any, format: string): any;
|
|
21
21
|
export declare const addFormat: (value: any, outputFormat?: any, config?: IFormatConfig) => any;
|
|
22
|
-
export declare const parseFormulaType: (type: string) => "
|
|
22
|
+
export declare const parseFormulaType: (type: string) => "NUMERIC" | "DATE" | "TEXT_LABEL";
|
|
23
23
|
export declare const validateColumnType: (column: any) => any;
|
|
24
24
|
export declare const defineFormat: (column?: any, isSimpleTable?: boolean, isCategoryDimension?: boolean) => any;
|
|
@@ -8,6 +8,11 @@ export interface II18nTableCharts {
|
|
|
8
8
|
inner_charts: II18nTableChartsInnerCharts;
|
|
9
9
|
pagination: II18nTableChartsPagination;
|
|
10
10
|
sort: II18nTableChartsSort;
|
|
11
|
+
group: {
|
|
12
|
+
level: string;
|
|
13
|
+
select_column: string;
|
|
14
|
+
no_grouping_applied: string;
|
|
15
|
+
};
|
|
11
16
|
sort_tooltip: II18nTableChartsSortTooltip;
|
|
12
17
|
total: string;
|
|
13
18
|
visualization: string;
|
|
@@ -121,7 +121,8 @@ exports.I18N_CHART_BUILDER_GENERAL_OPTIONS = {
|
|
|
121
121
|
filtering: "Filtering",
|
|
122
122
|
column_resizing: "Column Resizing",
|
|
123
123
|
column_arrangement: "Column Arrangement",
|
|
124
|
-
|
|
124
|
+
grouping_column_update: "Add/Remove Groups",
|
|
125
|
+
column_update: "Add/Remove Columns",
|
|
125
126
|
change_aggregation: "Change Column Aggregations",
|
|
126
127
|
},
|
|
127
128
|
customization: {
|
|
@@ -130,6 +130,7 @@ exports.I18N_PANEL = {
|
|
|
130
130
|
exporting: "Exporting",
|
|
131
131
|
fit_panel: "Fit to panel",
|
|
132
132
|
no_filters: "No filters applied",
|
|
133
|
+
grouping_select_columns: "Grouping Columns",
|
|
133
134
|
select_columns: "Select columns",
|
|
134
135
|
sort_by: "Sort by",
|
|
135
136
|
smart_analyzer: "Smart analyzer",
|
|
@@ -29,6 +29,11 @@ exports.I18N_TABLE_CHARTS = {
|
|
|
29
29
|
select_column: "Select column to sort by",
|
|
30
30
|
sorted_by: "Order by",
|
|
31
31
|
},
|
|
32
|
+
group: {
|
|
33
|
+
level: "Group",
|
|
34
|
+
select_column: "Select column to group by",
|
|
35
|
+
no_grouping_applied: "No grouping applied",
|
|
36
|
+
},
|
|
32
37
|
sort_tooltip: {
|
|
33
38
|
disabled_multi_sort_dropdown: "Multi-Sorting disabled, add more columns to enable it.",
|
|
34
39
|
will_replace: "Selecting this column will replace the '{{column_name}}' sorting",
|
|
@@ -12,6 +12,7 @@ function BColumnsToUIColumns(columns = [], dataset) {
|
|
|
12
12
|
expressionWords: column.words,
|
|
13
13
|
formulaid: (0, getAttribute_1.getAttribute)(column, "formula_id"),
|
|
14
14
|
formulaType: column.formulaType,
|
|
15
|
+
formulaInputType: column.formulaInputType,
|
|
15
16
|
geogroup: column.geogroup,
|
|
16
17
|
id: column.id,
|
|
17
18
|
imageUploadOption: column.imageUploadOption,
|
|
@@ -13,4 +13,4 @@ import { IChartShelfType } from "../interfaces/IChartShelfType";
|
|
|
13
13
|
* grouped.
|
|
14
14
|
* @returns The column type of the column.
|
|
15
15
|
*/
|
|
16
|
-
export declare const columnTypeByChart: (column: IChartColumn, shelfType: IChartShelfType, chartGroup: IChartGroupType, isGroupedTable?: boolean) => "
|
|
16
|
+
export declare const columnTypeByChart: (column: IChartColumn, shelfType: IChartShelfType, chartGroup: IChartGroupType, isGroupedTable?: boolean) => import("../..").COMPLEX_COLUMN | import("../..").COMPOUND_COLUMN | "NUMERIC" | NUMERICAL_COLUMN | "DATE" | "TEXT_LABEL" | COLUMN.SINGLE_CHOICE | COLUMN.MULTIPLE_CHOICE | COLUMN.YES_NO | COLUMN.RANKING | COLUMN.DATE | COLUMN.TIME | COLUMN.SIGNATURE | COLUMN.DROPDOWN | COLUMN.IMAGE | COLUMN.EMAIL_FORM | COLUMN.PHONE | COLUMN.PASSWORD | COLUMN.TEXT_LABEL | COLUMN.TEXT_CATEGORY | COLUMN.LOOKUP | COLUMN.TEXT_FORMULA | COLUMN.NUMERIC_FORMULA | COLUMN.DATE_FORMULA | COLUMN.AGGREGATED_FORMULA | COLUMN.BUCKET | COLUMN.SLIDEBAR | COLUMN.NUMERIC | COLUMN.RATING | COLUMN.TEXTFIELD | COLUMN.LONGTEXT | COLUMN.IMAGEUPLOAD | COLUMN.FILEUPLOAD | COLUMN.EXPRESSION | COLUMN.NAME | COLUMN.USADDRESS | COLUMN.ADDRESS;
|
|
@@ -4,4 +4,4 @@ import { IFormulaType } from "../..";
|
|
|
4
4
|
* @param {IFormulaType} type - IFormulaType - this is the type of the formula.
|
|
5
5
|
* @returns The type of the formula.
|
|
6
6
|
*/
|
|
7
|
-
export declare const parseFormulaTypeByCharts: (type: IFormulaType) => "
|
|
7
|
+
export declare const parseFormulaTypeByCharts: (type: IFormulaType) => "NUMERIC" | "DATE" | "TEXT_LABEL";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IFormulaType } from "../../formulas/interfaces/IFormulaType";
|
|
2
1
|
import { IBColumAnswer } from "./IBColumAnswer";
|
|
3
2
|
import { IBColumnAnswerExpression } from "./IBColumnAnswerExpression";
|
|
4
3
|
import { IBColumnAnswerExpressionCategory } from "./IBColumnAnswerExpressionCategory";
|
|
@@ -8,6 +7,8 @@ import { IColumnImageUploadOption } from "./IColumnImageUploadOption";
|
|
|
8
7
|
import { IColumnOutputFormatSettings } from "./IColumnOutputFormatSettings";
|
|
9
8
|
import { IColumnPropertyType } from "./IColumnPropertyType";
|
|
10
9
|
import { IColumnType } from "./IColumnType";
|
|
10
|
+
import { AGGREGATE_FORMULA_TYPE } from "../../formulas/constants/FORMULA";
|
|
11
|
+
import { IFormulaType } from "../../formulas/interfaces/IFormulaType";
|
|
11
12
|
/**
|
|
12
13
|
* Structure for columns received in the question/list, model endpoints
|
|
13
14
|
*/
|
|
@@ -15,6 +16,7 @@ export interface IBColumn extends Partial<IBColumAnswer>, Partial<IBColumnAnswer
|
|
|
15
16
|
bucketId?: string;
|
|
16
17
|
formulaId?: string;
|
|
17
18
|
formulaType?: IFormulaType;
|
|
19
|
+
formulaInputType?: AGGREGATE_FORMULA_TYPE;
|
|
18
20
|
geogroup?: boolean;
|
|
19
21
|
id: string;
|
|
20
22
|
imageUploadOption?: IColumnImageUploadOption;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { IColumnCalculationType } from "../../qrvey/interfaces/ICalculationType";
|
|
2
|
-
import { IColumnPropertyType } from "./IColumnPropertyType";
|
|
3
|
-
import { IColumnSortingSettings } from "./IColumnSortingSettings";
|
|
4
1
|
import { IBColumn } from "./IBColumn";
|
|
5
|
-
import { IAggregateType } from "../../charts/interfaces/IAggregateType";
|
|
6
2
|
import { IBColumnAnswerExpressionWord } from "./IBColumnAnswerExpressionWord";
|
|
7
3
|
import { IBColumnAnswerLookupValueValue } from "./IBColumnAnswerLookupValueValue";
|
|
4
|
+
import { IColumnPropertyType } from "./IColumnPropertyType";
|
|
5
|
+
import { IColumnSortingSettings } from "./IColumnSortingSettings";
|
|
6
|
+
import { IAggregateType } from "../../charts/interfaces/IAggregateType";
|
|
7
|
+
import { AGGREGATE_FORMULA_TYPE } from "../../formulas/constants/FORMULA";
|
|
8
|
+
import { IColumnCalculationType } from "../../qrvey/interfaces/ICalculationType";
|
|
8
9
|
/**
|
|
9
10
|
* Structure for columns used in the App frontend side
|
|
10
11
|
*/
|
|
@@ -22,5 +23,5 @@ export interface IColumn extends Omit<IBColumn, "text" | "bucketId" | "formulaId
|
|
|
22
23
|
property?: IColumnPropertyType;
|
|
23
24
|
slidebarValue?: number;
|
|
24
25
|
sorting?: IColumnSortingSettings;
|
|
25
|
-
formulaInputType?:
|
|
26
|
+
formulaInputType?: AGGREGATE_FORMULA_TYPE;
|
|
26
27
|
}
|
package/dist/format/format.d.ts
CHANGED
|
@@ -19,6 +19,6 @@ export declare function isValidTimeString(timeString?: string): boolean;
|
|
|
19
19
|
*/
|
|
20
20
|
export declare function formatTime(timeString: any, format: string): any;
|
|
21
21
|
export declare const addFormat: (value: any, outputFormat?: any, config?: IFormatConfig) => any;
|
|
22
|
-
export declare const parseFormulaType: (type: string) => "
|
|
22
|
+
export declare const parseFormulaType: (type: string) => "NUMERIC" | "DATE" | "TEXT_LABEL";
|
|
23
23
|
export declare const validateColumnType: (column: any) => any;
|
|
24
24
|
export declare const defineFormat: (column?: any, isSimpleTable?: boolean, isCategoryDimension?: boolean) => any;
|
|
@@ -8,6 +8,11 @@ export interface II18nTableCharts {
|
|
|
8
8
|
inner_charts: II18nTableChartsInnerCharts;
|
|
9
9
|
pagination: II18nTableChartsPagination;
|
|
10
10
|
sort: II18nTableChartsSort;
|
|
11
|
+
group: {
|
|
12
|
+
level: string;
|
|
13
|
+
select_column: string;
|
|
14
|
+
no_grouping_applied: string;
|
|
15
|
+
};
|
|
11
16
|
sort_tooltip: II18nTableChartsSortTooltip;
|
|
12
17
|
total: string;
|
|
13
18
|
visualization: string;
|
|
@@ -118,7 +118,8 @@ export const I18N_CHART_BUILDER_GENERAL_OPTIONS = {
|
|
|
118
118
|
filtering: "Filtering",
|
|
119
119
|
column_resizing: "Column Resizing",
|
|
120
120
|
column_arrangement: "Column Arrangement",
|
|
121
|
-
|
|
121
|
+
grouping_column_update: "Add/Remove Groups",
|
|
122
|
+
column_update: "Add/Remove Columns",
|
|
122
123
|
change_aggregation: "Change Column Aggregations",
|
|
123
124
|
},
|
|
124
125
|
customization: {
|
|
@@ -127,6 +127,7 @@ export const I18N_PANEL = {
|
|
|
127
127
|
exporting: "Exporting",
|
|
128
128
|
fit_panel: "Fit to panel",
|
|
129
129
|
no_filters: "No filters applied",
|
|
130
|
+
grouping_select_columns: "Grouping Columns",
|
|
130
131
|
select_columns: "Select columns",
|
|
131
132
|
sort_by: "Sort by",
|
|
132
133
|
smart_analyzer: "Smart analyzer",
|
|
@@ -26,6 +26,11 @@ export const I18N_TABLE_CHARTS = {
|
|
|
26
26
|
select_column: "Select column to sort by",
|
|
27
27
|
sorted_by: "Order by",
|
|
28
28
|
},
|
|
29
|
+
group: {
|
|
30
|
+
level: "Group",
|
|
31
|
+
select_column: "Select column to group by",
|
|
32
|
+
no_grouping_applied: "No grouping applied",
|
|
33
|
+
},
|
|
29
34
|
sort_tooltip: {
|
|
30
35
|
disabled_multi_sort_dropdown: "Multi-Sorting disabled, add more columns to enable it.",
|
|
31
36
|
will_replace: "Selecting this column will replace the '{{column_name}}' sorting",
|
|
@@ -9,6 +9,7 @@ export function BColumnsToUIColumns(columns = [], dataset) {
|
|
|
9
9
|
expressionWords: column.words,
|
|
10
10
|
formulaid: getAttribute(column, "formula_id"),
|
|
11
11
|
formulaType: column.formulaType,
|
|
12
|
+
formulaInputType: column.formulaInputType,
|
|
12
13
|
geogroup: column.geogroup,
|
|
13
14
|
id: column.id,
|
|
14
15
|
imageUploadOption: column.imageUploadOption,
|