@qrvey/utils 1.16.0-3 → 1.16.0-31
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/index.d.ts +1 -1
- package/dist/cjs/elements/helpers/index.js +2 -1
- 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 +18 -9
- package/dist/cjs/formulas/constants/FORMULA.d.ts +1 -0
- package/dist/cjs/formulas/constants/FORMULA.js +2 -1
- package/dist/cjs/general/string/strategies/XSSEstrictedSanitizer.js +6 -1
- package/dist/cjs/general/string/strategies/XSSSanitizer.js +1 -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/export/II18nExportingModal.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterPanel.d.ts +2 -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/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/export/I18N_EXPORT_MODAL.d.ts +1 -1
- package/dist/cjs/globalization/labels/export/I18N_EXPORT_MODAL.js +76 -43
- package/dist/cjs/globalization/labels/filters/I18N_FILTER.js +1 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_PANEL.js +2 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_SCOPE.js +1 -0
- package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +2 -0
- package/dist/cjs/themes/helpers/index.d.ts +1 -0
- package/dist/cjs/themes/helpers/index.js +1 -0
- package/dist/cjs/themes/helpers/loadDefaultQrveyFonts.d.ts +11 -0
- package/dist/cjs/themes/helpers/loadDefaultQrveyFonts.js +32 -0
- 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/index.d.ts +1 -1
- package/dist/elements/helpers/index.js +1 -1
- 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 +18 -9
- package/dist/formulas/constants/FORMULA.d.ts +1 -0
- package/dist/formulas/constants/FORMULA.js +1 -0
- package/dist/general/string/strategies/XSSEstrictedSanitizer.js +6 -1
- package/dist/general/string/strategies/XSSSanitizer.js +1 -1
- 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/export/II18nExportingModal.d.ts +2 -0
- package/dist/globalization/interfaces/filters/II18nFilterPanel.d.ts +2 -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/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/export/I18N_EXPORT_MODAL.d.ts +1 -1
- package/dist/globalization/labels/export/I18N_EXPORT_MODAL.js +76 -43
- package/dist/globalization/labels/filters/I18N_FILTER.js +1 -0
- package/dist/globalization/labels/filters/I18N_FILTER_PANEL.js +2 -0
- package/dist/globalization/labels/filters/I18N_FILTER_SCOPE.js +1 -0
- package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +2 -0
- package/dist/themes/helpers/index.d.ts +1 -0
- package/dist/themes/helpers/index.js +1 -0
- package/dist/themes/helpers/loadDefaultQrveyFonts.d.ts +11 -0
- package/dist/themes/helpers/loadDefaultQrveyFonts.js +28 -0
- package/package.json +3 -3
|
@@ -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
|
}
|
|
@@ -41,6 +41,8 @@ export interface I18nExportingModal {
|
|
|
41
41
|
columns_to_export_label: string;
|
|
42
42
|
columns_to_create_dataset_label: string;
|
|
43
43
|
no_results_found: string;
|
|
44
|
+
reached_max_pivots_select_all: string;
|
|
45
|
+
reached_max_pivots: string;
|
|
44
46
|
};
|
|
45
47
|
schedule: {
|
|
46
48
|
chart_download_ready: string;
|
package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderCreateModal.d.ts
CHANGED
|
@@ -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;
|
|
@@ -194,6 +194,7 @@ exports.I18N_CHART_BUILDER_GENERAL = {
|
|
|
194
194
|
},
|
|
195
195
|
messages_general: {
|
|
196
196
|
chart_saved: "was saved successfully.",
|
|
197
|
+
chart_saved_ai: "Chart added to the Dataset",
|
|
197
198
|
},
|
|
198
199
|
messages_default: {
|
|
199
200
|
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.",
|
|
@@ -202,6 +203,7 @@ exports.I18N_CHART_BUILDER_GENERAL = {
|
|
|
202
203
|
max_panels_increment: "Increasing the amount of panels to display above {{max_data_point_values_panels}} can affect chart performance.",
|
|
203
204
|
median_aggregation_results: "The numbers are not actual, they are for preview purposes only.",
|
|
204
205
|
max_limit: "Only 10,000 max data points are supported.",
|
|
206
|
+
expanded_by_default: "The maximum supported limit for this feature (Expanded by default) is 500 rows and 50 columns.",
|
|
205
207
|
},
|
|
206
208
|
messages_crosstab: {
|
|
207
209
|
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.",
|
|
@@ -29,6 +29,10 @@ exports.I18N_CHART_BUILDER_GENERAL_OPTIONS = {
|
|
|
29
29
|
view_sorting: "Sorting",
|
|
30
30
|
view_subtotals: "Subtotals",
|
|
31
31
|
view_total: "Totals",
|
|
32
|
+
expanded_by_default: "Expanded by default",
|
|
33
|
+
expanded_by_default_disabled: "This option is disabled. To enable it, limit the layout to a maximum of 2 rows and 2 columns.",
|
|
34
|
+
freeze_headers: "Freeze the column headers",
|
|
35
|
+
freeze_rows: "Freeze the row headers",
|
|
32
36
|
},
|
|
33
37
|
tooltip_settings: {
|
|
34
38
|
name: "Tooltips",
|
|
@@ -56,6 +56,10 @@ exports.I18N_CHART_BUILDER_STYLE_OPTIONS = {
|
|
|
56
56
|
heatmap_pivot_axis_caption: "pivot",
|
|
57
57
|
global_y_axis_caption: "global",
|
|
58
58
|
multiseries_type: "Multiseries Type",
|
|
59
|
+
default_format_date_title: "Date Format",
|
|
60
|
+
type_custom_format: "Custom Format",
|
|
61
|
+
type_custom_format_placeholder: "Type custom format",
|
|
62
|
+
type_custom_format_error: "Invalid format",
|
|
59
63
|
},
|
|
60
64
|
color_settings: {
|
|
61
65
|
color_by_category: "By category",
|
|
@@ -2,4 +2,4 @@ import { I18nExportingModal } from "../../interfaces/export";
|
|
|
2
2
|
/**
|
|
3
3
|
* @deprecated since version 1.12.0; Qrvey version 8.3. Those default poroperties will be replaced by Qrvey Globalization JSON
|
|
4
4
|
*/
|
|
5
|
-
export declare const EXPORTING_MODAL: I18nExportingModal;
|
|
5
|
+
export declare const EXPORTING_MODAL: I18nExportingModal | any;
|
|
@@ -5,63 +5,56 @@ exports.EXPORTING_MODAL = void 0;
|
|
|
5
5
|
* @deprecated since version 1.12.0; Qrvey version 8.3. Those default poroperties will be replaced by Qrvey Globalization JSON
|
|
6
6
|
*/
|
|
7
7
|
exports.EXPORTING_MODAL = {
|
|
8
|
-
|
|
9
|
-
export_now: "Export Now",
|
|
10
|
-
create_dataset: "Create Dataset",
|
|
11
|
-
},
|
|
12
|
-
cancel_button_label: "Cancel",
|
|
13
|
-
error_messages: {
|
|
14
|
-
special_characters: "Special characters are not allowed in file name.",
|
|
15
|
-
},
|
|
8
|
+
title_label: "Export",
|
|
16
9
|
file_name_label: "File Name",
|
|
17
|
-
new_dataset_name_label: "New Dataset Name",
|
|
18
|
-
new_dataset_name_placeholder: "Type",
|
|
19
|
-
recurrence: {
|
|
20
|
-
label: "Recurrence",
|
|
21
|
-
value: { does_not_repeat: "Does not repeat" },
|
|
22
|
-
},
|
|
23
10
|
time_stamp: {
|
|
24
|
-
label: "
|
|
25
|
-
value: {
|
|
11
|
+
label: "Date and Time",
|
|
12
|
+
value: {
|
|
13
|
+
now_and_today: "Now and Today",
|
|
14
|
+
},
|
|
26
15
|
none_label: "None",
|
|
16
|
+
concatenate_date_time: "Concatenate Date and Time to the File Name",
|
|
17
|
+
off: "Off",
|
|
18
|
+
on: "On",
|
|
27
19
|
},
|
|
28
20
|
time_zone_label: "Time Zone",
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
recurrence: {
|
|
22
|
+
label: "Occurrence",
|
|
23
|
+
value: {
|
|
24
|
+
does_not_repeat: "Does Not Repeat",
|
|
25
|
+
repeats: "Repeats",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
cancel_button_label: "Cancel",
|
|
29
|
+
apply_button_label: {
|
|
30
|
+
export_now: "Export Now",
|
|
31
|
+
schedule: "Schedule",
|
|
32
|
+
},
|
|
31
33
|
uniqueness_concatenate: "For Uniqueness Concatenate",
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
tooltips: {
|
|
35
|
+
configure_valid_schedule: "Configure a valid schedule.",
|
|
36
|
+
uniqueness_concatenate_tooltip: "Choose whether to append the date and time to the end of the exported file name. <br/> The format is YYMMDDHHMMSSmmm.",
|
|
35
37
|
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
yes_label: "Yes",
|
|
43
|
-
no_label: "No",
|
|
44
|
-
},
|
|
45
|
-
search_placeholder: "Search",
|
|
46
|
-
columns_section: {
|
|
47
|
-
title: "Columns",
|
|
48
|
-
subtitle: "(Select columns to export)",
|
|
49
|
-
subtitle_new_dataset: "(Select columns for new dataset)",
|
|
50
|
-
select_all_label: "Add All Columns",
|
|
51
|
-
dataset_columns: "Dataset Columns",
|
|
52
|
-
pivot_columns_label: "Pivot Columns",
|
|
53
|
-
pivot_columns_sublabel: "Displaying only the first 100 results.",
|
|
38
|
+
error_messages: {
|
|
39
|
+
special_characters: "Special characters are not allowed in file name.",
|
|
40
|
+
select_valid_start_time: "Hour is in the past.",
|
|
41
|
+
invalid_date: {
|
|
42
|
+
select_valid_start_time: "Selected time occurs in the past",
|
|
43
|
+
select_valid_start_date: "Selected date occurs in the past",
|
|
54
44
|
},
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
45
|
+
},
|
|
46
|
+
warning_messages: {
|
|
47
|
+
unsaved_changes: "Exports reflect your latest saved changes. Save your updates to prevent outdated exports.",
|
|
58
48
|
},
|
|
59
49
|
schedule: {
|
|
50
|
+
schedule_tab_title: "Schedule",
|
|
51
|
+
subscribe_tab_title: "Subscribe",
|
|
60
52
|
chart_download_ready: "Chart is ready to download",
|
|
61
53
|
page_download_ready: "Dashboard is ready to download",
|
|
54
|
+
select_time_placeholder: "Select time",
|
|
62
55
|
schedule_button_label: {
|
|
63
56
|
schedule: "Schedule",
|
|
64
|
-
reset_to_default: "
|
|
57
|
+
reset_to_default: "Remove Schedule",
|
|
65
58
|
},
|
|
66
59
|
title: "Scheduling",
|
|
67
60
|
start: {
|
|
@@ -103,5 +96,45 @@ exports.EXPORTING_MODAL = {
|
|
|
103
96
|
select_date_placeholder: "Select Date",
|
|
104
97
|
recurrences: "occurrences",
|
|
105
98
|
},
|
|
99
|
+
time_picker: {
|
|
100
|
+
hours: "hours",
|
|
101
|
+
minutes: "minutes",
|
|
102
|
+
},
|
|
103
|
+
discard_changes_modal: {
|
|
104
|
+
discard_changes: "Discard Changes",
|
|
105
|
+
content: "All changes of Schedule and Subscribe sections will be discarted. This action cannot be restored.",
|
|
106
|
+
cancel: "Cancel",
|
|
107
|
+
discard: "Discard",
|
|
108
|
+
},
|
|
109
|
+
notifications: {
|
|
110
|
+
set_up_a_schedule: "Set up a schedule to enable subscriptions.",
|
|
111
|
+
banner_message: "All subscribers will receive the exported file with the same data as you.",
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
toast_messages: {
|
|
115
|
+
failed_scheduling: "The export could not be scheduled at this time.",
|
|
116
|
+
successful_scheduling: "The export of {{fileName}} has been scheduled successfully.",
|
|
117
|
+
},
|
|
118
|
+
pivoting_export: {
|
|
119
|
+
dataset_label: "Dataset",
|
|
120
|
+
filter_label: "Filter",
|
|
121
|
+
pivoting: {
|
|
122
|
+
title: "Pivoting",
|
|
123
|
+
yes_label: "Yes",
|
|
124
|
+
no_label: "No",
|
|
125
|
+
},
|
|
126
|
+
search_placeholder: "Search",
|
|
127
|
+
columns_section: {
|
|
128
|
+
title: "Columns",
|
|
129
|
+
subtitle: "(Select columns to export)",
|
|
130
|
+
select_all_label: "Add All Columns",
|
|
131
|
+
dataset_columns: "Dataset Columns",
|
|
132
|
+
pivot_columns_label: "Pivot Columns",
|
|
133
|
+
pivot_columns_sublabel: "Displaying only the first 100 results.",
|
|
134
|
+
},
|
|
135
|
+
columns_to_export_label: "Columns to export",
|
|
136
|
+
no_results_found: "No results found",
|
|
137
|
+
reached_max_pivots_select_all: "You can select up to {{pivots}} pivot columns. Your selection has been adjusted to meet this limit.",
|
|
138
|
+
reached_max_pivots: "You can select up to {{pivots}} pivot columns.",
|
|
106
139
|
},
|
|
107
140
|
};
|
|
@@ -11,6 +11,7 @@ exports.I18N_FILTER_SCOPE = {
|
|
|
11
11
|
global: FILTER_SCOPE_LABEL_1.FILTER_SCOPE_LABEL.GLOBAL,
|
|
12
12
|
page: FILTER_SCOPE_LABEL_1.FILTER_SCOPE_LABEL.PAGE,
|
|
13
13
|
tab: FILTER_SCOPE_LABEL_1.FILTER_SCOPE_LABEL.TAB,
|
|
14
|
+
container: FILTER_SCOPE_LABEL_1.FILTER_SCOPE_LABEL.CONTAINER,
|
|
14
15
|
default: FILTER_SCOPE_LABEL_1.FILTER_SCOPE_LABEL.DEFAULT,
|
|
15
16
|
chart: FILTER_SCOPE_LABEL_1.FILTER_SCOPE_LABEL.CHART,
|
|
16
17
|
action: FILTER_SCOPE_LABEL_1.FILTER_SCOPE_LABEL.ACTION,
|
|
@@ -39,7 +39,9 @@ exports.I18N_FORMULA_BUILDER = {
|
|
|
39
39
|
},
|
|
40
40
|
create_modal: {
|
|
41
41
|
title_header_create: "Create Formula",
|
|
42
|
+
title_header_create_aggregate: "Create Aggregate Formula",
|
|
42
43
|
title_header_edit: "Edit Formula",
|
|
44
|
+
title_header_edit_aggregate: "Edit Aggregate Formula",
|
|
43
45
|
title_header_table: "Create Table Formula",
|
|
44
46
|
name: "Formula Name",
|
|
45
47
|
placeholder_name: "Type Formula Name",
|
|
@@ -26,3 +26,4 @@ __exportStar(require("./isHexadecimalColor"), exports);
|
|
|
26
26
|
__exportStar(require("./isRGBAColor"), exports);
|
|
27
27
|
__exportStar(require("./lightOrDark"), exports);
|
|
28
28
|
__exportStar(require("./setAutomaticCSSVariablesForDark"), exports);
|
|
29
|
+
__exportStar(require("./loadDefaultQrveyFonts"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Load default qrvey fonts
|
|
3
|
+
* @param domain Qrvey domain
|
|
4
|
+
* @param root0 Optional parameters
|
|
5
|
+
* @param root0.styleId Optional styleId for the style tag
|
|
6
|
+
* @param root0.nonce Optional nonce attribute for csp.
|
|
7
|
+
*/
|
|
8
|
+
export declare function loadDefaultQrveyFonts(domain: string, { styleId: _styleId, nonce: _nonce, }?: {
|
|
9
|
+
styleId?: string;
|
|
10
|
+
nonce?: string;
|
|
11
|
+
}): void;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loadDefaultQrveyFonts = void 0;
|
|
4
|
+
// TODO: update this function to add the NONCE when the NONCE dev is ready
|
|
5
|
+
/**
|
|
6
|
+
* @description Load default qrvey fonts
|
|
7
|
+
* @param domain Qrvey domain
|
|
8
|
+
* @param root0 Optional parameters
|
|
9
|
+
* @param root0.styleId Optional styleId for the style tag
|
|
10
|
+
* @param root0.nonce Optional nonce attribute for csp.
|
|
11
|
+
*/
|
|
12
|
+
function loadDefaultQrveyFonts(domain, { styleId: _styleId, nonce: _nonce, } = {}) {
|
|
13
|
+
if (!domain)
|
|
14
|
+
return;
|
|
15
|
+
const styleId = _styleId !== null && _styleId !== void 0 ? _styleId : "qrvey-font-styles";
|
|
16
|
+
// If style exists dont import them again
|
|
17
|
+
const existingStyle = document.getElementById(styleId);
|
|
18
|
+
if (existingStyle)
|
|
19
|
+
return;
|
|
20
|
+
// Import new styles
|
|
21
|
+
const style = document.createElement("style");
|
|
22
|
+
const metaNonceEl = document.querySelector('meta[name="csp-nonce"]');
|
|
23
|
+
const nonce = _nonce !== null && _nonce !== void 0 ? _nonce : metaNonceEl === null || metaNonceEl === void 0 ? void 0 : metaNonceEl.content;
|
|
24
|
+
style.nonce = nonce;
|
|
25
|
+
style.id = styleId;
|
|
26
|
+
style.textContent = `
|
|
27
|
+
@import url('${domain}/cdn/fonts/Roboto/roboto.css');
|
|
28
|
+
@import url('${domain}/cdn/fonts/Inter/inter.css');
|
|
29
|
+
`;
|
|
30
|
+
document.head.appendChild(style);
|
|
31
|
+
}
|
|
32
|
+
exports.loadDefaultQrveyFonts = loadDefaultQrveyFonts;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NUMERICAL_COLUMN, NUMERICAL_COLUMNS } from "../..";
|
|
1
|
+
import { AGGREGATE, NUMERICAL_COLUMN, NUMERICAL_COLUMNS } from "../..";
|
|
2
2
|
import { COLUMN } from "../../columns";
|
|
3
3
|
import { CHART_GROUPS } from "../constants/CHART_GROUP";
|
|
4
4
|
import { SHELF_TYPE } from "../constants/SHELF_TYPE";
|
|
@@ -14,6 +14,7 @@ import { parseFormulaTypeByCharts } from "./parseFormulaTypeByCharts";
|
|
|
14
14
|
* @returns The column type of the column.
|
|
15
15
|
*/
|
|
16
16
|
export const columnTypeByChart = (column, shelfType, chartGroup, isGroupedTable) => {
|
|
17
|
+
var _a;
|
|
17
18
|
if (!column)
|
|
18
19
|
return;
|
|
19
20
|
const currentType = column.type === COLUMN.FORMULA
|
|
@@ -22,7 +23,8 @@ export const columnTypeByChart = (column, shelfType, chartGroup, isGroupedTable)
|
|
|
22
23
|
const isNumericalColumn = NUMERICAL_COLUMNS.some((colType) => colType === currentType) ||
|
|
23
24
|
(chartGroup === CHART_GROUPS.TABLES &&
|
|
24
25
|
isGroupedTable === true &&
|
|
25
|
-
shelfType === SHELF_TYPE.COLUMNS
|
|
26
|
+
shelfType === SHELF_TYPE.COLUMNS &&
|
|
27
|
+
![AGGREGATE.MIN, AGGREGATE.MAX].includes((_a = column === null || column === void 0 ? void 0 : column.aggregate) === null || _a === void 0 ? void 0 : _a.id)) ||
|
|
26
28
|
(chartGroup === CHART_GROUPS.XY && shelfType === SHELF_TYPE.VALUE);
|
|
27
29
|
return isNumericalColumn === true ? NUMERICAL_COLUMN.NUMERIC : currentType;
|
|
28
30
|
};
|
|
@@ -30,7 +30,8 @@ export declare enum CHART_TYPE {
|
|
|
30
30
|
RADAR_CHART = "RADAR_CHART",
|
|
31
31
|
TREEMAP_CHART = "TREEMAP_CHART",
|
|
32
32
|
AREA_CHART = "AREA_CHART",
|
|
33
|
-
AREA_CHART_MS = "AREA_CHART_MS"
|
|
33
|
+
AREA_CHART_MS = "AREA_CHART_MS",
|
|
34
|
+
SCATTER_CHART = "SCATTER_CHART"
|
|
34
35
|
}
|
|
35
36
|
export declare enum CHART_DIMENSION {
|
|
36
37
|
CATEGORIES = "categories",
|
|
@@ -32,6 +32,7 @@ export var CHART_TYPE;
|
|
|
32
32
|
CHART_TYPE["TREEMAP_CHART"] = "TREEMAP_CHART";
|
|
33
33
|
CHART_TYPE["AREA_CHART"] = "AREA_CHART";
|
|
34
34
|
CHART_TYPE["AREA_CHART_MS"] = "AREA_CHART_MS";
|
|
35
|
+
CHART_TYPE["SCATTER_CHART"] = "SCATTER_CHART";
|
|
35
36
|
})(CHART_TYPE || (CHART_TYPE = {}));
|
|
36
37
|
export var CHART_DIMENSION;
|
|
37
38
|
(function (CHART_DIMENSION) {
|
|
@@ -2,6 +2,7 @@ import { CanvasDevice } from "../interfaces/ICanvasGrid";
|
|
|
2
2
|
import { FindAvailablePositionOptions } from "../interfaces/IFixedPosition";
|
|
3
3
|
import { VemFixed } from "../interfaces/IVemCore";
|
|
4
4
|
import { VemPositionFixed } from "../interfaces/IVemPosition";
|
|
5
|
+
export declare const CANVAS_EXTRA_HEIGHT = 10;
|
|
5
6
|
/**
|
|
6
7
|
* update the position for a specific device
|
|
7
8
|
* @param element element to be updated
|
|
@@ -45,12 +46,13 @@ export declare function findFixedAvailablePositions(canvasWidth: number, newElem
|
|
|
45
46
|
* that meet certain conditions (no overflow or overlap). Elements that do not meet these
|
|
46
47
|
* conditions are recalculated to find a new valid position.
|
|
47
48
|
* @param elements - List of elements to recalculate.
|
|
49
|
+
* @param scopeElements - scope Elements
|
|
48
50
|
* @param device - The device on which the canvas is being rendered.
|
|
49
51
|
* @param resolution - The resolution of the canvas.
|
|
50
52
|
* @param [canvasHeight] - Optional height of the canvas.
|
|
51
53
|
* @returns - List of elements with their recalculated positions.
|
|
52
54
|
*/
|
|
53
|
-
export declare const recalculatePreservingPositions: (elements: VemFixed[], device: CanvasDevice, resolution: number, canvasHeight?: number) => VemFixed[];
|
|
55
|
+
export declare const recalculatePreservingPositions: (elements: VemFixed[], scopeElements: VemFixed[], device: CanvasDevice, resolution: number, canvasHeight?: number) => VemFixed[];
|
|
54
56
|
/**
|
|
55
57
|
* Adjusts the `width` of a fixed element to fit within the specified canvas width and updates its position.
|
|
56
58
|
* @param element - The fixed element to adjust.
|
|
@@ -94,3 +96,12 @@ export declare const sortElementsFromReferencePoint: (elements: VemFixed<unknown
|
|
|
94
96
|
x: number;
|
|
95
97
|
y: number;
|
|
96
98
|
}) => VemFixed<unknown>[];
|
|
99
|
+
/**
|
|
100
|
+
* Updates the height of a given container element based on the bottom limit of other scoped elements.
|
|
101
|
+
* It ensures the container has at least the height required to encompass all scoped elements.
|
|
102
|
+
* @param containerItem - The element to update.
|
|
103
|
+
* @param device - The target device context (used to access device-specific dimensions).
|
|
104
|
+
* @param scopeElements
|
|
105
|
+
* @returns - A new version of the container element with updated height if needed.
|
|
106
|
+
*/
|
|
107
|
+
export declare const updateFixedElementDimensions: (containerItem: VemFixed<unknown>, device: CanvasDevice, scopeElements: VemFixed<unknown>[]) => VemFixed<unknown>;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
2
|
+
import { objectCopy } from "../../general";
|
|
2
3
|
import { CanvasDevice } from "../interfaces/ICanvasGrid";
|
|
3
4
|
import { VemPositionType } from "../interfaces/IVemPosition";
|
|
4
|
-
import { dxGetFixedGridItemDevice, hasOverflow, hasOverlap, } from "../utils/fixed.position";
|
|
5
|
+
import { dxGetFixedGridItemDevice, dxGetFixedGridItemsBottomLimit, hasOverflow, hasOverlap, } from "../utils/fixed.position";
|
|
5
6
|
import { sortByDistanceFunction } from "../utils/general";
|
|
6
7
|
import { OverlapIntervalTree } from "../utils/overlap";
|
|
7
8
|
import { setElementPosition } from "../utils/position";
|
|
8
9
|
const SPACE_DELTA = 10;
|
|
10
|
+
export const CANVAS_EXTRA_HEIGHT = 10;
|
|
9
11
|
/**
|
|
10
12
|
* update the position for a specific device
|
|
11
13
|
* @param element element to be updated
|
|
@@ -109,19 +111,20 @@ export function findFixedAvailablePositions(canvasWidth, newElements, elements,
|
|
|
109
111
|
* that meet certain conditions (no overflow or overlap). Elements that do not meet these
|
|
110
112
|
* conditions are recalculated to find a new valid position.
|
|
111
113
|
* @param elements - List of elements to recalculate.
|
|
114
|
+
* @param scopeElements - scope Elements
|
|
112
115
|
* @param device - The device on which the canvas is being rendered.
|
|
113
116
|
* @param resolution - The resolution of the canvas.
|
|
114
117
|
* @param [canvasHeight] - Optional height of the canvas.
|
|
115
118
|
* @returns - List of elements with their recalculated positions.
|
|
116
119
|
*/
|
|
117
|
-
export const recalculatePreservingPositions = (elements, device, resolution, canvasHeight) => {
|
|
118
|
-
const keepElementPositions = getElementsWithKeepPosition([...elements], device, resolution, canvasHeight);
|
|
120
|
+
export const recalculatePreservingPositions = (elements, scopeElements, device, resolution, canvasHeight) => {
|
|
121
|
+
const keepElementPositions = getElementsWithKeepPosition([...elements], scopeElements, device, resolution, canvasHeight);
|
|
119
122
|
const elementIds = keepElementPositions.map((element) => element.elementId);
|
|
120
123
|
const elementsToCalculate = elements.filter((cElement) => !elementIds.includes(cElement.elementId));
|
|
121
124
|
const defaultElements = keepElementPositions.length
|
|
122
125
|
? keepElementPositions
|
|
123
126
|
: [];
|
|
124
|
-
const currentElements =
|
|
127
|
+
const currentElements = [...scopeElements, ...defaultElements];
|
|
125
128
|
const newElements = findFixedAvailablePositions(resolution, elementsToCalculate, currentElements, device, false, false, canvasHeight);
|
|
126
129
|
return [...keepElementPositions, ...newElements];
|
|
127
130
|
};
|
|
@@ -129,18 +132,19 @@ export const recalculatePreservingPositions = (elements, device, resolution, can
|
|
|
129
132
|
* Filters elements that should retain their current position on the canvas by checking
|
|
130
133
|
* that they do not have overflow (spilling outside the canvas) or overlap (colliding with other elements).
|
|
131
134
|
* @param elements - List of elements to check.
|
|
135
|
+
* @param scopeElements - List of elements to check.
|
|
132
136
|
* @param device - The device on which the canvas is being rendered.
|
|
133
137
|
* @param resolution - The resolution of the canvas.
|
|
134
138
|
* @param [canvasHeight] - Optional height of the canvas.
|
|
135
139
|
* @returns - List of elements that can retain their current position.
|
|
136
140
|
*/
|
|
137
|
-
const getElementsWithKeepPosition = (elements, device, resolution, canvasHeight) => {
|
|
141
|
+
const getElementsWithKeepPosition = (elements, scopeElements, device, resolution, canvasHeight) => {
|
|
138
142
|
const calculatedElements = elements.map((mElement) => {
|
|
139
143
|
const desktopPosition = dxGetFixedGridItemDevice(mElement, CanvasDevice.DESKTOP);
|
|
140
144
|
return updateFixedPosition(mElement, desktopPosition, device);
|
|
141
145
|
});
|
|
142
146
|
return calculatedElements.filter((cElement) => {
|
|
143
|
-
const currentElements =
|
|
147
|
+
const currentElements = scopeElements.filter((fElement) => fElement.elementId !== cElement.elementId);
|
|
144
148
|
const overflow = hasOverflow(cElement, device, resolution, canvasHeight);
|
|
145
149
|
const overlap = hasOverlap(cElement, currentElements, device);
|
|
146
150
|
return !overflow && !overlap;
|
|
@@ -234,3 +238,23 @@ export const sortElementsFromReferencePoint = (elements, device, referencePoint)
|
|
|
234
238
|
const sortedElements = [...calculatedElements].sort(sortByDistanceFunction);
|
|
235
239
|
return sortedElements.map((element) => element.element);
|
|
236
240
|
};
|
|
241
|
+
/**
|
|
242
|
+
* Updates the height of a given container element based on the bottom limit of other scoped elements.
|
|
243
|
+
* It ensures the container has at least the height required to encompass all scoped elements.
|
|
244
|
+
* @param containerItem - The element to update.
|
|
245
|
+
* @param device - The target device context (used to access device-specific dimensions).
|
|
246
|
+
* @param scopeElements
|
|
247
|
+
* @returns - A new version of the container element with updated height if needed.
|
|
248
|
+
*/
|
|
249
|
+
export const updateFixedElementDimensions = (containerItem, device, scopeElements) => {
|
|
250
|
+
let currentElement = objectCopy(containerItem);
|
|
251
|
+
const calculatedHeight = dxGetFixedGridItemsBottomLimit(scopeElements, device);
|
|
252
|
+
const currentHeight = currentElement.position.fixed[device].height;
|
|
253
|
+
const newHeight = calculatedHeight > currentHeight
|
|
254
|
+
? calculatedHeight + CANVAS_EXTRA_HEIGHT
|
|
255
|
+
: currentHeight;
|
|
256
|
+
currentElement = updateFixedPosition(currentElement, {
|
|
257
|
+
height: newHeight,
|
|
258
|
+
}, device);
|
|
259
|
+
return Object.assign({}, currentElement);
|
|
260
|
+
};
|
|
@@ -17,6 +17,19 @@ interface RecalculateOptions {
|
|
|
17
17
|
* @returns - A list of elements with updated positions if the canvas type is "fixed" or "responsive".
|
|
18
18
|
*/
|
|
19
19
|
export declare function recalculateElements(newElements: Vem[], currentElements: Vem[], canvasWidth: number, canvasType: string, device: CanvasDevice, options?: RecalculateOptions): Vem[];
|
|
20
|
+
/**
|
|
21
|
+
* Updates the dimensions of a container element using a strategy based on the given canvas type.
|
|
22
|
+
*
|
|
23
|
+
* Delegates the update logic to a specific strategy found in `updateDimensionStrategies`
|
|
24
|
+
* using the provided `canvasType` key.
|
|
25
|
+
* @param containerItem The element whose dimensions need to be updated
|
|
26
|
+
* @param scopeElements A list of elements to consider in the update strategy
|
|
27
|
+
* @param device The device context (e.g., desktop, tablet, mobile) used to retrieve device-specific properties
|
|
28
|
+
* @param canvasType The type of canvas that determines which strategy to use.
|
|
29
|
+
* @param gap The type of canvas that determines which strategy to use.
|
|
30
|
+
* @returns - The updated element with modified dimensions, or `undefined` if no strategy is found.
|
|
31
|
+
*/
|
|
32
|
+
export declare function applyDynamicSize(containerItem: Vem, scopeElements: Vem[], device: CanvasDevice, canvasType: string, gap?: number): Vem | undefined;
|
|
20
33
|
/**
|
|
21
34
|
* The calculation is delegated to a specific strategy based on the `canvasType`.
|
|
22
35
|
* @param elements - The list of elements in the canvas.
|