@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
package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2Functions.d.ts
CHANGED
|
@@ -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
|
}
|
|
@@ -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",
|
|
@@ -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",
|
|
@@ -385,45 +387,45 @@ exports.I18N_FORMULA_BUILDER = {
|
|
|
385
387
|
param_num1_name: "num1",
|
|
386
388
|
param_num1_description: "The number that you want to convert to text.",
|
|
387
389
|
},
|
|
388
|
-
|
|
390
|
+
sum: {
|
|
389
391
|
description: "Returns the aggregated sum of the numeric values of a column.",
|
|
390
|
-
function_placeholder: "
|
|
392
|
+
function_placeholder: "SUM(column)",
|
|
391
393
|
param_column_name: "column",
|
|
392
394
|
param_column_description: "The numeric column that will be aggregated.",
|
|
393
395
|
},
|
|
394
|
-
|
|
396
|
+
avg: {
|
|
395
397
|
description: "Returns the average value for all the numeric values of a column.",
|
|
396
|
-
function_placeholder: "
|
|
398
|
+
function_placeholder: "AVG(column)",
|
|
397
399
|
param_column_name: "column",
|
|
398
400
|
param_column_description: "The numeric column that will be aggregated.",
|
|
399
401
|
},
|
|
400
|
-
|
|
402
|
+
med: {
|
|
401
403
|
description: "Returns the median value for all the numeric values of a column.",
|
|
402
|
-
function_placeholder: "
|
|
404
|
+
function_placeholder: "MED(column)",
|
|
403
405
|
param_column_name: "column",
|
|
404
406
|
param_column_description: "The numeric column that will be aggregated.",
|
|
405
407
|
},
|
|
406
|
-
|
|
408
|
+
minval: {
|
|
407
409
|
description: "Returns the minimum value among all the numeric values of a column.",
|
|
408
|
-
function_placeholder: "
|
|
410
|
+
function_placeholder: "MINVAL(column)",
|
|
409
411
|
param_column_name: "column",
|
|
410
412
|
param_column_description: "The numeric column that will be aggregated.",
|
|
411
413
|
},
|
|
412
|
-
|
|
414
|
+
maxval: {
|
|
413
415
|
description: "Returns the maximum value among all the numeric values of a column.",
|
|
414
|
-
function_placeholder: "
|
|
416
|
+
function_placeholder: "MAXVAL(column)",
|
|
415
417
|
param_column_name: "column",
|
|
416
418
|
param_column_description: "The numeric column that will be aggregated.",
|
|
417
419
|
},
|
|
418
|
-
|
|
420
|
+
count: {
|
|
419
421
|
description: "Returns the count of all the values of a column.",
|
|
420
|
-
function_placeholder: "
|
|
422
|
+
function_placeholder: "COUNT(column)",
|
|
421
423
|
param_column_name: "column",
|
|
422
424
|
param_column_description: "The column that will be aggregated.",
|
|
423
425
|
},
|
|
424
|
-
|
|
426
|
+
distcount: {
|
|
425
427
|
description: "Returns the count of all the distinct values of a column.",
|
|
426
|
-
function_placeholder: "
|
|
428
|
+
function_placeholder: "DISTCOUNT(column)",
|
|
427
429
|
param_column_name: "column",
|
|
428
430
|
param_column_description: "The column that will be aggregated.",
|
|
429
431
|
},
|
|
@@ -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.
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import { findFixedAvailablePositions, getFixedGridElementsBottomLimit, recalculatePreservingPositions, sortElementsFromReferencePoint, } from "./fixed";
|
|
2
|
-
import { findResponsiveAvailablePositions, getResponsiveGridElementsBottomLimit, sortResponsiveElements, } from "./responsive";
|
|
1
|
+
import { findFixedAvailablePositions, getFixedGridElementsBottomLimit, recalculatePreservingPositions, sortElementsFromReferencePoint, updateFixedElementDimensions, } from "./fixed";
|
|
2
|
+
import { findResponsiveAvailablePositions, getResponsiveGridElementsBottomLimit, sortResponsiveElements, updateResponsiveElementDimensions, } from "./responsive";
|
|
3
3
|
import { CanvasDevice, VemPositionType, } from "../interfaces";
|
|
4
4
|
import { copyDesktopPositionToDevice } from "../utils/element";
|
|
5
|
+
const applyDynamicSizeStrategies = {
|
|
6
|
+
fixed: (containerItem, scopeElements, device) => {
|
|
7
|
+
return updateFixedElementDimensions(containerItem, device, scopeElements);
|
|
8
|
+
},
|
|
9
|
+
responsive: (containerItem, scopeElements, device, gap) => {
|
|
10
|
+
return updateResponsiveElementDimensions(containerItem, device, scopeElements, gap);
|
|
11
|
+
},
|
|
12
|
+
};
|
|
5
13
|
const recalculateStrategies = {
|
|
6
14
|
fixed: (elements, currentElements, canvasWidth, device, options) => {
|
|
7
15
|
const isSorted = !currentElements.length;
|
|
@@ -15,8 +23,8 @@ const recalculateStrategies = {
|
|
|
15
23
|
y: 0,
|
|
16
24
|
})
|
|
17
25
|
: changedElements;
|
|
18
|
-
return options.
|
|
19
|
-
? recalculatePreservingPositions(orderedElements, device, canvasWidth, options.canvasHeight)
|
|
26
|
+
return options.keepPosition
|
|
27
|
+
? recalculatePreservingPositions(orderedElements, currentElements, device, canvasWidth, options.canvasHeight)
|
|
20
28
|
: findFixedAvailablePositions(canvasWidth, orderedElements, currentElements, device, false, false, options === null || options === void 0 ? void 0 : options.canvasHeight);
|
|
21
29
|
},
|
|
22
30
|
responsive: (elements, currentElements, canvasWidth, device, options) => {
|
|
@@ -61,6 +69,25 @@ export function recalculateElements(newElements, currentElements, canvasWidth, c
|
|
|
61
69
|
const calculatedOptions = Object.assign(Object.assign({}, defaultOptions), options);
|
|
62
70
|
return strategy(newElements, currentElements, canvasWidth, device, calculatedOptions);
|
|
63
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* Updates the dimensions of a container element using a strategy based on the given canvas type.
|
|
74
|
+
*
|
|
75
|
+
* Delegates the update logic to a specific strategy found in `updateDimensionStrategies`
|
|
76
|
+
* using the provided `canvasType` key.
|
|
77
|
+
* @param containerItem The element whose dimensions need to be updated
|
|
78
|
+
* @param scopeElements A list of elements to consider in the update strategy
|
|
79
|
+
* @param device The device context (e.g., desktop, tablet, mobile) used to retrieve device-specific properties
|
|
80
|
+
* @param canvasType The type of canvas that determines which strategy to use.
|
|
81
|
+
* @param gap The type of canvas that determines which strategy to use.
|
|
82
|
+
* @returns - The updated element with modified dimensions, or `undefined` if no strategy is found.
|
|
83
|
+
*/
|
|
84
|
+
export function applyDynamicSize(containerItem, scopeElements, device, canvasType, gap = 0) {
|
|
85
|
+
const strategy = applyDynamicSizeStrategies[canvasType];
|
|
86
|
+
if (!strategy) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
return strategy(containerItem, scopeElements, device, gap);
|
|
90
|
+
}
|
|
64
91
|
/**
|
|
65
92
|
* The calculation is delegated to a specific strategy based on the `canvasType`.
|
|
66
93
|
* @param elements - The list of elements in the canvas.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CanvasDevice } from "../interfaces/ICanvasGrid";
|
|
2
|
-
import { VemResponsive } from "../interfaces/IVemCore";
|
|
2
|
+
import { VemFixed, VemResponsive } from "../interfaces/IVemCore";
|
|
3
3
|
import { VemPositionResponsive } from "../interfaces/IVemPosition";
|
|
4
4
|
/**
|
|
5
5
|
* Finds the first available position for a new responsive element within a canvas.
|
|
@@ -85,3 +85,13 @@ export declare const sortByDistanceInResponsiveFunction: (a: {
|
|
|
85
85
|
element: VemResponsive;
|
|
86
86
|
}, _device: CanvasDevice) => number;
|
|
87
87
|
export declare const sortResponsiveElements: (elements: VemResponsive<unknown>[], sortByDevice?: CanvasDevice) => VemResponsive<unknown>[];
|
|
88
|
+
/**
|
|
89
|
+
* Updates the height (`rowSpan`) of a fixed container element based on the positions.
|
|
90
|
+
* of the fixed elements it contains, ensuring it is tall enough to encompass all child elements.
|
|
91
|
+
* @param containerItem - The container element whose height needs to be updated.
|
|
92
|
+
* @param device - The target device (used to retrieve responsive dimensions).
|
|
93
|
+
* @param scopeElements - The list of fixed elements that are scoped to the container.
|
|
94
|
+
* @param rowGapSize - row gap
|
|
95
|
+
* @returns A new container element with the updated responsive `rowSpan` height for the given device.
|
|
96
|
+
*/
|
|
97
|
+
export declare const updateResponsiveElementDimensions: (containerItem: VemResponsive<unknown>, device: CanvasDevice, scopeElements: VemFixed<unknown>[], rowGapSize: number) => VemResponsive<unknown>;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { objectCopy } from "../../general";
|
|
1
2
|
import { CanvasDevice } from "../interfaces/ICanvasGrid";
|
|
2
3
|
import { VemPositionType, } from "../interfaces/IVemPosition";
|
|
4
|
+
import { dxGetFixedGridItemsBottomLimit } from "../utils/fixed.position";
|
|
3
5
|
import { OverlapIntervalTree } from "../utils/overlap";
|
|
4
6
|
import { setElementPosition } from "../utils/position";
|
|
5
7
|
const SPACE_DELTA = 1;
|
|
6
8
|
const HEIGHT_DELTA = 32;
|
|
9
|
+
const CANVAS_EXTRA_ROW = 1;
|
|
7
10
|
/**
|
|
8
11
|
* Finds the first available position for a new responsive element within a canvas.
|
|
9
12
|
* @param canvasWidth - The width of the canvas in terms of columns.
|
|
@@ -153,3 +156,29 @@ export const sortResponsiveElements = (elements, sortByDevice) => {
|
|
|
153
156
|
}).sort((a, b) => sortByDistanceInResponsiveFunction(a, b, sortByDevice));
|
|
154
157
|
return sortedElements.map((element) => element.element);
|
|
155
158
|
};
|
|
159
|
+
/**
|
|
160
|
+
* Updates the height (`rowSpan`) of a fixed container element based on the positions.
|
|
161
|
+
* of the fixed elements it contains, ensuring it is tall enough to encompass all child elements.
|
|
162
|
+
* @param containerItem - The container element whose height needs to be updated.
|
|
163
|
+
* @param device - The target device (used to retrieve responsive dimensions).
|
|
164
|
+
* @param scopeElements - The list of fixed elements that are scoped to the container.
|
|
165
|
+
* @param rowGapSize - row gap
|
|
166
|
+
* @returns A new container element with the updated responsive `rowSpan` height for the given device.
|
|
167
|
+
*/
|
|
168
|
+
export const updateResponsiveElementDimensions = (containerItem, device, scopeElements, rowGapSize) => {
|
|
169
|
+
let currentElement = objectCopy(containerItem);
|
|
170
|
+
const currentHeight = currentElement.position.responsive[device].rowSpan;
|
|
171
|
+
const delta = HEIGHT_DELTA + rowGapSize;
|
|
172
|
+
// height in px
|
|
173
|
+
const calculatedHeight = dxGetFixedGridItemsBottomLimit(scopeElements, device);
|
|
174
|
+
// convert to rows
|
|
175
|
+
const transformToRows = Math.round(calculatedHeight / delta);
|
|
176
|
+
const baseRowSpan = Math.max(currentHeight, transformToRows);
|
|
177
|
+
const newRowSpan = baseRowSpan > currentHeight
|
|
178
|
+
? baseRowSpan + CANVAS_EXTRA_ROW
|
|
179
|
+
: currentHeight;
|
|
180
|
+
currentElement = updateResponsivePosition(currentElement, {
|
|
181
|
+
rowSpan: newRowSpan,
|
|
182
|
+
}, device);
|
|
183
|
+
return Object.assign({}, currentElement);
|
|
184
|
+
};
|
|
@@ -10,3 +10,4 @@ export declare const dxGetFixedGridItemY: (element: VemFixed, device: CanvasDevi
|
|
|
10
10
|
export declare const dxGetFixedGridItemZ: (element: VemFixed, device: CanvasDevice) => number;
|
|
11
11
|
export declare const dxGetFixedGridItemHeight: (element: VemFixed, device: CanvasDevice) => number;
|
|
12
12
|
export declare const dxGetFixedGridItemWidth: (element: VemFixed, device: CanvasDevice) => number;
|
|
13
|
+
export declare const dxGetFixedGridItemsBottomLimit: (items: VemFixed[], device: CanvasDevice, allowNegative?: boolean) => number;
|
|
@@ -70,3 +70,9 @@ export const dxGetFixedGridItemWidth = (element, device) => {
|
|
|
70
70
|
const position = element.position.fixed[device];
|
|
71
71
|
return (_a = position === null || position === void 0 ? void 0 : position.width) !== null && _a !== void 0 ? _a : 400;
|
|
72
72
|
};
|
|
73
|
+
export const dxGetFixedGridItemsBottomLimit = (items, device, allowNegative = false) => {
|
|
74
|
+
return items.length === 0
|
|
75
|
+
? 0
|
|
76
|
+
: Math.max(...items.map((gridItem) => dxGetFixedGridItemY(gridItem, device, allowNegative) +
|
|
77
|
+
dxGetFixedGridItemHeight(gridItem, device)));
|
|
78
|
+
};
|
|
@@ -4,6 +4,7 @@ export declare enum FILTER_SCOPE {
|
|
|
4
4
|
GLOBAL = "GLOBAL",// Analyze Filters | Filters for all pages on PB/EU
|
|
5
5
|
PAGE = "PAGE",// PB/EU Filters for a single page
|
|
6
6
|
TAB = "TAB",// PB/EU Filters for a single tab
|
|
7
|
+
CONTAINER = "CONTAINER",
|
|
7
8
|
DEFAULT = "DEFAULT",// Filters created on Chart Builder
|
|
8
9
|
CHART = "CHART",// PB/EU Filters for panels inside a page/tab
|
|
9
10
|
ACTION = "ACTION",// Filters created with FilterBY or other actions
|
|
@@ -5,6 +5,7 @@ export var FILTER_SCOPE;
|
|
|
5
5
|
FILTER_SCOPE["GLOBAL"] = "GLOBAL";
|
|
6
6
|
FILTER_SCOPE["PAGE"] = "PAGE";
|
|
7
7
|
FILTER_SCOPE["TAB"] = "TAB";
|
|
8
|
+
FILTER_SCOPE["CONTAINER"] = "CONTAINER";
|
|
8
9
|
FILTER_SCOPE["DEFAULT"] = "DEFAULT";
|
|
9
10
|
FILTER_SCOPE["CHART"] = "CHART";
|
|
10
11
|
FILTER_SCOPE["ACTION"] = "ACTION";
|
|
@@ -41,6 +41,14 @@ export const FILTER_SCOPE_INFO = [
|
|
|
41
41
|
displayed: true,
|
|
42
42
|
i18nLabelPath: "filter.scopes.tab",
|
|
43
43
|
},
|
|
44
|
+
{
|
|
45
|
+
label: FILTER_SCOPE_LABEL.CONTAINER,
|
|
46
|
+
shortLabel: "Container",
|
|
47
|
+
abbrLabel: "CONT",
|
|
48
|
+
value: FILTER_SCOPE.CONTAINER,
|
|
49
|
+
displayed: true,
|
|
50
|
+
i18nLabelPath: "filter.scopes.container",
|
|
51
|
+
},
|
|
44
52
|
{
|
|
45
53
|
label: FILTER_SCOPE_LABEL.DEFAULT,
|
|
46
54
|
shortLabel: "Default",
|
|
@@ -5,6 +5,7 @@ export var FILTER_SCOPE_LABEL;
|
|
|
5
5
|
FILTER_SCOPE_LABEL["GLOBAL"] = "Global";
|
|
6
6
|
FILTER_SCOPE_LABEL["PAGE"] = "Dashboard";
|
|
7
7
|
FILTER_SCOPE_LABEL["TAB"] = "Tab";
|
|
8
|
+
FILTER_SCOPE_LABEL["CONTAINER"] = "Container";
|
|
8
9
|
FILTER_SCOPE_LABEL["DEFAULT"] = "Default";
|
|
9
10
|
FILTER_SCOPE_LABEL["CHART"] = "Panel";
|
|
10
11
|
FILTER_SCOPE_LABEL["ACTION"] = "Action";
|
|
@@ -127,7 +127,7 @@ export const FILTER_SETTINGS_DEFAULT = {
|
|
|
127
127
|
colorPickerDisplayed: true,
|
|
128
128
|
displayed: true,
|
|
129
129
|
enabled: true,
|
|
130
|
-
icon: "fp-global",
|
|
130
|
+
icon: "q-icon-fp-global",
|
|
131
131
|
iconsDisplayed: true,
|
|
132
132
|
interaction: {
|
|
133
133
|
createDisplayed: true,
|
|
@@ -150,7 +150,7 @@ export const FILTER_SETTINGS_DEFAULT = {
|
|
|
150
150
|
colorPickerDisplayed: true,
|
|
151
151
|
displayed: true,
|
|
152
152
|
enabled: true,
|
|
153
|
-
icon: "fp-page",
|
|
153
|
+
icon: "q-icon-fp-page",
|
|
154
154
|
iconsDisplayed: true,
|
|
155
155
|
interaction: {
|
|
156
156
|
createDisplayed: true,
|
|
@@ -173,7 +173,30 @@ export const FILTER_SETTINGS_DEFAULT = {
|
|
|
173
173
|
colorPickerDisplayed: true,
|
|
174
174
|
displayed: true,
|
|
175
175
|
enabled: true,
|
|
176
|
-
icon: "fp-tab",
|
|
176
|
+
icon: "q-icon-fp-tab",
|
|
177
|
+
iconsDisplayed: true,
|
|
178
|
+
interaction: {
|
|
179
|
+
createDisplayed: true,
|
|
180
|
+
createEnabled: true,
|
|
181
|
+
deleteDisplayed: true,
|
|
182
|
+
deleteEnabled: true,
|
|
183
|
+
editDisplayed: true,
|
|
184
|
+
editEnabled: true,
|
|
185
|
+
enableDisplayed: true,
|
|
186
|
+
enableEnabled: true,
|
|
187
|
+
},
|
|
188
|
+
label: undefined,
|
|
189
|
+
readonly: false,
|
|
190
|
+
},
|
|
191
|
+
[FILTER_SCOPE.CONTAINER]: {
|
|
192
|
+
canCollapse: true,
|
|
193
|
+
collapsed: false,
|
|
194
|
+
color: "#F472F2",
|
|
195
|
+
colorized: true,
|
|
196
|
+
colorPickerDisplayed: true,
|
|
197
|
+
displayed: true,
|
|
198
|
+
enabled: true,
|
|
199
|
+
icon: "new-q-icon-an-rectangle",
|
|
177
200
|
iconsDisplayed: true,
|
|
178
201
|
interaction: {
|
|
179
202
|
createDisplayed: true,
|
|
@@ -196,7 +219,7 @@ export const FILTER_SETTINGS_DEFAULT = {
|
|
|
196
219
|
colorPickerDisplayed: true,
|
|
197
220
|
displayed: true,
|
|
198
221
|
enabled: true,
|
|
199
|
-
icon: "fp-chart",
|
|
222
|
+
icon: "q-icon-fp-chart",
|
|
200
223
|
iconsDisplayed: true,
|
|
201
224
|
interaction: {
|
|
202
225
|
createDisplayed: true,
|
|
@@ -219,7 +242,7 @@ export const FILTER_SETTINGS_DEFAULT = {
|
|
|
219
242
|
colorPickerDisplayed: true,
|
|
220
243
|
displayed: true,
|
|
221
244
|
enabled: true,
|
|
222
|
-
icon: "fp-global",
|
|
245
|
+
icon: "q-icon-fp-global",
|
|
223
246
|
iconsDisplayed: true,
|
|
224
247
|
interaction: {
|
|
225
248
|
createDisplayed: true,
|
|
@@ -242,7 +265,7 @@ export const FILTER_SETTINGS_DEFAULT = {
|
|
|
242
265
|
colorPickerDisplayed: true,
|
|
243
266
|
displayed: true,
|
|
244
267
|
enabled: true,
|
|
245
|
-
icon: "ico_workflows",
|
|
268
|
+
icon: "q-icon-ico_workflows",
|
|
246
269
|
iconsDisplayed: true,
|
|
247
270
|
interaction: {
|
|
248
271
|
createDisplayed: true,
|