@dhis2/analytics 21.0.12 → 21.2.1
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/CHANGELOG.md +28 -0
- package/build/cjs/components/FileMenu/FileMenu.js +6 -16
- package/build/cjs/components/FileMenu/__tests__/FileMenu.spec.js +3 -3
- package/build/cjs/components/TranslationDialog/TranslationModal/LocalesSelect.js +69 -0
- package/build/cjs/components/TranslationDialog/TranslationModal/TranslationForm.js +149 -0
- package/build/cjs/components/TranslationDialog/TranslationModal/TranslationModal.js +76 -0
- package/build/cjs/components/TranslationDialog/TranslationModal/TranslationModalActions.js +39 -0
- package/build/cjs/components/TranslationDialog/TranslationModal/useTranslationsResults.js +46 -0
- package/build/cjs/components/TranslationDialog/index.js +13 -0
- package/build/cjs/index.js +8 -0
- package/build/cjs/locales/ar/translations.json +7 -0
- package/build/cjs/locales/ar_EG/translations.json +7 -0
- package/build/cjs/locales/ar_IQ/translations.json +7 -0
- package/build/cjs/locales/ckb/translations.json +7 -0
- package/build/cjs/locales/cs/translations.json +7 -0
- package/build/cjs/locales/da/translations.json +7 -0
- package/build/cjs/locales/en/translations.json +8 -0
- package/build/cjs/locales/es/translations.json +7 -0
- package/build/cjs/locales/fr/translations.json +7 -0
- package/build/cjs/locales/id/translations.json +7 -0
- package/build/cjs/locales/km/translations.json +7 -0
- package/build/cjs/locales/lo/translations.json +7 -0
- package/build/cjs/locales/my/translations.json +7 -0
- package/build/cjs/locales/nb/translations.json +7 -0
- package/build/cjs/locales/nl/translations.json +7 -0
- package/build/cjs/locales/prs/translations.json +7 -0
- package/build/cjs/locales/ps/translations.json +7 -0
- package/build/cjs/locales/pt/translations.json +7 -0
- package/build/cjs/locales/pt_BR/translations.json +7 -0
- package/build/cjs/locales/ru/translations.json +7 -0
- package/build/cjs/locales/sv/translations.json +7 -0
- package/build/cjs/locales/tet/translations.json +7 -0
- package/build/cjs/locales/tg/translations.json +7 -0
- package/build/cjs/locales/uk/translations.json +7 -0
- package/build/cjs/locales/ur/translations.json +7 -0
- package/build/cjs/locales/uz/translations.json +7 -0
- package/build/cjs/locales/uz_Latn/translations.json +7 -0
- package/build/cjs/locales/vi/translations.json +7 -0
- package/build/cjs/locales/zh/translations.json +7 -0
- package/build/cjs/locales/zh_CN/translations.json +7 -0
- package/build/cjs/modules/pivotTable/PivotTableEngine.js +4 -3
- package/build/es/components/FileMenu/FileMenu.js +4 -14
- package/build/es/components/FileMenu/__tests__/FileMenu.spec.js +1 -1
- package/build/es/components/TranslationDialog/TranslationModal/LocalesSelect.js +52 -0
- package/build/es/components/TranslationDialog/TranslationModal/TranslationForm.js +126 -0
- package/build/es/components/TranslationDialog/TranslationModal/TranslationModal.js +54 -0
- package/build/es/components/TranslationDialog/TranslationModal/TranslationModalActions.js +24 -0
- package/build/es/components/TranslationDialog/TranslationModal/useTranslationsResults.js +32 -0
- package/build/es/components/TranslationDialog/index.js +2 -0
- package/build/es/index.js +3 -1
- package/build/es/locales/ar/translations.json +7 -0
- package/build/es/locales/ar_EG/translations.json +7 -0
- package/build/es/locales/ar_IQ/translations.json +7 -0
- package/build/es/locales/ckb/translations.json +7 -0
- package/build/es/locales/cs/translations.json +7 -0
- package/build/es/locales/da/translations.json +7 -0
- package/build/es/locales/en/translations.json +8 -0
- package/build/es/locales/es/translations.json +7 -0
- package/build/es/locales/fr/translations.json +7 -0
- package/build/es/locales/id/translations.json +7 -0
- package/build/es/locales/km/translations.json +7 -0
- package/build/es/locales/lo/translations.json +7 -0
- package/build/es/locales/my/translations.json +7 -0
- package/build/es/locales/nb/translations.json +7 -0
- package/build/es/locales/nl/translations.json +7 -0
- package/build/es/locales/prs/translations.json +7 -0
- package/build/es/locales/ps/translations.json +7 -0
- package/build/es/locales/pt/translations.json +7 -0
- package/build/es/locales/pt_BR/translations.json +7 -0
- package/build/es/locales/ru/translations.json +7 -0
- package/build/es/locales/sv/translations.json +7 -0
- package/build/es/locales/tet/translations.json +7 -0
- package/build/es/locales/tg/translations.json +7 -0
- package/build/es/locales/uk/translations.json +7 -0
- package/build/es/locales/ur/translations.json +7 -0
- package/build/es/locales/uz/translations.json +7 -0
- package/build/es/locales/uz_Latn/translations.json +7 -0
- package/build/es/locales/vi/translations.json +7 -0
- package/build/es/locales/zh/translations.json +7 -0
- package/build/es/locales/zh_CN/translations.json +7 -0
- package/build/es/modules/pivotTable/PivotTableEngine.js +4 -3
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { useAlert, useDataQuery } from '@dhis2/app-runtime';
|
|
2
|
+
import i18n from '@dhis2/d2-i18n';
|
|
3
|
+
import { useRef } from 'react';
|
|
4
|
+
export const useTranslationsResults = ({
|
|
5
|
+
resource
|
|
6
|
+
}) => {
|
|
7
|
+
const translationsQueryRef = useRef({
|
|
8
|
+
translations: {
|
|
9
|
+
resource: "".concat(resource, "/translations")
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
const {
|
|
13
|
+
data,
|
|
14
|
+
fetching,
|
|
15
|
+
refetch
|
|
16
|
+
} = useDataQuery(translationsQueryRef.current, {
|
|
17
|
+
onError: error => showError(error)
|
|
18
|
+
});
|
|
19
|
+
const {
|
|
20
|
+
show: showError
|
|
21
|
+
} = useAlert(error => error.message || i18n.t('Could not load translations'), {
|
|
22
|
+
critical: true,
|
|
23
|
+
actions: [{
|
|
24
|
+
label: i18n.t('Retry'),
|
|
25
|
+
onClick: refetch
|
|
26
|
+
}]
|
|
27
|
+
});
|
|
28
|
+
return {
|
|
29
|
+
translationsData: fetching ? undefined : data.translations.translations,
|
|
30
|
+
fetching
|
|
31
|
+
};
|
|
32
|
+
};
|
package/build/es/index.js
CHANGED
|
@@ -78,7 +78,9 @@ export { createVisualization } from './visualizations/index.js'; // Modules: fon
|
|
|
78
78
|
|
|
79
79
|
export { FONT_STYLE_VISUALIZATION_TITLE, FONT_STYLE_VISUALIZATION_SUBTITLE, FONT_STYLE_HORIZONTAL_AXIS_TITLE, FONT_STYLE_VERTICAL_AXIS_TITLE, FONT_STYLE_LEGEND, FONT_STYLE_AXIS_LABELS, FONT_STYLE_REGRESSION_LINE_LABEL, FONT_STYLE_OPTION_FONT, FONT_STYLE_OPTION_FONT_SIZE, FONT_STYLE_OPTION_BOLD, FONT_STYLE_OPTION_ITALIC, FONT_STYLE_OPTION_UNDERLINE, FONT_STYLE_OPTION_TEXT_COLOR, FONT_STYLE_OPTION_TEXT_ALIGN, TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER, TEXT_ALIGN_RIGHT, defaultFontStyle, getFontSizeOptions, getTextAlignOptions, deleteFontStyleOption } from './modules/fontStyle.js'; // Modules: legend
|
|
80
80
|
|
|
81
|
-
export { LEGEND_DISPLAY_STRATEGY_BY_DATA_ITEM, LEGEND_DISPLAY_STRATEGY_FIXED, LEGEND_DISPLAY_STYLE_FILL, LEGEND_DISPLAY_STYLE_TEXT } from './modules/legends.js'; //
|
|
81
|
+
export { LEGEND_DISPLAY_STRATEGY_BY_DATA_ITEM, LEGEND_DISPLAY_STRATEGY_FIXED, LEGEND_DISPLAY_STYLE_FILL, LEGEND_DISPLAY_STYLE_TEXT } from './modules/legends.js'; // Modules: pivotTable
|
|
82
|
+
|
|
83
|
+
export { renderValue as formatValue } from './modules/pivotTable/renderValue.js'; // Utils: colorSets
|
|
82
84
|
|
|
83
85
|
export { COLOR_SET_DEFAULT, COLOR_SET_BRIGHT, COLOR_SET_DARK, COLOR_SET_GRAY, COLOR_SET_COLOR_BLIND, COLOR_SET_PATTERNS, colorSets } from './visualizations/util/colors/colorSets.js'; // Utils: periods
|
|
84
86
|
|
|
@@ -238,6 +238,13 @@
|
|
|
238
238
|
"Six-months": "ستة-أشهر",
|
|
239
239
|
"Financial Years": "السنوات المالية",
|
|
240
240
|
"Years": "السنوات",
|
|
241
|
+
"Translating to": "",
|
|
242
|
+
"Choose a locale": "",
|
|
243
|
+
"Base locale reference": "",
|
|
244
|
+
"Choose a locale to translate from the menu above": "",
|
|
245
|
+
"Translate: {{objectName}}": "",
|
|
246
|
+
"Save translations": "",
|
|
247
|
+
"Retry": "",
|
|
241
248
|
"Series": "سلسلة",
|
|
242
249
|
"Category": "الفئة",
|
|
243
250
|
"Filter": "عامل التصفية",
|
|
@@ -238,6 +238,13 @@
|
|
|
238
238
|
"Six-months": "",
|
|
239
239
|
"Financial Years": "",
|
|
240
240
|
"Years": "",
|
|
241
|
+
"Translating to": "",
|
|
242
|
+
"Choose a locale": "",
|
|
243
|
+
"Base locale reference": "",
|
|
244
|
+
"Choose a locale to translate from the menu above": "",
|
|
245
|
+
"Translate: {{objectName}}": "",
|
|
246
|
+
"Save translations": "",
|
|
247
|
+
"Retry": "",
|
|
241
248
|
"Series": "",
|
|
242
249
|
"Category": "",
|
|
243
250
|
"Filter": "",
|
|
@@ -238,6 +238,13 @@
|
|
|
238
238
|
"Six-months": "ستة أشهر",
|
|
239
239
|
"Financial Years": "",
|
|
240
240
|
"Years": "السنوات",
|
|
241
|
+
"Translating to": "",
|
|
242
|
+
"Choose a locale": "",
|
|
243
|
+
"Base locale reference": "",
|
|
244
|
+
"Choose a locale to translate from the menu above": "",
|
|
245
|
+
"Translate: {{objectName}}": "",
|
|
246
|
+
"Save translations": "",
|
|
247
|
+
"Retry": "",
|
|
241
248
|
"Series": "",
|
|
242
249
|
"Category": "",
|
|
243
250
|
"Filter": "",
|
|
@@ -222,6 +222,13 @@
|
|
|
222
222
|
"Six-months": "",
|
|
223
223
|
"Financial Years": "",
|
|
224
224
|
"Years": "ساڵەکان",
|
|
225
|
+
"Translating to": "",
|
|
226
|
+
"Choose a locale": "",
|
|
227
|
+
"Base locale reference": "",
|
|
228
|
+
"Choose a locale to translate from the menu above": "",
|
|
229
|
+
"Translate: {{objectName}}": "",
|
|
230
|
+
"Save translations": "",
|
|
231
|
+
"Retry": "",
|
|
225
232
|
"Series": "",
|
|
226
233
|
"Category": "",
|
|
227
234
|
"Filter": "",
|
|
@@ -230,6 +230,13 @@
|
|
|
230
230
|
"Six-months": "Půlrok",
|
|
231
231
|
"Financial Years": "Finanční roky",
|
|
232
232
|
"Years": "Let",
|
|
233
|
+
"Translating to": "",
|
|
234
|
+
"Choose a locale": "",
|
|
235
|
+
"Base locale reference": "",
|
|
236
|
+
"Choose a locale to translate from the menu above": "",
|
|
237
|
+
"Translate: {{objectName}}": "",
|
|
238
|
+
"Save translations": "",
|
|
239
|
+
"Retry": "",
|
|
233
240
|
"Series": "Série",
|
|
234
241
|
"Category": "Kategorie",
|
|
235
242
|
"Filter": "Filtr",
|
|
@@ -222,6 +222,13 @@
|
|
|
222
222
|
"Six-months": "",
|
|
223
223
|
"Financial Years": "",
|
|
224
224
|
"Years": "",
|
|
225
|
+
"Translating to": "",
|
|
226
|
+
"Choose a locale": "",
|
|
227
|
+
"Base locale reference": "",
|
|
228
|
+
"Choose a locale to translate from the menu above": "",
|
|
229
|
+
"Translate: {{objectName}}": "",
|
|
230
|
+
"Save translations": "",
|
|
231
|
+
"Retry": "",
|
|
225
232
|
"Series": "",
|
|
226
233
|
"Category": "Category",
|
|
227
234
|
"Filter": "Filter",
|
|
@@ -222,6 +222,14 @@
|
|
|
222
222
|
"Six-months": "Six-months",
|
|
223
223
|
"Financial Years": "Financial Years",
|
|
224
224
|
"Years": "Years",
|
|
225
|
+
"Translating to": "Translating to",
|
|
226
|
+
"Choose a locale": "Choose a locale",
|
|
227
|
+
"Base locale reference": "Base locale reference",
|
|
228
|
+
"Choose a locale to translate from the menu above": "Choose a locale to translate from the menu above",
|
|
229
|
+
"Translate: {{objectName}}": "Translate: {{objectName}}",
|
|
230
|
+
"Save translations": "Save translations",
|
|
231
|
+
"Could not load translations": "Could not load translations",
|
|
232
|
+
"Retry": "Retry",
|
|
225
233
|
"Series": "Series",
|
|
226
234
|
"Category": "Category",
|
|
227
235
|
"Filter": "Filter",
|
|
@@ -222,6 +222,13 @@
|
|
|
222
222
|
"Six-months": "Semestres",
|
|
223
223
|
"Financial Years": "",
|
|
224
224
|
"Years": "Años",
|
|
225
|
+
"Translating to": "",
|
|
226
|
+
"Choose a locale": "",
|
|
227
|
+
"Base locale reference": "",
|
|
228
|
+
"Choose a locale to translate from the menu above": "",
|
|
229
|
+
"Translate: {{objectName}}": "",
|
|
230
|
+
"Save translations": "",
|
|
231
|
+
"Retry": "",
|
|
225
232
|
"Series": "",
|
|
226
233
|
"Category": "Categoría",
|
|
227
234
|
"Filter": "filtro",
|
|
@@ -222,6 +222,13 @@
|
|
|
222
222
|
"Six-months": "Semestres",
|
|
223
223
|
"Financial Years": "Années fiscales",
|
|
224
224
|
"Years": "Années",
|
|
225
|
+
"Translating to": "",
|
|
226
|
+
"Choose a locale": "",
|
|
227
|
+
"Base locale reference": "",
|
|
228
|
+
"Choose a locale to translate from the menu above": "",
|
|
229
|
+
"Translate: {{objectName}}": "",
|
|
230
|
+
"Save translations": "",
|
|
231
|
+
"Retry": "",
|
|
225
232
|
"Series": "Séries",
|
|
226
233
|
"Category": "Catégorie",
|
|
227
234
|
"Filter": "Filtrer",
|
|
@@ -218,6 +218,13 @@
|
|
|
218
218
|
"Six-months": "Semester",
|
|
219
219
|
"Financial Years": "Keuangan tahunan",
|
|
220
220
|
"Years": "Tahun",
|
|
221
|
+
"Translating to": "",
|
|
222
|
+
"Choose a locale": "",
|
|
223
|
+
"Base locale reference": "",
|
|
224
|
+
"Choose a locale to translate from the menu above": "",
|
|
225
|
+
"Translate: {{objectName}}": "",
|
|
226
|
+
"Save translations": "",
|
|
227
|
+
"Retry": "",
|
|
221
228
|
"Series": "Seri",
|
|
222
229
|
"Category": "Kategori",
|
|
223
230
|
"Filter": "Saring",
|
|
@@ -218,6 +218,13 @@
|
|
|
218
218
|
"Six-months": "",
|
|
219
219
|
"Financial Years": "",
|
|
220
220
|
"Years": "ឆ្នាំ",
|
|
221
|
+
"Translating to": "",
|
|
222
|
+
"Choose a locale": "",
|
|
223
|
+
"Base locale reference": "",
|
|
224
|
+
"Choose a locale to translate from the menu above": "",
|
|
225
|
+
"Translate: {{objectName}}": "",
|
|
226
|
+
"Save translations": "",
|
|
227
|
+
"Retry": "",
|
|
221
228
|
"Series": "",
|
|
222
229
|
"Category": "",
|
|
223
230
|
"Filter": "",
|
|
@@ -218,6 +218,13 @@
|
|
|
218
218
|
"Six-months": "6 ເດືອນ",
|
|
219
219
|
"Financial Years": "",
|
|
220
220
|
"Years": "ປີ",
|
|
221
|
+
"Translating to": "",
|
|
222
|
+
"Choose a locale": "",
|
|
223
|
+
"Base locale reference": "",
|
|
224
|
+
"Choose a locale to translate from the menu above": "",
|
|
225
|
+
"Translate: {{objectName}}": "",
|
|
226
|
+
"Save translations": "",
|
|
227
|
+
"Retry": "",
|
|
221
228
|
"Series": "ແທ່ງ",
|
|
222
229
|
"Category": "ລວງນອນ",
|
|
223
230
|
"Filter": "Filter",
|
|
@@ -218,6 +218,13 @@
|
|
|
218
218
|
"Six-months": "၆ လ",
|
|
219
219
|
"Financial Years": "",
|
|
220
220
|
"Years": "နှစ်များ",
|
|
221
|
+
"Translating to": "",
|
|
222
|
+
"Choose a locale": "",
|
|
223
|
+
"Base locale reference": "",
|
|
224
|
+
"Choose a locale to translate from the menu above": "",
|
|
225
|
+
"Translate: {{objectName}}": "",
|
|
226
|
+
"Save translations": "",
|
|
227
|
+
"Retry": "",
|
|
221
228
|
"Series": "အစဉ်အတန်းများ",
|
|
222
229
|
"Category": "category",
|
|
223
230
|
"Filter": "ရှာဖွေထုတ်သည်",
|
|
@@ -222,6 +222,13 @@
|
|
|
222
222
|
"Six-months": "Halvår",
|
|
223
223
|
"Financial Years": "Regnskapsår",
|
|
224
224
|
"Years": "År",
|
|
225
|
+
"Translating to": "",
|
|
226
|
+
"Choose a locale": "",
|
|
227
|
+
"Base locale reference": "",
|
|
228
|
+
"Choose a locale to translate from the menu above": "",
|
|
229
|
+
"Translate: {{objectName}}": "",
|
|
230
|
+
"Save translations": "",
|
|
231
|
+
"Retry": "",
|
|
225
232
|
"Series": "Serie",
|
|
226
233
|
"Category": "Kategori",
|
|
227
234
|
"Filter": "Filter",
|
|
@@ -222,6 +222,13 @@
|
|
|
222
222
|
"Six-months": "",
|
|
223
223
|
"Financial Years": "",
|
|
224
224
|
"Years": "",
|
|
225
|
+
"Translating to": "",
|
|
226
|
+
"Choose a locale": "",
|
|
227
|
+
"Base locale reference": "",
|
|
228
|
+
"Choose a locale to translate from the menu above": "",
|
|
229
|
+
"Translate: {{objectName}}": "",
|
|
230
|
+
"Save translations": "",
|
|
231
|
+
"Retry": "",
|
|
225
232
|
"Series": "",
|
|
226
233
|
"Category": "",
|
|
227
234
|
"Filter": "",
|
|
@@ -222,6 +222,13 @@
|
|
|
222
222
|
"Six-months": "شش-ماهه",
|
|
223
223
|
"Financial Years": "",
|
|
224
224
|
"Years": "سالانه",
|
|
225
|
+
"Translating to": "",
|
|
226
|
+
"Choose a locale": "",
|
|
227
|
+
"Base locale reference": "",
|
|
228
|
+
"Choose a locale to translate from the menu above": "",
|
|
229
|
+
"Translate: {{objectName}}": "",
|
|
230
|
+
"Save translations": "",
|
|
231
|
+
"Retry": "",
|
|
225
232
|
"Series": "سلسله (لړۍ)",
|
|
226
233
|
"Category": "دسته بندی",
|
|
227
234
|
"Filter": "فلتر",
|
|
@@ -222,6 +222,13 @@
|
|
|
222
222
|
"Six-months": "شپږ میاشتې",
|
|
223
223
|
"Financial Years": "",
|
|
224
224
|
"Years": "کلونه",
|
|
225
|
+
"Translating to": "",
|
|
226
|
+
"Choose a locale": "",
|
|
227
|
+
"Base locale reference": "",
|
|
228
|
+
"Choose a locale to translate from the menu above": "",
|
|
229
|
+
"Translate: {{objectName}}": "",
|
|
230
|
+
"Save translations": "",
|
|
231
|
+
"Retry": "",
|
|
225
232
|
"Series": "سلسله (لړۍ)",
|
|
226
233
|
"Category": "کټګوري",
|
|
227
234
|
"Filter": "فیلټر",
|
|
@@ -222,6 +222,13 @@
|
|
|
222
222
|
"Six-months": "Seis meses",
|
|
223
223
|
"Financial Years": "Ano financeiro ",
|
|
224
224
|
"Years": "Anos",
|
|
225
|
+
"Translating to": "",
|
|
226
|
+
"Choose a locale": "",
|
|
227
|
+
"Base locale reference": "",
|
|
228
|
+
"Choose a locale to translate from the menu above": "",
|
|
229
|
+
"Translate: {{objectName}}": "",
|
|
230
|
+
"Save translations": "",
|
|
231
|
+
"Retry": "",
|
|
225
232
|
"Series": "Série",
|
|
226
233
|
"Category": "Categoria",
|
|
227
234
|
"Filter": "Filtro",
|
|
@@ -222,6 +222,13 @@
|
|
|
222
222
|
"Six-months": "",
|
|
223
223
|
"Financial Years": "",
|
|
224
224
|
"Years": "Anos",
|
|
225
|
+
"Translating to": "",
|
|
226
|
+
"Choose a locale": "",
|
|
227
|
+
"Base locale reference": "",
|
|
228
|
+
"Choose a locale to translate from the menu above": "",
|
|
229
|
+
"Translate: {{objectName}}": "",
|
|
230
|
+
"Save translations": "",
|
|
231
|
+
"Retry": "",
|
|
225
232
|
"Series": "Série",
|
|
226
233
|
"Category": "Categoria",
|
|
227
234
|
"Filter": "Filtro",
|
|
@@ -230,6 +230,13 @@
|
|
|
230
230
|
"Six-months": "Полугодие",
|
|
231
231
|
"Financial Years": "Финансовые годы",
|
|
232
232
|
"Years": "Годы",
|
|
233
|
+
"Translating to": "",
|
|
234
|
+
"Choose a locale": "",
|
|
235
|
+
"Base locale reference": "",
|
|
236
|
+
"Choose a locale to translate from the menu above": "",
|
|
237
|
+
"Translate: {{objectName}}": "",
|
|
238
|
+
"Save translations": "",
|
|
239
|
+
"Retry": "",
|
|
233
240
|
"Series": "Ряды",
|
|
234
241
|
"Category": "Категория",
|
|
235
242
|
"Filter": "Фильтр",
|
|
@@ -222,6 +222,13 @@
|
|
|
222
222
|
"Six-months": "",
|
|
223
223
|
"Financial Years": "",
|
|
224
224
|
"Years": "År",
|
|
225
|
+
"Translating to": "",
|
|
226
|
+
"Choose a locale": "",
|
|
227
|
+
"Base locale reference": "",
|
|
228
|
+
"Choose a locale to translate from the menu above": "",
|
|
229
|
+
"Translate: {{objectName}}": "",
|
|
230
|
+
"Save translations": "",
|
|
231
|
+
"Retry": "",
|
|
225
232
|
"Series": "",
|
|
226
233
|
"Category": "",
|
|
227
234
|
"Filter": "Filtrera",
|
|
@@ -218,6 +218,13 @@
|
|
|
218
218
|
"Six-months": "Fulan-nén",
|
|
219
219
|
"Financial Years": "",
|
|
220
220
|
"Years": "Tinan",
|
|
221
|
+
"Translating to": "",
|
|
222
|
+
"Choose a locale": "",
|
|
223
|
+
"Base locale reference": "",
|
|
224
|
+
"Choose a locale to translate from the menu above": "",
|
|
225
|
+
"Translate: {{objectName}}": "",
|
|
226
|
+
"Save translations": "",
|
|
227
|
+
"Retry": "",
|
|
221
228
|
"Series": "Séries",
|
|
222
229
|
"Category": "Kategoria",
|
|
223
230
|
"Filter": "Filtru",
|
|
@@ -222,6 +222,13 @@
|
|
|
222
222
|
"Six-months": "Шашмоҳаҳо",
|
|
223
223
|
"Financial Years": "",
|
|
224
224
|
"Years": "Солҳо",
|
|
225
|
+
"Translating to": "",
|
|
226
|
+
"Choose a locale": "",
|
|
227
|
+
"Base locale reference": "",
|
|
228
|
+
"Choose a locale to translate from the menu above": "",
|
|
229
|
+
"Translate: {{objectName}}": "",
|
|
230
|
+
"Save translations": "",
|
|
231
|
+
"Retry": "",
|
|
225
232
|
"Series": "Силсила",
|
|
226
233
|
"Category": "Категория",
|
|
227
234
|
"Filter": "Филтр",
|
|
@@ -230,6 +230,13 @@
|
|
|
230
230
|
"Six-months": "Півріччя",
|
|
231
231
|
"Financial Years": "",
|
|
232
232
|
"Years": "Роки",
|
|
233
|
+
"Translating to": "",
|
|
234
|
+
"Choose a locale": "",
|
|
235
|
+
"Base locale reference": "",
|
|
236
|
+
"Choose a locale to translate from the menu above": "",
|
|
237
|
+
"Translate: {{objectName}}": "",
|
|
238
|
+
"Save translations": "",
|
|
239
|
+
"Retry": "",
|
|
233
240
|
"Series": "",
|
|
234
241
|
"Category": "Категорія",
|
|
235
242
|
"Filter": "Фільтр",
|
|
@@ -222,6 +222,13 @@
|
|
|
222
222
|
"Six-months": "چھ ماہ",
|
|
223
223
|
"Financial Years": "",
|
|
224
224
|
"Years": "سال",
|
|
225
|
+
"Translating to": "",
|
|
226
|
+
"Choose a locale": "",
|
|
227
|
+
"Base locale reference": "",
|
|
228
|
+
"Choose a locale to translate from the menu above": "",
|
|
229
|
+
"Translate: {{objectName}}": "",
|
|
230
|
+
"Save translations": "",
|
|
231
|
+
"Retry": "",
|
|
225
232
|
"Series": "سیریز",
|
|
226
233
|
"Category": "قسم",
|
|
227
234
|
"Filter": "فلٹر",
|
|
@@ -218,6 +218,13 @@
|
|
|
218
218
|
"Six-months": "Ярим йиллик",
|
|
219
219
|
"Financial Years": "Молиявий йиллар",
|
|
220
220
|
"Years": "Йиллар",
|
|
221
|
+
"Translating to": "",
|
|
222
|
+
"Choose a locale": "",
|
|
223
|
+
"Base locale reference": "",
|
|
224
|
+
"Choose a locale to translate from the menu above": "",
|
|
225
|
+
"Translate: {{objectName}}": "",
|
|
226
|
+
"Save translations": "",
|
|
227
|
+
"Retry": "",
|
|
221
228
|
"Series": "Кетма-кетликлар",
|
|
222
229
|
"Category": "Категория",
|
|
223
230
|
"Filter": "Фильтр",
|
|
@@ -218,6 +218,13 @@
|
|
|
218
218
|
"Six-months": "Yarim yillik",
|
|
219
219
|
"Financial Years": "Moliyaviy yillar",
|
|
220
220
|
"Years": "Yillar",
|
|
221
|
+
"Translating to": "",
|
|
222
|
+
"Choose a locale": "",
|
|
223
|
+
"Base locale reference": "",
|
|
224
|
+
"Choose a locale to translate from the menu above": "",
|
|
225
|
+
"Translate: {{objectName}}": "",
|
|
226
|
+
"Save translations": "",
|
|
227
|
+
"Retry": "",
|
|
221
228
|
"Series": "Ketma-ketliklar",
|
|
222
229
|
"Category": "Kategoriya",
|
|
223
230
|
"Filter": "Filtr",
|
|
@@ -218,6 +218,13 @@
|
|
|
218
218
|
"Six-months": "Sáu-tháng",
|
|
219
219
|
"Financial Years": "Năm tài chính",
|
|
220
220
|
"Years": "Năm",
|
|
221
|
+
"Translating to": "",
|
|
222
|
+
"Choose a locale": "",
|
|
223
|
+
"Base locale reference": "",
|
|
224
|
+
"Choose a locale to translate from the menu above": "",
|
|
225
|
+
"Translate: {{objectName}}": "",
|
|
226
|
+
"Save translations": "",
|
|
227
|
+
"Retry": "",
|
|
221
228
|
"Series": "Chuỗi Dữ Liệu",
|
|
222
229
|
"Category": "Phân loại",
|
|
223
230
|
"Filter": "Lọc",
|
|
@@ -218,6 +218,13 @@
|
|
|
218
218
|
"Six-months": "Six-months",
|
|
219
219
|
"Financial Years": "Financial Years",
|
|
220
220
|
"Years": "年",
|
|
221
|
+
"Translating to": "",
|
|
222
|
+
"Choose a locale": "",
|
|
223
|
+
"Base locale reference": "",
|
|
224
|
+
"Choose a locale to translate from the menu above": "",
|
|
225
|
+
"Translate: {{objectName}}": "",
|
|
226
|
+
"Save translations": "",
|
|
227
|
+
"Retry": "",
|
|
221
228
|
"Series": "系列",
|
|
222
229
|
"Category": "分类",
|
|
223
230
|
"Filter": "过滤器",
|
|
@@ -218,6 +218,13 @@
|
|
|
218
218
|
"Six-months": "",
|
|
219
219
|
"Financial Years": "",
|
|
220
220
|
"Years": "年",
|
|
221
|
+
"Translating to": "",
|
|
222
|
+
"Choose a locale": "",
|
|
223
|
+
"Base locale reference": "",
|
|
224
|
+
"Choose a locale to translate from the menu above": "",
|
|
225
|
+
"Translate: {{objectName}}": "",
|
|
226
|
+
"Save translations": "",
|
|
227
|
+
"Retry": "",
|
|
221
228
|
"Series": "",
|
|
222
229
|
"Category": "分类",
|
|
223
230
|
"Filter": "过滤器",
|
|
@@ -211,6 +211,7 @@ export class PivotTableEngine {
|
|
|
211
211
|
return sets;
|
|
212
212
|
}, {});
|
|
213
213
|
this.rawData = data;
|
|
214
|
+
this.dimensionLookup = buildDimensionLookup(this.visualization, this.rawData.metaData, this.rawData.headers);
|
|
214
215
|
this.options = { ...defaultOptions,
|
|
215
216
|
showColumnTotals: visualization.colTotals,
|
|
216
217
|
showRowTotals: visualization.rowTotals,
|
|
@@ -220,10 +221,10 @@ export class PivotTableEngine {
|
|
|
220
221
|
hideEmptyRows: visualization.hideEmptyRows,
|
|
221
222
|
title: visualization.hideTitle ? undefined : visualization.title,
|
|
222
223
|
subtitle: visualization.hideSubtitle ? undefined : visualization.subtitle,
|
|
223
|
-
|
|
224
|
-
|
|
224
|
+
// turn on fixed headers only when there are dimensions
|
|
225
|
+
fixColumnHeaders: this.dimensionLookup.columns.length ? visualization.fixColumnHeaders : false,
|
|
226
|
+
fixRowHeaders: this.dimensionLookup.rows.length ? visualization.fixRowHeaders : false
|
|
225
227
|
};
|
|
226
|
-
this.dimensionLookup = buildDimensionLookup(this.visualization, this.rawData.metaData, this.rawData.headers);
|
|
227
228
|
this.adaptiveClippingController = new AdaptiveClippingController(this);
|
|
228
229
|
const doColumnSubtotals = this.options.showColumnSubtotals && this.dimensionLookup.rows.length > 1;
|
|
229
230
|
const singularRow = this.dimensionLookup.rows.length === 1 && this.dimensionLookup.rows[0].count === 1;
|