@qrvey/utils 1.2.9-10 → 1.2.9-14
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/README.md +703 -646
- package/dist/charts/constants/AGGREGATE_LABEL.d.ts +1 -1
- package/dist/charts/constants/AGGREGATE_LABEL.js +1 -1
- package/dist/cjs/charts/constants/AGGREGATE_LABEL.d.ts +1 -1
- package/dist/cjs/charts/constants/AGGREGATE_LABEL.js +1 -1
- package/dist/cjs/filters/helpers/ui/getQrveyIdsByUIFilters.d.ts +7 -0
- package/dist/cjs/filters/helpers/ui/getQrveyIdsByUIFilters.js +24 -0
- package/dist/cjs/filters/helpers/ui/getUIValues.js +11 -5
- package/dist/cjs/filters/helpers/ui/getUpdatedUIFilters.d.ts +9 -0
- package/dist/cjs/filters/helpers/ui/getUpdatedUIFilters.js +36 -0
- package/dist/cjs/filters/helpers/ui/index.d.ts +2 -0
- package/dist/cjs/filters/helpers/ui/index.js +2 -0
- package/dist/cjs/filters/interfaces/panel/IFPSettingsGeneral.d.ts +2 -1
- package/dist/cjs/globalization/interfaces/IResourceI18n.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderRefernceLine.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/dashboard/II18nDashboard.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/dashboard/II18nDashboardMessages.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/dashboard/II18nDashboardMessages.js +2 -0
- package/dist/cjs/globalization/interfaces/dashboard/index.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/dashboard/index.js +1 -0
- package/dist/cjs/globalization/interfaces/filters/II18nRelativeContainer.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/index.d.ts +4 -1
- package/dist/cjs/globalization/interfaces/index.js +4 -1
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemes.d.ts +13 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemes.js +2 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.js +2 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMenu.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMenu.js +2 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMessages.d.ts +9 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMessages.js +2 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTheme.d.ts +27 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTheme.js +2 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTooltips.d.ts +3 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTooltips.js +2 -0
- package/dist/cjs/globalization/interfaces/style_themes/index.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/style_themes/index.js +18 -0
- package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsPagination.d.ts +1 -0
- package/dist/cjs/globalization/labels/I18N_DEFAULT.js +2 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.js +2 -1
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +1 -1
- package/dist/cjs/globalization/labels/dashboard/I18N_DASHBOARD.js +6 -0
- package/dist/cjs/globalization/labels/filters/I18N_RELATIVE_CONTAINER.js +1 -0
- package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +2 -2
- package/dist/cjs/globalization/labels/index.d.ts +5 -3
- package/dist/cjs/globalization/labels/index.js +5 -3
- package/dist/cjs/globalization/labels/style_themes/I18N_STYLE_THEMES.d.ts +2 -0
- package/dist/cjs/globalization/labels/style_themes/I18N_STYLE_THEMES.js +57 -0
- package/dist/cjs/globalization/labels/style_themes/index.d.ts +1 -0
- package/dist/cjs/globalization/labels/style_themes/index.js +13 -0
- package/dist/cjs/globalization/labels/table_charts/I18N_TABLE_CHARTS.js +1 -0
- package/dist/cjs/services/api/getAllDatasets.api.d.ts +2 -1
- package/dist/cjs/services/api/getAllDatasets.api.js +2 -1
- package/dist/filters/helpers/ui/getQrveyIdsByUIFilters.d.ts +7 -0
- package/dist/filters/helpers/ui/getQrveyIdsByUIFilters.js +20 -0
- package/dist/filters/helpers/ui/getUIValues.js +11 -5
- package/dist/filters/helpers/ui/getUpdatedUIFilters.d.ts +9 -0
- package/dist/filters/helpers/ui/getUpdatedUIFilters.js +32 -0
- package/dist/filters/helpers/ui/index.d.ts +2 -0
- package/dist/filters/helpers/ui/index.js +2 -0
- package/dist/filters/interfaces/panel/IFPSettingsGeneral.d.ts +2 -1
- package/dist/globalization/interfaces/IResourceI18n.d.ts +2 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderRefernceLine.d.ts +1 -0
- package/dist/globalization/interfaces/dashboard/II18nDashboard.d.ts +2 -0
- package/dist/globalization/interfaces/dashboard/II18nDashboardMessages.d.ts +6 -0
- package/dist/globalization/interfaces/dashboard/II18nDashboardMessages.js +1 -0
- package/dist/globalization/interfaces/dashboard/index.d.ts +1 -0
- package/dist/globalization/interfaces/dashboard/index.js +1 -0
- package/dist/globalization/interfaces/filters/II18nRelativeContainer.d.ts +1 -0
- package/dist/globalization/interfaces/index.d.ts +4 -1
- package/dist/globalization/interfaces/index.js +4 -1
- package/dist/globalization/interfaces/style_themes/II18nStyleThemes.d.ts +13 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemes.js +1 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.d.ts +6 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.js +1 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesMenu.d.ts +6 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesMenu.js +1 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesMessages.d.ts +9 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesMessages.js +1 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesTheme.d.ts +27 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesTheme.js +1 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesTooltips.d.ts +3 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesTooltips.js +1 -0
- package/dist/globalization/interfaces/style_themes/index.d.ts +6 -0
- package/dist/globalization/interfaces/style_themes/index.js +6 -0
- package/dist/globalization/interfaces/table_charts/II18nTableChartsPagination.d.ts +1 -0
- package/dist/globalization/labels/I18N_DEFAULT.js +2 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.js +2 -1
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +1 -1
- package/dist/globalization/labels/dashboard/I18N_DASHBOARD.js +6 -0
- package/dist/globalization/labels/filters/I18N_RELATIVE_CONTAINER.js +1 -0
- package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +2 -2
- package/dist/globalization/labels/index.d.ts +5 -3
- package/dist/globalization/labels/index.js +5 -3
- package/dist/globalization/labels/style_themes/I18N_STYLE_THEMES.d.ts +2 -0
- package/dist/globalization/labels/style_themes/I18N_STYLE_THEMES.js +54 -0
- package/dist/globalization/labels/style_themes/index.d.ts +1 -0
- package/dist/globalization/labels/style_themes/index.js +1 -0
- package/dist/globalization/labels/table_charts/I18N_TABLE_CHARTS.js +1 -0
- package/dist/services/api/getAllDatasets.api.d.ts +2 -1
- package/dist/services/api/getAllDatasets.api.js +2 -1
- package/package.json +1 -1
- package/src/charts/constants/AGGREGATE_LABEL.ts +1 -1
- package/src/filters/helpers/ui/getQrveyIdsByUIFilters.ts +22 -0
- package/src/filters/helpers/ui/getUIValues.ts +12 -7
- package/src/filters/helpers/ui/getUpdatedUIFilters.ts +34 -0
- package/src/filters/helpers/ui/index.ts +2 -0
- package/src/filters/interfaces/panel/IFPSettingsGeneral.ts +2 -1
- package/src/globalization/interfaces/IResourceI18n.ts +2 -0
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderRefernceLine.ts +1 -0
- package/src/globalization/interfaces/dashboard/II18nDashboard.ts +2 -0
- package/src/globalization/interfaces/dashboard/II18nDashboardMessages.ts +6 -0
- package/src/globalization/interfaces/dashboard/index.ts +1 -0
- package/src/globalization/interfaces/filters/II18nRelativeContainer.ts +1 -0
- package/src/globalization/interfaces/index.ts +4 -1
- package/src/globalization/interfaces/style_themes/II18nStyleThemes.ts +14 -0
- package/src/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.ts +6 -0
- package/src/globalization/interfaces/style_themes/II18nStyleThemesMenu.ts +6 -0
- package/src/globalization/interfaces/style_themes/II18nStyleThemesMessages.ts +9 -0
- package/src/globalization/interfaces/style_themes/II18nStyleThemesTheme.ts +27 -0
- package/src/globalization/interfaces/style_themes/II18nStyleThemesTooltips.ts +3 -0
- package/src/globalization/interfaces/style_themes/index.ts +6 -0
- package/src/globalization/interfaces/table_charts/II18nTableChartsPagination.ts +1 -0
- package/src/globalization/labels/I18N_DEFAULT.ts +2 -0
- package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.ts +2 -1
- package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.ts +1 -1
- package/src/globalization/labels/dashboard/I18N_DASHBOARD.ts +6 -0
- package/src/globalization/labels/filters/I18N_RELATIVE_CONTAINER.ts +1 -0
- package/src/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.ts +2 -2
- package/src/globalization/labels/index.ts +5 -3
- package/src/globalization/labels/style_themes/I18N_STYLE_THEMES.ts +56 -0
- package/src/globalization/labels/style_themes/index.ts +1 -0
- package/src/globalization/labels/table_charts/I18N_TABLE_CHARTS.ts +1 -0
- package/src/services/api/getAllDatasets.api.ts +3 -2
|
@@ -2,7 +2,8 @@ import { IGeneralWidgetConfig } from "../../interfaces/general/IGeneralWidgetCon
|
|
|
2
2
|
import { IDataset } from "../../qrvey/interfaces/IDataset";
|
|
3
3
|
/**
|
|
4
4
|
* Get a dataset list from a collection of Qrvey IDs
|
|
5
|
-
* @param
|
|
5
|
+
* @param config the widget config. Includes the appid and others configuration properties
|
|
6
|
+
* @param pickDatasets Collection of Qrvey IDs for filtering the request
|
|
6
7
|
* @returns a promise
|
|
7
8
|
*/
|
|
8
9
|
export declare function getAllDatasets(config: IGeneralWidgetConfig, pickDatasets?: string[]): Promise<IDataset[]>;
|
|
@@ -6,7 +6,8 @@ const getAllQrveys_api_1 = require("./getAllQrveys.api");
|
|
|
6
6
|
const getDatasetColumns_api_1 = require("./getDatasetColumns.api");
|
|
7
7
|
/**
|
|
8
8
|
* Get a dataset list from a collection of Qrvey IDs
|
|
9
|
-
* @param
|
|
9
|
+
* @param config the widget config. Includes the appid and others configuration properties
|
|
10
|
+
* @param pickDatasets Collection of Qrvey IDs for filtering the request
|
|
10
11
|
* @returns a promise
|
|
11
12
|
*/
|
|
12
13
|
function getAllDatasets(config, pickDatasets = []) {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IFSData } from "../../interfaces/common/IFSData";
|
|
2
|
+
/**
|
|
3
|
+
* Gets a collection of Qrvey IDs in the UI Filter structure.
|
|
4
|
+
* Looks around all filter structure finding the qrveyid propertty in each dataset
|
|
5
|
+
* @param uiFilter
|
|
6
|
+
*/
|
|
7
|
+
export declare function getQrveyIdsByUIFilters(uiFilter: IFSData): string[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { isEmpty } from "../../../general/mix/isEmpty";
|
|
2
|
+
/**
|
|
3
|
+
* Gets a collection of Qrvey IDs in the UI Filter structure.
|
|
4
|
+
* Looks around all filter structure finding the qrveyid propertty in each dataset
|
|
5
|
+
* @param uiFilter
|
|
6
|
+
*/
|
|
7
|
+
export function getQrveyIdsByUIFilters(uiFilter) {
|
|
8
|
+
const qrveyids = [];
|
|
9
|
+
if (isEmpty(uiFilter))
|
|
10
|
+
return qrveyids;
|
|
11
|
+
uiFilter.scopes.forEach(scope => {
|
|
12
|
+
if (!isEmpty(scope.datasets)) {
|
|
13
|
+
scope.datasets.forEach(dataset => {
|
|
14
|
+
if (!isEmpty(dataset))
|
|
15
|
+
qrveyids.push(dataset.qrveyid);
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
return qrveyids;
|
|
20
|
+
}
|
|
@@ -46,10 +46,15 @@ export function getUIValues(filter, settings) {
|
|
|
46
46
|
enabled: settings.addEnableds ? (_a = filter.values[0]) === null || _a === void 0 ? void 0 : _a.enabled : undefined,
|
|
47
47
|
}];
|
|
48
48
|
case FILTER_VALIDATOR.IN:
|
|
49
|
-
return filter.values.map(value =>
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
return filter.values.map(value => {
|
|
50
|
+
const cursor = (settings === null || settings === void 0 ? void 0 : settings.translate) ? settings.translate(RELATIVE_CURSOR_INFO[value.cursor].i18nLabelPath) : RELATIVE_CURSOR_INFO[value.cursor].i18nLabelPath;
|
|
51
|
+
const from = (settings === null || settings === void 0 ? void 0 : settings.translate) ? settings.translate('filter.relative_container.from_label') : 'from';
|
|
52
|
+
const anchor = (settings === null || settings === void 0 ? void 0 : settings.translate) ? settings === null || settings === void 0 ? void 0 : settings.translate('filter.relative_container.current_date') : 'current date';
|
|
53
|
+
return {
|
|
54
|
+
value: `${cursor} ${value.cursor !== RELATIVE_CURSOR.THIS && value.number > 1 ? value.number : ''} ${getValueUiUnitRelativeDate(value, settings)} ${value.cursor !== RELATIVE_CURSOR.THIS ? `${from} ${value.anchor || anchor}` : ''}`,
|
|
55
|
+
enabled: settings.addEnableds ? filter.enabled : undefined,
|
|
56
|
+
};
|
|
57
|
+
});
|
|
53
58
|
default:
|
|
54
59
|
if (filter.column.type === COLUMN.RANKING && isEmpty(filter.column.aggregate)) {
|
|
55
60
|
return getRankingUIValues(filter.values, settings.addEnableds, settings.rankingGroupIndex);
|
|
@@ -74,7 +79,8 @@ function getUiValuesSettings(settings) {
|
|
|
74
79
|
};
|
|
75
80
|
}
|
|
76
81
|
function getValueUiUnitRelativeDate(relative, settings) {
|
|
77
|
-
|
|
82
|
+
const unit = settings.translate ? `${settings.translate(`common.units.${relative.unit}`)}` : relative.unit;
|
|
83
|
+
return relative.cursor !== RELATIVE_CURSOR.THIS && relative.number > 1 ? `${unit}s` : unit;
|
|
78
84
|
}
|
|
79
85
|
function getRankingUIValues(values, addEnableds = false, rankingGroupIndex) {
|
|
80
86
|
const flattenValues = rankingGroupIndex == null ? flattenDeep(values) : values[rankingGroupIndex];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IDataset } from "../../../qrvey/interfaces/IDataset";
|
|
2
|
+
import { IFUData } from "../../interfaces/ui/IFUData";
|
|
3
|
+
/**
|
|
4
|
+
* Gets a new UI Filter structure with a datasets/columns info updates
|
|
5
|
+
* @param data The UI Filter structure
|
|
6
|
+
* @param datasets An array of datasets/column info used for updating the data
|
|
7
|
+
* @returns A new UI FIlter structure
|
|
8
|
+
*/
|
|
9
|
+
export declare function getUpdatedUIFilters(data: IFUData, datasets?: IDataset[]): IFUData;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { isEmpty } from "../../../general/mix/isEmpty";
|
|
2
|
+
/**
|
|
3
|
+
* Gets a new UI Filter structure with a datasets/columns info updates
|
|
4
|
+
* @param data The UI Filter structure
|
|
5
|
+
* @param datasets An array of datasets/column info used for updating the data
|
|
6
|
+
* @returns A new UI FIlter structure
|
|
7
|
+
*/
|
|
8
|
+
export function getUpdatedUIFilters(data, datasets = []) {
|
|
9
|
+
if (isEmpty(data) || isEmpty(datasets))
|
|
10
|
+
return data;
|
|
11
|
+
const updatedScopes = data.scopes.map(scopes => {
|
|
12
|
+
scopes.datasets = scopes.datasets.map(dataset => {
|
|
13
|
+
const datasetInfo = datasets.find(dInfo => dInfo.qrveyid === dataset.qrveyid && dInfo.linkid === dataset.linkid);
|
|
14
|
+
if (!isEmpty(datasetInfo))
|
|
15
|
+
dataset.label = datasetInfo.label;
|
|
16
|
+
dataset.filters = dataset.filters.map(filter => {
|
|
17
|
+
let columnInfo;
|
|
18
|
+
if (!isEmpty(datasetInfo))
|
|
19
|
+
columnInfo = datasetInfo.options.find(cInfo => { var _a, _b; return cInfo.id === filter.column.id && ((_a = cInfo.dataset) === null || _a === void 0 ? void 0 : _a.qrveyid) === filter.column.qrveyid && ((_b = cInfo.dataset) === null || _b === void 0 ? void 0 : _b.linkid) === filter.column.linkid; });
|
|
20
|
+
if (!isEmpty(columnInfo)) {
|
|
21
|
+
filter.column.formulaType = columnInfo.formulaType;
|
|
22
|
+
filter.column.label = columnInfo.label;
|
|
23
|
+
filter.column.type = columnInfo.type;
|
|
24
|
+
}
|
|
25
|
+
return filter;
|
|
26
|
+
});
|
|
27
|
+
return dataset;
|
|
28
|
+
});
|
|
29
|
+
return scopes;
|
|
30
|
+
});
|
|
31
|
+
return Object.assign(Object.assign({}, data), { scopes: updatedScopes });
|
|
32
|
+
}
|
|
@@ -2,7 +2,9 @@ export * from './excludeUIFiltersByAggregate';
|
|
|
2
2
|
export * from './excludeUIFlatFiltersByScopes';
|
|
3
3
|
export * from './getFilterPropertyLabel';
|
|
4
4
|
export * from './getOutputFormatByColumn';
|
|
5
|
+
export * from './getQrveyIdsByUIFilters';
|
|
5
6
|
export * from './getUIFlatFilterByParams';
|
|
6
7
|
export * from './getUIFlatFiltersByParams';
|
|
7
8
|
export * from './getUIFlatFiltersByScopes';
|
|
8
9
|
export * from './getUIValues';
|
|
10
|
+
export * from './getUpdatedUIFilters';
|
|
@@ -2,7 +2,9 @@ export * from './excludeUIFiltersByAggregate';
|
|
|
2
2
|
export * from './excludeUIFlatFiltersByScopes';
|
|
3
3
|
export * from './getFilterPropertyLabel';
|
|
4
4
|
export * from './getOutputFormatByColumn';
|
|
5
|
+
export * from './getQrveyIdsByUIFilters';
|
|
5
6
|
export * from './getUIFlatFilterByParams';
|
|
6
7
|
export * from './getUIFlatFiltersByParams';
|
|
7
8
|
export * from './getUIFlatFiltersByScopes';
|
|
8
9
|
export * from './getUIValues';
|
|
10
|
+
export * from './getUpdatedUIFilters';
|
|
@@ -5,8 +5,9 @@ export interface IFPSettingsGeneral {
|
|
|
5
5
|
canCollapse?: boolean;
|
|
6
6
|
collapsed?: boolean;
|
|
7
7
|
colorModeDisplayed?: boolean;
|
|
8
|
+
dynamicFilters?: boolean;
|
|
8
9
|
enabled?: boolean;
|
|
9
10
|
iconDisplayed?: boolean;
|
|
10
11
|
readonly?: boolean;
|
|
11
|
-
|
|
12
|
+
updateFilterInfo?: boolean;
|
|
12
13
|
}
|
|
@@ -10,6 +10,7 @@ import { II18nFilterDisplay } from './filters/II18nFilterDisplay';
|
|
|
10
10
|
import { II18nBucketBuilder } from './bucket_builder/II18nBucketBuilder';
|
|
11
11
|
import { II18nCrossTabs } from './cross_tabs';
|
|
12
12
|
import { II18nChartBuilder } from '.';
|
|
13
|
+
import { II18nStyleThemes } from './style_themes/II18nStyleThemes';
|
|
13
14
|
export interface IResourceI18n {
|
|
14
15
|
bucket_builder?: II18nBucketBuilder;
|
|
15
16
|
chart_builder?: II18nChartBuilder;
|
|
@@ -22,5 +23,6 @@ export interface IResourceI18n {
|
|
|
22
23
|
filter_panel?: II18nFilterPanel;
|
|
23
24
|
formula_builder?: II18nFormulaBuilder;
|
|
24
25
|
panel?: II18nPanel;
|
|
26
|
+
style_themes?: II18nStyleThemes;
|
|
25
27
|
table_charts?: II18nTableCharts;
|
|
26
28
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { II18nDashboardAddChart } from "./II18nDashboardAddChart";
|
|
2
2
|
import { II18nDashboardEmptyState } from "./II18nDashboardEmptyState";
|
|
3
|
+
import { II18nDashboardMessages } from "./II18nDashboardMessages";
|
|
3
4
|
import { II18nDashboardToast } from "./II18nDashboardToast";
|
|
4
5
|
import { II18nDashboardTooltips } from "./II18nDashboardTooltips";
|
|
5
6
|
import { II18nDashboardViews } from "./II18nDashboardViews";
|
|
@@ -11,4 +12,5 @@ export interface II18nDashboard {
|
|
|
11
12
|
tooltips: II18nDashboardTooltips;
|
|
12
13
|
views: II18nDashboardViews;
|
|
13
14
|
empty_state: II18nDashboardEmptyState;
|
|
15
|
+
messages: II18nDashboardMessages;
|
|
14
16
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
export * from './bucket_builder/index';
|
|
2
|
+
export * from './chart_builder/index';
|
|
1
3
|
export * from './columns/index';
|
|
2
4
|
export * from './common/index';
|
|
5
|
+
export * from './cross_tabs/index';
|
|
3
6
|
export * from './dashboard/index';
|
|
4
7
|
export * from './filters/index';
|
|
5
8
|
export * from './formula_builder/index';
|
|
6
9
|
export * from './panel/index';
|
|
10
|
+
export * from './style_themes/index';
|
|
7
11
|
export * from './table_charts/index';
|
|
8
|
-
export * from './chart_builder/index';
|
|
9
12
|
export * from './II18nServiceTranslate';
|
|
10
13
|
export * from './II18nServiceTranslateOption';
|
|
11
14
|
export * from './IResourceI18n';
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
export * from './bucket_builder/index';
|
|
2
|
+
export * from './chart_builder/index';
|
|
1
3
|
export * from './columns/index';
|
|
2
4
|
export * from './common/index';
|
|
5
|
+
export * from './cross_tabs/index';
|
|
3
6
|
export * from './dashboard/index';
|
|
4
7
|
export * from './filters/index';
|
|
5
8
|
export * from './formula_builder/index';
|
|
6
9
|
export * from './panel/index';
|
|
10
|
+
export * from './style_themes/index';
|
|
7
11
|
export * from './table_charts/index';
|
|
8
|
-
export * from './chart_builder/index';
|
|
9
12
|
export * from './II18nServiceTranslate';
|
|
10
13
|
export * from './II18nServiceTranslateOption';
|
|
11
14
|
export * from './IResourceI18n';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { II18nStyleThemesDeleteDialog } from "./II18nStyleThemesDeleteDialog";
|
|
2
|
+
import { II18nStyleThemesMenu } from "./II18nStyleThemesMenu";
|
|
3
|
+
import { II18nStyleThemesMessages } from "./II18nStyleThemesMessages";
|
|
4
|
+
import { II18nStyleThemesTheme } from "./II18nStyleThemesTheme";
|
|
5
|
+
import { II18nStyleThemesTooltips } from "./II18nStyleThemesTooltips";
|
|
6
|
+
export interface II18nStyleThemes {
|
|
7
|
+
delete_dialog: II18nStyleThemesDeleteDialog;
|
|
8
|
+
menu: II18nStyleThemesMenu;
|
|
9
|
+
messages: II18nStyleThemesMessages;
|
|
10
|
+
theme: II18nStyleThemesTheme;
|
|
11
|
+
title: string;
|
|
12
|
+
tooltips: II18nStyleThemesTooltips;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface II18nStyleThemesMessages {
|
|
2
|
+
theme_could_not_be_created: string;
|
|
3
|
+
theme_could_not_be_deleted: string;
|
|
4
|
+
theme_could_not_be_duplicated: string;
|
|
5
|
+
theme_could_not_be_saved: string;
|
|
6
|
+
theme_could_not_be_selected: string;
|
|
7
|
+
theme_could_not_be_used_in_all_applications: string;
|
|
8
|
+
themes_could_not_be_loaded: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface II18nStyleThemesTheme {
|
|
2
|
+
axis_data_labels: string;
|
|
3
|
+
cancel_theme: string;
|
|
4
|
+
chart_titles_color: string;
|
|
5
|
+
copy: string;
|
|
6
|
+
create_theme: string;
|
|
7
|
+
data_styles: string;
|
|
8
|
+
data_visualization: string;
|
|
9
|
+
edit_theme: string;
|
|
10
|
+
generate_new: string;
|
|
11
|
+
header_font_color: string;
|
|
12
|
+
id: string;
|
|
13
|
+
legends: string;
|
|
14
|
+
main_color: string;
|
|
15
|
+
name_placeholder: string;
|
|
16
|
+
panel_styles: string;
|
|
17
|
+
qrvey_theme: string;
|
|
18
|
+
restore_to_default: string;
|
|
19
|
+
save_theme: string;
|
|
20
|
+
table_header_styles: string;
|
|
21
|
+
text_styles: string;
|
|
22
|
+
tooltips: string;
|
|
23
|
+
typeface: string;
|
|
24
|
+
untitled_theme: string;
|
|
25
|
+
use_theme_in_all_apps: string;
|
|
26
|
+
values: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -10,6 +10,7 @@ import { I18N_FILTER_DISPLAY } from "./filters/I18N_FILTER_DISPLAY";
|
|
|
10
10
|
import { I18N_BUCKET_BUILDER } from "./bucket_builder/I18N_BUCKET_BUILDER";
|
|
11
11
|
import { I18N_CROSS_TABS } from './cross_tabs';
|
|
12
12
|
import { I18N_CHART_BUILDER } from "./chart_builder";
|
|
13
|
+
import { I18N_STYLE_THEMES } from "./style_themes";
|
|
13
14
|
export const I18N_DEFAULT = {
|
|
14
15
|
bucket_builder: I18N_BUCKET_BUILDER,
|
|
15
16
|
chart_builder: I18N_CHART_BUILDER,
|
|
@@ -22,5 +23,6 @@ export const I18N_DEFAULT = {
|
|
|
22
23
|
filter_panel: I18N_FILTER_PANEL,
|
|
23
24
|
formula_builder: I18N_FORMULA_BUILDER,
|
|
24
25
|
panel: I18N_PANEL,
|
|
26
|
+
style_themes: I18N_STYLE_THEMES,
|
|
25
27
|
table_charts: I18N_TABLE_CHARTS,
|
|
26
28
|
};
|
|
@@ -22,11 +22,12 @@ export const I18N_CHART_BUILDER_LAYER_OPTIONS = {
|
|
|
22
22
|
custom_label_placeholder: 'Type custom label',
|
|
23
23
|
dynamic: 'Dynamic',
|
|
24
24
|
fixed: 'Fixed',
|
|
25
|
-
new_reference_line_label: 'Reference Line
|
|
25
|
+
new_reference_line_label: 'Reference Line',
|
|
26
26
|
opacity: 'Opacity',
|
|
27
27
|
remove: 'Remove',
|
|
28
28
|
title: 'Reference Line',
|
|
29
29
|
value: 'Value',
|
|
30
30
|
value_aggregated: 'Value Aggregate',
|
|
31
|
+
value_aggregated_placeholder: 'Select Aggregate',
|
|
31
32
|
},
|
|
32
33
|
};
|
|
@@ -107,7 +107,7 @@ export const I18N_CHART_BUILDER_STYLE_OPTIONS = {
|
|
|
107
107
|
thickness_thin: 'Thin',
|
|
108
108
|
thickness_normal: 'Normal',
|
|
109
109
|
thickness_bold: 'Bold',
|
|
110
|
-
styles_title: '
|
|
110
|
+
styles_title: 'Line Style',
|
|
111
111
|
styles_solid: 'Solid',
|
|
112
112
|
styles_dashed: 'Dashed',
|
|
113
113
|
styles_dotted: 'Dotted',
|
|
@@ -11,6 +11,12 @@ export const I18N_DASHBOARD = {
|
|
|
11
11
|
learn_more: 'Learn more',
|
|
12
12
|
},
|
|
13
13
|
export_csv: "Export to CSV",
|
|
14
|
+
messages: {
|
|
15
|
+
dataset_not_available: "Dataset not available at the moment.",
|
|
16
|
+
dataset_not_found: "Dataset not found.",
|
|
17
|
+
server_error: "Server Error.",
|
|
18
|
+
try_again: "Try Again",
|
|
19
|
+
},
|
|
14
20
|
no_record_found: 'No Records Found',
|
|
15
21
|
toast: {
|
|
16
22
|
add_record_message: 'Record Successfully Added.',
|
|
@@ -5,6 +5,7 @@ export const I18N_RELATIVE_CONTAINER = {
|
|
|
5
5
|
current_date: 'Current Date',
|
|
6
6
|
cursors: I18N_RELATIVE_CURSOR,
|
|
7
7
|
date_selected: 'Date Selected',
|
|
8
|
+
from_label: 'from',
|
|
8
9
|
starting_date: 'Include starting date',
|
|
9
10
|
starting_date_tooltip: 'The relative date will include the specific starting date and a period of time to show from that date onwards (Inclusive range). <br/> Unchecking this option will exclude the chosen starting date (exclusive range) from the date range.',
|
|
10
11
|
starting_from: 'Starting From',
|
|
@@ -36,7 +36,7 @@ export const I18N_FORMULA_BUILDER = {
|
|
|
36
36
|
test: 'Test',
|
|
37
37
|
clear: 'Clear',
|
|
38
38
|
insert_function: 'Insert Functions',
|
|
39
|
-
insert_column: '
|
|
39
|
+
insert_column: 'Insert Columns',
|
|
40
40
|
search_function: 'Search',
|
|
41
41
|
search_column: 'Search',
|
|
42
42
|
box_function_empty: 'No Function Selected',
|
|
@@ -55,7 +55,7 @@ export const I18N_FORMULA_BUILDER = {
|
|
|
55
55
|
numeric: 'Numeric',
|
|
56
56
|
string: 'String/Text',
|
|
57
57
|
date: 'Date/Time',
|
|
58
|
-
aggregate: '
|
|
58
|
+
aggregate: 'Aggregates'
|
|
59
59
|
},
|
|
60
60
|
function_is_null: {
|
|
61
61
|
description: 'Replaces NULL with the specified replacement value.',
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
export * from './bucket_builder';
|
|
2
|
+
export * from './chart_builder';
|
|
1
3
|
export * from './columns';
|
|
2
4
|
export * from './common';
|
|
5
|
+
export * from './cross_tabs';
|
|
3
6
|
export * from './dashboard';
|
|
4
7
|
export * from './filters';
|
|
8
|
+
export * from './formula_builder';
|
|
5
9
|
export * from './panel';
|
|
10
|
+
export * from './style_themes';
|
|
6
11
|
export * from './table_charts';
|
|
7
12
|
export * from './I18N_DEFAULT';
|
|
8
|
-
export * from './formula_builder';
|
|
9
|
-
export * from './bucket_builder';
|
|
10
|
-
export * from './chart_builder';
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
export * from './bucket_builder';
|
|
2
|
+
export * from './chart_builder';
|
|
1
3
|
export * from './columns';
|
|
2
4
|
export * from './common';
|
|
5
|
+
export * from './cross_tabs';
|
|
3
6
|
export * from './dashboard';
|
|
4
7
|
export * from './filters';
|
|
8
|
+
export * from './formula_builder';
|
|
5
9
|
export * from './panel';
|
|
10
|
+
export * from './style_themes';
|
|
6
11
|
export * from './table_charts';
|
|
7
12
|
export * from './I18N_DEFAULT';
|
|
8
|
-
export * from './formula_builder';
|
|
9
|
-
export * from './bucket_builder';
|
|
10
|
-
export * from './chart_builder';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export const I18N_STYLE_THEMES = {
|
|
2
|
+
delete_dialog: {
|
|
3
|
+
no: 'No',
|
|
4
|
+
theme_in_use: 'This theme is in use. If you delete it the visualizations will reset to the default theme.',
|
|
5
|
+
want_to_continue: 'Are you sure you want to continue?',
|
|
6
|
+
yes: 'Yes',
|
|
7
|
+
},
|
|
8
|
+
menu: {
|
|
9
|
+
delete: 'Delete',
|
|
10
|
+
duplicate: 'Duplicate',
|
|
11
|
+
edit: 'Edit',
|
|
12
|
+
use_all: 'Use in all applications',
|
|
13
|
+
},
|
|
14
|
+
messages: {
|
|
15
|
+
theme_could_not_be_created: 'Theme could not be created.',
|
|
16
|
+
theme_could_not_be_deleted: 'Theme could not be deleted.',
|
|
17
|
+
theme_could_not_be_duplicated: 'Theme could not be duplicated.',
|
|
18
|
+
theme_could_not_be_saved: 'Theme could not be saved.',
|
|
19
|
+
theme_could_not_be_selected: 'Theme could not be selected.',
|
|
20
|
+
theme_could_not_be_used_in_all_applications: 'Theme could not be used in all applications.',
|
|
21
|
+
themes_could_not_be_loaded: 'Themes could not be loaded.',
|
|
22
|
+
},
|
|
23
|
+
theme: {
|
|
24
|
+
axis_data_labels: 'Axis and Data Labels',
|
|
25
|
+
cancel_theme: 'Cancel',
|
|
26
|
+
chart_titles_color: 'Chart Titles Color',
|
|
27
|
+
copy: 'Copy',
|
|
28
|
+
create_theme: 'Create New Theme',
|
|
29
|
+
data_styles: 'Data Styles',
|
|
30
|
+
data_visualization: 'Data Visualization',
|
|
31
|
+
edit_theme: 'Edit Theme',
|
|
32
|
+
generate_new: 'Generate New',
|
|
33
|
+
header_font_color: 'Header Font Color',
|
|
34
|
+
id: 'ID',
|
|
35
|
+
legends: 'Legends',
|
|
36
|
+
main_color: 'Main Color',
|
|
37
|
+
name_placeholder: 'Type name',
|
|
38
|
+
panel_styles: 'Panel Styles',
|
|
39
|
+
qrvey_theme: 'Qrvey Theme',
|
|
40
|
+
restore_to_default: 'Restore to Default',
|
|
41
|
+
save_theme: 'Save Theme',
|
|
42
|
+
table_header_styles: 'Table Header Styles',
|
|
43
|
+
text_styles: 'Text Styles',
|
|
44
|
+
tooltips: 'Tooltips',
|
|
45
|
+
typeface: 'Typeface',
|
|
46
|
+
untitled_theme: 'Untitled',
|
|
47
|
+
use_theme_in_all_apps: 'Use Theme in All Apps',
|
|
48
|
+
values: 'Values',
|
|
49
|
+
},
|
|
50
|
+
title: 'Style Themes',
|
|
51
|
+
tooltips: {
|
|
52
|
+
theme_used_in_all_applications: 'This theme is being used in all applications',
|
|
53
|
+
}
|
|
54
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './I18N_STYLE_THEMES';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './I18N_STYLE_THEMES';
|
|
@@ -2,7 +2,8 @@ import { IGeneralWidgetConfig } from "../../interfaces/general/IGeneralWidgetCon
|
|
|
2
2
|
import { IDataset } from "../../qrvey/interfaces/IDataset";
|
|
3
3
|
/**
|
|
4
4
|
* Get a dataset list from a collection of Qrvey IDs
|
|
5
|
-
* @param
|
|
5
|
+
* @param config the widget config. Includes the appid and others configuration properties
|
|
6
|
+
* @param pickDatasets Collection of Qrvey IDs for filtering the request
|
|
6
7
|
* @returns a promise
|
|
7
8
|
*/
|
|
8
9
|
export declare function getAllDatasets(config: IGeneralWidgetConfig, pickDatasets?: string[]): Promise<IDataset[]>;
|
|
@@ -3,7 +3,8 @@ import { getAllQrveys } from "./getAllQrveys.api";
|
|
|
3
3
|
import { getDatasetColumns } from "./getDatasetColumns.api";
|
|
4
4
|
/**
|
|
5
5
|
* Get a dataset list from a collection of Qrvey IDs
|
|
6
|
-
* @param
|
|
6
|
+
* @param config the widget config. Includes the appid and others configuration properties
|
|
7
|
+
* @param pickDatasets Collection of Qrvey IDs for filtering the request
|
|
7
8
|
* @returns a promise
|
|
8
9
|
*/
|
|
9
10
|
export function getAllDatasets(config, pickDatasets = []) {
|
package/package.json
CHANGED