@qrvey/utils 1.2.2 → 1.2.4-10
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 +930 -824
- package/dist/{cjs/qrvey → charts}/constants/AGGREGATE.d.ts +0 -0
- package/dist/{qrvey → charts}/constants/AGGREGATE.js +0 -0
- package/dist/{cjs/qrvey → charts}/constants/AGGREGATE_ABBREVIATION.d.ts +0 -0
- package/dist/{qrvey → charts}/constants/AGGREGATE_ABBREVIATION.js +0 -0
- package/dist/charts/constants/AGGREGATE_INFO.d.ts +5 -0
- package/dist/{qrvey → charts}/constants/AGGREGATE_INFO.js +0 -0
- package/dist/charts/constants/AGGREGATE_INFO_LIST.d.ts +1 -0
- package/dist/{qrvey → charts}/constants/AGGREGATE_INFO_LIST.js +0 -0
- package/dist/charts/constants/AGGREGATE_LABEL.d.ts +11 -0
- package/dist/charts/constants/AGGREGATE_LABEL.js +12 -0
- package/dist/charts/constants/index.d.ts +5 -0
- package/dist/charts/constants/index.js +5 -0
- package/dist/charts/index.d.ts +2 -0
- package/dist/charts/index.js +2 -0
- package/dist/charts/interfaces/IAggregateAbbreviation.d.ts +2 -0
- package/dist/{columns/interfaces/IColumnAggregateType.js → charts/interfaces/IAggregateAbbreviation.js} +0 -0
- package/dist/charts/interfaces/IAggregateInfo.d.ts +9 -0
- package/dist/{qrvey → charts}/interfaces/IAggregateInfo.js +0 -0
- package/dist/charts/interfaces/IAggregateLabel.d.ts +2 -0
- package/dist/{columns/interfaces/IColumnCalculationType.js → charts/interfaces/IAggregateLabel.js} +0 -0
- package/dist/{cjs/qrvey/interfaces/IAggregate.d.ts → charts/interfaces/IAggregateType.d.ts} +1 -1
- package/dist/{qrvey/interfaces/IAggregate.js → charts/interfaces/IAggregateType.js} +0 -0
- package/dist/charts/interfaces/index.d.ts +4 -0
- package/dist/charts/interfaces/index.js +4 -0
- package/dist/{qrvey → cjs/charts}/constants/AGGREGATE.d.ts +0 -0
- package/dist/cjs/{qrvey → charts}/constants/AGGREGATE.js +0 -0
- package/dist/{qrvey → cjs/charts}/constants/AGGREGATE_ABBREVIATION.d.ts +0 -0
- package/dist/cjs/{qrvey → charts}/constants/AGGREGATE_ABBREVIATION.js +0 -0
- package/dist/cjs/charts/constants/AGGREGATE_INFO.d.ts +5 -0
- package/dist/cjs/{qrvey → charts}/constants/AGGREGATE_INFO.js +0 -0
- package/dist/cjs/charts/constants/AGGREGATE_INFO_LIST.d.ts +1 -0
- package/dist/cjs/{qrvey → charts}/constants/AGGREGATE_INFO_LIST.js +0 -0
- package/dist/cjs/charts/constants/AGGREGATE_LABEL.d.ts +11 -0
- package/dist/cjs/charts/constants/AGGREGATE_LABEL.js +15 -0
- package/dist/cjs/charts/constants/index.d.ts +5 -0
- package/dist/cjs/charts/constants/index.js +17 -0
- package/dist/cjs/charts/index.d.ts +2 -0
- package/dist/cjs/{globalization/filters → charts}/index.js +2 -3
- package/dist/cjs/charts/interfaces/IAggregateAbbreviation.d.ts +2 -0
- package/dist/cjs/{columns/interfaces/IColumnAggregateType.js → charts/interfaces/IAggregateAbbreviation.js} +0 -0
- package/dist/cjs/charts/interfaces/IAggregateInfo.d.ts +9 -0
- package/dist/cjs/{qrvey → charts}/interfaces/IAggregateInfo.js +0 -0
- package/dist/cjs/charts/interfaces/IAggregateLabel.d.ts +2 -0
- package/dist/cjs/{columns/interfaces/IColumnCalculationType.js → charts/interfaces/IAggregateLabel.js} +0 -0
- package/dist/{qrvey/interfaces/IAggregate.d.ts → cjs/charts/interfaces/IAggregateType.d.ts} +1 -1
- package/dist/cjs/{qrvey/interfaces/IAggregate.js → charts/interfaces/IAggregateType.js} +0 -0
- package/dist/cjs/charts/interfaces/index.d.ts +4 -0
- package/dist/cjs/charts/interfaces/index.js +16 -0
- package/dist/cjs/columns/constants/COLUMN_INFO.js +2 -1
- package/dist/cjs/columns/interfaces/IBColumn.d.ts +1 -1
- package/dist/cjs/columns/interfaces/IColumn.d.ts +6 -4
- package/dist/cjs/columns/interfaces/index.d.ts +0 -2
- package/dist/cjs/columns/interfaces/index.js +0 -2
- package/dist/cjs/filters/helpers/builder/getFilterBuilderGeneralConfig.js +1 -0
- package/dist/cjs/filters/helpers/common/getFilterColumnLabel.js +1 -1
- package/dist/cjs/filters/helpers/common/getFilterLabel.js +1 -2
- package/dist/cjs/filters/interfaces/builder/IFilterBuilderConfig.d.ts +2 -0
- package/dist/cjs/filters/interfaces/builder/IFilterBuilderGeneralConfig.d.ts +1 -0
- package/dist/cjs/filters/interfaces/panel/IFilterPanelConfig.d.ts +2 -0
- package/dist/cjs/format/format.js +1 -1
- package/dist/cjs/general/mix/compareDeep.d.ts +8 -0
- package/dist/cjs/general/mix/compareDeep.js +33 -0
- package/dist/cjs/general/mix/index.d.ts +6 -5
- package/dist/cjs/general/mix/index.js +6 -5
- package/dist/cjs/general/object/index.d.ts +1 -0
- package/dist/cjs/general/object/index.js +1 -0
- package/dist/cjs/general/object/mergeDeep.d.ts +17 -0
- package/dist/cjs/general/object/mergeDeep.js +55 -0
- package/dist/cjs/globalization/index.d.ts +3 -1
- package/dist/cjs/globalization/index.js +3 -1
- package/dist/cjs/globalization/interfaces/IResourceI18n.d.ts +14 -0
- package/dist/cjs/globalization/interfaces/IResourceI18n.js +2 -0
- package/dist/cjs/globalization/interfaces/columns/II18nColumn.d.ts +10 -0
- package/dist/cjs/globalization/interfaces/columns/II18nColumn.js +2 -0
- package/dist/cjs/globalization/interfaces/columns/index.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/columns/index.js +13 -0
- package/dist/cjs/globalization/interfaces/common/II18nAgreggateLabels.d.ts +11 -0
- package/dist/cjs/globalization/interfaces/common/II18nAgreggateLabels.js +2 -0
- package/dist/cjs/globalization/interfaces/common/II18nChartInfoMessagesCrosstab.d.ts +5 -0
- package/dist/cjs/globalization/interfaces/common/II18nChartInfoMessagesCrosstab.js +2 -0
- package/dist/cjs/globalization/interfaces/common/II18nChartInfoMessagesDefault.d.ts +8 -0
- package/dist/cjs/globalization/interfaces/common/II18nChartInfoMessagesDefault.js +2 -0
- package/dist/cjs/globalization/interfaces/common/II18nChartInfoMessagesTableChart.d.ts +8 -0
- package/dist/cjs/globalization/interfaces/common/II18nChartInfoMessagesTableChart.js +2 -0
- package/dist/cjs/globalization/interfaces/common/II18nColumnProperties.d.ts +46 -0
- package/dist/cjs/globalization/interfaces/common/II18nColumnProperties.js +2 -0
- package/dist/cjs/globalization/interfaces/common/II18nColumnTypes.d.ts +38 -0
- package/dist/cjs/globalization/interfaces/common/II18nColumnTypes.js +2 -0
- package/dist/cjs/globalization/interfaces/common/II18nCommon.d.ts +15 -0
- package/dist/cjs/globalization/interfaces/common/II18nCommon.js +2 -0
- package/dist/cjs/globalization/interfaces/common/index.d.ts +7 -0
- package/dist/cjs/globalization/interfaces/common/index.js +19 -0
- package/dist/cjs/globalization/interfaces/dashboard/II18nDashboard.d.ts +9 -0
- package/dist/cjs/globalization/interfaces/dashboard/II18nDashboard.js +2 -0
- package/dist/cjs/globalization/interfaces/dashboard/II18nDashboardAddChart.d.ts +5 -0
- package/dist/cjs/globalization/interfaces/dashboard/II18nDashboardAddChart.js +2 -0
- package/dist/cjs/globalization/interfaces/dashboard/II18nDashboardTooltips.d.ts +7 -0
- package/dist/cjs/globalization/interfaces/dashboard/II18nDashboardTooltips.js +2 -0
- package/dist/cjs/globalization/interfaces/dashboard/II18nDashboardViews.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/dashboard/II18nDashboardViews.js +2 -0
- package/dist/cjs/globalization/interfaces/dashboard/index.d.ts +4 -0
- package/dist/cjs/globalization/interfaces/dashboard/index.js +16 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilter.d.ts +8 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilter.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilder.d.ts +17 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilder.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderColumnSelector.d.ts +4 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderColumnSelector.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderInfoContainer.d.ts +5 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderInfoContainer.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderInfoContainerSelection.d.ts +4 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderInfoContainerSelection.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderSelectedValuesContainer.d.ts +3 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderSelectedValuesContainer.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterValidator.d.ts +23 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterValidator.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nSlidebar.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/filters/II18nSlidebar.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nValueContainer.d.ts +4 -0
- package/dist/cjs/globalization/interfaces/filters/II18nValueContainer.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nValueContainerSearchInput.d.ts +5 -0
- package/dist/cjs/globalization/interfaces/filters/II18nValueContainerSearchInput.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nValueContainerSearchInputEnterValue.d.ts +5 -0
- package/dist/cjs/globalization/interfaces/filters/II18nValueContainerSearchInputEnterValue.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/index.d.ts +11 -0
- package/dist/cjs/globalization/interfaces/filters/index.js +23 -0
- package/dist/cjs/globalization/interfaces/index.d.ts +3 -0
- package/dist/cjs/globalization/interfaces/index.js +15 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanel.d.ts +9 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanel.js +2 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanelErrors.d.ts +9 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanelErrors.js +2 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanelMenu.d.ts +15 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanelMenu.js +2 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanelTooltips.d.ts +4 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanelTooltips.js +2 -0
- package/dist/cjs/globalization/interfaces/panel/index.d.ts +4 -0
- package/dist/cjs/globalization/interfaces/panel/index.js +16 -0
- package/dist/cjs/globalization/interfaces/table_charts/II18nTableCharts.d.ts +15 -0
- package/dist/cjs/globalization/interfaces/table_charts/II18nTableCharts.js +2 -0
- package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsInnerCharts.d.ts +8 -0
- package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsInnerCharts.js +2 -0
- package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsPagination.d.ts +4 -0
- package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsPagination.js +2 -0
- package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsSort.d.ts +9 -0
- package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsSort.js +2 -0
- package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsSortTooltip.d.ts +3 -0
- package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsSortTooltip.js +2 -0
- package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsVisualizationItems.d.ts +4 -0
- package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsVisualizationItems.js +2 -0
- package/dist/cjs/globalization/interfaces/table_charts/index.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/table_charts/index.js +18 -0
- package/dist/cjs/globalization/labels/I18N_DEFAULT.d.ts +2 -0
- package/dist/cjs/globalization/labels/I18N_DEFAULT.js +17 -0
- package/dist/cjs/globalization/labels/columns/I18N_COLUMN.d.ts +2 -0
- package/dist/cjs/globalization/labels/columns/I18N_COLUMN.js +8 -0
- package/dist/cjs/globalization/labels/columns/index.d.ts +1 -0
- package/dist/cjs/globalization/labels/columns/index.js +13 -0
- package/dist/cjs/globalization/labels/common/I18N_AGGREGATE_LABEL.d.ts +2 -0
- package/dist/cjs/globalization/labels/common/I18N_AGGREGATE_LABEL.js +15 -0
- package/dist/cjs/globalization/labels/common/I18N_COLUMN_LABEL.d.ts +38 -0
- package/dist/cjs/globalization/labels/common/I18N_COLUMN_LABEL.js +42 -0
- package/dist/cjs/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.d.ts +46 -0
- package/dist/cjs/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.js +50 -0
- package/dist/cjs/globalization/labels/common/I18N_COMMON.d.ts +2 -0
- package/dist/cjs/globalization/labels/common/I18N_COMMON.js +33 -0
- package/dist/cjs/globalization/labels/common/index.d.ts +3 -0
- package/dist/cjs/globalization/labels/common/index.js +15 -0
- package/dist/cjs/globalization/labels/dashboard/I18N_DASHBOARD.d.ts +2 -0
- package/dist/cjs/globalization/labels/dashboard/I18N_DASHBOARD.js +24 -0
- package/dist/cjs/globalization/labels/dashboard/index.d.ts +1 -0
- package/dist/cjs/globalization/labels/dashboard/index.js +13 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER.d.ts +2 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER.js +11 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_BUILDER.d.ts +2 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_BUILDER.js +27 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_VALIDATOR.d.ts +2 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_VALIDATOR.js +27 -0
- package/dist/cjs/globalization/labels/filters/I18N_SLIDEBAR.d.ts +2 -0
- package/dist/cjs/globalization/{filters/SLIDEBAR.js → labels/filters/I18N_SLIDEBAR.js} +3 -5
- package/dist/cjs/globalization/labels/filters/I18N_VALUE_CONTAINER.d.ts +2 -0
- package/dist/cjs/globalization/{filters/VALUES_CONTAINER.js → labels/filters/I18N_VALUE_CONTAINER.js} +2 -3
- package/dist/cjs/globalization/labels/filters/index.d.ts +5 -0
- package/dist/cjs/globalization/labels/filters/index.js +17 -0
- package/dist/cjs/globalization/labels/index.d.ts +7 -0
- package/dist/cjs/globalization/labels/index.js +19 -0
- package/dist/cjs/globalization/labels/panel/I18N_PANEL.d.ts +2 -0
- package/dist/cjs/globalization/labels/panel/I18N_PANEL.js +34 -0
- package/dist/cjs/globalization/labels/panel/index.d.ts +1 -0
- package/dist/cjs/globalization/labels/panel/index.js +13 -0
- package/dist/cjs/globalization/labels/table_charts/I18N_TABLE_CHARTS.d.ts +2 -0
- package/dist/cjs/globalization/labels/table_charts/I18N_TABLE_CHARTS.js +36 -0
- package/dist/cjs/globalization/labels/table_charts/index.d.ts +1 -0
- package/dist/cjs/globalization/labels/table_charts/index.js +13 -0
- package/dist/cjs/globalization/service/i18nextBuilder.d.ts +9 -0
- package/dist/cjs/globalization/service/i18nextBuilder.js +61 -0
- package/dist/cjs/globalization/service/index.d.ts +2 -0
- package/dist/cjs/globalization/service/index.js +14 -0
- package/dist/cjs/globalization/service/initI18n.d.ts +3 -0
- package/dist/cjs/globalization/service/initI18n.js +19 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/interfaces/Qrvey.Interface.d.ts +0 -10
- package/dist/cjs/interfaces/general/IGeneralWidgetConfig.d.ts +1 -0
- package/dist/cjs/interfaces/index.d.ts +1 -1
- package/dist/cjs/interfaces/index.js +1 -1
- package/dist/cjs/qrvey/constants/CALCULATION_INFO_LIST.d.ts +1 -1
- package/dist/cjs/qrvey/constants/CALCULATION_INFO_LIST.js +2 -2
- package/dist/cjs/qrvey/constants/index.d.ts +1 -4
- package/dist/cjs/qrvey/constants/index.js +1 -4
- package/dist/{columns/interfaces/IColumnCalculationType.d.ts → cjs/qrvey/interfaces/ICalculationType.d.ts} +1 -1
- package/dist/cjs/qrvey/interfaces/ICalculationType.js +2 -0
- package/dist/cjs/qrvey/interfaces/index.d.ts +4 -0
- package/dist/cjs/qrvey/interfaces/index.js +4 -0
- package/dist/cjs/services/adapters/BColumnsToUIColumns.adapter.d.ts +4 -0
- package/dist/cjs/services/adapters/BColumnsToUIColumns.adapter.js +20 -0
- package/dist/cjs/services/adapters/BDatasetsToUIDatasets.adapter.d.ts +3 -0
- package/dist/cjs/services/adapters/BDatasetsToUIDatasets.adapter.js +13 -0
- package/dist/cjs/services/adapters/index.d.ts +2 -0
- package/dist/cjs/services/adapters/index.js +14 -0
- package/dist/cjs/services/api/getDatasetColumns.api.js +2 -1
- package/dist/cjs/services/helpers/Request.d.ts +1 -0
- package/dist/cjs/services/helpers/Request.js +7 -0
- package/dist/cjs/services/index.d.ts +1 -0
- package/dist/cjs/services/index.js +1 -0
- package/dist/columns/constants/COLUMN_INFO.js +2 -1
- package/dist/columns/interfaces/IBColumn.d.ts +1 -1
- package/dist/columns/interfaces/IColumn.d.ts +6 -4
- package/dist/columns/interfaces/index.d.ts +0 -2
- package/dist/columns/interfaces/index.js +0 -2
- package/dist/filters/helpers/builder/getFilterBuilderGeneralConfig.js +1 -0
- package/dist/filters/helpers/common/getFilterColumnLabel.js +1 -1
- package/dist/filters/helpers/common/getFilterLabel.js +1 -2
- package/dist/filters/interfaces/builder/IFilterBuilderConfig.d.ts +2 -0
- package/dist/filters/interfaces/builder/IFilterBuilderGeneralConfig.d.ts +1 -0
- package/dist/filters/interfaces/panel/IFilterPanelConfig.d.ts +2 -0
- package/dist/format/format.js +1 -1
- package/dist/general/mix/compareDeep.d.ts +8 -0
- package/dist/general/mix/compareDeep.js +29 -0
- package/dist/general/mix/index.d.ts +6 -5
- package/dist/general/mix/index.js +6 -5
- package/dist/general/object/index.d.ts +1 -0
- package/dist/general/object/index.js +1 -0
- package/dist/general/object/mergeDeep.d.ts +17 -0
- package/dist/general/object/mergeDeep.js +51 -0
- package/dist/globalization/index.d.ts +3 -1
- package/dist/globalization/index.js +3 -1
- package/dist/globalization/interfaces/IResourceI18n.d.ts +14 -0
- package/dist/globalization/interfaces/IResourceI18n.js +1 -0
- package/dist/globalization/interfaces/columns/II18nColumn.d.ts +10 -0
- package/dist/globalization/interfaces/columns/II18nColumn.js +1 -0
- package/dist/globalization/interfaces/columns/index.d.ts +1 -0
- package/dist/globalization/interfaces/columns/index.js +1 -0
- package/dist/globalization/interfaces/common/II18nAgreggateLabels.d.ts +11 -0
- package/dist/globalization/interfaces/common/II18nAgreggateLabels.js +1 -0
- package/dist/globalization/interfaces/common/II18nChartInfoMessagesCrosstab.d.ts +5 -0
- package/dist/globalization/interfaces/common/II18nChartInfoMessagesCrosstab.js +1 -0
- package/dist/globalization/interfaces/common/II18nChartInfoMessagesDefault.d.ts +8 -0
- package/dist/globalization/interfaces/common/II18nChartInfoMessagesDefault.js +1 -0
- package/dist/globalization/interfaces/common/II18nChartInfoMessagesTableChart.d.ts +8 -0
- package/dist/globalization/interfaces/common/II18nChartInfoMessagesTableChart.js +1 -0
- package/dist/globalization/interfaces/common/II18nColumnProperties.d.ts +46 -0
- package/dist/globalization/interfaces/common/II18nColumnProperties.js +1 -0
- package/dist/globalization/interfaces/common/II18nColumnTypes.d.ts +38 -0
- package/dist/globalization/interfaces/common/II18nColumnTypes.js +1 -0
- package/dist/globalization/interfaces/common/II18nCommon.d.ts +15 -0
- package/dist/globalization/interfaces/common/II18nCommon.js +1 -0
- package/dist/globalization/interfaces/common/index.d.ts +7 -0
- package/dist/globalization/interfaces/common/index.js +7 -0
- package/dist/globalization/interfaces/dashboard/II18nDashboard.d.ts +9 -0
- package/dist/globalization/interfaces/dashboard/II18nDashboard.js +1 -0
- package/dist/globalization/interfaces/dashboard/II18nDashboardAddChart.d.ts +5 -0
- package/dist/globalization/interfaces/dashboard/II18nDashboardAddChart.js +1 -0
- package/dist/globalization/interfaces/dashboard/II18nDashboardTooltips.d.ts +7 -0
- package/dist/globalization/interfaces/dashboard/II18nDashboardTooltips.js +1 -0
- package/dist/globalization/interfaces/dashboard/II18nDashboardViews.d.ts +6 -0
- package/dist/globalization/interfaces/dashboard/II18nDashboardViews.js +1 -0
- package/dist/globalization/interfaces/dashboard/index.d.ts +4 -0
- package/dist/globalization/interfaces/dashboard/index.js +4 -0
- package/dist/globalization/interfaces/filters/II18nFilter.d.ts +8 -0
- package/dist/globalization/interfaces/filters/II18nFilter.js +1 -0
- package/dist/globalization/interfaces/filters/II18nFilterBuilder.d.ts +17 -0
- package/dist/globalization/interfaces/filters/II18nFilterBuilder.js +1 -0
- package/dist/globalization/interfaces/filters/II18nFilterBuilderColumnSelector.d.ts +4 -0
- package/dist/globalization/interfaces/filters/II18nFilterBuilderColumnSelector.js +1 -0
- package/dist/globalization/interfaces/filters/II18nFilterBuilderInfoContainer.d.ts +5 -0
- package/dist/globalization/interfaces/filters/II18nFilterBuilderInfoContainer.js +1 -0
- package/dist/globalization/interfaces/filters/II18nFilterBuilderInfoContainerSelection.d.ts +4 -0
- package/dist/globalization/interfaces/filters/II18nFilterBuilderInfoContainerSelection.js +1 -0
- package/dist/globalization/interfaces/filters/II18nFilterBuilderSelectedValuesContainer.d.ts +3 -0
- package/dist/globalization/interfaces/filters/II18nFilterBuilderSelectedValuesContainer.js +1 -0
- package/dist/globalization/interfaces/filters/II18nFilterValidator.d.ts +23 -0
- package/dist/globalization/interfaces/filters/II18nFilterValidator.js +1 -0
- package/dist/globalization/interfaces/filters/II18nSlidebar.d.ts +6 -0
- package/dist/globalization/interfaces/filters/II18nSlidebar.js +1 -0
- package/dist/globalization/interfaces/filters/II18nValueContainer.d.ts +4 -0
- package/dist/globalization/interfaces/filters/II18nValueContainer.js +1 -0
- package/dist/globalization/interfaces/filters/II18nValueContainerSearchInput.d.ts +5 -0
- package/dist/globalization/interfaces/filters/II18nValueContainerSearchInput.js +1 -0
- package/dist/globalization/interfaces/filters/II18nValueContainerSearchInputEnterValue.d.ts +5 -0
- package/dist/globalization/interfaces/filters/II18nValueContainerSearchInputEnterValue.js +1 -0
- package/dist/globalization/interfaces/filters/index.d.ts +11 -0
- package/dist/globalization/interfaces/filters/index.js +11 -0
- package/dist/globalization/interfaces/index.d.ts +3 -0
- package/dist/globalization/interfaces/index.js +3 -0
- package/dist/globalization/interfaces/panel/II18nPanel.d.ts +9 -0
- package/dist/globalization/interfaces/panel/II18nPanel.js +1 -0
- package/dist/globalization/interfaces/panel/II18nPanelErrors.d.ts +9 -0
- package/dist/globalization/interfaces/panel/II18nPanelErrors.js +1 -0
- package/dist/globalization/interfaces/panel/II18nPanelMenu.d.ts +15 -0
- package/dist/globalization/interfaces/panel/II18nPanelMenu.js +1 -0
- package/dist/globalization/interfaces/panel/II18nPanelTooltips.d.ts +4 -0
- package/dist/globalization/interfaces/panel/II18nPanelTooltips.js +1 -0
- package/dist/globalization/interfaces/panel/index.d.ts +4 -0
- package/dist/globalization/interfaces/panel/index.js +4 -0
- package/dist/globalization/interfaces/table_charts/II18nTableCharts.d.ts +15 -0
- package/dist/globalization/interfaces/table_charts/II18nTableCharts.js +1 -0
- package/dist/globalization/interfaces/table_charts/II18nTableChartsInnerCharts.d.ts +8 -0
- package/dist/globalization/interfaces/table_charts/II18nTableChartsInnerCharts.js +1 -0
- package/dist/globalization/interfaces/table_charts/II18nTableChartsPagination.d.ts +4 -0
- package/dist/globalization/interfaces/table_charts/II18nTableChartsPagination.js +1 -0
- package/dist/globalization/interfaces/table_charts/II18nTableChartsSort.d.ts +9 -0
- package/dist/globalization/interfaces/table_charts/II18nTableChartsSort.js +1 -0
- package/dist/globalization/interfaces/table_charts/II18nTableChartsSortTooltip.d.ts +3 -0
- package/dist/globalization/interfaces/table_charts/II18nTableChartsSortTooltip.js +1 -0
- package/dist/globalization/interfaces/table_charts/II18nTableChartsVisualizationItems.d.ts +4 -0
- package/dist/globalization/interfaces/table_charts/II18nTableChartsVisualizationItems.js +1 -0
- package/dist/globalization/interfaces/table_charts/index.d.ts +6 -0
- package/dist/globalization/interfaces/table_charts/index.js +6 -0
- package/dist/globalization/labels/I18N_DEFAULT.d.ts +2 -0
- package/dist/globalization/labels/I18N_DEFAULT.js +14 -0
- package/dist/globalization/labels/columns/I18N_COLUMN.d.ts +2 -0
- package/dist/globalization/labels/columns/I18N_COLUMN.js +5 -0
- package/dist/globalization/labels/columns/index.d.ts +1 -0
- package/dist/globalization/labels/columns/index.js +1 -0
- package/dist/globalization/labels/common/I18N_AGGREGATE_LABEL.d.ts +2 -0
- package/dist/globalization/labels/common/I18N_AGGREGATE_LABEL.js +12 -0
- package/dist/globalization/labels/common/I18N_COLUMN_LABEL.d.ts +38 -0
- package/dist/globalization/labels/common/I18N_COLUMN_LABEL.js +39 -0
- package/dist/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.d.ts +46 -0
- package/dist/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.js +47 -0
- package/dist/globalization/labels/common/I18N_COMMON.d.ts +2 -0
- package/dist/globalization/labels/common/I18N_COMMON.js +30 -0
- package/dist/globalization/labels/common/index.d.ts +3 -0
- package/dist/globalization/labels/common/index.js +3 -0
- package/dist/globalization/labels/dashboard/I18N_DASHBOARD.d.ts +2 -0
- package/dist/globalization/labels/dashboard/I18N_DASHBOARD.js +21 -0
- package/dist/globalization/labels/dashboard/index.d.ts +1 -0
- package/dist/globalization/labels/dashboard/index.js +1 -0
- package/dist/globalization/labels/filters/I18N_FILTER.d.ts +2 -0
- package/dist/globalization/labels/filters/I18N_FILTER.js +8 -0
- package/dist/globalization/labels/filters/I18N_FILTER_BUILDER.d.ts +2 -0
- package/dist/globalization/labels/filters/I18N_FILTER_BUILDER.js +24 -0
- package/dist/globalization/labels/filters/I18N_FILTER_VALIDATOR.d.ts +2 -0
- package/dist/globalization/labels/filters/I18N_FILTER_VALIDATOR.js +24 -0
- package/dist/globalization/labels/filters/I18N_SLIDEBAR.d.ts +2 -0
- package/dist/globalization/labels/filters/I18N_SLIDEBAR.js +6 -0
- package/dist/globalization/labels/filters/I18N_VALUE_CONTAINER.d.ts +2 -0
- package/{src/globalization/filters/VALUES_CONTAINER.ts → dist/globalization/labels/filters/I18N_VALUE_CONTAINER.js} +1 -2
- package/dist/globalization/labels/filters/index.d.ts +5 -0
- package/dist/globalization/labels/filters/index.js +5 -0
- package/dist/globalization/labels/index.d.ts +7 -0
- package/dist/globalization/labels/index.js +7 -0
- package/dist/globalization/labels/panel/I18N_PANEL.d.ts +2 -0
- package/dist/globalization/labels/panel/I18N_PANEL.js +31 -0
- package/dist/globalization/labels/panel/index.d.ts +1 -0
- package/dist/globalization/labels/panel/index.js +1 -0
- package/dist/globalization/labels/table_charts/I18N_TABLE_CHARTS.d.ts +2 -0
- package/dist/globalization/labels/table_charts/I18N_TABLE_CHARTS.js +33 -0
- package/dist/globalization/labels/table_charts/index.d.ts +1 -0
- package/dist/globalization/labels/table_charts/index.js +1 -0
- package/dist/globalization/service/i18nextBuilder.d.ts +9 -0
- package/dist/globalization/service/i18nextBuilder.js +53 -0
- package/dist/globalization/service/index.d.ts +2 -0
- package/dist/globalization/service/index.js +2 -0
- package/dist/globalization/service/initI18n.d.ts +3 -0
- package/dist/globalization/service/initI18n.js +15 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/interfaces/Qrvey.Interface.d.ts +0 -10
- package/dist/interfaces/general/IGeneralWidgetConfig.d.ts +1 -0
- package/dist/interfaces/index.d.ts +1 -1
- package/dist/interfaces/index.js +1 -1
- package/dist/qrvey/constants/CALCULATION_INFO_LIST.d.ts +1 -1
- package/dist/qrvey/constants/CALCULATION_INFO_LIST.js +1 -1
- package/dist/qrvey/constants/index.d.ts +1 -4
- package/dist/qrvey/constants/index.js +1 -4
- package/dist/{cjs/columns/interfaces/IColumnCalculationType.d.ts → qrvey/interfaces/ICalculationType.d.ts} +1 -1
- package/dist/qrvey/interfaces/ICalculationType.js +1 -0
- package/dist/qrvey/interfaces/index.d.ts +4 -0
- package/dist/qrvey/interfaces/index.js +4 -0
- package/dist/services/adapters/BColumnsToUIColumns.adapter.d.ts +4 -0
- package/dist/services/adapters/BColumnsToUIColumns.adapter.js +16 -0
- package/dist/services/adapters/BDatasetsToUIDatasets.adapter.d.ts +3 -0
- package/dist/services/adapters/BDatasetsToUIDatasets.adapter.js +9 -0
- package/dist/services/adapters/index.d.ts +2 -0
- package/dist/services/adapters/index.js +2 -0
- package/dist/services/api/getDatasetColumns.api.js +2 -1
- package/dist/services/helpers/Request.d.ts +1 -0
- package/dist/services/helpers/Request.js +7 -0
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.js +1 -0
- package/package.json +7 -5
- package/src/{qrvey → charts}/constants/AGGREGATE.ts +0 -0
- package/src/{qrvey → charts}/constants/AGGREGATE_ABBREVIATION.ts +0 -0
- package/src/{qrvey → charts}/constants/AGGREGATE_INFO.ts +2 -2
- package/src/{qrvey → charts}/constants/AGGREGATE_INFO_LIST.ts +0 -0
- package/src/charts/constants/AGGREGATE_LABEL.ts +11 -0
- package/src/charts/constants/index.ts +5 -0
- package/src/charts/index.ts +2 -0
- package/src/charts/interfaces/IAggregateAbbreviation.ts +3 -0
- package/src/charts/interfaces/IAggregateInfo.ts +11 -0
- package/src/charts/interfaces/IAggregateLabel.ts +3 -0
- package/src/{qrvey/interfaces/IAggregate.ts → charts/interfaces/IAggregateType.ts} +1 -1
- package/src/charts/interfaces/index.ts +4 -0
- package/src/columns/constants/COLUMN_INFO.ts +29 -28
- package/src/columns/interfaces/IBColumn.ts +1 -1
- package/src/columns/interfaces/IColumn.ts +6 -4
- package/src/columns/interfaces/index.ts +0 -2
- package/src/filters/helpers/builder/getFilterBuilderGeneralConfig.ts +1 -0
- package/src/filters/helpers/common/getFilterColumnLabel.ts +1 -1
- package/src/filters/helpers/common/getFilterLabel.ts +1 -1
- package/src/filters/interfaces/builder/IFilterBuilderConfig.ts +2 -0
- package/src/filters/interfaces/builder/IFilterBuilderGeneralConfig.ts +1 -0
- package/src/filters/interfaces/panel/IFilterPanelConfig.ts +2 -0
- package/src/format/format.ts +1 -1
- package/src/general/mix/compareDeep.ts +32 -0
- package/src/general/mix/index.ts +6 -5
- package/src/general/object/index.ts +1 -0
- package/src/general/object/mergeDeep.ts +61 -0
- package/src/globalization/index.ts +3 -1
- package/src/globalization/interfaces/IResourceI18n.ts +16 -0
- package/src/globalization/interfaces/columns/II18nColumn.ts +7 -0
- package/src/globalization/interfaces/columns/index.ts +1 -0
- package/src/globalization/interfaces/common/II18nAgreggateLabels.ts +11 -0
- package/src/globalization/interfaces/common/II18nChartInfoMessagesCrosstab.ts +5 -0
- package/src/globalization/interfaces/common/II18nChartInfoMessagesDefault.ts +8 -0
- package/src/globalization/interfaces/common/II18nChartInfoMessagesTableChart.ts +8 -0
- package/src/globalization/interfaces/common/II18nColumnProperties.ts +52 -0
- package/src/globalization/interfaces/common/II18nColumnTypes.ts +42 -0
- package/src/globalization/interfaces/common/II18nCommon.ts +16 -0
- package/src/globalization/interfaces/common/index.ts +9 -0
- package/src/globalization/interfaces/dashboard/II18nDashboard.ts +10 -0
- package/src/globalization/interfaces/dashboard/II18nDashboardAddChart.ts +5 -0
- package/src/globalization/interfaces/dashboard/II18nDashboardTooltips.ts +7 -0
- package/src/globalization/interfaces/dashboard/II18nDashboardViews.ts +6 -0
- package/src/globalization/interfaces/dashboard/index.ts +4 -0
- package/src/globalization/interfaces/filters/II18nFilter.ts +9 -0
- package/src/globalization/interfaces/filters/II18nFilterBuilder.ts +16 -0
- package/src/globalization/interfaces/filters/II18nFilterBuilderColumnSelector.ts +4 -0
- package/src/globalization/interfaces/filters/II18nFilterBuilderInfoContainer.ts +6 -0
- package/src/globalization/interfaces/filters/II18nFilterBuilderInfoContainerSelection.ts +4 -0
- package/src/globalization/interfaces/filters/II18nFilterBuilderSelectedValuesContainer.ts +3 -0
- package/src/globalization/interfaces/filters/II18nFilterValidator.ts +23 -0
- package/src/globalization/interfaces/filters/II18nSlidebar.ts +6 -0
- package/src/globalization/interfaces/filters/II18nValueContainer.ts +5 -0
- package/src/globalization/interfaces/filters/II18nValueContainerSearchInput.ts +6 -0
- package/src/globalization/interfaces/filters/II18nValueContainerSearchInputEnterValue.ts +5 -0
- package/src/globalization/interfaces/filters/index.ts +12 -0
- package/src/globalization/interfaces/index.ts +3 -0
- package/src/globalization/interfaces/panel/II18nPanel.ts +10 -0
- package/src/globalization/interfaces/panel/II18nPanelErrors.ts +9 -0
- package/src/globalization/interfaces/panel/II18nPanelMenu.ts +15 -0
- package/src/globalization/interfaces/panel/II18nPanelTooltips.ts +4 -0
- package/src/globalization/interfaces/panel/index.ts +4 -0
- package/src/globalization/interfaces/table_charts/II18nTableCharts.ts +16 -0
- package/src/globalization/interfaces/table_charts/II18nTableChartsInnerCharts.ts +8 -0
- package/src/globalization/interfaces/table_charts/II18nTableChartsPagination.ts +4 -0
- package/src/globalization/interfaces/table_charts/II18nTableChartsSort.ts +10 -0
- package/src/globalization/interfaces/table_charts/II18nTableChartsSortTooltip.ts +3 -0
- package/src/globalization/interfaces/table_charts/II18nTableChartsVisualizationItems.ts +5 -0
- package/src/globalization/interfaces/table_charts/index.ts +6 -0
- package/src/globalization/labels/I18N_DEFAULT.ts +16 -0
- package/src/globalization/labels/columns/I18N_COLUMN.ts +9 -0
- package/src/globalization/labels/columns/index.ts +1 -0
- package/src/globalization/labels/common/I18N_AGGREGATE_LABEL.ts +14 -0
- package/src/globalization/labels/common/I18N_COLUMN_LABEL.ts +43 -0
- package/src/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.ts +54 -0
- package/src/globalization/labels/common/I18N_COMMON.ts +32 -0
- package/src/globalization/labels/common/index.ts +5 -0
- package/src/globalization/labels/dashboard/I18N_DASHBOARD.ts +23 -0
- package/src/globalization/labels/dashboard/index.ts +1 -0
- package/src/globalization/labels/filters/I18N_FILTER.ts +10 -0
- package/src/globalization/labels/filters/I18N_FILTER_BUILDER.ts +26 -0
- package/src/globalization/labels/filters/I18N_FILTER_VALIDATOR.ts +27 -0
- package/src/globalization/labels/filters/I18N_SLIDEBAR.ts +8 -0
- package/{dist/globalization/filters/VALUES_CONTAINER.js → src/globalization/labels/filters/I18N_VALUE_CONTAINER.ts} +3 -2
- package/src/globalization/labels/filters/index.ts +7 -0
- package/src/globalization/labels/index.ts +8 -0
- package/src/globalization/labels/panel/I18N_PANEL.ts +33 -0
- package/src/globalization/labels/panel/index.ts +1 -0
- package/src/globalization/labels/table_charts/I18N_TABLE_CHARTS.ts +35 -0
- package/src/globalization/labels/table_charts/index.ts +1 -0
- package/src/globalization/service/i18nextBuilder.ts +51 -0
- package/src/globalization/service/index.ts +2 -0
- package/src/globalization/service/initI18n.ts +6 -0
- package/src/index.ts +1 -0
- package/src/interfaces/Qrvey.Interface.ts +0 -11
- package/src/interfaces/general/IGeneralWidgetConfig.ts +1 -0
- package/src/interfaces/index.ts +1 -1
- package/src/qrvey/constants/CALCULATION_INFO_LIST.ts +1 -1
- package/src/qrvey/constants/index.ts +1 -4
- package/src/{columns/interfaces/IColumnCalculationType.ts → qrvey/interfaces/ICalculationType.ts} +1 -1
- package/src/qrvey/interfaces/index.ts +5 -1
- package/src/services/adapters/BColumnsToUIColumns.adapter.ts +20 -0
- package/src/services/adapters/BDatasetsToUIDatasets.adapter.ts +12 -0
- package/src/services/adapters/index.ts +2 -0
- package/src/services/api/getDatasetColumns.api.ts +2 -2
- package/src/services/helpers/Request.ts +10 -1
- package/src/services/index.ts +1 -0
- package/src/stencil/util/index.ts +1 -1
- package/test/format.test.js +2 -2
- package/test/general/mix/compareDeep.test.js +880 -0
- package/test/general/object/mergeDeep.test.js +110 -0
- package/dist/cjs/columns/interfaces/IColumnAggregateType.d.ts +0 -2
- package/dist/cjs/globalization/filters/FILTER_BUILDER.d.ts +0 -129
- package/dist/cjs/globalization/filters/FILTER_BUILDER.js +0 -37
- package/dist/cjs/globalization/filters/SLIDEBAR.d.ts +0 -8
- package/dist/cjs/globalization/filters/VALUES_CONTAINER.d.ts +0 -11
- package/dist/cjs/globalization/filters/index.d.ts +0 -3
- package/dist/cjs/qrvey/constants/AGGREGATE_INFO.d.ts +0 -5
- package/dist/cjs/qrvey/constants/AGGREGATE_INFO_LIST.d.ts +0 -1
- package/dist/cjs/qrvey/constants/AGGREGATE_LABEL.d.ts +0 -11
- package/dist/cjs/qrvey/constants/AGGREGATE_LABEL.js +0 -15
- package/dist/cjs/qrvey/interfaces/IAggregateInfo.d.ts +0 -5
- package/dist/columns/interfaces/IColumnAggregateType.d.ts +0 -2
- package/dist/globalization/filters/FILTER_BUILDER.d.ts +0 -129
- package/dist/globalization/filters/FILTER_BUILDER.js +0 -34
- package/dist/globalization/filters/SLIDEBAR.d.ts +0 -8
- package/dist/globalization/filters/SLIDEBAR.js +0 -8
- package/dist/globalization/filters/VALUES_CONTAINER.d.ts +0 -11
- package/dist/globalization/filters/index.d.ts +0 -3
- package/dist/globalization/filters/index.js +0 -3
- package/dist/qrvey/constants/AGGREGATE_INFO.d.ts +0 -5
- package/dist/qrvey/constants/AGGREGATE_INFO_LIST.d.ts +0 -1
- package/dist/qrvey/constants/AGGREGATE_LABEL.d.ts +0 -11
- package/dist/qrvey/constants/AGGREGATE_LABEL.js +0 -12
- package/dist/qrvey/interfaces/IAggregateInfo.d.ts +0 -5
- package/src/columns/interfaces/IColumnAggregateType.ts +0 -3
- package/src/globalization/filters/FILTER_BUILDER.ts +0 -35
- package/src/globalization/filters/SLIDEBAR.ts +0 -8
- package/src/globalization/filters/index.ts +0 -3
- package/src/qrvey/constants/AGGREGATE_LABEL.ts +0 -11
- package/src/qrvey/interfaces/IAggregateInfo.ts +0 -7
|
@@ -10,6 +10,7 @@ export function getFilterBuilderGeneralConfig(config = {}) {
|
|
|
10
10
|
appid: getAttribute(config, 'app_id') || config.appid,
|
|
11
11
|
domain: config.domain,
|
|
12
12
|
qv_token: config.qv_token,
|
|
13
|
+
timezoneControl: getAttribute(config, 'timezone_control') || config.timezoneControl,
|
|
13
14
|
userid: getAttribute(config, 'user_id') || config.userid,
|
|
14
15
|
};
|
|
15
16
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { AGGREGATE_ABBREVIATION } from "../../../charts/constants/AGGREGATE_ABBREVIATION";
|
|
1
2
|
import { COMPLEX_COLUMN_PROPERTIES } from "../../../columns/constants/COMPLEX_COLUMN_PROPERTIES";
|
|
2
3
|
import { isComplexColumn } from "../../../columns/helpers/isComplexColumn";
|
|
3
|
-
import { AGGREGATE_ABBREVIATION } from "../../../qrvey/constants/AGGREGATE_ABBREVIATION";
|
|
4
4
|
/**
|
|
5
5
|
* Get an string of the properties of the given filter column.
|
|
6
6
|
* @param column The filter column
|
|
@@ -5,7 +5,6 @@ import { getFilterColumnLabel } from "./getFilterColumnLabel";
|
|
|
5
5
|
* @returns a sring label
|
|
6
6
|
*/
|
|
7
7
|
export function getFilterLabel(filter) {
|
|
8
|
-
|
|
9
|
-
const text = (_a = filter.extras.filterLabel) !== null && _a !== void 0 ? _a : filter.column.label;
|
|
8
|
+
const text = filter.extras.filterLabel || filter.column.label;
|
|
10
9
|
return text + ' ' + getFilterColumnLabel(filter.column);
|
|
11
10
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IResourceI18n } from "../../../globalization/interfaces/IResourceI18n";
|
|
1
2
|
import { IFBLogic } from "../backend/IFBLogic";
|
|
2
3
|
import { IFBUserFilters } from "../backend/IFBUserFilters";
|
|
3
4
|
import { IFSColumn } from "../common/IFSColumn";
|
|
@@ -14,6 +15,7 @@ import { IFilterBuilderSettings } from "./IFilterBuilderSettings";
|
|
|
14
15
|
* Structure for the configuration of the Filter Builder
|
|
15
16
|
*/
|
|
16
17
|
export interface IFilterBuilderConfig {
|
|
18
|
+
i18n?: IResourceI18n;
|
|
17
19
|
datasets?: string[];
|
|
18
20
|
filterData?: IFSData;
|
|
19
21
|
filterLabel?: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IResourceI18n } from "../../../globalization";
|
|
1
2
|
import { IFilterBuilderConfig } from "../builder/IFilterBuilderConfig";
|
|
2
3
|
import { IFUDataStore } from "../ui/IFUDataStore";
|
|
3
4
|
/**
|
|
@@ -5,4 +6,5 @@ import { IFUDataStore } from "../ui/IFUDataStore";
|
|
|
5
6
|
*/
|
|
6
7
|
export interface IFilterPanelConfig extends IFUDataStore {
|
|
7
8
|
filterBuilderConfig?: IFilterBuilderConfig;
|
|
9
|
+
i18n?: IResourceI18n;
|
|
8
10
|
}
|
package/dist/format/format.js
CHANGED
|
@@ -27,7 +27,7 @@ export function formatAbbreviated(num, decimals) {
|
|
|
27
27
|
return 0;
|
|
28
28
|
const absValue = Math.abs(num);
|
|
29
29
|
const exp = Math.floor(Math.log10(absValue));
|
|
30
|
-
if (exp
|
|
30
|
+
if (exp <= 0 && exp >= -3)
|
|
31
31
|
return num.toFixed(decimals === 0 ? 2 : decimals);
|
|
32
32
|
return d3Format(num > -100 && num < 100 ? '.' + (decimals + 2) + 'n' : '.3s')(num);
|
|
33
33
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compares two objects to know if they are equals. Go across nested objects.
|
|
3
|
+
* Includes arrays in the comparison.
|
|
4
|
+
* @param object1 First Object to compare
|
|
5
|
+
* @param object2 Second Object to compare
|
|
6
|
+
* @returns True: objects are equal. False: Objects are not equal. Undefined: invalid
|
|
7
|
+
*/
|
|
8
|
+
export declare function compareDeep(variable1: any, variable2: any): boolean;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { isObject } from "../object/isObject";
|
|
2
|
+
/**
|
|
3
|
+
* Compares two objects to know if they are equals. Go across nested objects.
|
|
4
|
+
* Includes arrays in the comparison.
|
|
5
|
+
* @param object1 First Object to compare
|
|
6
|
+
* @param object2 Second Object to compare
|
|
7
|
+
* @returns True: objects are equal. False: Objects are not equal. Undefined: invalid
|
|
8
|
+
*/
|
|
9
|
+
export function compareDeep(variable1, variable2) {
|
|
10
|
+
if (!isValidForCompareDeep(variable1, variable2)) {
|
|
11
|
+
return variable1 === variable2;
|
|
12
|
+
}
|
|
13
|
+
const keys1 = Object.keys(variable1);
|
|
14
|
+
const keys2 = Object.keys(variable2);
|
|
15
|
+
if (keys1.length !== keys2.length) {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
for (const key of keys1) {
|
|
19
|
+
const value1 = variable1[key];
|
|
20
|
+
const value2 = variable2[key];
|
|
21
|
+
if (!compareDeep(value1, value2)) {
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function isValidForCompareDeep(val1, val2) {
|
|
28
|
+
return (isObject(val1) && isObject(val2)) || (Array.isArray(val1) && Array.isArray(val2));
|
|
29
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './randomId';
|
|
3
|
-
export * from './isNull';
|
|
4
|
-
export * from './isEmpty';
|
|
5
|
-
export * from './importScripts';
|
|
1
|
+
export * from './compareDeep';
|
|
6
2
|
export * from './getTag';
|
|
3
|
+
export * from './importScripts';
|
|
4
|
+
export * from './isEmpty';
|
|
5
|
+
export * from './isNull';
|
|
6
|
+
export * from './randomId';
|
|
7
|
+
export * from './size';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './randomId';
|
|
3
|
-
export * from './isNull';
|
|
4
|
-
export * from './isEmpty';
|
|
5
|
-
export * from './importScripts';
|
|
1
|
+
export * from './compareDeep';
|
|
6
2
|
export * from './getTag';
|
|
3
|
+
export * from './importScripts';
|
|
4
|
+
export * from './isEmpty';
|
|
5
|
+
export * from './isNull';
|
|
6
|
+
export * from './randomId';
|
|
7
|
+
export * from './size';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Settings structure of the Merge Deep helper
|
|
3
|
+
*/
|
|
4
|
+
interface IMergeDeepSettings {
|
|
5
|
+
mergeMissingProperties?: boolean;
|
|
6
|
+
mergeExistingValues?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Merges two objects into a new one.
|
|
10
|
+
* The second given argument to the first given argument.
|
|
11
|
+
* @param obj1 The target object
|
|
12
|
+
* @param obj2 The object to be merged
|
|
13
|
+
* @param settings Object settings for this function
|
|
14
|
+
* @returns a new merged object
|
|
15
|
+
*/
|
|
16
|
+
export declare function mergeDeep(obj1: any, obj2: any, settings?: IMergeDeepSettings): any;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { isObject } from "./isObject";
|
|
2
|
+
import { objectCopy } from "./objectCopy";
|
|
3
|
+
/**
|
|
4
|
+
* Merges two objects into a new one.
|
|
5
|
+
* The second given argument to the first given argument.
|
|
6
|
+
* @param obj1 The target object
|
|
7
|
+
* @param obj2 The object to be merged
|
|
8
|
+
* @param settings Object settings for this function
|
|
9
|
+
* @returns a new merged object
|
|
10
|
+
*/
|
|
11
|
+
export function mergeDeep(obj1, obj2, settings) {
|
|
12
|
+
settings = getParamsToMergeDeep(settings);
|
|
13
|
+
if (!isValid(obj1, obj2))
|
|
14
|
+
return objectCopy(obj1);
|
|
15
|
+
const result = {};
|
|
16
|
+
for (const i in obj1) {
|
|
17
|
+
if (i != null && i in obj2 && isObject(obj1[i])) {
|
|
18
|
+
result[i] = mergeDeep(obj1[i], obj2[i], settings);
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
result[i] = obj1[i];
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
for (const i in obj2) {
|
|
25
|
+
if (i != null && ((!isObject(obj2[i]) && i in result && settings.mergeExistingValues) || (!(i in result) && settings.mergeMissingProperties))) {
|
|
26
|
+
result[i] = obj2[i];
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return result;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Validates if the two arguments are objects
|
|
33
|
+
* @param obj1 The target object
|
|
34
|
+
* @param obj2 The object to be merged
|
|
35
|
+
* @returns true: they are valid; false: they are not
|
|
36
|
+
*/
|
|
37
|
+
function isValid(obj1, obj2) {
|
|
38
|
+
return isObject(obj1) && isObject(obj2);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Validates and gets the settings with all set parameters.
|
|
42
|
+
* @param settings the settings object
|
|
43
|
+
* @returns a new settings object with all set parameters.
|
|
44
|
+
*/
|
|
45
|
+
function getParamsToMergeDeep(settings) {
|
|
46
|
+
var _a, _b;
|
|
47
|
+
return {
|
|
48
|
+
mergeExistingValues: (_a = settings === null || settings === void 0 ? void 0 : settings.mergeExistingValues) !== null && _a !== void 0 ? _a : true,
|
|
49
|
+
mergeMissingProperties: (_b = settings === null || settings === void 0 ? void 0 : settings.mergeMissingProperties) !== null && _b !== void 0 ? _b : true,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { II18nDashboard } from "./dashboard/II18nDashboard";
|
|
2
|
+
import { II18nFilterBuilder } from "./filters/II18nFilterBuilder";
|
|
3
|
+
import { II18nFilter } from "./filters/II18nFilter";
|
|
4
|
+
import { II18nPanel } from "./panel/II18nPanel";
|
|
5
|
+
import { II18nCommon } from "./common/II18nCommon";
|
|
6
|
+
import { II18nTableCharts } from "./table_charts/II18nTableCharts";
|
|
7
|
+
export interface IResourceI18n {
|
|
8
|
+
dashboard?: II18nDashboard;
|
|
9
|
+
panel?: II18nPanel;
|
|
10
|
+
filter?: II18nFilter;
|
|
11
|
+
filter_builder?: II18nFilterBuilder;
|
|
12
|
+
table_charts?: II18nTableCharts;
|
|
13
|
+
common?: II18nCommon;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IColumnPropertyType } from "../../../columns/interfaces/IColumnPropertyType";
|
|
2
|
+
import { IColumnType } from "../../../columns/interfaces/IColumnType";
|
|
3
|
+
export interface II18nColumn {
|
|
4
|
+
column_types: {
|
|
5
|
+
[key in IColumnType]: string;
|
|
6
|
+
};
|
|
7
|
+
properties: {
|
|
8
|
+
[key in IColumnPropertyType]: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './II18nColumn';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './II18nColumn';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export interface II18nColumnProperties {
|
|
2
|
+
image_answer_id: string;
|
|
3
|
+
lookup_display: string;
|
|
4
|
+
lookup_value: string;
|
|
5
|
+
day: string;
|
|
6
|
+
year: string;
|
|
7
|
+
quarter: string;
|
|
8
|
+
month: string;
|
|
9
|
+
week: string;
|
|
10
|
+
hour: string;
|
|
11
|
+
minute: string;
|
|
12
|
+
second: string;
|
|
13
|
+
year_quarter: string;
|
|
14
|
+
year_month: string;
|
|
15
|
+
month_day: string;
|
|
16
|
+
day_hour: string;
|
|
17
|
+
hour_minute: string;
|
|
18
|
+
minute_second: string;
|
|
19
|
+
longtext_words: string;
|
|
20
|
+
longtext_keyphrases: string;
|
|
21
|
+
longtext_sentiments: string;
|
|
22
|
+
longtext_entities: string;
|
|
23
|
+
shorttext_words: string;
|
|
24
|
+
shorttext_keyphrases: string;
|
|
25
|
+
shorttext_sentiments: string;
|
|
26
|
+
shorttext_entities: string;
|
|
27
|
+
fileupload_filesize: string;
|
|
28
|
+
fileupload_filetype: string;
|
|
29
|
+
imageupload_imagesize: string;
|
|
30
|
+
imageupload_imagetype: string;
|
|
31
|
+
imageupload_imagewords: string;
|
|
32
|
+
expression_positive: string;
|
|
33
|
+
expression_negative: string;
|
|
34
|
+
name_first: string;
|
|
35
|
+
name_last: string;
|
|
36
|
+
address_street: string;
|
|
37
|
+
address_city: string;
|
|
38
|
+
address_state: string;
|
|
39
|
+
address_postal: string;
|
|
40
|
+
address_country: string;
|
|
41
|
+
usaddress_line_1: string;
|
|
42
|
+
usaddress_line_2: string;
|
|
43
|
+
usaddress_city: string;
|
|
44
|
+
usaddress_state: string;
|
|
45
|
+
usaddress_postal: string;
|
|
46
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface II18nColumnTypes {
|
|
2
|
+
single_choice_label: string;
|
|
3
|
+
multiple_choice_label: string;
|
|
4
|
+
rating_label: string;
|
|
5
|
+
yes_no_label: string;
|
|
6
|
+
ranking_label: string;
|
|
7
|
+
date_label: string;
|
|
8
|
+
slidebar_label: string;
|
|
9
|
+
signature_label: string;
|
|
10
|
+
dropdown_label: string;
|
|
11
|
+
numeric_label: string;
|
|
12
|
+
numericc_label: string;
|
|
13
|
+
numericp_label: string;
|
|
14
|
+
numericg_label: string;
|
|
15
|
+
image_label: string;
|
|
16
|
+
email_form_label: string;
|
|
17
|
+
phone_label: string;
|
|
18
|
+
password_label: string;
|
|
19
|
+
checklist_label: string;
|
|
20
|
+
nps_score_label: string;
|
|
21
|
+
nps_feedback_label: string;
|
|
22
|
+
text_label_label: string;
|
|
23
|
+
text_category_label: string;
|
|
24
|
+
lookup_label: string;
|
|
25
|
+
headline_label: string;
|
|
26
|
+
section_label: string;
|
|
27
|
+
formula_label: string;
|
|
28
|
+
aggregated_formula_label: string;
|
|
29
|
+
bucket_label: string;
|
|
30
|
+
textfield_label: string;
|
|
31
|
+
longtext_label: string;
|
|
32
|
+
imageupload_label: string;
|
|
33
|
+
fileupload_label: string;
|
|
34
|
+
expression_label: string;
|
|
35
|
+
name_label: string;
|
|
36
|
+
usaddress_label: string;
|
|
37
|
+
address_label: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { II18nColumnTypes } from "./II18nColumnTypes";
|
|
2
|
+
import { II18nAgreggateLabels } from './II18nAgreggateLabels';
|
|
3
|
+
import { II18nChartInfoMessagesCrosstab } from "./II18nChartInfoMessagesCrosstab";
|
|
4
|
+
import { II18nChartInfoMessagesDefault } from "./II18nChartInfoMessagesDefault";
|
|
5
|
+
import { II18nChartInfoMessagesTableChart } from "./II18nChartInfoMessagesTableChart";
|
|
6
|
+
import { II18nColumnProperties } from "./II18nColumnProperties";
|
|
7
|
+
export interface II18nCommon {
|
|
8
|
+
aggregate_labels: II18nAgreggateLabels;
|
|
9
|
+
column_types: II18nColumnTypes;
|
|
10
|
+
properties: II18nColumnProperties;
|
|
11
|
+
search: string;
|
|
12
|
+
chart_info_messages_default: II18nChartInfoMessagesDefault;
|
|
13
|
+
chart_info_messages_crosstab: II18nChartInfoMessagesCrosstab;
|
|
14
|
+
chart_info_messages_table_chart: II18nChartInfoMessagesTableChart;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './II18nCommon';
|
|
2
|
+
export * from './II18nAgreggateLabels';
|
|
3
|
+
export * from './II18nChartInfoMessagesCrosstab';
|
|
4
|
+
export * from './II18nChartInfoMessagesDefault';
|
|
5
|
+
export * from './II18nChartInfoMessagesTableChart';
|
|
6
|
+
export * from './II18nColumnProperties';
|
|
7
|
+
export * from './II18nColumnTypes';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './II18nCommon';
|
|
2
|
+
export * from './II18nAgreggateLabels';
|
|
3
|
+
export * from './II18nChartInfoMessagesCrosstab';
|
|
4
|
+
export * from './II18nChartInfoMessagesDefault';
|
|
5
|
+
export * from './II18nChartInfoMessagesTableChart';
|
|
6
|
+
export * from './II18nColumnProperties';
|
|
7
|
+
export * from './II18nColumnTypes';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { II18nDashboardAddChart } from "./II18nDashboardAddChart";
|
|
2
|
+
import { II18nDashboardTooltips } from "./II18nDashboardTooltips";
|
|
3
|
+
import { II18nDashboardViews } from "./II18nDashboardViews";
|
|
4
|
+
export interface II18nDashboard {
|
|
5
|
+
views: II18nDashboardViews;
|
|
6
|
+
add_chart: II18nDashboardAddChart;
|
|
7
|
+
export_csv: string;
|
|
8
|
+
tooltips: II18nDashboardTooltips;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { II18nSlidebar } from "./II18nSlidebar";
|
|
2
|
+
import { II18nValueContainer } from "./II18nValueContainer";
|
|
3
|
+
import { II18nFilterValidator } from "./II18nFilterValidator";
|
|
4
|
+
export interface II18nFilter {
|
|
5
|
+
slidebar: II18nSlidebar;
|
|
6
|
+
validators: II18nFilterValidator;
|
|
7
|
+
value_container: II18nValueContainer;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IFDateSection } from "../../../filters/interfaces/IFDateSection";
|
|
2
|
+
import { II18nFilterBuilderColumnSelector } from "./II18nFilterBuilderColumnSelector";
|
|
3
|
+
import { II18nFilterBuilderInfoContainer } from "./II18nFilterBuilderInfoContainer";
|
|
4
|
+
import { II18nFilterBuilderSelectedValuesContainer } from "./II18nFilterBuilderSelectedValuesContainer";
|
|
5
|
+
export interface II18nFilterBuilder {
|
|
6
|
+
title: string;
|
|
7
|
+
apply_button: string;
|
|
8
|
+
cancel_button: string;
|
|
9
|
+
apply_to: string;
|
|
10
|
+
column_selector: II18nFilterBuilderColumnSelector;
|
|
11
|
+
date_sections: {
|
|
12
|
+
[key in IFDateSection]: string;
|
|
13
|
+
};
|
|
14
|
+
divider_label: string;
|
|
15
|
+
selected_values_container: II18nFilterBuilderSelectedValuesContainer;
|
|
16
|
+
info_container: II18nFilterBuilderInfoContainer;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface II18nFilterValidator {
|
|
2
|
+
equals_label: string;
|
|
3
|
+
not_equal_label: string;
|
|
4
|
+
contains_label: string;
|
|
5
|
+
not_contain_label: string;
|
|
6
|
+
ends_with_label: string;
|
|
7
|
+
not_end_with_label: string;
|
|
8
|
+
starts_with_label: string;
|
|
9
|
+
not_start_with_label: string;
|
|
10
|
+
between_inclusive_label: string;
|
|
11
|
+
between_exclusive_label: string;
|
|
12
|
+
less_than_label: string;
|
|
13
|
+
less_than_equal_label: string;
|
|
14
|
+
greater_than_label: string;
|
|
15
|
+
greater_than_equal_label: string;
|
|
16
|
+
is_null_label: string;
|
|
17
|
+
is_not_null_label: string;
|
|
18
|
+
before_label: string;
|
|
19
|
+
after_label: string;
|
|
20
|
+
before_on_label: string;
|
|
21
|
+
after_on_label: string;
|
|
22
|
+
in_label: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|