@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
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AGGREGATE_LABEL = void 0;
|
|
4
4
|
var AGGREGATE_LABEL;
|
|
5
5
|
(function (AGGREGATE_LABEL) {
|
|
6
|
-
AGGREGATE_LABEL["NONE"] = "
|
|
6
|
+
AGGREGATE_LABEL["NONE"] = "No Aggregate";
|
|
7
7
|
AGGREGATE_LABEL["AVG"] = "Average";
|
|
8
8
|
AGGREGATE_LABEL["MEDIAN"] = "Median";
|
|
9
9
|
AGGREGATE_LABEL["MIN"] = "Minimum";
|
|
@@ -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,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getQrveyIdsByUIFilters = void 0;
|
|
4
|
+
const isEmpty_1 = require("../../../general/mix/isEmpty");
|
|
5
|
+
/**
|
|
6
|
+
* Gets a collection of Qrvey IDs in the UI Filter structure.
|
|
7
|
+
* Looks around all filter structure finding the qrveyid propertty in each dataset
|
|
8
|
+
* @param uiFilter
|
|
9
|
+
*/
|
|
10
|
+
function getQrveyIdsByUIFilters(uiFilter) {
|
|
11
|
+
const qrveyids = [];
|
|
12
|
+
if ((0, isEmpty_1.isEmpty)(uiFilter))
|
|
13
|
+
return qrveyids;
|
|
14
|
+
uiFilter.scopes.forEach(scope => {
|
|
15
|
+
if (!(0, isEmpty_1.isEmpty)(scope.datasets)) {
|
|
16
|
+
scope.datasets.forEach(dataset => {
|
|
17
|
+
if (!(0, isEmpty_1.isEmpty)(dataset))
|
|
18
|
+
qrveyids.push(dataset.qrveyid);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
return qrveyids;
|
|
23
|
+
}
|
|
24
|
+
exports.getQrveyIdsByUIFilters = getQrveyIdsByUIFilters;
|
|
@@ -49,10 +49,15 @@ function getUIValues(filter, settings) {
|
|
|
49
49
|
enabled: settings.addEnableds ? (_a = filter.values[0]) === null || _a === void 0 ? void 0 : _a.enabled : undefined,
|
|
50
50
|
}];
|
|
51
51
|
case FILTER_VALIDATOR_1.FILTER_VALIDATOR.IN:
|
|
52
|
-
return filter.values.map(value =>
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
return filter.values.map(value => {
|
|
53
|
+
const cursor = (settings === null || settings === void 0 ? void 0 : settings.translate) ? settings.translate(RELATIVE_CURSOR_INFO_1.RELATIVE_CURSOR_INFO[value.cursor].i18nLabelPath) : RELATIVE_CURSOR_INFO_1.RELATIVE_CURSOR_INFO[value.cursor].i18nLabelPath;
|
|
54
|
+
const from = (settings === null || settings === void 0 ? void 0 : settings.translate) ? settings.translate('filter.relative_container.from_label') : 'from';
|
|
55
|
+
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';
|
|
56
|
+
return {
|
|
57
|
+
value: `${cursor} ${value.cursor !== RELATIVE_CURSOR_1.RELATIVE_CURSOR.THIS && value.number > 1 ? value.number : ''} ${getValueUiUnitRelativeDate(value, settings)} ${value.cursor !== RELATIVE_CURSOR_1.RELATIVE_CURSOR.THIS ? `${from} ${value.anchor || anchor}` : ''}`,
|
|
58
|
+
enabled: settings.addEnableds ? filter.enabled : undefined,
|
|
59
|
+
};
|
|
60
|
+
});
|
|
56
61
|
default:
|
|
57
62
|
if (filter.column.type === COLUMN_1.COLUMN.RANKING && (0, isEmpty_1.isEmpty)(filter.column.aggregate)) {
|
|
58
63
|
return getRankingUIValues(filter.values, settings.addEnableds, settings.rankingGroupIndex);
|
|
@@ -78,7 +83,8 @@ function getUiValuesSettings(settings) {
|
|
|
78
83
|
};
|
|
79
84
|
}
|
|
80
85
|
function getValueUiUnitRelativeDate(relative, settings) {
|
|
81
|
-
|
|
86
|
+
const unit = settings.translate ? `${settings.translate(`common.units.${relative.unit}`)}` : relative.unit;
|
|
87
|
+
return relative.cursor !== RELATIVE_CURSOR_1.RELATIVE_CURSOR.THIS && relative.number > 1 ? `${unit}s` : unit;
|
|
82
88
|
}
|
|
83
89
|
function getRankingUIValues(values, addEnableds = false, rankingGroupIndex) {
|
|
84
90
|
const flattenValues = rankingGroupIndex == null ? (0, flattenDeep_1.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,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getUpdatedUIFilters = void 0;
|
|
4
|
+
const isEmpty_1 = require("../../../general/mix/isEmpty");
|
|
5
|
+
/**
|
|
6
|
+
* Gets a new UI Filter structure with a datasets/columns info updates
|
|
7
|
+
* @param data The UI Filter structure
|
|
8
|
+
* @param datasets An array of datasets/column info used for updating the data
|
|
9
|
+
* @returns A new UI FIlter structure
|
|
10
|
+
*/
|
|
11
|
+
function getUpdatedUIFilters(data, datasets = []) {
|
|
12
|
+
if ((0, isEmpty_1.isEmpty)(data) || (0, isEmpty_1.isEmpty)(datasets))
|
|
13
|
+
return data;
|
|
14
|
+
const updatedScopes = data.scopes.map(scopes => {
|
|
15
|
+
scopes.datasets = scopes.datasets.map(dataset => {
|
|
16
|
+
const datasetInfo = datasets.find(dInfo => dInfo.qrveyid === dataset.qrveyid && dInfo.linkid === dataset.linkid);
|
|
17
|
+
if (!(0, isEmpty_1.isEmpty)(datasetInfo))
|
|
18
|
+
dataset.label = datasetInfo.label;
|
|
19
|
+
dataset.filters = dataset.filters.map(filter => {
|
|
20
|
+
let columnInfo;
|
|
21
|
+
if (!(0, isEmpty_1.isEmpty)(datasetInfo))
|
|
22
|
+
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; });
|
|
23
|
+
if (!(0, isEmpty_1.isEmpty)(columnInfo)) {
|
|
24
|
+
filter.column.formulaType = columnInfo.formulaType;
|
|
25
|
+
filter.column.label = columnInfo.label;
|
|
26
|
+
filter.column.type = columnInfo.type;
|
|
27
|
+
}
|
|
28
|
+
return filter;
|
|
29
|
+
});
|
|
30
|
+
return dataset;
|
|
31
|
+
});
|
|
32
|
+
return scopes;
|
|
33
|
+
});
|
|
34
|
+
return Object.assign(Object.assign({}, data), { scopes: updatedScopes });
|
|
35
|
+
}
|
|
36
|
+
exports.getUpdatedUIFilters = 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';
|
|
@@ -14,7 +14,9 @@ __exportStar(require("./excludeUIFiltersByAggregate"), exports);
|
|
|
14
14
|
__exportStar(require("./excludeUIFlatFiltersByScopes"), exports);
|
|
15
15
|
__exportStar(require("./getFilterPropertyLabel"), exports);
|
|
16
16
|
__exportStar(require("./getOutputFormatByColumn"), exports);
|
|
17
|
+
__exportStar(require("./getQrveyIdsByUIFilters"), exports);
|
|
17
18
|
__exportStar(require("./getUIFlatFilterByParams"), exports);
|
|
18
19
|
__exportStar(require("./getUIFlatFiltersByParams"), exports);
|
|
19
20
|
__exportStar(require("./getUIFlatFiltersByScopes"), exports);
|
|
20
21
|
__exportStar(require("./getUIValues"), exports);
|
|
22
|
+
__exportStar(require("./getUpdatedUIFilters"), exports);
|
|
@@ -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
|
}
|
|
@@ -15,4 +15,5 @@ __exportStar(require("./II18nDashboardAddChart"), exports);
|
|
|
15
15
|
__exportStar(require("./II18nDashboardTooltips"), exports);
|
|
16
16
|
__exportStar(require("./II18nDashboardViews"), exports);
|
|
17
17
|
__exportStar(require("./II18nDashboardEmptyState"), exports);
|
|
18
|
+
__exportStar(require("./II18nDashboardMessages"), exports);
|
|
18
19
|
__exportStar(require("./II18nDashboard"), exports);
|
|
@@ -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';
|
|
@@ -10,14 +10,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./bucket_builder/index"), exports);
|
|
14
|
+
__exportStar(require("./chart_builder/index"), exports);
|
|
13
15
|
__exportStar(require("./columns/index"), exports);
|
|
14
16
|
__exportStar(require("./common/index"), exports);
|
|
17
|
+
__exportStar(require("./cross_tabs/index"), exports);
|
|
15
18
|
__exportStar(require("./dashboard/index"), exports);
|
|
16
19
|
__exportStar(require("./filters/index"), exports);
|
|
17
20
|
__exportStar(require("./formula_builder/index"), exports);
|
|
18
21
|
__exportStar(require("./panel/index"), exports);
|
|
22
|
+
__exportStar(require("./style_themes/index"), exports);
|
|
19
23
|
__exportStar(require("./table_charts/index"), exports);
|
|
20
|
-
__exportStar(require("./chart_builder/index"), exports);
|
|
21
24
|
__exportStar(require("./II18nServiceTranslate"), exports);
|
|
22
25
|
__exportStar(require("./II18nServiceTranslateOption"), exports);
|
|
23
26
|
__exportStar(require("./IResourceI18n"), exports);
|
|
@@ -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,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,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,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./II18nStyleThemes"), exports);
|
|
14
|
+
__exportStar(require("./II18nStyleThemesDeleteDialog"), exports);
|
|
15
|
+
__exportStar(require("./II18nStyleThemesMenu"), exports);
|
|
16
|
+
__exportStar(require("./II18nStyleThemesMessages"), exports);
|
|
17
|
+
__exportStar(require("./II18nStyleThemesTheme"), exports);
|
|
18
|
+
__exportStar(require("./II18nStyleThemesTooltips"), exports);
|
|
@@ -13,6 +13,7 @@ const I18N_FILTER_DISPLAY_1 = require("./filters/I18N_FILTER_DISPLAY");
|
|
|
13
13
|
const I18N_BUCKET_BUILDER_1 = require("./bucket_builder/I18N_BUCKET_BUILDER");
|
|
14
14
|
const cross_tabs_1 = require("./cross_tabs");
|
|
15
15
|
const chart_builder_1 = require("./chart_builder");
|
|
16
|
+
const style_themes_1 = require("./style_themes");
|
|
16
17
|
exports.I18N_DEFAULT = {
|
|
17
18
|
bucket_builder: I18N_BUCKET_BUILDER_1.I18N_BUCKET_BUILDER,
|
|
18
19
|
chart_builder: chart_builder_1.I18N_CHART_BUILDER,
|
|
@@ -25,5 +26,6 @@ exports.I18N_DEFAULT = {
|
|
|
25
26
|
filter_panel: I18N_FILTER_PANEL_1.I18N_FILTER_PANEL,
|
|
26
27
|
formula_builder: formula_builder_1.I18N_FORMULA_BUILDER,
|
|
27
28
|
panel: I18N_PANEL_1.I18N_PANEL,
|
|
29
|
+
style_themes: style_themes_1.I18N_STYLE_THEMES,
|
|
28
30
|
table_charts: table_charts_1.I18N_TABLE_CHARTS,
|
|
29
31
|
};
|
|
@@ -25,11 +25,12 @@ exports.I18N_CHART_BUILDER_LAYER_OPTIONS = {
|
|
|
25
25
|
custom_label_placeholder: 'Type custom label',
|
|
26
26
|
dynamic: 'Dynamic',
|
|
27
27
|
fixed: 'Fixed',
|
|
28
|
-
new_reference_line_label: 'Reference Line
|
|
28
|
+
new_reference_line_label: 'Reference Line',
|
|
29
29
|
opacity: 'Opacity',
|
|
30
30
|
remove: 'Remove',
|
|
31
31
|
title: 'Reference Line',
|
|
32
32
|
value: 'Value',
|
|
33
33
|
value_aggregated: 'Value Aggregate',
|
|
34
|
+
value_aggregated_placeholder: 'Select Aggregate',
|
|
34
35
|
},
|
|
35
36
|
};
|
|
@@ -110,7 +110,7 @@ exports.I18N_CHART_BUILDER_STYLE_OPTIONS = {
|
|
|
110
110
|
thickness_thin: 'Thin',
|
|
111
111
|
thickness_normal: 'Normal',
|
|
112
112
|
thickness_bold: 'Bold',
|
|
113
|
-
styles_title: '
|
|
113
|
+
styles_title: 'Line Style',
|
|
114
114
|
styles_solid: 'Solid',
|
|
115
115
|
styles_dashed: 'Dashed',
|
|
116
116
|
styles_dotted: 'Dotted',
|
|
@@ -14,6 +14,12 @@ exports.I18N_DASHBOARD = {
|
|
|
14
14
|
learn_more: 'Learn more',
|
|
15
15
|
},
|
|
16
16
|
export_csv: "Export to CSV",
|
|
17
|
+
messages: {
|
|
18
|
+
dataset_not_available: "Dataset not available at the moment.",
|
|
19
|
+
dataset_not_found: "Dataset not found.",
|
|
20
|
+
server_error: "Server Error.",
|
|
21
|
+
try_again: "Try Again",
|
|
22
|
+
},
|
|
17
23
|
no_record_found: 'No Records Found',
|
|
18
24
|
toast: {
|
|
19
25
|
add_record_message: 'Record Successfully Added.',
|
|
@@ -8,6 +8,7 @@ exports.I18N_RELATIVE_CONTAINER = {
|
|
|
8
8
|
current_date: 'Current Date',
|
|
9
9
|
cursors: I18N_RELATIVE_CURSOR_1.I18N_RELATIVE_CURSOR,
|
|
10
10
|
date_selected: 'Date Selected',
|
|
11
|
+
from_label: 'from',
|
|
11
12
|
starting_date: 'Include starting date',
|
|
12
13
|
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.',
|
|
13
14
|
starting_from: 'Starting From',
|
|
@@ -39,7 +39,7 @@ exports.I18N_FORMULA_BUILDER = {
|
|
|
39
39
|
test: 'Test',
|
|
40
40
|
clear: 'Clear',
|
|
41
41
|
insert_function: 'Insert Functions',
|
|
42
|
-
insert_column: '
|
|
42
|
+
insert_column: 'Insert Columns',
|
|
43
43
|
search_function: 'Search',
|
|
44
44
|
search_column: 'Search',
|
|
45
45
|
box_function_empty: 'No Function Selected',
|
|
@@ -58,7 +58,7 @@ exports.I18N_FORMULA_BUILDER = {
|
|
|
58
58
|
numeric: 'Numeric',
|
|
59
59
|
string: 'String/Text',
|
|
60
60
|
date: 'Date/Time',
|
|
61
|
-
aggregate: '
|
|
61
|
+
aggregate: 'Aggregates'
|
|
62
62
|
},
|
|
63
63
|
function_is_null: {
|
|
64
64
|
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';
|
|
@@ -10,13 +10,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./bucket_builder"), exports);
|
|
14
|
+
__exportStar(require("./chart_builder"), exports);
|
|
13
15
|
__exportStar(require("./columns"), exports);
|
|
14
16
|
__exportStar(require("./common"), exports);
|
|
17
|
+
__exportStar(require("./cross_tabs"), exports);
|
|
15
18
|
__exportStar(require("./dashboard"), exports);
|
|
16
19
|
__exportStar(require("./filters"), exports);
|
|
20
|
+
__exportStar(require("./formula_builder"), exports);
|
|
17
21
|
__exportStar(require("./panel"), exports);
|
|
22
|
+
__exportStar(require("./style_themes"), exports);
|
|
18
23
|
__exportStar(require("./table_charts"), exports);
|
|
19
24
|
__exportStar(require("./I18N_DEFAULT"), exports);
|
|
20
|
-
__exportStar(require("./formula_builder"), exports);
|
|
21
|
-
__exportStar(require("./bucket_builder"), exports);
|
|
22
|
-
__exportStar(require("./chart_builder"), exports);
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.I18N_STYLE_THEMES = void 0;
|
|
4
|
+
exports.I18N_STYLE_THEMES = {
|
|
5
|
+
delete_dialog: {
|
|
6
|
+
no: 'No',
|
|
7
|
+
theme_in_use: 'This theme is in use. If you delete it the visualizations will reset to the default theme.',
|
|
8
|
+
want_to_continue: 'Are you sure you want to continue?',
|
|
9
|
+
yes: 'Yes',
|
|
10
|
+
},
|
|
11
|
+
menu: {
|
|
12
|
+
delete: 'Delete',
|
|
13
|
+
duplicate: 'Duplicate',
|
|
14
|
+
edit: 'Edit',
|
|
15
|
+
use_all: 'Use in all applications',
|
|
16
|
+
},
|
|
17
|
+
messages: {
|
|
18
|
+
theme_could_not_be_created: 'Theme could not be created.',
|
|
19
|
+
theme_could_not_be_deleted: 'Theme could not be deleted.',
|
|
20
|
+
theme_could_not_be_duplicated: 'Theme could not be duplicated.',
|
|
21
|
+
theme_could_not_be_saved: 'Theme could not be saved.',
|
|
22
|
+
theme_could_not_be_selected: 'Theme could not be selected.',
|
|
23
|
+
theme_could_not_be_used_in_all_applications: 'Theme could not be used in all applications.',
|
|
24
|
+
themes_could_not_be_loaded: 'Themes could not be loaded.',
|
|
25
|
+
},
|
|
26
|
+
theme: {
|
|
27
|
+
axis_data_labels: 'Axis and Data Labels',
|
|
28
|
+
cancel_theme: 'Cancel',
|
|
29
|
+
chart_titles_color: 'Chart Titles Color',
|
|
30
|
+
copy: 'Copy',
|
|
31
|
+
create_theme: 'Create New Theme',
|
|
32
|
+
data_styles: 'Data Styles',
|
|
33
|
+
data_visualization: 'Data Visualization',
|
|
34
|
+
edit_theme: 'Edit Theme',
|
|
35
|
+
generate_new: 'Generate New',
|
|
36
|
+
header_font_color: 'Header Font Color',
|
|
37
|
+
id: 'ID',
|
|
38
|
+
legends: 'Legends',
|
|
39
|
+
main_color: 'Main Color',
|
|
40
|
+
name_placeholder: 'Type name',
|
|
41
|
+
panel_styles: 'Panel Styles',
|
|
42
|
+
qrvey_theme: 'Qrvey Theme',
|
|
43
|
+
restore_to_default: 'Restore to Default',
|
|
44
|
+
save_theme: 'Save Theme',
|
|
45
|
+
table_header_styles: 'Table Header Styles',
|
|
46
|
+
text_styles: 'Text Styles',
|
|
47
|
+
tooltips: 'Tooltips',
|
|
48
|
+
typeface: 'Typeface',
|
|
49
|
+
untitled_theme: 'Untitled',
|
|
50
|
+
use_theme_in_all_apps: 'Use Theme in All Apps',
|
|
51
|
+
values: 'Values',
|
|
52
|
+
},
|
|
53
|
+
title: 'Style Themes',
|
|
54
|
+
tooltips: {
|
|
55
|
+
theme_used_in_all_applications: 'This theme is being used in all applications',
|
|
56
|
+
}
|
|
57
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './I18N_STYLE_THEMES';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./I18N_STYLE_THEMES"), exports);
|