@qrvey/utils 1.2.9-1 → 1.2.9-13
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 +92 -92
- package/dist/cjs/columns/constants/COLUMN_PROPERTY_LABEL.d.ts +1 -0
- package/dist/cjs/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.d.ts +1 -0
- package/dist/cjs/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.js +1 -0
- package/dist/cjs/dates/relative/constants/RELATIVE_UNIT_INFO.d.ts +5 -0
- package/dist/cjs/dates/relative/constants/RELATIVE_UNIT_INFO.js +11 -0
- package/dist/cjs/dates/relative/constants/RELATIVE_UNIT_INFO_LIST.d.ts +5 -0
- package/dist/cjs/dates/relative/constants/RELATIVE_UNIT_INFO_LIST.js +14 -0
- package/dist/cjs/dates/relative/constants/index.d.ts +2 -0
- package/dist/cjs/dates/relative/constants/index.js +2 -0
- package/dist/cjs/dates/relative/interfaces/IRelativeUnit.d.ts +2 -0
- package/dist/cjs/{globalization/interfaces/chart_builder/II18nChartBuilderChartLabes.js → dates/relative/interfaces/IRelativeUnit.js} +0 -0
- package/dist/cjs/dates/relative/interfaces/IRelativeUnitInfo.d.ts +5 -0
- package/dist/cjs/{globalization/interfaces/chart_builder/II18nChartBuilderComplexAddress.js → dates/relative/interfaces/IRelativeUnitInfo.js} +0 -0
- package/dist/cjs/dates/relative/interfaces/index.d.ts +2 -0
- package/dist/cjs/dates/relative/interfaces/index.js +2 -0
- package/dist/cjs/filters/adapters/FDToFlatUI.js +0 -2
- package/dist/cjs/filters/adapters/FDToUI.js +1 -2
- package/dist/cjs/filters/adapters/UIToFD.js +0 -1
- package/dist/cjs/filters/adapters/UIToFlatUI.js +0 -2
- package/dist/cjs/filters/adapters/UIToOldLogic.js +1 -1
- package/dist/cjs/filters/adapters/flatUIToOldLogic.js +1 -1
- package/dist/cjs/filters/adapters/flatUIToUI.js +0 -2
- package/dist/cjs/filters/adapters/logicToFlatUI.js +0 -2
- package/dist/cjs/filters/helpers/ui/getUIValues.d.ts +2 -1
- package/dist/cjs/filters/helpers/ui/getUIValues.js +36 -17
- package/dist/cjs/filters/interfaces/ui/IFUFilter.d.ts +1 -1
- package/dist/cjs/filters/interfaces/ui/IFUUIValueSettings.d.ts +6 -0
- package/dist/cjs/{globalization/interfaces/chart_builder/II18nChartBuilderComplexFile.js → filters/interfaces/ui/IFUUIValueSettings.js} +0 -0
- package/dist/cjs/filters/interfaces/ui/index.d.ts +1 -0
- package/dist/cjs/filters/interfaces/ui/index.js +1 -0
- package/dist/cjs/globalization/helpers/getI18nDateGroupLabel.js +2 -0
- package/dist/cjs/globalization/helpers/getReverseI18nGroupLabel.js +2 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.d.ts +2 -1
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilder.d.ts +2 -16
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderAxisStyle.d.ts +19 -18
- package/dist/cjs/globalization/interfaces/chart_builder/{II18nChartBuilderChartLabes.d.ts → II18nChartBuilderChartLabels.d.ts} +1 -1
- package/dist/cjs/globalization/interfaces/chart_builder/{II18nChartBuilderComplexImage.js → II18nChartBuilderChartLabels.js} +0 -0
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderColorSettings.d.ts +5 -4
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComparisionOptions.d.ts +15 -11
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderDataPanel.d.ts +16 -15
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.d.ts +12 -11
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderGeneralOptions.d.ts +16 -12
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderRefernceLine.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderSorting.d.ts +13 -9
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderStyleOptions.d.ts +19 -16
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderTableCalculation.d.ts +1 -1
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderTooltipSettings.d.ts +1 -1
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderTrendChart.d.ts +15 -3
- package/dist/cjs/globalization/interfaces/chart_builder/index.d.ts +1 -8
- package/dist/cjs/globalization/interfaces/chart_builder/index.js +1 -8
- package/dist/cjs/globalization/interfaces/common/II18nColumnProperties.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/common/II18nCommon.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/common/II18nUnits.d.ts +7 -0
- package/dist/cjs/globalization/interfaces/{chart_builder/II18nChartBuilderComplexImageAnalysis.js → common/II18nUnits.js} +0 -0
- package/dist/cjs/globalization/interfaces/common/index.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/common/index.js +2 -0
- package/dist/cjs/globalization/interfaces/dashboard/II18nDashboard.d.ts +5 -0
- package/dist/cjs/globalization/interfaces/dashboard/II18nDashboardEmptyState.d.ts +5 -0
- package/dist/cjs/globalization/interfaces/{chart_builder/II18nChartBuilderComplexName.js → dashboard/II18nDashboardEmptyState.js} +0 -0
- package/dist/cjs/globalization/interfaces/dashboard/II18nDashboardMessages.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/{chart_builder/II18nChartBuilderComplexText.js → dashboard/II18nDashboardMessages.js} +0 -0
- package/dist/cjs/globalization/interfaces/dashboard/index.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/dashboard/index.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderColumnSelector.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/filters/II18nRelativeContainer.d.ts +5 -2
- package/dist/cjs/globalization/interfaces/filters/II18nValueContainer.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanelErrors.d.ts +11 -9
- package/dist/cjs/globalization/interfaces/panel/II18nPanelSummaryViews.d.ts +21 -11
- package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsPagination.d.ts +1 -0
- package/dist/cjs/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.js +3 -2
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_COMPARISION_OPTIONS.js +15 -11
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.d.ts +1 -1
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +50 -72
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.js +32 -24
- 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 +44 -39
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_TIME_PERIOD.js +1 -1
- package/dist/cjs/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.js +1 -0
- package/dist/cjs/globalization/labels/common/I18N_COMMON.js +8 -0
- package/dist/cjs/globalization/labels/dashboard/I18N_DASHBOARD.js +19 -7
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_BUILDER.js +3 -2
- package/dist/cjs/globalization/labels/filters/I18N_RELATIVE_CONTAINER.js +5 -2
- package/dist/cjs/globalization/labels/filters/I18N_VALUE_CONTAINER.js +3 -2
- package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +3 -3
- package/dist/cjs/globalization/labels/panel/I18N_PANEL.js +32 -20
- package/dist/cjs/globalization/labels/table_charts/I18N_TABLE_CHARTS.js +1 -0
- package/dist/columns/constants/COLUMN_PROPERTY_LABEL.d.ts +1 -0
- package/dist/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.d.ts +1 -0
- package/dist/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.js +1 -0
- package/dist/dates/relative/constants/RELATIVE_UNIT_INFO.d.ts +5 -0
- package/dist/dates/relative/constants/RELATIVE_UNIT_INFO.js +8 -0
- package/dist/dates/relative/constants/RELATIVE_UNIT_INFO_LIST.d.ts +5 -0
- package/dist/dates/relative/constants/RELATIVE_UNIT_INFO_LIST.js +11 -0
- package/dist/dates/relative/constants/index.d.ts +2 -0
- package/dist/dates/relative/constants/index.js +2 -0
- package/dist/dates/relative/interfaces/IRelativeUnit.d.ts +2 -0
- package/dist/{globalization/interfaces/chart_builder/II18nChartBuilderChartLabes.js → dates/relative/interfaces/IRelativeUnit.js} +0 -0
- package/dist/dates/relative/interfaces/IRelativeUnitInfo.d.ts +5 -0
- package/dist/{globalization/interfaces/chart_builder/II18nChartBuilderComplexAddress.js → dates/relative/interfaces/IRelativeUnitInfo.js} +0 -0
- package/dist/dates/relative/interfaces/index.d.ts +2 -0
- package/dist/dates/relative/interfaces/index.js +2 -0
- package/dist/filters/adapters/FDToFlatUI.js +0 -2
- package/dist/filters/adapters/FDToUI.js +1 -2
- package/dist/filters/adapters/UIToFD.js +0 -1
- package/dist/filters/adapters/UIToFlatUI.js +0 -2
- package/dist/filters/adapters/UIToOldLogic.js +1 -1
- package/dist/filters/adapters/flatUIToOldLogic.js +1 -1
- package/dist/filters/adapters/flatUIToUI.js +0 -2
- package/dist/filters/adapters/logicToFlatUI.js +0 -2
- package/dist/filters/helpers/ui/getUIValues.d.ts +2 -1
- package/dist/filters/helpers/ui/getUIValues.js +36 -17
- package/dist/filters/interfaces/ui/IFUFilter.d.ts +1 -1
- package/dist/filters/interfaces/ui/IFUUIValueSettings.d.ts +6 -0
- package/dist/{globalization/interfaces/chart_builder/II18nChartBuilderComplexFile.js → filters/interfaces/ui/IFUUIValueSettings.js} +0 -0
- package/dist/filters/interfaces/ui/index.d.ts +1 -0
- package/dist/filters/interfaces/ui/index.js +1 -0
- package/dist/globalization/helpers/getI18nDateGroupLabel.js +2 -0
- package/dist/globalization/helpers/getReverseI18nGroupLabel.js +2 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.d.ts +2 -1
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilder.d.ts +2 -16
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderAxisStyle.d.ts +19 -18
- package/dist/globalization/interfaces/chart_builder/{II18nChartBuilderChartLabes.d.ts → II18nChartBuilderChartLabels.d.ts} +1 -1
- package/dist/globalization/interfaces/chart_builder/{II18nChartBuilderComplexImage.js → II18nChartBuilderChartLabels.js} +0 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderColorSettings.d.ts +5 -4
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComparisionOptions.d.ts +15 -11
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderDataPanel.d.ts +16 -15
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.d.ts +12 -11
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderGeneralOptions.d.ts +16 -12
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderRefernceLine.d.ts +1 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderSorting.d.ts +13 -9
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderStyleOptions.d.ts +19 -16
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderTableCalculation.d.ts +1 -1
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderTooltipSettings.d.ts +1 -1
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderTrendChart.d.ts +15 -3
- package/dist/globalization/interfaces/chart_builder/index.d.ts +1 -8
- package/dist/globalization/interfaces/chart_builder/index.js +1 -8
- package/dist/globalization/interfaces/common/II18nColumnProperties.d.ts +1 -0
- package/dist/globalization/interfaces/common/II18nCommon.d.ts +2 -0
- package/dist/globalization/interfaces/common/II18nUnits.d.ts +7 -0
- package/dist/globalization/interfaces/{chart_builder/II18nChartBuilderComplexImageAnalysis.js → common/II18nUnits.js} +0 -0
- package/dist/globalization/interfaces/common/index.d.ts +2 -0
- package/dist/globalization/interfaces/common/index.js +2 -0
- package/dist/globalization/interfaces/dashboard/II18nDashboard.d.ts +5 -0
- package/dist/globalization/interfaces/dashboard/II18nDashboardEmptyState.d.ts +5 -0
- package/dist/globalization/interfaces/{chart_builder/II18nChartBuilderComplexName.js → dashboard/II18nDashboardEmptyState.js} +0 -0
- package/dist/globalization/interfaces/dashboard/II18nDashboardMessages.d.ts +6 -0
- package/dist/globalization/interfaces/{chart_builder/II18nChartBuilderComplexText.js → dashboard/II18nDashboardMessages.js} +0 -0
- package/dist/globalization/interfaces/dashboard/index.d.ts +2 -0
- package/dist/globalization/interfaces/dashboard/index.js +2 -0
- package/dist/globalization/interfaces/filters/II18nFilterBuilderColumnSelector.d.ts +1 -0
- package/dist/globalization/interfaces/filters/II18nRelativeContainer.d.ts +5 -2
- package/dist/globalization/interfaces/filters/II18nValueContainer.d.ts +1 -0
- package/dist/globalization/interfaces/panel/II18nPanelErrors.d.ts +11 -9
- package/dist/globalization/interfaces/panel/II18nPanelSummaryViews.d.ts +21 -11
- package/dist/globalization/interfaces/table_charts/II18nTableChartsPagination.d.ts +1 -0
- package/dist/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.js +3 -2
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_COMPARISION_OPTIONS.js +15 -11
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.d.ts +1 -1
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +50 -72
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.js +32 -24
- 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 +44 -39
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_TIME_PERIOD.js +1 -1
- package/dist/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.js +1 -0
- package/dist/globalization/labels/common/I18N_COMMON.js +8 -0
- package/dist/globalization/labels/dashboard/I18N_DASHBOARD.js +19 -7
- package/dist/globalization/labels/filters/I18N_FILTER_BUILDER.js +3 -2
- package/dist/globalization/labels/filters/I18N_RELATIVE_CONTAINER.js +5 -2
- package/dist/globalization/labels/filters/I18N_VALUE_CONTAINER.js +3 -2
- package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +3 -3
- package/dist/globalization/labels/panel/I18N_PANEL.js +32 -20
- package/dist/globalization/labels/table_charts/I18N_TABLE_CHARTS.js +1 -0
- package/package.json +1 -1
- package/src/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.ts +1 -0
- package/src/dates/relative/constants/RELATIVE_UNIT_INFO.ts +11 -0
- package/src/dates/relative/constants/RELATIVE_UNIT_INFO_LIST.ts +13 -0
- package/src/dates/relative/constants/index.ts +2 -0
- package/src/dates/relative/interfaces/IRelativeUnit.ts +3 -0
- package/src/dates/relative/interfaces/IRelativeUnitInfo.ts +7 -0
- package/src/dates/relative/interfaces/index.ts +2 -0
- package/src/filters/adapters/FDToFlatUI.ts +0 -2
- package/src/filters/adapters/FDToUI.ts +0 -2
- package/src/filters/adapters/UIToFD.ts +0 -1
- package/src/filters/adapters/UIToFlatUI.ts +0 -2
- package/src/filters/adapters/UIToOldLogic.ts +1 -1
- package/src/filters/adapters/flatUIToOldLogic.ts +1 -1
- package/src/filters/adapters/flatUIToUI.ts +0 -2
- package/src/filters/adapters/logicToFlatUI.ts +1 -3
- package/src/filters/helpers/ui/getUIValues.ts +39 -18
- package/src/filters/interfaces/ui/IFUFilter.ts +1 -1
- package/src/filters/interfaces/ui/IFUUIValueSettings.ts +7 -0
- package/src/filters/interfaces/ui/index.ts +1 -0
- package/src/globalization/helpers/getI18nDateGroupLabel.ts +2 -0
- package/src/globalization/helpers/getReverseI18nGroupLabel.ts +2 -0
- package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.ts +2 -1
- package/src/globalization/interfaces/chart_builder/II18nChartBuilder.ts +2 -16
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderAxisStyle.ts +19 -18
- package/src/globalization/interfaces/chart_builder/{II18nChartBuilderChartLabes.ts → II18nChartBuilderChartLabels.ts} +1 -1
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderColorSettings.ts +5 -4
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderComparisionOptions.ts +15 -11
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderDataPanel.ts +16 -15
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.ts +12 -11
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderGeneralOptions.ts +16 -12
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderRefernceLine.ts +1 -0
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderSorting.ts +13 -9
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderStyleOptions.ts +19 -16
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderTableCalculation.ts +1 -1
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderTooltipSettings.ts +1 -1
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderTrendChart.ts +15 -3
- package/src/globalization/interfaces/chart_builder/index.ts +1 -8
- package/src/globalization/interfaces/common/II18nColumnProperties.ts +1 -0
- package/src/globalization/interfaces/common/II18nCommon.ts +2 -0
- package/src/globalization/interfaces/common/II18nUnits.ts +7 -0
- package/src/globalization/interfaces/common/index.ts +3 -0
- package/src/globalization/interfaces/dashboard/II18nDashboard.ts +5 -0
- package/src/globalization/interfaces/dashboard/II18nDashboardEmptyState.ts +5 -0
- package/src/globalization/interfaces/dashboard/II18nDashboardMessages.ts +6 -0
- package/src/globalization/interfaces/dashboard/index.ts +2 -0
- package/src/globalization/interfaces/filters/II18nFilterBuilderColumnSelector.ts +1 -0
- package/src/globalization/interfaces/filters/II18nRelativeContainer.ts +5 -2
- package/src/globalization/interfaces/filters/II18nValueContainer.ts +1 -0
- package/src/globalization/interfaces/panel/II18nPanelErrors.ts +11 -9
- package/src/globalization/interfaces/panel/II18nPanelSummaryViews.ts +21 -11
- package/src/globalization/interfaces/table_charts/II18nTableChartsPagination.ts +1 -0
- package/src/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.ts +3 -2
- package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_COMPARISION_OPTIONS.ts +15 -11
- package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.ts +52 -76
- package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.ts +33 -25
- 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 +44 -39
- package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_TIME_PERIOD.ts +1 -1
- package/src/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.ts +1 -0
- package/src/globalization/labels/common/I18N_COMMON.ts +8 -0
- package/src/globalization/labels/dashboard/I18N_DASHBOARD.ts +19 -7
- package/src/globalization/labels/filters/I18N_FILTER_BUILDER.ts +3 -2
- package/src/globalization/labels/filters/I18N_RELATIVE_CONTAINER.ts +5 -2
- package/src/globalization/labels/filters/I18N_VALUE_CONTAINER.ts +3 -2
- package/src/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.ts +3 -3
- package/src/globalization/labels/panel/I18N_PANEL.ts +32 -20
- package/src/globalization/labels/table_charts/I18N_TABLE_CHARTS.ts +1 -0
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexAddress.d.ts +0 -5
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexFile.d.ts +0 -4
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexImage.d.ts +0 -4
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexImageAnalysis.d.ts +0 -4
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexName.d.ts +0 -4
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexText.d.ts +0 -6
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexUsaAddress.d.ts +0 -5
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderComplexUsaAddress.js +0 -2
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexAddress.d.ts +0 -5
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexFile.d.ts +0 -4
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexImage.d.ts +0 -4
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexImageAnalysis.d.ts +0 -4
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexName.d.ts +0 -4
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexText.d.ts +0 -6
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexUsaAddress.d.ts +0 -5
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderComplexUsaAddress.js +0 -1
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderComplexAddress.ts +0 -6
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderComplexFile.ts +0 -4
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderComplexImage.ts +0 -4
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderComplexImageAnalysis.ts +0 -4
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderComplexName.ts +0 -4
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderComplexText.ts +0 -6
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderComplexUsaAddress.ts +0 -6
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { I18N_RELATIVE_CURSOR } from "./I18N_RELATIVE_CURSOR";
|
|
2
2
|
export const I18N_RELATIVE_CONTAINER = {
|
|
3
|
-
cursors: I18N_RELATIVE_CURSOR,
|
|
4
3
|
calendar_date: 'Calendar dates',
|
|
5
4
|
calendar_date_tooltip: 'The relative date range selected refers to the entire calendar entity (a whole week, month, year, etc.). <br/> Unchecking this option, the relative date range selected will be a rolling date.',
|
|
5
|
+
current_date: 'Current Date',
|
|
6
|
+
cursors: I18N_RELATIVE_CURSOR,
|
|
7
|
+
date_selected: 'Date Selected',
|
|
8
|
+
from_label: 'from',
|
|
6
9
|
starting_date: 'Include starting date',
|
|
7
10
|
starting_date_tooltip: 'The relative date will include the specific starting date and a period of time to show from that date onwards (Inclusive range). <br/> Unchecking this option will exclude the chosen starting date (exclusive range) from the date range.',
|
|
8
11
|
starting_from: 'Starting From',
|
|
9
|
-
|
|
12
|
+
set_current_date: 'Set to current date',
|
|
10
13
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export const I18N_VALUE_CONTAINER = {
|
|
2
|
+
no_label: 'No Label',
|
|
3
|
+
no_records_message: 'No records found',
|
|
2
4
|
search_input: {
|
|
3
|
-
placeholder: 'Search or type values separated by commas. Use {{ for tokens.',
|
|
4
5
|
enter_value_first_label: "Press",
|
|
5
6
|
enter_value_second_label: "Enter",
|
|
6
7
|
enter_value_third_label: "to Insert",
|
|
8
|
+
placeholder: 'Search or type values separated by commas. Use {{ for tokens.',
|
|
7
9
|
},
|
|
8
|
-
no_label: 'No Label',
|
|
9
10
|
select_all: 'Select All',
|
|
10
11
|
};
|
|
@@ -27,7 +27,7 @@ export const I18N_FORMULA_BUILDER = {
|
|
|
27
27
|
name: 'Formula Name',
|
|
28
28
|
placeholder_name: 'Type Formula Name',
|
|
29
29
|
invalid_name: 'cannot be used in the formula name.',
|
|
30
|
-
detail_title: '
|
|
30
|
+
detail_title: 'Formula',
|
|
31
31
|
detail_suggestion: 'Allows mathematical operations including',
|
|
32
32
|
detail_suggestion_operators: '+, -, *, /, ()',
|
|
33
33
|
syntax_success: 'Formula syntax is correct.',
|
|
@@ -36,7 +36,7 @@ export const I18N_FORMULA_BUILDER = {
|
|
|
36
36
|
test: 'Test',
|
|
37
37
|
clear: 'Clear',
|
|
38
38
|
insert_function: 'Insert Functions',
|
|
39
|
-
insert_column: '
|
|
39
|
+
insert_column: 'Insert Columns',
|
|
40
40
|
search_function: 'Search',
|
|
41
41
|
search_column: 'Search',
|
|
42
42
|
box_function_empty: 'No Function Selected',
|
|
@@ -55,7 +55,7 @@ export const I18N_FORMULA_BUILDER = {
|
|
|
55
55
|
numeric: 'Numeric',
|
|
56
56
|
string: 'String/Text',
|
|
57
57
|
date: 'Date/Time',
|
|
58
|
-
aggregate: '
|
|
58
|
+
aggregate: 'Aggregates'
|
|
59
59
|
},
|
|
60
60
|
function_is_null: {
|
|
61
61
|
description: 'Replaces NULL with the specified replacement value.',
|
|
@@ -7,22 +7,24 @@ export const I18N_PANEL = {
|
|
|
7
7
|
copy: 'Copy'
|
|
8
8
|
},
|
|
9
9
|
errors: {
|
|
10
|
+
chart_not_found: 'This {{panel}} is no longer available.',
|
|
11
|
+
continuous_date_limit: 'The combination of data used in this chart exceeds the maximum number of data points that the system can return.<br><br>We recommend you try:<br>• Using a <i>Date Grouping</i> that returns less data<br>• Using another chart visualization<br>• Switching to Discrete Values',
|
|
12
|
+
continuous_numeric_limit: 'The combination of data used in this chart exceeds the maximum number of data points that the system can return.<br><br>We recommend you try:<br>• Using another chart visualization<br>• Switching to Discrete Values',
|
|
13
|
+
drilldown_unavailable: 'No data found with drilldown.',
|
|
14
|
+
invalid_data_for_chart: 'No valid data for this chart',
|
|
15
|
+
longer_available_panel: 'This panel is no longer available',
|
|
16
|
+
long_text: 'long-text',
|
|
17
|
+
max_buckets_limit: 'The combination of data used in this chart exceeds the maximum number of data points that the system can return.<br><br>We recommend you try:<br>• Refining your data with <i>Max Data Points</i> or <i>Filters</i><br>• Using a <i>Date Grouping</i> that returns less data<br>• Using another chart visualization',
|
|
10
18
|
missing_column: 'Missing Column.',
|
|
11
19
|
missing_bucket_column: 'Missing bucket column.',
|
|
12
20
|
missing_formula_column: 'Missing formula column.',
|
|
13
21
|
missing_linked_column: 'Missing linked column.',
|
|
14
22
|
no_data_found: 'No data found.',
|
|
15
|
-
server_error: 'Sever Error.',
|
|
16
|
-
try_again: 'Try Again',
|
|
17
|
-
chart_not_found: 'This {{panel}} is no longer available.',
|
|
18
|
-
service_unavailable: '{{panel}} not available at the moment.',
|
|
19
23
|
refresh_panel: 'Refresh panel',
|
|
24
|
+
server_error: 'Sever Error.',
|
|
20
25
|
restore_panel: 'Restore panel',
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
max_buckets_limit: 'The combination of data used in this chart exceeds the maximum number of data points that the system can return.<br><br>We recommend you try:<br>• Refining your data with <i>Max Data Points</i> or <i>Filters</i><br>• Using a <i>Date Grouping</i> that returns less data<br>• Using another chart visualization',
|
|
24
|
-
continuous_date_limit: 'The combination of data used in this chart exceeds the maximum number of data points that the system can return.<br><br>We recommend you try:<br>• Using a <i>Date Grouping</i> that returns less data<br>• Using another chart visualization<br>• Switching to Discrete Values',
|
|
25
|
-
continuous_numeric_limit: 'The combination of data used in this chart exceeds the maximum number of data points that the system can return.<br><br>We recommend you try:<br>• Using another chart visualization<br>• Switching to Discrete Values',
|
|
26
|
+
service_unavailable: '{{panel}} not available at the moment.',
|
|
27
|
+
try_again: 'Try Again',
|
|
26
28
|
table_calculation_no_data_found: 'This <i>Table Calculation</i> resulted in NaN for all values.<br><br>We recommend you try:<br>• Another <i>Table Calculation</i><br>• Another <i>Aggregation</i>'
|
|
27
29
|
},
|
|
28
30
|
menu: {
|
|
@@ -80,22 +82,32 @@ export const I18N_PANEL = {
|
|
|
80
82
|
},
|
|
81
83
|
summary_views: {
|
|
82
84
|
bar_chart: 'Bar Chart',
|
|
83
|
-
metrics: 'Metrics',
|
|
84
|
-
list_view: 'List View',
|
|
85
|
-
fill_null: 'Fill / Null',
|
|
86
|
-
wordcloud: 'Wordcloud',
|
|
87
|
-
histogram: 'Histogram',
|
|
88
|
-
pie_chart: 'Pie Chart',
|
|
89
|
-
dot_map: 'Dot Map',
|
|
90
|
-
bubble_view: 'Bubble',
|
|
91
85
|
bubble_map: 'Bubble Map',
|
|
86
|
+
bubble_view: 'Bubble',
|
|
87
|
+
categories: 'Categories',
|
|
88
|
+
cluster_chart: 'Cluster Chart',
|
|
89
|
+
dot_map: 'Dot Map',
|
|
92
90
|
entities: 'Entities',
|
|
91
|
+
fill_null: 'Fill / Null',
|
|
92
|
+
histogram: 'Histogram',
|
|
93
93
|
keyphrases: 'Keyphrases',
|
|
94
|
+
list_view: 'List View',
|
|
95
|
+
metric_filled_in: 'Filled in',
|
|
96
|
+
metric_label_average: 'Average',
|
|
97
|
+
metric_label_count: 'Count',
|
|
98
|
+
metric_label_maximum: 'Maximum',
|
|
99
|
+
metric_label_minimum: 'Minimum',
|
|
100
|
+
metric_label_standar_desviation: 'Standard Deviation',
|
|
101
|
+
metric_label_sum: 'Sum',
|
|
102
|
+
metric_null: 'Null',
|
|
103
|
+
metrics: 'Metrics',
|
|
104
|
+
multiseries: 'Multiseries',
|
|
105
|
+
no_data_found_for_this_field: 'No data found for this field',
|
|
106
|
+
pie_chart: 'Pie Chart',
|
|
107
|
+
restore_panel: 'Restore panel',
|
|
94
108
|
sentiment: 'Sentiment',
|
|
95
109
|
starts: 'Stars',
|
|
96
|
-
|
|
97
|
-
multiseries: 'Multiseries',
|
|
98
|
-
cluster_chart: 'Cluster Chart',
|
|
110
|
+
wordcloud: 'Wordcloud',
|
|
99
111
|
},
|
|
100
112
|
timeout_message: 'Calculating {{type}}. This process may take a while.',
|
|
101
113
|
tooltips: {
|
package/package.json
CHANGED
|
@@ -12,6 +12,7 @@ export enum COMPLEX_COLUMN_PROPERTY_LABEL {
|
|
|
12
12
|
IMAGEUPLOAD_IMAGESIZE = 'Image Size',
|
|
13
13
|
IMAGEUPLOAD_IMAGETYPE = 'Image Type',
|
|
14
14
|
IMAGEUPLOAD_IMAGEWORDS = 'Image Words',
|
|
15
|
+
IMAGEUPLOAD_IMAGECATEGORY = 'Categories',
|
|
15
16
|
EXPRESSION_POSITIVE = 'Positive',
|
|
16
17
|
EXPRESSION_NEGATIVE = 'Negative',
|
|
17
18
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DATE_GROUPING_PROPERTY } from "../../constants/DATE_GROUPING_PROPERTY";
|
|
2
|
+
import { IRelativeUnit } from "../interfaces/IRelativeUnit";
|
|
3
|
+
import { IRelativeUnitInfo } from "../interfaces/IRelativeUnitInfo";
|
|
4
|
+
|
|
5
|
+
export const RELATIVE_UNIT_INFO: { [key in IRelativeUnit]: IRelativeUnitInfo } = {
|
|
6
|
+
DAY: { abbrLabel: 'Day', shortLabel: 'Day', label: 'Day', value: DATE_GROUPING_PROPERTY.DAY, displayed: true, i18nLabelPath: 'common.units.day' },
|
|
7
|
+
MONTH: { abbrLabel: 'Month', shortLabel: 'Month', label: 'Month', value: DATE_GROUPING_PROPERTY.MONTH, displayed: true, i18nLabelPath: 'common.units.month' },
|
|
8
|
+
QUARTER: { abbrLabel: 'Quarter', shortLabel: 'Quarter', label: 'Quarter', value: DATE_GROUPING_PROPERTY.QUARTER, displayed: true, i18nLabelPath: 'common.units.quarter' },
|
|
9
|
+
WEEK: { abbrLabel: 'Week', shortLabel: 'Week', label: 'Week', value: DATE_GROUPING_PROPERTY.WEEK, displayed: true, i18nLabelPath: 'common.units.week' },
|
|
10
|
+
YEAR: { abbrLabel: 'Year', shortLabel: 'Year', label: 'Year', value: DATE_GROUPING_PROPERTY.YEAR, displayed: true, i18nLabelPath: 'common.units.year' },
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IRelativeUnitInfo } from "../interfaces/IRelativeUnitInfo";
|
|
2
|
+
import { RELATIVE_UNIT_INFO } from "./RELATIVE_UNIT_INFO";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @description Key/array of compound relative cursor info
|
|
6
|
+
*/
|
|
7
|
+
export const RELATIVE_UNIT_INFO_LIST: IRelativeUnitInfo[] = [
|
|
8
|
+
RELATIVE_UNIT_INFO['YEAR'],
|
|
9
|
+
RELATIVE_UNIT_INFO['QUARTER'],
|
|
10
|
+
RELATIVE_UNIT_INFO['MONTH'],
|
|
11
|
+
RELATIVE_UNIT_INFO['WEEK'],
|
|
12
|
+
RELATIVE_UNIT_INFO['DAY'],
|
|
13
|
+
];
|
|
@@ -4,5 +4,7 @@ export * from './RELATIVE_CURSOR';
|
|
|
4
4
|
export * from './RELATIVE_CURSOR_INFO_LIST';
|
|
5
5
|
export * from './RELATIVE_CURSOR_INFO';
|
|
6
6
|
export * from './RELATIVE_CURSOR_LABEL';
|
|
7
|
+
export * from './RELATIVE_UNIT_INFO_LIST';
|
|
8
|
+
export * from './RELATIVE_UNIT_INFO';
|
|
7
9
|
|
|
8
10
|
export * from './ui/index';
|
|
@@ -2,6 +2,8 @@ export * from './AbsoluteStatement';
|
|
|
2
2
|
export * from './Anchor';
|
|
3
3
|
export * from './RelativeCursor';
|
|
4
4
|
export * from './IRelativeCursorInfo';
|
|
5
|
+
export * from './IRelativeUnit';
|
|
6
|
+
export * from './IRelativeUnitInfo';
|
|
5
7
|
export * from './RelativeInput';
|
|
6
8
|
export * from './RelativeStatement';
|
|
7
9
|
export * from './RelativeToAbsoluteStruct';
|
|
@@ -9,7 +9,6 @@ import { IFSScope } from "../interfaces/common/IFSScope";
|
|
|
9
9
|
import { IColumn } from "../../columns/interfaces/IColumn";
|
|
10
10
|
import { adaptDateGroupingProperty } from "./adaptDateGroupingProperty";
|
|
11
11
|
import { _get } from "../../general/object/get";
|
|
12
|
-
import { getUIValues } from "../helpers/ui/getUIValues";
|
|
13
12
|
|
|
14
13
|
|
|
15
14
|
/**
|
|
@@ -99,7 +98,6 @@ function FD21ToFlatUI(scopes: IFSScope[] = [], datasetsInfo: IDataset[] = []): I
|
|
|
99
98
|
nullValues: filter.nullValues,
|
|
100
99
|
operator: filter.operator,
|
|
101
100
|
property: property,
|
|
102
|
-
uiValues: getUIValues(filter),
|
|
103
101
|
validator: filter.validator,
|
|
104
102
|
values: adaptFilterValues(filter),
|
|
105
103
|
};
|
|
@@ -12,7 +12,6 @@ import { IFUScope } from "../interfaces/ui/IFUScope";
|
|
|
12
12
|
import { FILTER_STRUCTURE_VERSION } from "../constants/common/FILTER_STRUCTURE_VERSION";
|
|
13
13
|
import { IColumn } from "../../columns/interfaces/IColumn";
|
|
14
14
|
import { _get } from "../../general/object/get";
|
|
15
|
-
import { getUIValues } from "../helpers/ui/getUIValues";
|
|
16
15
|
|
|
17
16
|
/**
|
|
18
17
|
* Generates a UI filter structure from Filter Data structure.
|
|
@@ -78,7 +77,6 @@ export function FDToUI(filterData: IFSData, datasetsInfo: IDataset[] = []): IFUD
|
|
|
78
77
|
type: columnInfo?.type || filter.column.type,
|
|
79
78
|
},
|
|
80
79
|
property,
|
|
81
|
-
uiValues: getUIValues(filter),
|
|
82
80
|
values: adaptFilterValues(filter),
|
|
83
81
|
};
|
|
84
82
|
})
|
|
@@ -7,7 +7,6 @@ import { isEmpty } from "../../general/mix/isEmpty";
|
|
|
7
7
|
import { cloneDeep } from "../../general/object/cloneDeep";
|
|
8
8
|
import { IFUScope } from "../interfaces/ui/IFUScope";
|
|
9
9
|
import { IColumn } from "../../columns/interfaces/IColumn";
|
|
10
|
-
import { getUIValues } from "../helpers/ui/getUIValues";
|
|
11
10
|
|
|
12
11
|
/**
|
|
13
12
|
* Generates a Flattened UI filter structure from UI Filter Data structure.
|
|
@@ -95,7 +94,6 @@ function UI21ToFlatUI(scopes: IFUScope[] = [], datasetsInfo: IDataset[] = []): I
|
|
|
95
94
|
nullValues: filter.nullValues,
|
|
96
95
|
operator: filter.operator,
|
|
97
96
|
property,
|
|
98
|
-
uiValues: getUIValues(filter),
|
|
99
97
|
validator: filter.validator,
|
|
100
98
|
values: adaptFilterValues(filter),
|
|
101
99
|
};
|
|
@@ -162,7 +162,7 @@ const getFilterDetail = (filter: IFUFilter, scope: IFUScope, dataset: IFUDataset
|
|
|
162
162
|
panelid: filter.extras.panelid,
|
|
163
163
|
panelName: filter.extras.filterLabel,
|
|
164
164
|
section: filter.extras.section,
|
|
165
|
-
uiValue: getUIValues(filter, true),
|
|
165
|
+
uiValue: getUIValues(filter, { addEnableds: true } ),
|
|
166
166
|
validator: filter.validator,
|
|
167
167
|
values: adaptFilterValues(filter)
|
|
168
168
|
};
|
|
@@ -101,7 +101,7 @@ const flatUIToOldFilterDetail = (uFilters: IFUFlattenedFilter[] = []): OLD_IFilt
|
|
|
101
101
|
panelid: filter.extras.panelid,
|
|
102
102
|
panelName: filter.extras.filterLabel,
|
|
103
103
|
section: filter.extras.section,
|
|
104
|
-
uiValue: getUIValues(filter, true),
|
|
104
|
+
uiValue: getUIValues(filter, { addEnableds: true }),
|
|
105
105
|
validator: filter.validator,
|
|
106
106
|
values: filter.values,
|
|
107
107
|
_newFilters: { ...filter }
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { adaptDateGroupingProperty } from "./adaptDateGroupingProperty";
|
|
2
|
-
import { getUIValues } from "../helpers/ui/getUIValues";
|
|
3
2
|
import { adaptFilterValues } from "./adaptFilterValues";
|
|
4
3
|
import { IFUFlattenedFilter } from "../interfaces/ui/IFUFlattenedFilter";
|
|
5
4
|
import { IFSection } from "../interfaces/IFSection";
|
|
@@ -134,7 +133,6 @@ function buildFilter(uFilter: IFUFlattenedFilter): IFUFilter {
|
|
|
134
133
|
nullValues: uFilter.nullValues,
|
|
135
134
|
operator: uFilter.operator,
|
|
136
135
|
property,
|
|
137
|
-
uiValues: getUIValues(uFilter),
|
|
138
136
|
validator: uFilter.validator,
|
|
139
137
|
values: adaptFilterValues(uFilter),
|
|
140
138
|
};
|
|
@@ -13,7 +13,6 @@ import { getFilterid } from "../helpers/common/getFilterid";
|
|
|
13
13
|
import { FILTER_SCOPE } from "../constants/common/FILTER_SCOPE";
|
|
14
14
|
import { _get } from "../../general/object/get";
|
|
15
15
|
import { IFSValueRanking } from "../interfaces/common/IFSValueRanking";
|
|
16
|
-
import { getUIValues } from "../helpers/ui/getUIValues";
|
|
17
16
|
import { OLD_IFilterDetail } from "../interfaces/OLD_IFilterDetail";
|
|
18
17
|
import { isNullValidator } from "../helpers/common/isNullValidator";
|
|
19
18
|
import { FILTER_VALIDATOR_INFO } from "../constants/common/FILTER_VALIDATOR_INFO";
|
|
@@ -59,7 +58,7 @@ function buildFilterByExpression(expression: OLD_IFilterExpression, scopeItem: O
|
|
|
59
58
|
}
|
|
60
59
|
}
|
|
61
60
|
|
|
62
|
-
function getFilterByExpression(expression: OLD_IFilterExpression, scopeItem: OLD_IFilterLogic) {
|
|
61
|
+
function getFilterByExpression(expression: OLD_IFilterExpression, scopeItem: OLD_IFilterLogic): IFUFlattenedFilter {
|
|
63
62
|
const uiExtras = expression.uiExtras;
|
|
64
63
|
const scopeid = scopeItem.scope !== FILTER_SCOPE.GLOBAL ? _get(scopeItem, 'uiExtras.scopeid') : undefined;
|
|
65
64
|
const info = !isEmpty(uiExtras.info) ? { icon: uiExtras.info.icon, label: uiExtras.info.label } : undefined;
|
|
@@ -113,7 +112,6 @@ function getFilterByExpression(expression: OLD_IFilterExpression, scopeItem: OLD
|
|
|
113
112
|
nullValues: uiExtras.nullValues,
|
|
114
113
|
operator: uiExtras.operator,
|
|
115
114
|
property,
|
|
116
|
-
uiValues: getUIValues(uiExtras as any),
|
|
117
115
|
validator: uiExtras.validator,
|
|
118
116
|
values: getValues(uiExtras),
|
|
119
117
|
};
|
|
@@ -11,6 +11,8 @@ import { isEmpty } from "../../../general/mix/isEmpty";
|
|
|
11
11
|
import { IFSValueRanking } from "../../interfaces/common/IFSValueRanking";
|
|
12
12
|
import { flattenDeep } from "../../../general/array/flattenDeep";
|
|
13
13
|
import { RELATIVE_CURSOR_INFO } from "../../../dates/relative/constants/RELATIVE_CURSOR_INFO";
|
|
14
|
+
import { IFUUIValueSettings } from "../../interfaces/ui/IFUUIValueSettings";
|
|
15
|
+
import { getI18nDateGroupLabel, IDateColumnPropertyType } from "../../..";
|
|
14
16
|
|
|
15
17
|
/**
|
|
16
18
|
*
|
|
@@ -19,57 +21,76 @@ import { RELATIVE_CURSOR_INFO } from "../../../dates/relative/constants/RELATIVE
|
|
|
19
21
|
* @param rankingGroupIndex
|
|
20
22
|
* @returns
|
|
21
23
|
*/
|
|
22
|
-
export function getUIValues(filter: IFSFilter,
|
|
24
|
+
export function getUIValues(filter: IFSFilter, settings?: IFUUIValueSettings): IFUValue[] {
|
|
25
|
+
settings = getUiValuesSettings(settings);
|
|
23
26
|
switch (filter.validator) {
|
|
24
27
|
case FILTER_VALIDATOR.AFTER:
|
|
25
28
|
case FILTER_VALIDATOR.GREATER_THAN:
|
|
26
29
|
case FILTER_VALIDATOR.AFTER_ON:
|
|
27
30
|
case FILTER_VALIDATOR.GREATER_THAN_EQUAL:
|
|
28
31
|
return (filter.values as IFSValueRange[]).map(value => ({
|
|
29
|
-
value: value.min,
|
|
30
|
-
enabled: addEnableds ? value.enabled != null ? value.enabled : true : undefined,
|
|
32
|
+
value: getValueLabel(value.min, filter, settings),
|
|
33
|
+
enabled: settings.addEnableds ? value.enabled != null ? value.enabled : true : undefined,
|
|
31
34
|
}));
|
|
32
35
|
case FILTER_VALIDATOR.BEFORE_ON:
|
|
33
36
|
case FILTER_VALIDATOR.LESS_THAN_EQUAL:
|
|
34
37
|
case FILTER_VALIDATOR.BEFORE:
|
|
35
38
|
case FILTER_VALIDATOR.LESS_THAN:
|
|
36
39
|
return (filter.values as IFSValueRange[]).map(value => ({
|
|
37
|
-
value: value.max,
|
|
38
|
-
enabled: addEnableds ? value.enabled != null ? value.enabled : true : undefined,
|
|
40
|
+
value: getValueLabel(value.max, filter, settings),
|
|
41
|
+
enabled: settings.addEnableds ? value.enabled != null ? value.enabled : true : undefined,
|
|
39
42
|
}));
|
|
40
43
|
case FILTER_VALIDATOR.BETWEEN_INCLUSIVE:
|
|
41
44
|
case FILTER_VALIDATOR.BETWEEN_EXCLUSIVE:
|
|
42
45
|
return (filter.values as IFSValueRange[]).map(value => ({
|
|
43
|
-
value: `${value.min} - ${value.max}`,
|
|
44
|
-
enabled: addEnableds ? value.enabled != null ? value.enabled : true : undefined,
|
|
46
|
+
value: `${getValueLabel(value.min, filter, settings)} - ${getValueLabel(value.max, filter, settings)}`,
|
|
47
|
+
enabled: settings.addEnableds ? value.enabled != null ? value.enabled : true : undefined,
|
|
45
48
|
}));
|
|
46
49
|
case FILTER_VALIDATOR.IS_NULL:
|
|
47
50
|
case FILTER_VALIDATOR.IS_NOT_NULL:
|
|
48
51
|
return [{
|
|
49
52
|
value: FILTER_VALIDATOR_INFO[filter.validator].label,
|
|
50
|
-
enabled: addEnableds ? (filter.values as IFSValue[])[0]?.enabled : undefined,
|
|
53
|
+
enabled: settings.addEnableds ? (filter.values as IFSValue[])[0]?.enabled : undefined,
|
|
51
54
|
}];
|
|
52
55
|
case FILTER_VALIDATOR.IN:
|
|
53
|
-
return (filter.values as IFSValueRelativeDate[]).map(value =>
|
|
54
|
-
value:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
return (filter.values as IFSValueRelativeDate[]).map(value => {
|
|
57
|
+
const cursor = settings?.translate ? settings.translate(RELATIVE_CURSOR_INFO[value.cursor].i18nLabelPath) : RELATIVE_CURSOR_INFO[value.cursor].i18nLabelPath;
|
|
58
|
+
const from = settings?.translate ? settings.translate('filter.relative_container.from_label') : 'from';
|
|
59
|
+
const anchor = settings?.translate ? settings?.translate('filter.relative_container.current_date') : 'current date';
|
|
60
|
+
return {
|
|
61
|
+
value:
|
|
62
|
+
`${cursor} ${value.cursor !== RELATIVE_CURSOR.THIS && value.number > 1 ? value.number : ''} ${getValueUiUnitRelativeDate(value, settings)} ${value.cursor !== RELATIVE_CURSOR.THIS ? `${from} ${value.anchor || anchor}`: ''}`,
|
|
63
|
+
enabled: settings.addEnableds ? filter.enabled : undefined,
|
|
64
|
+
};
|
|
65
|
+
});
|
|
58
66
|
default:
|
|
59
67
|
if (filter.column.type === COLUMN.RANKING && isEmpty(filter.column.aggregate)) {
|
|
60
|
-
return getRankingUIValues(filter.values as IFSValueRanking[][], addEnableds, rankingGroupIndex);
|
|
68
|
+
return getRankingUIValues(filter.values as IFSValueRanking[][], settings.addEnableds, settings.rankingGroupIndex);
|
|
61
69
|
}
|
|
62
70
|
return ((filter.values || []) as IFSValue[]).map(val => ({
|
|
63
71
|
imageUrl: val.imageUrl,
|
|
64
|
-
value: val.value,
|
|
65
|
-
enabled: addEnableds ? val.enabled != null ? val.enabled : true : undefined,
|
|
72
|
+
value: getValueLabel(val.value, filter, settings),
|
|
73
|
+
enabled: settings.addEnableds ? val.enabled != null ? val.enabled : true : undefined,
|
|
66
74
|
valueid: val.valueid,
|
|
67
75
|
}));
|
|
68
76
|
}
|
|
69
77
|
}
|
|
70
78
|
|
|
71
|
-
function
|
|
72
|
-
return
|
|
79
|
+
function getValueLabel(value, filter, settings: IFUUIValueSettings): string {
|
|
80
|
+
return settings.translate ? getI18nDateGroupLabel(value, filter.property as IDateColumnPropertyType, settings.translate) : value;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function getUiValuesSettings(settings: IFUUIValueSettings): IFUUIValueSettings {
|
|
84
|
+
return {
|
|
85
|
+
addEnableds: settings?.addEnableds ?? false,
|
|
86
|
+
rankingGroupIndex: settings?.rankingGroupIndex,
|
|
87
|
+
translate: settings?.translate,
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function getValueUiUnitRelativeDate(relative: IFSValueRelativeDate, settings: IFUUIValueSettings) {
|
|
92
|
+
const unit = settings.translate ? `${settings.translate(`common.units.${relative.unit}`)}` : relative.unit;
|
|
93
|
+
return relative.cursor !== RELATIVE_CURSOR.THIS && relative.number > 1 ? `${unit}s`: unit;
|
|
73
94
|
}
|
|
74
95
|
|
|
75
96
|
function getRankingUIValues(values: IFSValueRanking[][], addEnableds = false, rankingGroupIndex?: number) {
|
|
@@ -7,6 +7,8 @@ import { isTokenLabel } from "../../tokens/isTokenLabel";
|
|
|
7
7
|
import { II18nServiceTranslate } from "../interfaces/II18nServiceTranslate";
|
|
8
8
|
|
|
9
9
|
export function getI18nDateGroupLabel(label: string, dateGroup: IDateColumnPropertyType, translate?: II18nServiceTranslate): string {
|
|
10
|
+
if (isEmpty(label)) return label;
|
|
11
|
+
|
|
10
12
|
if (dateGroup === DATE_GROUPING_PROPERTY.MONTH)
|
|
11
13
|
return getI18nMonthLabel(label, translate);
|
|
12
14
|
else if (dateGroup === DATE_GROUPING_PROPERTY.QUARTER)
|
|
@@ -8,6 +8,8 @@ import { isTokenLabel } from "../../tokens/isTokenLabel";
|
|
|
8
8
|
import { II18nServiceTranslate } from "../interfaces/II18nServiceTranslate";
|
|
9
9
|
|
|
10
10
|
export function getReverseI18nGroupLabel(label: string, dateGroup: IDateColumnPropertyType, translate?: II18nServiceTranslate): string {
|
|
11
|
+
if (isEmpty(label)) return label;
|
|
12
|
+
|
|
11
13
|
if (dateGroup === DATE_GROUPING_PROPERTY.MONTH)
|
|
12
14
|
return getReverseI18nMonthLabel(label, translate);
|
|
13
15
|
else if (dateGroup === DATE_GROUPING_PROPERTY.QUARTER)
|
|
@@ -39,17 +39,10 @@ import { II18nChartBuilderDataPanel } from "./II18nChartBuilderDataPanel";
|
|
|
39
39
|
import { II18nChartBuilderDimensions } from "./II18nChartBuilderDimensions";
|
|
40
40
|
import { II18nChartBuilderShelfMenu } from "./II18nChartBuilderShelfMenu";
|
|
41
41
|
import { II18nChartBuilderScaleTypes } from "./II18nChartBuilderScaleTypes";
|
|
42
|
-
import { II18nChartBuilderComplexName } from "./II18nChartBuilderComplexName";
|
|
43
|
-
import { II18nChartBuilderComplexText } from "./II18nChartBuilderComplexText";
|
|
44
|
-
import { II18nChartBuilderComplexUsaAddress } from "./II18nChartBuilderComplexUsaAddress";
|
|
45
|
-
import { II18nChartBuilderComplexAddress } from "./II18nChartBuilderComplexAddress";
|
|
46
|
-
import { II18nChartBuilderComplexFile } from "./II18nChartBuilderComplexFile";
|
|
47
|
-
import { II18nChartBuilderComplexImage } from "./II18nChartBuilderComplexImage";
|
|
48
|
-
import { II18nChartBuilderComplexImageAnalysis } from "./II18nChartBuilderComplexImageAnalysis";
|
|
49
42
|
import { II18nChartBuilderTrendChart } from "./II18nChartBuilderTrendChart";
|
|
50
43
|
import { II18nChartBuilderChartInfo } from "./II18nChartBuilderChartInfo";
|
|
51
44
|
import { II18nChartBuilderDndZone } from "./II18nChartBuilderDndZone";
|
|
52
|
-
import {
|
|
45
|
+
import { II18nChartBuilderChartLabels } from "./II18nChartBuilderChartLabels";
|
|
53
46
|
import { II18nChartBuilderActionPanel } from "./II18nChartBuilderActionPanel";
|
|
54
47
|
import { II18nChartBuilderMessagesGeneral } from "./II18nChartBuilderMessagesGeneral";
|
|
55
48
|
import { II18nChartBuilderMessagesMissingDefault } from "./II18nChartBuilderMessagesMissingDefault";
|
|
@@ -85,7 +78,7 @@ export interface II18nChartBuilder {
|
|
|
85
78
|
base_map: II18nChartBuilderBaseMap;
|
|
86
79
|
box_whisker: II18nChartBuilderBoxWhisker;
|
|
87
80
|
category_labels: II18nChartBuilderCategoryLabels;
|
|
88
|
-
|
|
81
|
+
chart_labels: II18nChartBuilderChartLabels;
|
|
89
82
|
color_by_values: II18nChartBuilderColorByValues;
|
|
90
83
|
custom_scale: II18nChartBuilderCustomScale;
|
|
91
84
|
chart_info: II18nChartBuilderChartInfo;
|
|
@@ -95,13 +88,6 @@ export interface II18nChartBuilder {
|
|
|
95
88
|
circle_size: II18nChartBuilderCircleSize;
|
|
96
89
|
color_settings: II18nChartBuilderColorSettings;
|
|
97
90
|
comparison_options: II18nChartBuilderComparisionOptions;
|
|
98
|
-
complex_address: II18nChartBuilderComplexAddress;
|
|
99
|
-
complex_file: II18nChartBuilderComplexFile;
|
|
100
|
-
complex_image: II18nChartBuilderComplexImage;
|
|
101
|
-
complex_image_analysis: II18nChartBuilderComplexImageAnalysis;
|
|
102
|
-
complex_name: II18nChartBuilderComplexName;
|
|
103
|
-
complex_text: II18nChartBuilderComplexText;
|
|
104
|
-
complex_usa_address: II18nChartBuilderComplexUsaAddress;
|
|
105
91
|
conditional_formatting: II18nChartBuilderConditionalFormatting;
|
|
106
92
|
custom_format_dialog: II18nChartBuilderCustomFormatDialog;
|
|
107
93
|
data_panel: II18nChartBuilderDataPanel;
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
export interface II18nChartBuilderAxisStyle {
|
|
2
|
-
|
|
2
|
+
axis_format_title: string;
|
|
3
|
+
axis_position: string;
|
|
4
|
+
axis_position_left: string;
|
|
5
|
+
axis_position_primary_axis: string;
|
|
6
|
+
axis_position_right: string;
|
|
3
7
|
custom_axis_label: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
values_axis_check: string;
|
|
7
|
-
values_rotation: string;
|
|
8
|
-
values_rotation_horizontal: string;
|
|
9
|
-
values_rotation_diagonal: string;
|
|
10
|
-
values_rotation_vertical: string;
|
|
8
|
+
custom_label: string;
|
|
9
|
+
custom_label_placeholder: string;
|
|
11
10
|
format_title: string;
|
|
12
|
-
|
|
11
|
+
max_range: string;
|
|
12
|
+
max_range_placeholder: string;
|
|
13
|
+
min_range: string;
|
|
14
|
+
min_range_placeholder: string;
|
|
15
|
+
position: string;
|
|
13
16
|
scale_type: string;
|
|
14
17
|
scale_type_linear: string;
|
|
15
18
|
scale_type_logarithm: string;
|
|
16
|
-
|
|
17
|
-
min_range_placeholder: string;
|
|
18
|
-
max_range: string;
|
|
19
|
-
max_range_placeholder: string;
|
|
19
|
+
scale_type_placeholder: string;
|
|
20
20
|
steps: string;
|
|
21
21
|
steps_placeholder: string;
|
|
22
|
-
position: string;
|
|
23
|
-
axis_position: string;
|
|
24
|
-
axis_position_primari_axis: string;
|
|
25
|
-
axis_position_left: string;
|
|
26
|
-
axis_position_right: string;
|
|
27
22
|
type_label: string;
|
|
23
|
+
values_axis_check: string;
|
|
24
|
+
values_check: string;
|
|
25
|
+
values_rotation: string;
|
|
26
|
+
values_rotation_diagonal: string;
|
|
27
|
+
values_rotation_horizontal: string;
|
|
28
|
+
values_rotation_vertical: string;
|
|
28
29
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export interface II18nChartBuilderColorSettings {
|
|
2
|
-
select_color_type: string;
|
|
3
|
-
single_color: string;
|
|
4
2
|
color_by_category: string;
|
|
5
|
-
select_color: string;
|
|
6
|
-
select_theme: string;
|
|
7
3
|
color_by_value_title: string;
|
|
8
4
|
match_color: string;
|
|
5
|
+
select_color: string;
|
|
6
|
+
select_color_type: string;
|
|
7
|
+
select_color_type_placeholder: string;
|
|
8
|
+
select_theme: string;
|
|
9
|
+
single_color: string;
|
|
9
10
|
}
|