@qrvey/utils 1.2.9-13 → 1.2.9-17
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 +926 -766
- 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/builder/getFilterBuilderGeneralConfig.js +1 -0
- 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/getUpdatedUIFilters.d.ts +9 -0
- package/dist/cjs/filters/helpers/ui/getUpdatedUIFilters.js +36 -0
- package/dist/cjs/filters/helpers/ui/index.d.ts +3 -0
- package/dist/cjs/filters/helpers/ui/index.js +3 -0
- package/dist/cjs/filters/helpers/ui/transformFilterValues.d.ts +4 -0
- package/dist/cjs/filters/helpers/ui/transformFilterValues.js +22 -0
- package/dist/cjs/filters/interfaces/builder/IFilterBuilderGeneralConfig.d.ts +1 -0
- package/dist/cjs/filters/interfaces/panel/IFPSettingsGeneral.d.ts +2 -1
- package/dist/cjs/filters/interfaces/panel/IFilterPanelConfig.d.ts +1 -0
- package/dist/cjs/filters/interfaces/ui/IFUTransformFilterValuesSettings.d.ts +6 -0
- package/dist/cjs/filters/interfaces/ui/IFUTransformFilterValuesSettings.js +2 -0
- package/dist/cjs/filters/interfaces/ui/index.d.ts +3 -2
- package/dist/cjs/filters/interfaces/ui/index.js +3 -2
- package/dist/cjs/format/definition.d.ts +17 -0
- package/dist/cjs/format/definition.js +31 -1
- package/dist/cjs/format/format.d.ts +2 -1
- package/dist/cjs/format/format.js +8 -5
- package/dist/cjs/format/index.d.ts +1 -0
- package/dist/cjs/format/index.js +1 -0
- package/dist/cjs/format/localization.d.ts +3 -0
- package/dist/cjs/format/localization.js +56 -0
- package/dist/cjs/globalization/interfaces/IResourceI18n.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderFontOptions.d.ts +5 -3
- 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/labels/I18N_DEFAULT.js +2 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.js +1 -1
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +7 -5
- 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 -1
- package/dist/cjs/interfaces/format/IFormatConfig.Interface.d.ts +5 -0
- package/dist/cjs/interfaces/format/IFormatConfig.Interface.js +2 -0
- package/dist/cjs/interfaces/format/IFormatCurrency.Interface.d.ts +4 -0
- package/dist/cjs/interfaces/format/IFormatCurrency.Interface.js +2 -0
- package/dist/cjs/interfaces/format/IFormatOutputFormat.Interface.d.ts +8 -0
- package/dist/cjs/interfaces/format/IFormatOutputFormat.Interface.js +2 -0
- package/dist/cjs/interfaces/format/index.d.ts +3 -0
- package/dist/cjs/interfaces/format/index.js +15 -0
- package/dist/cjs/interfaces/general/IGeneralWidgetConfig.d.ts +2 -0
- package/dist/cjs/interfaces/index.d.ts +1 -0
- package/dist/cjs/interfaces/index.js +1 -0
- package/dist/cjs/qrvey/helpers/getValueWithSuffixes.d.ts +9 -0
- package/dist/cjs/qrvey/helpers/getValueWithSuffixes.js +23 -0
- package/dist/cjs/qrvey/helpers/index.d.ts +2 -0
- package/dist/cjs/qrvey/helpers/index.js +2 -0
- package/dist/cjs/qrvey/helpers/transformValue.d.ts +8 -0
- package/dist/cjs/qrvey/helpers/transformValue.js +46 -0
- package/dist/cjs/qrvey/interfaces/IGetValueWithSuffixesSettings.d.ts +11 -0
- package/dist/cjs/qrvey/interfaces/IGetValueWithSuffixesSettings.js +2 -0
- package/dist/cjs/qrvey/interfaces/ITransformValueSettings.d.ts +10 -0
- package/dist/cjs/qrvey/interfaces/ITransformValueSettings.js +2 -0
- package/dist/cjs/qrvey/interfaces/index.d.ts +2 -0
- package/dist/cjs/qrvey/interfaces/index.js +2 -0
- package/dist/cjs/services/api/getAllDatasets.api.d.ts +2 -1
- package/dist/cjs/services/api/getAllDatasets.api.js +2 -1
- package/dist/cjs/services/api/getDatasetColumns.api.js +3 -0
- package/dist/filters/helpers/builder/getFilterBuilderGeneralConfig.js +1 -0
- package/dist/filters/helpers/ui/getQrveyIdsByUIFilters.d.ts +7 -0
- package/dist/filters/helpers/ui/getQrveyIdsByUIFilters.js +20 -0
- 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 +3 -0
- package/dist/filters/helpers/ui/index.js +3 -0
- package/dist/filters/helpers/ui/transformFilterValues.d.ts +4 -0
- package/dist/filters/helpers/ui/transformFilterValues.js +18 -0
- package/dist/filters/interfaces/builder/IFilterBuilderGeneralConfig.d.ts +1 -0
- package/dist/filters/interfaces/panel/IFPSettingsGeneral.d.ts +2 -1
- package/dist/filters/interfaces/panel/IFilterPanelConfig.d.ts +1 -0
- package/dist/filters/interfaces/ui/IFUTransformFilterValuesSettings.d.ts +6 -0
- package/dist/filters/interfaces/ui/IFUTransformFilterValuesSettings.js +1 -0
- package/dist/filters/interfaces/ui/index.d.ts +3 -2
- package/dist/filters/interfaces/ui/index.js +3 -2
- package/dist/format/definition.d.ts +17 -0
- package/dist/format/definition.js +30 -0
- package/dist/format/format.d.ts +2 -1
- package/dist/format/format.js +6 -3
- package/dist/format/index.d.ts +1 -0
- package/dist/format/index.js +1 -0
- package/dist/format/localization.d.ts +3 -0
- package/dist/format/localization.js +51 -0
- package/dist/globalization/interfaces/IResourceI18n.d.ts +2 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderFontOptions.d.ts +5 -3
- 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/labels/I18N_DEFAULT.js +2 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.js +1 -1
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +7 -5
- 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 -1
- package/dist/interfaces/format/IFormatConfig.Interface.d.ts +5 -0
- package/dist/interfaces/format/IFormatConfig.Interface.js +1 -0
- package/dist/interfaces/format/IFormatCurrency.Interface.d.ts +4 -0
- package/dist/interfaces/format/IFormatCurrency.Interface.js +1 -0
- package/dist/interfaces/format/IFormatOutputFormat.Interface.d.ts +8 -0
- package/dist/interfaces/format/IFormatOutputFormat.Interface.js +1 -0
- package/dist/interfaces/format/index.d.ts +3 -0
- package/dist/interfaces/format/index.js +3 -0
- package/dist/interfaces/general/IGeneralWidgetConfig.d.ts +2 -0
- package/dist/interfaces/index.d.ts +1 -0
- package/dist/interfaces/index.js +1 -0
- package/dist/qrvey/helpers/getValueWithSuffixes.d.ts +9 -0
- package/dist/qrvey/helpers/getValueWithSuffixes.js +19 -0
- package/dist/qrvey/helpers/index.d.ts +2 -0
- package/dist/qrvey/helpers/index.js +2 -0
- package/dist/qrvey/helpers/transformValue.d.ts +8 -0
- package/dist/qrvey/helpers/transformValue.js +42 -0
- package/dist/qrvey/interfaces/IGetValueWithSuffixesSettings.d.ts +11 -0
- package/dist/qrvey/interfaces/IGetValueWithSuffixesSettings.js +1 -0
- package/dist/qrvey/interfaces/ITransformValueSettings.d.ts +10 -0
- package/dist/qrvey/interfaces/ITransformValueSettings.js +1 -0
- package/dist/qrvey/interfaces/index.d.ts +2 -0
- package/dist/qrvey/interfaces/index.js +2 -0
- package/dist/services/api/getAllDatasets.api.d.ts +2 -1
- package/dist/services/api/getAllDatasets.api.js +2 -1
- package/dist/services/api/getDatasetColumns.api.js +3 -0
- package/package.json +1 -1
- package/src/charts/constants/AGGREGATE_LABEL.ts +1 -1
- package/src/filters/helpers/builder/getFilterBuilderGeneralConfig.ts +1 -0
- package/src/filters/helpers/ui/getQrveyIdsByUIFilters.ts +22 -0
- package/src/filters/helpers/ui/getUpdatedUIFilters.ts +34 -0
- package/src/filters/helpers/ui/index.ts +3 -0
- package/src/filters/helpers/ui/transformFilterValues.ts +29 -0
- package/src/filters/interfaces/builder/IFilterBuilderGeneralConfig.ts +2 -1
- package/src/filters/interfaces/panel/IFPSettingsGeneral.ts +2 -1
- package/src/filters/interfaces/panel/IFilterPanelConfig.ts +1 -0
- package/src/filters/interfaces/ui/IFUTransformFilterValuesSettings.ts +7 -0
- package/src/filters/interfaces/ui/index.ts +3 -2
- package/src/format/definition.ts +45 -0
- package/src/format/format.ts +19 -15
- package/src/format/index.ts +1 -0
- package/src/format/localization.ts +52 -0
- package/src/globalization/interfaces/IResourceI18n.ts +2 -0
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderFontOptions.ts +5 -3
- 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/labels/I18N_DEFAULT.ts +2 -0
- package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.ts +1 -1
- package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.ts +8 -6
- 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 -1
- package/src/interfaces/format/IFormatConfig.Interface.ts +5 -0
- package/src/interfaces/format/IFormatCurrency.Interface.ts +4 -0
- package/src/interfaces/format/IFormatOutputFormat.Interface.ts +9 -0
- package/src/interfaces/format/index.ts +3 -0
- package/src/interfaces/general/IGeneralWidgetConfig.ts +2 -0
- package/src/interfaces/index.ts +1 -0
- package/src/qrvey/helpers/getValueWithSuffixes.ts +19 -0
- package/src/qrvey/helpers/index.ts +2 -0
- package/src/qrvey/helpers/transformValue.ts +47 -0
- package/src/qrvey/interfaces/IGetValueWithSuffixesSettings.ts +12 -0
- package/src/qrvey/interfaces/ITransformValueSettings.ts +12 -0
- package/src/qrvey/interfaces/index.ts +2 -0
- package/src/services/api/getAllDatasets.api.ts +3 -2
- package/src/services/api/getDatasetColumns.api.ts +3 -0
- package/test/format.test.js +11 -11
|
@@ -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";
|
|
@@ -12,6 +12,7 @@ function getFilterBuilderGeneralConfig(config = {}) {
|
|
|
12
12
|
apiKey: (0, getAttribute_1.getAttribute)(config, 'api_key') || config.apiKey,
|
|
13
13
|
appid: (0, getAttribute_1.getAttribute)(config, 'app_id') || config.appid,
|
|
14
14
|
domain: config.domain,
|
|
15
|
+
locale: config.locale,
|
|
15
16
|
qv_token: config.qv_token,
|
|
16
17
|
timezoneControl: (0, getAttribute_1.getAttribute)(config, 'timezone_control') || config.timezoneControl,
|
|
17
18
|
userid: (0, getAttribute_1.getAttribute)(config, 'user_id') || config.userid,
|
|
@@ -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;
|
|
@@ -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,10 @@ 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';
|
|
11
|
+
export * from './transformFilterValues';
|
|
@@ -14,7 +14,10 @@ __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);
|
|
23
|
+
__exportStar(require("./transformFilterValues"), exports);
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IFSFilter } from "../../interfaces/common/IFSFilter";
|
|
2
|
+
import { IFValue } from "../../interfaces/IFValue";
|
|
3
|
+
import { IFUTransformFilterValuesSettings } from "../../interfaces/ui/IFUTransformFilterValuesSettings";
|
|
4
|
+
export declare function transformFilterValues(filter: IFSFilter, settings: IFUTransformFilterValuesSettings): IFValue[];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.transformFilterValues = void 0;
|
|
4
|
+
const isEmpty_1 = require("../../../general/mix/isEmpty");
|
|
5
|
+
const transformValue_1 = require("../../../qrvey/helpers/transformValue");
|
|
6
|
+
const isRangeValidator_1 = require("../common/isRangeValidator");
|
|
7
|
+
const isRegularValidator_1 = require("../common/isRegularValidator");
|
|
8
|
+
function transformFilterValues(filter, settings) {
|
|
9
|
+
const transformValueSettings = Object.assign(Object.assign({}, settings), { column: filter.column, property: filter.property });
|
|
10
|
+
if ((0, isEmpty_1.isEmpty)(filter))
|
|
11
|
+
return [];
|
|
12
|
+
if ((0, isRegularValidator_1.isRegularValidator)(filter.validator)) {
|
|
13
|
+
return filter.values.map((value) => (Object.assign(Object.assign({}, value), { value: (0, transformValue_1.transformValue)(value.value, transformValueSettings) })));
|
|
14
|
+
}
|
|
15
|
+
else if ((0, isRangeValidator_1.isRangeValidator)(filter.validator)) {
|
|
16
|
+
return filter.values.map((value) => (Object.assign(Object.assign({}, value), { min: (0, transformValue_1.transformValue)(value.min, transformValueSettings), max: (0, transformValue_1.transformValue)(value.max, transformValueSettings) })));
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
return filter.values;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.transformFilterValues = transformFilterValues;
|
|
@@ -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
|
}
|
|
@@ -18,7 +18,8 @@ export * from './IFUDataset';
|
|
|
18
18
|
export * from './IFUFilter';
|
|
19
19
|
export * from './IFUFilterExtras';
|
|
20
20
|
export * from './IFUFlattenedFilter';
|
|
21
|
-
export * from './IFUScope';
|
|
22
21
|
export * from './IFUParamsToGetFilter';
|
|
23
|
-
export * from './
|
|
22
|
+
export * from './IFUScope';
|
|
23
|
+
export * from './IFUTransformFilterValuesSettings';
|
|
24
24
|
export * from './IFUUIValueSettings';
|
|
25
|
+
export * from './IFUValue';
|
|
@@ -30,7 +30,8 @@ __exportStar(require("./IFUDataset"), exports);
|
|
|
30
30
|
__exportStar(require("./IFUFilter"), exports);
|
|
31
31
|
__exportStar(require("./IFUFilterExtras"), exports);
|
|
32
32
|
__exportStar(require("./IFUFlattenedFilter"), exports);
|
|
33
|
-
__exportStar(require("./IFUScope"), exports);
|
|
34
33
|
__exportStar(require("./IFUParamsToGetFilter"), exports);
|
|
35
|
-
__exportStar(require("./
|
|
34
|
+
__exportStar(require("./IFUScope"), exports);
|
|
35
|
+
__exportStar(require("./IFUTransformFilterValuesSettings"), exports);
|
|
36
36
|
__exportStar(require("./IFUUIValueSettings"), exports);
|
|
37
|
+
__exportStar(require("./IFUValue"), exports);
|
|
@@ -11,3 +11,20 @@ export declare const isComplexColumn: (column?: any) => boolean;
|
|
|
11
11
|
export declare const isNumericalColumn: (column?: any) => boolean;
|
|
12
12
|
export declare function supportNumericFormatting(chartType: ChartType): boolean;
|
|
13
13
|
export declare const isTextColumn: (column: any) => boolean;
|
|
14
|
+
export declare const currencyISO: {
|
|
15
|
+
text: string;
|
|
16
|
+
label: string;
|
|
17
|
+
}[];
|
|
18
|
+
export declare const enum LOCALE_FORMATS {
|
|
19
|
+
DECIMAL = "Decimal",
|
|
20
|
+
CURRENCY = "Currency",
|
|
21
|
+
PERCENTAGE = "Percentage",
|
|
22
|
+
SCIENTIFIC = "Scientific"
|
|
23
|
+
}
|
|
24
|
+
export declare const enum LOCALE_STYLES {
|
|
25
|
+
DECIMAL = "decimal",
|
|
26
|
+
PERCENT = "percent",
|
|
27
|
+
CURRENCY = "currency",
|
|
28
|
+
SCIENTIFIC = "scientific"
|
|
29
|
+
}
|
|
30
|
+
export declare const LANG_DEFAULT = "en-US";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isTextColumn = exports.supportNumericFormatting = exports.isNumericalColumn = exports.isComplexColumn = exports.hasfileSizeProperty = exports.appliesFormatting = exports.DATEGROUP_FORMATTING_UNSUPPORT = exports.QUESTION_FORMAT_SUPPORT = exports.numericalFields = exports.complexFields = exports.textFields = void 0;
|
|
3
|
+
exports.LANG_DEFAULT = exports.currencyISO = exports.isTextColumn = exports.supportNumericFormatting = exports.isNumericalColumn = exports.isComplexColumn = exports.hasfileSizeProperty = exports.appliesFormatting = exports.DATEGROUP_FORMATTING_UNSUPPORT = exports.QUESTION_FORMAT_SUPPORT = exports.numericalFields = exports.complexFields = exports.textFields = void 0;
|
|
4
4
|
const COLUMN_1 = require("../columns/constants/COLUMN");
|
|
5
5
|
const Charts_Const_1 = require("../constants/Charts.Const");
|
|
6
6
|
exports.textFields = [COLUMN_1.COLUMN.TEXTFIELD, COLUMN_1.COLUMN.TEXT_CATEGORY, COLUMN_1.COLUMN.TEXT_LABEL, COLUMN_1.COLUMN.TEXT_CATEGORY];
|
|
@@ -52,3 +52,33 @@ function supportNumericFormatting(chartType) {
|
|
|
52
52
|
exports.supportNumericFormatting = supportNumericFormatting;
|
|
53
53
|
const isTextColumn = (column) => exports.textFields.includes(column.type) || column.formulaType === 'string' || column.formulaType === 'boolean';
|
|
54
54
|
exports.isTextColumn = isTextColumn;
|
|
55
|
+
exports.currencyISO = [
|
|
56
|
+
{ text: 'Default', label: 'USD' },
|
|
57
|
+
{ text: '$ (USD)', label: 'USD' },
|
|
58
|
+
{ text: '€ (EUR)', label: 'EUR' },
|
|
59
|
+
{ text: '¥ (JPY)', label: 'JPY' },
|
|
60
|
+
{ text: '£ (GBP)', label: 'GBP' },
|
|
61
|
+
{ text: '₩ (WON)', label: 'WON' },
|
|
62
|
+
{ text: '$ (AUD)', label: 'AUD' },
|
|
63
|
+
{ text: '$ (CAD)', label: 'CAD' },
|
|
64
|
+
{ text: 'CHF (CHF)', label: 'CHF' },
|
|
65
|
+
{ text: '¥ (CNY)', label: 'CNY' },
|
|
66
|
+
{ text: 'kr (SEK)', label: 'SEK' },
|
|
67
|
+
{ text: '$ (MXN)', label: 'MXN' },
|
|
68
|
+
{ text: '$ (NZD)', label: 'NZD' },
|
|
69
|
+
{ text: '$ (SGD)', label: 'SGD' },
|
|
70
|
+
{ text: '$ (HKD)', label: 'HKD' },
|
|
71
|
+
{ text: 'kr (NOK)', label: 'NOK' },
|
|
72
|
+
{ text: '₩ (KRW)', label: 'KRW' },
|
|
73
|
+
{ text: '₺ (TRY)', label: 'TRY' },
|
|
74
|
+
{ text: '₹ (INR)', label: 'INR' },
|
|
75
|
+
{ text: '₽ (RUB)', label: 'RUB' },
|
|
76
|
+
{ text: 'R$ (BRL)', label: 'BRL' },
|
|
77
|
+
{ text: 'R (ZAR)', label: 'ZAR' },
|
|
78
|
+
{ text: 'kr (DKK)', label: 'DKK' },
|
|
79
|
+
{ text: 'zł (PLN)', label: 'PLN' },
|
|
80
|
+
{ text: 'NT$ (TWD)', label: 'TWD' },
|
|
81
|
+
{ text: '฿ (THB)', label: 'THB' },
|
|
82
|
+
{ text: 'RM (MYR)', label: 'MYR' }
|
|
83
|
+
];
|
|
84
|
+
exports.LANG_DEFAULT = 'en-US';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IFormatConfig } from '..';
|
|
1
2
|
export declare function formatDate(dateString: any, format: any): any;
|
|
2
3
|
export declare function formatAbbreviated(num: any, decimals: any): any;
|
|
3
4
|
/**
|
|
@@ -5,7 +6,7 @@ export declare function formatAbbreviated(num: any, decimals: any): any;
|
|
|
5
6
|
* @param bytes type number
|
|
6
7
|
*/
|
|
7
8
|
export declare function formatFileSize(bytes: number): string;
|
|
8
|
-
export declare const
|
|
9
|
+
export declare const addFormat: (value: any, outputFormat?: any, config?: IFormatConfig) => any;
|
|
9
10
|
export declare const parseFormulaType: (type: string) => "DATE" | "NUMERIC" | "TEXT_LABEL";
|
|
10
11
|
export declare const validateColumnType: (column: any) => any;
|
|
11
12
|
export declare const defineFormat: (column?: any, isSimpleTable?: boolean, isCategoryDimension?: boolean) => any;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.defineFormat = exports.validateColumnType = exports.parseFormulaType = exports.
|
|
6
|
+
exports.defineFormat = exports.validateColumnType = exports.parseFormulaType = exports.addFormat = exports.formatFileSize = exports.formatAbbreviated = exports.formatDate = void 0;
|
|
7
7
|
const d3_1 = require("d3");
|
|
8
8
|
const dayjs_1 = __importDefault(require("dayjs"));
|
|
9
9
|
const definition_1 = require("./definition");
|
|
@@ -12,6 +12,7 @@ const isEmpty_1 = require("../general/mix/isEmpty");
|
|
|
12
12
|
const get_1 = require("../general/object/get");
|
|
13
13
|
const COLUMN_1 = require("../columns/constants/COLUMN");
|
|
14
14
|
const FORMULA_1 = require("../formulas/constants/FORMULA");
|
|
15
|
+
const localization_1 = require("./localization");
|
|
15
16
|
dayjs_1.default.extend(advancedFormat_1.default); // Add support to advanced formats https://day.js.org/docs/en/plugin/advanced-format
|
|
16
17
|
/**
|
|
17
18
|
* Apply to the given date format to a date value
|
|
@@ -83,16 +84,18 @@ function formatFileSize(bytes) {
|
|
|
83
84
|
return megaBytes < 10 ? `${fixDecimals(megaBytes)} MB` : `${Math.round(megaBytes)} MB`;
|
|
84
85
|
}
|
|
85
86
|
exports.formatFileSize = formatFileSize;
|
|
86
|
-
const
|
|
87
|
+
const addFormat = (value, outputFormat = 'None', config) => {
|
|
87
88
|
if ((0, isEmpty_1.isEmpty)(value) || typeof value === 'object' && (0, isEmpty_1.isEmpty)(value[0]))
|
|
88
89
|
return value;
|
|
89
90
|
switch (outputFormat.type) {
|
|
90
91
|
case 'DATE':
|
|
91
92
|
case 'DATETIME':
|
|
92
|
-
return formatDate(value, outputFormat.format);
|
|
93
|
+
return (config === null || config === void 0 ? void 0 : config.lang) && outputFormat.format === 'Default' ? (0, localization_1.formatWithLocale)(value, outputFormat, config) : formatDate(value, outputFormat.format);
|
|
93
94
|
case 'NUMERIC': {
|
|
94
95
|
const parse = parseFloat(value);
|
|
95
|
-
|
|
96
|
+
const withLocale = outputFormat.format !== 'Abbreviated' && outputFormat !== 'None' && (config === null || config === void 0 ? void 0 : config.lang);
|
|
97
|
+
return isNaN(parse) ? value : withLocale ? (0, localization_1.formatWithLocale)(value, outputFormat, config)
|
|
98
|
+
: formatNumber(parse, outputFormat, config);
|
|
96
99
|
}
|
|
97
100
|
case 'IMAGEUPLOAD':
|
|
98
101
|
case 'FILEUPLOAD':
|
|
@@ -101,7 +104,7 @@ const formatValue = (value, outputFormat = 'None', config) => {
|
|
|
101
104
|
return typeof value === 'number' ? value.toFixed(0) : value;
|
|
102
105
|
}
|
|
103
106
|
};
|
|
104
|
-
exports.
|
|
107
|
+
exports.addFormat = addFormat;
|
|
105
108
|
const parseFormulaType = (type) => {
|
|
106
109
|
switch (type) {
|
|
107
110
|
case FORMULA_1.FORMULA.NUMBER:
|
package/dist/cjs/format/index.js
CHANGED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IFormatConfig, IFormatOutputFormat } from '../interfaces';
|
|
2
|
+
export declare const getLang: (locale: string | Record<string, any>) => Record<string, any>;
|
|
3
|
+
export declare const formatWithLocale: (value: any, outputFormat: IFormatOutputFormat, config?: IFormatConfig) => any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.formatWithLocale = exports.getLang = void 0;
|
|
4
|
+
const definition_1 = require("./definition");
|
|
5
|
+
const getLang = (locale) => {
|
|
6
|
+
if (!locale)
|
|
7
|
+
return;
|
|
8
|
+
else if (typeof locale === 'object')
|
|
9
|
+
return locale;
|
|
10
|
+
else
|
|
11
|
+
return { lang: locale === "browser" ? window.navigator.language : locale };
|
|
12
|
+
};
|
|
13
|
+
exports.getLang = getLang;
|
|
14
|
+
const formatWithLocale = (value, outputFormat, config = {}) => {
|
|
15
|
+
switch (outputFormat.type) {
|
|
16
|
+
case 'DATE':
|
|
17
|
+
case 'DATETIME':
|
|
18
|
+
return formatLocaleDate(value, config);
|
|
19
|
+
case 'NUMERIC':
|
|
20
|
+
return formatLocaleNumber(value, outputFormat, config);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.formatWithLocale = formatWithLocale;
|
|
24
|
+
function formatLocaleDate(value, config) {
|
|
25
|
+
const { lang = definition_1.LANG_DEFAULT, options } = config;
|
|
26
|
+
const dateParam = new Date(value);
|
|
27
|
+
try {
|
|
28
|
+
return new Intl.DateTimeFormat([lang, definition_1.LANG_DEFAULT], options).format(dateParam);
|
|
29
|
+
}
|
|
30
|
+
catch (error) {
|
|
31
|
+
return new Intl.DateTimeFormat(definition_1.LANG_DEFAULT, options).format(dateParam);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function formatLocaleNumber(value, outputFormat, config) {
|
|
35
|
+
const { lang = definition_1.LANG_DEFAULT, options } = config;
|
|
36
|
+
const langOpts = options || getLocaleOptions(outputFormat);
|
|
37
|
+
try {
|
|
38
|
+
return new Intl.NumberFormat([lang, definition_1.LANG_DEFAULT], langOpts).format(value);
|
|
39
|
+
}
|
|
40
|
+
catch (e) {
|
|
41
|
+
return new Intl.NumberFormat(definition_1.LANG_DEFAULT, langOpts).format(value);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function getLocaleOptions(outputFormat) {
|
|
45
|
+
const { format, decimals, currency, backup_currency } = outputFormat;
|
|
46
|
+
switch (format) {
|
|
47
|
+
case "Currency" /* CURRENCY */: {
|
|
48
|
+
const iso = definition_1.currencyISO.find(item => item.text === (currency.text || backup_currency.text));
|
|
49
|
+
return { style: "currency" /* CURRENCY */, currency: iso.label, maximumFractionDigits: decimals, minimumFractionDigits: 0 };
|
|
50
|
+
}
|
|
51
|
+
case "Scientific" /* SCIENTIFIC */: return { style: "decimal" /* DECIMAL */,
|
|
52
|
+
notation: "scientific" /* SCIENTIFIC */, maximumFractionDigits: decimals };
|
|
53
|
+
case "Percentage" /* PERCENTAGE */: return { style: "percent" /* PERCENT */, maximumFractionDigits: decimals };
|
|
54
|
+
default: return { style: "decimal" /* DECIMAL */, maximumFractionDigits: decimals };
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -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,9 +1,11 @@
|
|
|
1
1
|
export interface II18nChartBuilderFontOptions {
|
|
2
|
+
automatic_resize: string;
|
|
2
3
|
color: string;
|
|
4
|
+
disabled: string;
|
|
5
|
+
select_option_placeholder: string;
|
|
6
|
+
size: string;
|
|
3
7
|
style: string;
|
|
4
|
-
style_regular: string;
|
|
5
8
|
style_bold: string;
|
|
6
9
|
style_italic: string;
|
|
7
|
-
|
|
8
|
-
size: string;
|
|
10
|
+
style_regular: string;
|
|
9
11
|
}
|
|
@@ -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
|
+
}
|