@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
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { AGGREGATE_ABBREVIATION } from "../qrvey/constants/AGGREGATE_ABBREVIATION";
|
|
2
|
-
import { AGGREGATE_LABEL } from "../qrvey/constants/AGGREGATE_LABEL";
|
|
3
1
|
import { CALCULATION_ABBREVIATION } from "../qrvey/constants/CALCULATION_ABBREVIATION";
|
|
4
2
|
import { CALCULATION_LABEL } from "../qrvey/constants/CALCULATION_LABEL";
|
|
5
3
|
|
|
@@ -28,13 +26,6 @@ import { CALCULATION_LABEL } from "../qrvey/constants/CALCULATION_LABEL";
|
|
|
28
26
|
|
|
29
27
|
// options?: any[];
|
|
30
28
|
// }
|
|
31
|
-
|
|
32
|
-
export interface IColumnAggregate {
|
|
33
|
-
abbreviation: IColumnAggregateAbbreviation;
|
|
34
|
-
id: string;
|
|
35
|
-
label: IColumnAggregateLabel;
|
|
36
|
-
text: string;
|
|
37
|
-
}
|
|
38
29
|
|
|
39
30
|
export interface IColumnCalculation {
|
|
40
31
|
abbreviation: IColumnCalculationAbbreviation;
|
|
@@ -50,7 +41,5 @@ export interface IColumnCalculation {
|
|
|
50
41
|
// showIndicator?: boolean;
|
|
51
42
|
// }
|
|
52
43
|
|
|
53
|
-
export type IColumnAggregateAbbreviation = AGGREGATE_ABBREVIATION;
|
|
54
|
-
export type IColumnAggregateLabel = AGGREGATE_LABEL;
|
|
55
44
|
export type IColumnCalculationLabel = CALCULATION_LABEL;
|
|
56
45
|
export type IColumnCalculationAbbreviation = CALCULATION_ABBREVIATION;
|
package/src/interfaces/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CALCULATION } from "./CALCULATION";
|
|
2
2
|
import { CALCULATION_INFO } from "./CALCULATION_INFO";
|
|
3
3
|
|
|
4
|
-
export const
|
|
4
|
+
export const CALCULATION_INFO_LIST = [
|
|
5
5
|
CALCULATION_INFO[CALCULATION.AVG],
|
|
6
6
|
CALCULATION_INFO[CALCULATION.SUM],
|
|
7
7
|
CALCULATION_INFO[CALCULATION.MIN],
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
export * from './AGGREGATE_ABBREVIATION';
|
|
2
|
-
export * from './AGGREGATE_INFO';
|
|
3
|
-
export * from './AGGREGATE_LABEL';
|
|
4
|
-
export * from './AGGREGATE';
|
|
5
1
|
export * from './CALCULATION_ABBREVIATION';
|
|
2
|
+
export * from './CALCULATION_INFO_LIST';
|
|
6
3
|
export * from './CALCULATION_LABEL';
|
|
7
4
|
export * from './CALCULATION';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IBColumn } from "../../columns/interfaces/IBColumn";
|
|
2
|
+
import { IColumn } from "../../columns/interfaces/IColumn";
|
|
3
|
+
import { IBDataset } from "../../qrvey/interfaces/IBDataset";
|
|
4
|
+
|
|
5
|
+
export function BColumnsToUIColumns(columns: IBColumn[] = [], dataset?: IBDataset): IColumn[] {
|
|
6
|
+
return columns.map(column => ({
|
|
7
|
+
bucketid: column.bucketId,
|
|
8
|
+
formulaid: column.formulaId,
|
|
9
|
+
formulaType: column.formulaType,
|
|
10
|
+
geogroup: column.geogroup,
|
|
11
|
+
id: column.id,
|
|
12
|
+
label: column.text,
|
|
13
|
+
linked: column.linked,
|
|
14
|
+
linkid: dataset?.linkid || column.linkid,
|
|
15
|
+
outputFormat: column.outputFormat,
|
|
16
|
+
property: column.property,
|
|
17
|
+
qrveyid: dataset?.qrveyid || column.qrveyid,
|
|
18
|
+
type: column.type,
|
|
19
|
+
}));
|
|
20
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IBDataset } from "../../qrvey/interfaces/IBDataset";
|
|
2
|
+
import { IDataset } from "../../qrvey/interfaces/IDataset";
|
|
3
|
+
import { BColumnsToUIColumns } from "./BColumnsToUIColumns.adapter";
|
|
4
|
+
|
|
5
|
+
export function BDatasetsToUIDatasets(datasets: IBDataset[] = []): IDataset[] {
|
|
6
|
+
return datasets.map(dataset => ({
|
|
7
|
+
qrveyid: dataset.qrveyid,
|
|
8
|
+
label: dataset.name,
|
|
9
|
+
linkid: dataset.linkid,
|
|
10
|
+
options: BColumnsToUIColumns(dataset.options, dataset),
|
|
11
|
+
}));
|
|
12
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IGeneralWidgetConfig } from "../../interfaces/general/IGeneralWidgetConfig";
|
|
2
2
|
import { IDataset } from "../../qrvey/interfaces/IDataset";
|
|
3
|
-
import { IBDataset } from "../../qrvey/interfaces/IBDataset";
|
|
4
3
|
import { CHART_ENDPOINT } from "../constants/CHART_ENDPOINT";
|
|
5
4
|
import Request from "../helpers/Request";
|
|
5
|
+
import { BDatasetsToUIDatasets } from "../adapters/BDatasetsToUIDatasets.adapter";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Get a dataset by Qrvey ID
|
|
@@ -14,6 +14,6 @@ export function getDatasetColumns(config: IGeneralWidgetConfig, qrveyid?: string
|
|
|
14
14
|
'optionsAttributes': ['id', 'text', 'type', 'property', 'linked', 'linkid', 'qrveyid', 'bucketId', 'formulaId', 'formulaType', 'geogroup', 'outputFormat'],
|
|
15
15
|
'extend': true
|
|
16
16
|
})
|
|
17
|
-
.then(
|
|
17
|
+
.then(BDatasetsToUIDatasets)
|
|
18
18
|
.catch(_e => []);
|
|
19
19
|
}
|
|
@@ -14,10 +14,14 @@ export default class Request {
|
|
|
14
14
|
return !!this.getQvToken(config);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
static getQvToken(config) {
|
|
18
18
|
return getAttribute(config, 'qv_token');
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
static getTimezoneControl(config) {
|
|
22
|
+
return getAttribute(config, 'timezone_control');
|
|
23
|
+
}
|
|
24
|
+
|
|
21
25
|
static hasApiKey(config) {
|
|
22
26
|
return !!this.getApiKey(config);
|
|
23
27
|
}
|
|
@@ -61,6 +65,11 @@ export default class Request {
|
|
|
61
65
|
}
|
|
62
66
|
}
|
|
63
67
|
|
|
68
|
+
const timezoneControl = this.getTimezoneControl(reqData.config);
|
|
69
|
+
if (timezoneControl) {
|
|
70
|
+
cfg.headers['q-timezone-control'] = `offset=${timezoneControl};use-client-offset-only`;
|
|
71
|
+
}
|
|
72
|
+
|
|
64
73
|
// AbortSignal (https://developers.google.com/web/updates/2017/09/abortable-fetch)
|
|
65
74
|
if (reqData.config && reqData.config.signal) {
|
|
66
75
|
cfg.signal = reqData.config.signal;
|
package/src/services/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './getConfig';
|
|
2
|
-
export * from './createRef';
|
|
2
|
+
export * from './createRef';
|
package/test/format.test.js
CHANGED
|
@@ -64,8 +64,8 @@ describe('Testing format util', function () {
|
|
|
64
64
|
});
|
|
65
65
|
|
|
66
66
|
test("Format Number Abbreviated", ()=>{
|
|
67
|
-
const
|
|
68
|
-
expect(
|
|
67
|
+
const numberFormatted = formatAbbreviated(4.419, 0);
|
|
68
|
+
expect(numberFormatted).toEqual("4.42");
|
|
69
69
|
})
|
|
70
70
|
|
|
71
71
|
});
|