@qrvey/utils 1.16.0-2 → 1.16.0-21
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/cache-managers/cache-model-manager.js +6 -1
- package/dist/charts/adapters/RequestAdapterMetric.d.ts +2 -1
- package/dist/charts/adapters/RequestAdapterMetric.js +22 -5
- package/dist/charts/adapters/convertChartObjectFromV2toV1.d.ts +2 -0
- package/dist/charts/adapters/convertChartObjectFromV2toV1.js +63 -0
- package/dist/charts/adapters/getPanelBodyByChart.d.ts +2 -0
- package/dist/charts/adapters/getPanelBodyByChart.js +289 -0
- package/dist/charts/adapters/index.d.ts +2 -0
- package/dist/charts/adapters/index.js +2 -0
- package/dist/charts/constants/AGGREGATE.d.ts +3 -1
- package/dist/charts/constants/AGGREGATE.js +2 -0
- package/dist/charts/constants/AGGREGATE_ABBREVIATION.d.ts +3 -1
- package/dist/charts/constants/AGGREGATE_ABBREVIATION.js +2 -0
- package/dist/charts/constants/AGGREGATE_INFO.js +16 -0
- package/dist/charts/constants/AGGREGATE_LABEL.d.ts +3 -1
- package/dist/charts/constants/AGGREGATE_LABEL.js +2 -0
- package/dist/charts/constants/CHART_OBJECT.d.ts +564 -0
- package/dist/charts/constants/CHART_OBJECT.js +53 -0
- package/dist/charts/constants/QUESTION_TYPES.d.ts +241 -0
- package/dist/charts/constants/QUESTION_TYPES.js +410 -0
- package/dist/charts/constants/TIME_PERIOD.d.ts +10 -0
- package/dist/charts/constants/TIME_PERIOD.js +25 -0
- package/dist/charts/constants/index.d.ts +3 -0
- package/dist/charts/constants/index.js +3 -0
- package/dist/charts/helpers/chartTypes.d.ts +24 -0
- package/dist/charts/helpers/chartTypes.js +118 -0
- package/dist/charts/helpers/defaultColumnBuilder.d.ts +56 -0
- package/dist/charts/helpers/defaultColumnBuilder.js +322 -0
- package/dist/charts/helpers/getChartDimensions.d.ts +2 -0
- package/dist/charts/helpers/getChartDimensions.js +263 -0
- package/dist/charts/helpers/index.d.ts +4 -0
- package/dist/charts/helpers/index.js +4 -0
- package/dist/charts/helpers/styleSettingsByChartType.d.ts +60 -0
- package/dist/charts/helpers/styleSettingsByChartType.js +532 -0
- package/dist/charts/interfaces/IChartV2.d.ts +537 -0
- package/dist/charts/interfaces/IChartV2.js +33 -0
- package/dist/charts/interfaces/IRequestAdapterMetric.d.ts +5 -2
- package/dist/charts/interfaces/index.d.ts +1 -0
- package/dist/charts/interfaces/index.js +1 -0
- package/dist/cjs/cache-managers/cache-model-manager.js +6 -1
- package/dist/cjs/charts/adapters/RequestAdapterMetric.d.ts +2 -1
- package/dist/cjs/charts/adapters/RequestAdapterMetric.js +24 -6
- package/dist/cjs/charts/adapters/convertChartObjectFromV2toV1.d.ts +2 -0
- package/dist/cjs/charts/adapters/convertChartObjectFromV2toV1.js +67 -0
- package/dist/cjs/charts/adapters/getPanelBodyByChart.d.ts +2 -0
- package/dist/cjs/charts/adapters/getPanelBodyByChart.js +294 -0
- package/dist/cjs/charts/adapters/index.d.ts +2 -0
- package/dist/cjs/charts/adapters/index.js +2 -0
- package/dist/cjs/charts/constants/AGGREGATE.d.ts +3 -1
- package/dist/cjs/charts/constants/AGGREGATE.js +2 -0
- package/dist/cjs/charts/constants/AGGREGATE_ABBREVIATION.d.ts +3 -1
- package/dist/cjs/charts/constants/AGGREGATE_ABBREVIATION.js +2 -0
- package/dist/cjs/charts/constants/AGGREGATE_INFO.js +16 -0
- package/dist/cjs/charts/constants/AGGREGATE_LABEL.d.ts +3 -1
- package/dist/cjs/charts/constants/AGGREGATE_LABEL.js +2 -0
- package/dist/cjs/charts/constants/CHART_OBJECT.d.ts +564 -0
- package/dist/cjs/charts/constants/CHART_OBJECT.js +56 -0
- package/dist/cjs/charts/constants/QUESTION_TYPES.d.ts +241 -0
- package/dist/cjs/charts/constants/QUESTION_TYPES.js +413 -0
- package/dist/cjs/charts/constants/TIME_PERIOD.d.ts +10 -0
- package/dist/cjs/charts/constants/TIME_PERIOD.js +28 -0
- package/dist/cjs/charts/constants/index.d.ts +3 -0
- package/dist/cjs/charts/constants/index.js +3 -0
- package/dist/cjs/charts/helpers/chartTypes.d.ts +24 -0
- package/dist/cjs/charts/helpers/chartTypes.js +138 -0
- package/dist/cjs/charts/helpers/defaultColumnBuilder.d.ts +56 -0
- package/dist/cjs/charts/helpers/defaultColumnBuilder.js +326 -0
- package/dist/cjs/charts/helpers/getChartDimensions.d.ts +2 -0
- package/dist/cjs/charts/helpers/getChartDimensions.js +267 -0
- package/dist/cjs/charts/helpers/index.d.ts +4 -0
- package/dist/cjs/charts/helpers/index.js +4 -0
- package/dist/cjs/charts/helpers/styleSettingsByChartType.d.ts +60 -0
- package/dist/cjs/charts/helpers/styleSettingsByChartType.js +541 -0
- package/dist/cjs/charts/interfaces/IChartV2.d.ts +537 -0
- package/dist/cjs/charts/interfaces/IChartV2.js +36 -0
- package/dist/cjs/charts/interfaces/IRequestAdapterMetric.d.ts +5 -2
- package/dist/cjs/charts/interfaces/index.d.ts +1 -0
- package/dist/cjs/charts/interfaces/index.js +1 -0
- package/dist/cjs/column_format/helpers/columnTypeByChart.js +3 -1
- package/dist/cjs/columns/interfaces/IColumn.d.ts +1 -0
- package/dist/cjs/columns/interfaces/IColunmCalculation.d.ts +5 -0
- package/dist/cjs/constants/Charts.Const.d.ts +2 -1
- package/dist/cjs/constants/Charts.Const.js +1 -0
- package/dist/cjs/elements/helpers/fixed.d.ts +12 -1
- package/dist/cjs/elements/helpers/fixed.js +33 -8
- package/dist/cjs/elements/helpers/gridStrategy.d.ts +13 -0
- package/dist/cjs/elements/helpers/gridStrategy.js +31 -3
- package/dist/cjs/elements/helpers/responsive.d.ts +11 -1
- package/dist/cjs/elements/helpers/responsive.js +31 -1
- package/dist/cjs/elements/utils/fixed.position.d.ts +1 -0
- package/dist/cjs/elements/utils/fixed.position.js +8 -1
- package/dist/cjs/filters/constants/common/FILTER_SCOPE.d.ts +1 -0
- package/dist/cjs/filters/constants/common/FILTER_SCOPE.js +1 -0
- package/dist/cjs/filters/constants/common/FILTER_SCOPES.js +1 -0
- package/dist/cjs/filters/constants/common/FILTER_SCOPE_INFO.js +8 -0
- package/dist/cjs/filters/constants/common/FILTER_SCOPE_LABEL.d.ts +1 -0
- package/dist/cjs/filters/constants/common/FILTER_SCOPE_LABEL.js +1 -0
- package/dist/cjs/filters/constants/settings/FILTER_SETTINGS_DEFAULT.js +29 -6
- package/dist/cjs/filters/helpers/common/excludeFiltersByDatasetsColumns.d.ts +10 -0
- package/dist/cjs/filters/helpers/common/excludeFiltersByDatasetsColumns.js +64 -0
- package/dist/cjs/filters/helpers/common/index.d.ts +1 -0
- package/dist/cjs/filters/helpers/common/index.js +1 -0
- package/dist/cjs/format/duration/durationFormatter.js +4 -1
- package/dist/cjs/formulas/constants/FORMULA.d.ts +1 -0
- package/dist/cjs/formulas/constants/FORMULA.js +2 -1
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderGeneralOptions.d.ts +4 -0
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderMessagesDefault.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderMessagesGeneral.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderStyleOptions.d.ts +4 -0
- package/dist/cjs/globalization/interfaces/dashboard/II18nDashboardAddChart.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelScopeTitle.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterScopes.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderCreateModal.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2Functions.d.ts +7 -7
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +2 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.js +4 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +4 -0
- package/dist/cjs/globalization/labels/dashboard/I18N_DASHBOARD.js +1 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER.js +1 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_SCOPE.js +1 -0
- package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +16 -14
- package/dist/column_format/helpers/columnTypeByChart.js +4 -2
- package/dist/columns/interfaces/IColumn.d.ts +1 -0
- package/dist/columns/interfaces/IColunmCalculation.d.ts +5 -0
- package/dist/constants/Charts.Const.d.ts +2 -1
- package/dist/constants/Charts.Const.js +1 -0
- package/dist/elements/helpers/fixed.d.ts +12 -1
- package/dist/elements/helpers/fixed.js +30 -6
- package/dist/elements/helpers/gridStrategy.d.ts +13 -0
- package/dist/elements/helpers/gridStrategy.js +31 -4
- package/dist/elements/helpers/responsive.d.ts +11 -1
- package/dist/elements/helpers/responsive.js +29 -0
- package/dist/elements/utils/fixed.position.d.ts +1 -0
- package/dist/elements/utils/fixed.position.js +6 -0
- package/dist/filters/constants/common/FILTER_SCOPE.d.ts +1 -0
- package/dist/filters/constants/common/FILTER_SCOPE.js +1 -0
- package/dist/filters/constants/common/FILTER_SCOPES.js +1 -0
- package/dist/filters/constants/common/FILTER_SCOPE_INFO.js +8 -0
- package/dist/filters/constants/common/FILTER_SCOPE_LABEL.d.ts +1 -0
- package/dist/filters/constants/common/FILTER_SCOPE_LABEL.js +1 -0
- package/dist/filters/constants/settings/FILTER_SETTINGS_DEFAULT.js +29 -6
- package/dist/filters/helpers/common/excludeFiltersByDatasetsColumns.d.ts +10 -0
- package/dist/filters/helpers/common/excludeFiltersByDatasetsColumns.js +60 -0
- package/dist/filters/helpers/common/index.d.ts +1 -0
- package/dist/filters/helpers/common/index.js +1 -0
- package/dist/format/duration/durationFormatter.js +4 -1
- package/dist/formulas/constants/FORMULA.d.ts +1 -0
- package/dist/formulas/constants/FORMULA.js +1 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderGeneralOptions.d.ts +4 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderMessagesDefault.d.ts +1 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderMessagesGeneral.d.ts +1 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderStyleOptions.d.ts +4 -0
- package/dist/globalization/interfaces/dashboard/II18nDashboardAddChart.d.ts +1 -0
- package/dist/globalization/interfaces/filters/II18nFilterPanelScopeTitle.d.ts +1 -0
- package/dist/globalization/interfaces/filters/II18nFilterScopes.d.ts +1 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderCreateModal.d.ts +2 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2Functions.d.ts +7 -7
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +2 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.js +4 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +4 -0
- package/dist/globalization/labels/dashboard/I18N_DASHBOARD.js +1 -0
- package/dist/globalization/labels/filters/I18N_FILTER.js +1 -0
- package/dist/globalization/labels/filters/I18N_FILTER_SCOPE.js +1 -0
- package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +16 -14
- package/package.json +3 -3
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IDataset } from "../../../qrvey/interfaces/IDataset";
|
|
2
|
+
import { IFUData } from "../../interfaces/ui/IFUData";
|
|
3
|
+
/**
|
|
4
|
+
* Filtering the filters by the columns of datasets.
|
|
5
|
+
* Module specially for CLS.
|
|
6
|
+
* @param data the filter data
|
|
7
|
+
* @param datasets the collection of datasets and their columns
|
|
8
|
+
* @returns A new filter data with the filtered filters by columns
|
|
9
|
+
*/
|
|
10
|
+
export declare function excludeFiltersByDatasetsColumns(data: IFUData, datasets?: IDataset[]): IFUData;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { getDatasetColumn } from "../../../columns/helpers/getDatasetColumn";
|
|
2
|
+
import { isEmpty } from "../../../general/mix/isEmpty";
|
|
3
|
+
import { getDatasetByColumn } from "../../../qrvey/helpers/getDatasetByColumn";
|
|
4
|
+
/**
|
|
5
|
+
* Filtering the filters by the columns of datasets.
|
|
6
|
+
* Module specially for CLS.
|
|
7
|
+
* @param data the filter data
|
|
8
|
+
* @param datasets the collection of datasets and their columns
|
|
9
|
+
* @returns A new filter data with the filtered filters by columns
|
|
10
|
+
*/
|
|
11
|
+
export function excludeFiltersByDatasetsColumns(data, datasets = []) {
|
|
12
|
+
if (isEmpty(data) || isEmpty(data.scopes))
|
|
13
|
+
return;
|
|
14
|
+
if (isEmpty(datasets))
|
|
15
|
+
return data;
|
|
16
|
+
const newData = Object.assign(Object.assign({}, data), { scopes: getExcludedScopes(data.scopes, datasets) });
|
|
17
|
+
if (!isEmpty(newData) && newData.scopes.length > 0) {
|
|
18
|
+
return newData;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @param scopes
|
|
24
|
+
* @param datasets
|
|
25
|
+
*/
|
|
26
|
+
function getExcludedScopes(scopes, datasets = []) {
|
|
27
|
+
return scopes
|
|
28
|
+
.map((scope) => (Object.assign(Object.assign({}, scope), { datasets: getExcludedDatasets(scope.datasets, datasets) })))
|
|
29
|
+
.filter((scope) => !isEmpty(scope) && scope.datasets.length > 0);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @param scopeDatasets
|
|
34
|
+
* @param datasets
|
|
35
|
+
*/
|
|
36
|
+
function getExcludedDatasets(scopeDatasets, datasets) {
|
|
37
|
+
return scopeDatasets
|
|
38
|
+
.map((scopeDataset) => {
|
|
39
|
+
const dataset = getDatasetByColumn({ qrveyid: scopeDataset.qrveyid }, datasets);
|
|
40
|
+
if (!isEmpty(dataset)) {
|
|
41
|
+
return Object.assign(Object.assign({}, scopeDataset), { filters: getExcludedFilters(scopeDataset.filters, dataset) });
|
|
42
|
+
}
|
|
43
|
+
})
|
|
44
|
+
.filter((dataset) => !isEmpty(dataset) && dataset.filters.length > 0);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @param filters
|
|
49
|
+
* @param dataset
|
|
50
|
+
*/
|
|
51
|
+
function getExcludedFilters(filters, dataset) {
|
|
52
|
+
return filters
|
|
53
|
+
.map((filter) => {
|
|
54
|
+
const column = getDatasetColumn(filter.column, dataset);
|
|
55
|
+
if (isEmpty(column)) {
|
|
56
|
+
return Object.assign({}, filter);
|
|
57
|
+
}
|
|
58
|
+
})
|
|
59
|
+
.filter(Boolean);
|
|
60
|
+
}
|
|
@@ -128,7 +128,10 @@ export class DurationFormatter {
|
|
|
128
128
|
let _number = number;
|
|
129
129
|
_number *= this.numberFactor;
|
|
130
130
|
const durationParts = this.parts.reduce((store, part) => {
|
|
131
|
-
|
|
131
|
+
const roundDuration = Math.floor(Math.abs(_number / part.ms));
|
|
132
|
+
const durationValid = roundDuration * (_number < 0 ? -1 : 1);
|
|
133
|
+
store[part.symbol] =
|
|
134
|
+
durationValid === 0 ? Math.abs(durationValid) : durationValid;
|
|
132
135
|
_number %= part.ms;
|
|
133
136
|
return store;
|
|
134
137
|
}, {});
|
|
@@ -49,4 +49,8 @@ export interface II18nChartBuilderStyleOptions {
|
|
|
49
49
|
heatmap_pivot_axis_caption: string;
|
|
50
50
|
global_y_axis_caption: string;
|
|
51
51
|
multiseries_type: string;
|
|
52
|
+
default_format_date_title: string;
|
|
53
|
+
type_custom_format: string;
|
|
54
|
+
type_custom_format_placeholder: string;
|
|
55
|
+
type_custom_format_error: string;
|
|
52
56
|
}
|
|
@@ -2,7 +2,9 @@ import { II18nFormulaBuilderErrorMessage } from "./II18nFormulaBuilderErrorMessa
|
|
|
2
2
|
import { II18nFormulaBuilderV2Functions } from "./II18nFormulaBuilderV2Functions";
|
|
3
3
|
export interface II18nFormulaBuilderCreateModal {
|
|
4
4
|
title_header_create: string;
|
|
5
|
+
title_header_create_aggregate: string;
|
|
5
6
|
title_header_edit: string;
|
|
7
|
+
title_header_edit_aggregate: string;
|
|
6
8
|
title_header_table: string;
|
|
7
9
|
name: string;
|
|
8
10
|
placeholder_name: string;
|
|
@@ -76,11 +76,11 @@ export interface II18nFormulaBuilderV2Functions {
|
|
|
76
76
|
roundup: II18nFormulaBuilderV2FunctionRound;
|
|
77
77
|
millisecond: II18nFormulaBuilderV2FunctionMillisecond;
|
|
78
78
|
text: II18nFormulaBuilderV2FunctionText;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
79
|
+
sum: II18nFormulaBuilderV2FunctionAggregate;
|
|
80
|
+
avg: II18nFormulaBuilderV2FunctionAggregate;
|
|
81
|
+
med: II18nFormulaBuilderV2FunctionAggregate;
|
|
82
|
+
minval: II18nFormulaBuilderV2FunctionAggregate;
|
|
83
|
+
maxval: II18nFormulaBuilderV2FunctionAggregate;
|
|
84
|
+
count: II18nFormulaBuilderV2FunctionAggregate;
|
|
85
|
+
distcount: II18nFormulaBuilderV2FunctionAggregate;
|
|
86
86
|
}
|
|
@@ -191,6 +191,7 @@ export const I18N_CHART_BUILDER_GENERAL = {
|
|
|
191
191
|
},
|
|
192
192
|
messages_general: {
|
|
193
193
|
chart_saved: "was saved successfully.",
|
|
194
|
+
chart_saved_ai: "Chart added to the Dataset",
|
|
194
195
|
},
|
|
195
196
|
messages_default: {
|
|
196
197
|
max_data: "Chart shows a maximum number of data points by default. To see more, go to <i>General</i> chart options and increase the <i>Max Data</i> Points to display.",
|
|
@@ -199,6 +200,7 @@ export const I18N_CHART_BUILDER_GENERAL = {
|
|
|
199
200
|
max_panels_increment: "Increasing the amount of panels to display above {{max_data_point_values_panels}} can affect chart performance.",
|
|
200
201
|
median_aggregation_results: "The numbers are not actual, they are for preview purposes only.",
|
|
201
202
|
max_limit: "Only 10,000 max data points are supported.",
|
|
203
|
+
expanded_by_default: "The maximum supported limit for this feature (Expanded by default) is 500 rows and 50 columns.",
|
|
202
204
|
},
|
|
203
205
|
messages_crosstab: {
|
|
204
206
|
max_data: "Chart shows a maximum number of data points by default. To see more, go to <i>General</i> chart options and increase the <i>Max Records</i> and <i>Max Columns</i> to display.",
|
|
@@ -26,6 +26,10 @@ export const I18N_CHART_BUILDER_GENERAL_OPTIONS = {
|
|
|
26
26
|
view_sorting: "Sorting",
|
|
27
27
|
view_subtotals: "Subtotals",
|
|
28
28
|
view_total: "Totals",
|
|
29
|
+
expanded_by_default: "Expanded by default",
|
|
30
|
+
expanded_by_default_disabled: "This option is disabled. To enable it, limit the layout to a maximum of 2 rows and 2 columns.",
|
|
31
|
+
freeze_headers: "Freeze the column headers",
|
|
32
|
+
freeze_rows: "Freeze the row headers",
|
|
29
33
|
},
|
|
30
34
|
tooltip_settings: {
|
|
31
35
|
name: "Tooltips",
|
|
@@ -53,6 +53,10 @@ export const I18N_CHART_BUILDER_STYLE_OPTIONS = {
|
|
|
53
53
|
heatmap_pivot_axis_caption: "pivot",
|
|
54
54
|
global_y_axis_caption: "global",
|
|
55
55
|
multiseries_type: "Multiseries Type",
|
|
56
|
+
default_format_date_title: "Date Format",
|
|
57
|
+
type_custom_format: "Custom Format",
|
|
58
|
+
type_custom_format_placeholder: "Type custom format",
|
|
59
|
+
type_custom_format_error: "Invalid format",
|
|
56
60
|
},
|
|
57
61
|
color_settings: {
|
|
58
62
|
color_by_category: "By category",
|
|
@@ -8,6 +8,7 @@ export const I18N_FILTER_SCOPE = {
|
|
|
8
8
|
global: FILTER_SCOPE_LABEL.GLOBAL,
|
|
9
9
|
page: FILTER_SCOPE_LABEL.PAGE,
|
|
10
10
|
tab: FILTER_SCOPE_LABEL.TAB,
|
|
11
|
+
container: FILTER_SCOPE_LABEL.CONTAINER,
|
|
11
12
|
default: FILTER_SCOPE_LABEL.DEFAULT,
|
|
12
13
|
chart: FILTER_SCOPE_LABEL.CHART,
|
|
13
14
|
action: FILTER_SCOPE_LABEL.ACTION,
|
|
@@ -36,7 +36,9 @@ export const I18N_FORMULA_BUILDER = {
|
|
|
36
36
|
},
|
|
37
37
|
create_modal: {
|
|
38
38
|
title_header_create: "Create Formula",
|
|
39
|
+
title_header_create_aggregate: "Create Aggregate Formula",
|
|
39
40
|
title_header_edit: "Edit Formula",
|
|
41
|
+
title_header_edit_aggregate: "Edit Aggregate Formula",
|
|
40
42
|
title_header_table: "Create Table Formula",
|
|
41
43
|
name: "Formula Name",
|
|
42
44
|
placeholder_name: "Type Formula Name",
|
|
@@ -382,45 +384,45 @@ export const I18N_FORMULA_BUILDER = {
|
|
|
382
384
|
param_num1_name: "num1",
|
|
383
385
|
param_num1_description: "The number that you want to convert to text.",
|
|
384
386
|
},
|
|
385
|
-
|
|
387
|
+
sum: {
|
|
386
388
|
description: "Returns the aggregated sum of the numeric values of a column.",
|
|
387
|
-
function_placeholder: "
|
|
389
|
+
function_placeholder: "SUM(column)",
|
|
388
390
|
param_column_name: "column",
|
|
389
391
|
param_column_description: "The numeric column that will be aggregated.",
|
|
390
392
|
},
|
|
391
|
-
|
|
393
|
+
avg: {
|
|
392
394
|
description: "Returns the average value for all the numeric values of a column.",
|
|
393
|
-
function_placeholder: "
|
|
395
|
+
function_placeholder: "AVG(column)",
|
|
394
396
|
param_column_name: "column",
|
|
395
397
|
param_column_description: "The numeric column that will be aggregated.",
|
|
396
398
|
},
|
|
397
|
-
|
|
399
|
+
med: {
|
|
398
400
|
description: "Returns the median value for all the numeric values of a column.",
|
|
399
|
-
function_placeholder: "
|
|
401
|
+
function_placeholder: "MED(column)",
|
|
400
402
|
param_column_name: "column",
|
|
401
403
|
param_column_description: "The numeric column that will be aggregated.",
|
|
402
404
|
},
|
|
403
|
-
|
|
405
|
+
minval: {
|
|
404
406
|
description: "Returns the minimum value among all the numeric values of a column.",
|
|
405
|
-
function_placeholder: "
|
|
407
|
+
function_placeholder: "MINVAL(column)",
|
|
406
408
|
param_column_name: "column",
|
|
407
409
|
param_column_description: "The numeric column that will be aggregated.",
|
|
408
410
|
},
|
|
409
|
-
|
|
411
|
+
maxval: {
|
|
410
412
|
description: "Returns the maximum value among all the numeric values of a column.",
|
|
411
|
-
function_placeholder: "
|
|
413
|
+
function_placeholder: "MAXVAL(column)",
|
|
412
414
|
param_column_name: "column",
|
|
413
415
|
param_column_description: "The numeric column that will be aggregated.",
|
|
414
416
|
},
|
|
415
|
-
|
|
417
|
+
count: {
|
|
416
418
|
description: "Returns the count of all the values of a column.",
|
|
417
|
-
function_placeholder: "
|
|
419
|
+
function_placeholder: "COUNT(column)",
|
|
418
420
|
param_column_name: "column",
|
|
419
421
|
param_column_description: "The column that will be aggregated.",
|
|
420
422
|
},
|
|
421
|
-
|
|
423
|
+
distcount: {
|
|
422
424
|
description: "Returns the count of all the distinct values of a column.",
|
|
423
|
-
function_placeholder: "
|
|
425
|
+
function_placeholder: "DISTCOUNT(column)",
|
|
424
426
|
param_column_name: "column",
|
|
425
427
|
param_column_description: "The column that will be aggregated.",
|
|
426
428
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qrvey/utils",
|
|
3
|
-
"version": "1.16.0-
|
|
3
|
+
"version": "1.16.0-21",
|
|
4
4
|
"description": "Helper, Utils for all Qrvey Projects",
|
|
5
5
|
"homepage": "https://bitbucket.org/qrvey/qrvey_utils/wiki/Home",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"compodoc.server": "./node_modules/.bin/compodoc -p ./tsconfig.doc.json -s --port=4400",
|
|
12
12
|
"lint": "eslint . --quiet --exit-on-fatal-error --ext .ts,.js",
|
|
13
13
|
"lint.dev": "eslint . --debug --ext .ts,.tsx",
|
|
14
|
-
"prepare": "husky
|
|
14
|
+
"prepare": "husky",
|
|
15
15
|
"publishing.beta.1": "node ./scripts/publishing --np-new-version=$npm_config_np_new_version --np-any-branch=$npm_config_np_any_branch --np-tag=$npm_config_np_tag",
|
|
16
16
|
"publishing": "node ./scripts/clean-build && np $npm_config_np_new_version --any-branch --tag=$npm_config_np_tag --no-yarn",
|
|
17
17
|
"publishing.win": "node ./scripts/clean-build && np %npm_config_np_new_version% --any-branch --tag=%npm_config_np_tag%",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"author": "Qrvey Inc",
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"engines": {
|
|
26
|
-
"node": ">=
|
|
26
|
+
"node": ">=20"
|
|
27
27
|
},
|
|
28
28
|
"exports": {
|
|
29
29
|
"import": "./dist/index.js",
|