@qrvey/utils 1.2.9-9 → 1.2.10-0
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 +2299 -767
- package/dist/charts/constants/AGGREGATE_LABEL.d.ts +1 -1
- package/dist/charts/constants/AGGREGATE_LABEL.js +1 -1
- package/dist/charts/constants/index.d.ts +1 -0
- package/dist/charts/constants/index.js +1 -0
- package/dist/cjs/charts/constants/AGGREGATE_LABEL.d.ts +1 -1
- package/dist/cjs/charts/constants/AGGREGATE_LABEL.js +1 -1
- package/dist/cjs/charts/constants/index.d.ts +1 -0
- package/dist/cjs/charts/constants/index.js +1 -0
- package/dist/cjs/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION.d.ts +5 -0
- package/dist/cjs/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION.js +9 -0
- package/dist/cjs/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION_LIST.d.ts +2 -0
- package/dist/cjs/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION_LIST.js +9 -0
- package/dist/cjs/columns/constants/index.d.ts +4 -0
- package/dist/cjs/columns/constants/index.js +4 -0
- package/dist/{qrvey → cjs/columns}/helpers/getColumnsLabel.d.ts +1 -1
- package/dist/cjs/{qrvey → columns}/helpers/getColumnsLabel.js +2 -0
- package/dist/cjs/columns/helpers/getDatasetByColumn.d.ts +3 -0
- package/dist/cjs/columns/helpers/getDatasetByColumn.js +10 -0
- package/dist/cjs/columns/helpers/getDatasetColumn.d.ts +3 -0
- package/dist/cjs/columns/helpers/getDatasetColumn.js +16 -0
- package/dist/cjs/columns/helpers/getDatasetColumnyDatasets.d.ts +3 -0
- package/dist/cjs/columns/helpers/getDatasetColumnyDatasets.js +12 -0
- package/dist/cjs/columns/helpers/getModelColumn.d.ts +9 -0
- package/dist/cjs/columns/helpers/getModelColumn.js +30 -0
- package/dist/cjs/columns/helpers/index.d.ts +5 -0
- package/dist/cjs/columns/helpers/index.js +5 -0
- package/dist/cjs/columns/interfaces/IBColumAnswer.d.ts +6 -0
- package/dist/cjs/{filters/interfaces/builder/IFilterBuilderGeneralConfig.js → columns/interfaces/IBColumAnswer.js} +0 -0
- package/dist/cjs/columns/interfaces/IBColumn.d.ts +10 -3
- package/dist/cjs/columns/interfaces/IBColumnAnswerExpression.d.ts +5 -0
- package/dist/cjs/{filters/interfaces/common/IFSMergeFiltersSettings.js → columns/interfaces/IBColumnAnswerExpression.js} +0 -0
- package/dist/cjs/columns/interfaces/IBColumnAnswerExpressionCategory.d.ts +6 -0
- package/dist/cjs/{filters/interfaces/common/IFSParamsToGetFilterSettings.js → columns/interfaces/IBColumnAnswerExpressionCategory.js} +0 -0
- package/dist/cjs/columns/interfaces/IBColumnAnswerExpressionWord.d.ts +3 -0
- package/dist/cjs/{globalization/interfaces/IResourceI18n.js → columns/interfaces/IBColumnAnswerExpressionWord.js} +0 -0
- package/dist/cjs/columns/interfaces/IBColumnAnswerGeneral.d.ts +4 -0
- package/dist/cjs/columns/interfaces/IBColumnAnswerGeneral.js +2 -0
- package/dist/cjs/columns/interfaces/IBColumnAnswerImages.d.ts +5 -0
- package/dist/cjs/columns/interfaces/IBColumnAnswerImages.js +2 -0
- package/dist/cjs/columns/interfaces/IBColumnAnswerLookupAnswer.d.ts +5 -0
- package/dist/cjs/columns/interfaces/IBColumnAnswerLookupAnswer.js +2 -0
- package/dist/cjs/columns/interfaces/IBColumnAnswerLookupAnswerAnswer.d.ts +6 -0
- package/dist/cjs/columns/interfaces/IBColumnAnswerLookupAnswerAnswer.js +2 -0
- package/dist/cjs/columns/interfaces/IBColumnAnswerLookupValue.d.ts +4 -0
- package/dist/cjs/columns/interfaces/IBColumnAnswerLookupValue.js +2 -0
- package/dist/cjs/columns/interfaces/IBColumnAnswerLookupValueValue.d.ts +7 -0
- package/dist/cjs/columns/interfaces/IBColumnAnswerLookupValueValue.js +2 -0
- package/dist/cjs/columns/interfaces/IBColumnAnswerSlidebar.d.ts +3 -0
- package/dist/cjs/columns/interfaces/IBColumnAnswerSlidebar.js +2 -0
- package/dist/cjs/columns/interfaces/IColumn.d.ts +9 -3
- package/dist/cjs/columns/interfaces/IColumnImageUploadOption.d.ts +2 -0
- package/dist/cjs/columns/interfaces/IColumnImageUploadOption.js +2 -0
- package/dist/cjs/columns/interfaces/index.d.ts +11 -0
- package/dist/cjs/columns/interfaces/index.js +11 -0
- package/dist/cjs/dates/adapters/index.d.ts +5 -0
- package/dist/cjs/dates/adapters/index.js +17 -0
- package/dist/cjs/dates/constants/DATETIME_COLUMN_FORMAT.d.ts +1 -0
- package/dist/cjs/dates/constants/DATETIME_COLUMN_FORMAT.js +11 -0
- package/dist/cjs/dates/constants/index.d.ts +2 -0
- package/dist/cjs/dates/constants/index.js +2 -0
- package/dist/cjs/dates/helpers/index.d.ts +1 -0
- package/dist/cjs/dates/helpers/index.js +1 -0
- package/dist/cjs/dates/index.d.ts +1 -0
- package/dist/cjs/dates/index.js +1 -0
- package/dist/cjs/dates/relative/constants/RELATIVE_CURSOR_INFO_LIST.d.ts +1 -1
- package/dist/cjs/filters/adapters/FDToFlatUI.js +2 -1
- package/dist/cjs/filters/adapters/FDToUI.js +2 -4
- package/dist/cjs/filters/adapters/UIToFlatUI.js +1 -0
- package/dist/cjs/filters/adapters/UIToOldLogic.js +5 -3
- package/dist/cjs/filters/adapters/adaptFilterValues.js +2 -2
- package/dist/cjs/filters/adapters/flatUIToFD.js +1 -0
- package/dist/cjs/filters/adapters/flatUIToOldLogic.js +41 -25
- package/dist/cjs/filters/adapters/flatUIToUI.js +1 -0
- package/dist/cjs/filters/adapters/index.d.ts +2 -0
- package/dist/cjs/filters/adapters/index.js +2 -0
- package/dist/cjs/filters/adapters/logicToFlatUI.js +9 -8
- package/dist/cjs/filters/adapters/modelAnswerToFilterValue.d.ts +8 -0
- package/dist/cjs/filters/adapters/modelAnswerToFilterValue.js +16 -0
- package/dist/cjs/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.js +4 -4
- package/dist/cjs/filters/constants/builder/STATIC_OPTION_COLUMNS.d.ts +2 -2
- package/dist/cjs/filters/constants/builder/index.d.ts +1 -0
- package/dist/cjs/filters/constants/builder/index.js +1 -0
- package/dist/cjs/filters/helpers/OLD_getAggFilters.d.ts +9 -0
- package/dist/cjs/filters/helpers/OLD_getAggFilters.js +88 -0
- package/dist/cjs/filters/helpers/backend/buildExpression.js +3 -2
- package/dist/cjs/filters/helpers/backend/getBackendValidator.d.ts +2 -2
- package/dist/cjs/filters/helpers/backend/getBackendValidator.js +4 -4
- package/dist/cjs/filters/helpers/backend/getBackendValues.js +13 -12
- package/dist/cjs/filters/helpers/backend/index.d.ts +1 -1
- package/dist/cjs/filters/helpers/backend/index.js +2 -1
- package/dist/cjs/filters/helpers/builder/getFilterBuilderGeneralConfig.d.ts +2 -2
- package/dist/cjs/filters/helpers/builder/getFilterBuilderGeneralConfig.js +1 -0
- package/dist/cjs/filters/helpers/common/excludeFiltersByParams.js +4 -4
- package/dist/cjs/filters/helpers/common/getFiltersByParams.d.ts +2 -2
- package/dist/cjs/filters/helpers/common/getFiltersByParams.js +2 -2
- package/dist/cjs/filters/helpers/common/getMergeFiltersSettings.d.ts +2 -2
- package/dist/cjs/filters/helpers/common/getParamsToGetFilterSettings.d.ts +2 -2
- package/dist/cjs/filters/helpers/common/getValuesFromDataset.d.ts +8 -0
- package/dist/cjs/filters/helpers/common/getValuesFromDataset.js +20 -0
- package/dist/cjs/filters/helpers/common/getValuesFromModel.d.ts +8 -0
- package/dist/cjs/filters/helpers/common/getValuesFromModel.js +20 -0
- package/dist/cjs/filters/helpers/common/index.d.ts +3 -1
- package/dist/cjs/filters/helpers/common/index.js +4 -1
- package/dist/cjs/filters/helpers/common/mergeFilters.d.ts +2 -2
- package/dist/cjs/filters/helpers/common/mergeFilters.js +15 -13
- package/dist/cjs/filters/helpers/index.d.ts +1 -0
- package/dist/cjs/filters/helpers/index.js +2 -0
- package/dist/cjs/filters/helpers/ui/getQrveyIdsByUIFilters.d.ts +7 -0
- package/dist/cjs/filters/helpers/ui/getQrveyIdsByUIFilters.js +24 -0
- package/dist/cjs/filters/helpers/ui/getUIFlatFilterByParams.js +2 -2
- package/dist/cjs/filters/helpers/ui/getUIFlatFiltersByParams.js +2 -2
- package/dist/cjs/filters/helpers/ui/getUIValues.js +22 -15
- package/dist/cjs/filters/helpers/ui/getUpdatedUIFilters.d.ts +9 -0
- package/dist/cjs/filters/helpers/ui/getUpdatedUIFilters.js +38 -0
- package/dist/cjs/filters/helpers/ui/index.d.ts +4 -0
- package/dist/cjs/filters/helpers/ui/index.js +4 -0
- package/dist/cjs/filters/helpers/ui/{resolveUIFlatFiltersByParams.d.ts → resolveUIFlatFilterByParams.d.ts} +2 -1
- package/dist/cjs/filters/helpers/ui/{resolveUIFlatFiltersByParams.js → resolveUIFlatFilterByParams.js} +7 -7
- package/dist/cjs/filters/helpers/ui/transformFilterValues.d.ts +4 -0
- package/dist/cjs/filters/helpers/ui/transformFilterValues.js +23 -0
- package/dist/cjs/filters/index.d.ts +1 -0
- package/dist/cjs/filters/index.js +1 -0
- package/dist/cjs/filters/interfaces/OLD_IFilterDetail.d.ts +7 -1
- package/dist/cjs/filters/interfaces/backend/IFBData.d.ts +5 -0
- package/dist/cjs/filters/interfaces/backend/IFBData.js +2 -0
- package/dist/cjs/filters/interfaces/backend/index.d.ts +1 -0
- package/dist/cjs/filters/interfaces/backend/index.js +1 -0
- package/dist/cjs/filters/interfaces/builder/IFilterBuilderConfig.d.ts +2 -4
- package/dist/cjs/filters/interfaces/builder/index.d.ts +0 -1
- package/dist/cjs/filters/interfaces/builder/index.js +0 -1
- package/dist/cjs/filters/interfaces/common/IFSColumn.d.ts +1 -1
- package/dist/cjs/filters/interfaces/common/IFSFilter.d.ts +2 -1
- package/dist/cjs/filters/interfaces/common/IFSFilterExtras.d.ts +2 -0
- package/dist/cjs/filters/interfaces/common/IFSGetDataValues.d.ts +2 -0
- package/dist/cjs/filters/interfaces/common/IFSGetDataValues.js +2 -0
- package/dist/cjs/filters/interfaces/common/IFSParamsToGetFilter.d.ts +2 -0
- package/dist/cjs/filters/interfaces/common/IFilterConfig.d.ts +2 -0
- package/dist/cjs/filters/interfaces/common/IFilterConfig.js +2 -0
- package/dist/cjs/filters/interfaces/common/index.d.ts +2 -2
- package/dist/cjs/filters/interfaces/common/index.js +2 -2
- package/dist/cjs/filters/interfaces/functions/IFFiltersGetData.d.ts +17 -0
- package/dist/cjs/filters/interfaces/functions/IFFiltersGetData.js +2 -0
- package/dist/cjs/filters/interfaces/functions/IFFiltersGetValuesFromDataset.d.ts +10 -0
- package/dist/cjs/filters/interfaces/functions/IFFiltersGetValuesFromDataset.js +2 -0
- package/dist/cjs/filters/interfaces/functions/IFFiltersGetValuesFromModel.d.ts +10 -0
- package/dist/cjs/filters/interfaces/functions/IFFiltersGetValuesFromModel.js +2 -0
- package/dist/cjs/filters/interfaces/{common/IFSMergeFiltersSettings.d.ts → functions/IFFiltersMergeFilters.d.ts} +1 -1
- package/dist/cjs/filters/interfaces/functions/IFFiltersMergeFilters.js +2 -0
- package/dist/cjs/filters/interfaces/{common/IFSParamsToGetFilterSettings.d.ts → functions/IFFiltersParamsToGetFilter.d.ts} +1 -1
- package/dist/cjs/filters/interfaces/functions/IFFiltersParamsToGetFilter.js +2 -0
- package/dist/cjs/filters/interfaces/functions/index.d.ts +5 -0
- package/dist/cjs/filters/interfaces/functions/index.js +17 -0
- package/dist/cjs/filters/interfaces/panel/IFPSettingsGeneral.d.ts +2 -1
- package/dist/cjs/filters/interfaces/panel/IFilterPanelConfig.d.ts +2 -2
- package/dist/cjs/filters/interfaces/ui/IFUColumn.d.ts +2 -2
- package/dist/cjs/filters/interfaces/ui/IFUTransformFilterValuesSettings.d.ts +7 -0
- package/dist/cjs/filters/interfaces/ui/IFUTransformFilterValuesSettings.js +2 -0
- package/dist/cjs/filters/interfaces/ui/index.d.ts +4 -3
- package/dist/cjs/filters/interfaces/ui/index.js +4 -3
- package/dist/cjs/filters/services/Filters.api.d.ts +52 -0
- package/dist/cjs/filters/services/Filters.api.js +135 -0
- package/dist/cjs/filters/services/UChartApi.d.ts +86 -0
- package/dist/cjs/filters/services/UChartApi.js +250 -0
- package/dist/cjs/filters/services/UChartPaginationApi.d.ts +114 -0
- package/dist/cjs/filters/services/UChartPaginationApi.js +295 -0
- package/dist/cjs/filters/services/index.d.ts +3 -0
- package/dist/cjs/filters/services/index.js +15 -0
- package/dist/cjs/format/definition.d.ts +31 -0
- package/dist/cjs/format/definition.js +33 -1
- package/dist/cjs/format/format.d.ts +2 -1
- package/dist/cjs/format/format.js +8 -5
- package/dist/cjs/format/index.d.ts +1 -0
- package/dist/cjs/format/index.js +1 -0
- package/dist/cjs/format/localization.d.ts +4 -0
- package/dist/cjs/format/localization.js +79 -0
- package/dist/cjs/general/array/getArrayByProperty.d.ts +7 -0
- package/dist/cjs/general/array/getArrayByProperty.js +19 -0
- package/dist/cjs/general/array/getUniqueArray.d.ts +9 -0
- package/dist/cjs/general/array/getUniqueArray.js +15 -0
- package/dist/cjs/general/array/index.d.ts +1 -0
- package/dist/cjs/general/array/index.js +1 -0
- package/dist/cjs/globalization/helpers/getI18nCalendar.d.ts +4 -0
- package/dist/cjs/globalization/helpers/getI18nCalendar.js +69 -0
- package/dist/cjs/globalization/helpers/index.d.ts +1 -0
- package/dist/cjs/globalization/helpers/index.js +1 -0
- package/dist/cjs/globalization/interfaces/II18nConfig.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/II18nConfig.js +2 -0
- package/dist/cjs/globalization/interfaces/{IResourceI18n.d.ts → II18nResource.d.ts} +3 -1
- package/dist/cjs/globalization/interfaces/II18nResource.js +2 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/calendar/II18nCalendar.d.ts +7 -0
- package/dist/cjs/globalization/interfaces/calendar/II18nCalendar.js +2 -0
- package/dist/cjs/globalization/interfaces/calendar/II18nCalendarProperties.d.ts +9 -0
- package/dist/cjs/globalization/interfaces/calendar/II18nCalendarProperties.js +2 -0
- package/dist/cjs/globalization/interfaces/calendar/index.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/calendar/index.js +14 -0
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderFontOptions.d.ts +5 -3
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderRefernceLine.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderTableCalculation.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/common/II18nCommon.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/common/II18nDayNames.d.ts +7 -0
- package/dist/cjs/globalization/interfaces/dashboard/II18nDashboard.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/dashboard/II18nDashboardMessages.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/dashboard/II18nDashboardMessages.js +2 -0
- package/dist/cjs/globalization/interfaces/dashboard/index.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/dashboard/index.js +1 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilter.d.ts +4 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterExtraInfo.d.ts +4 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterExtraInfo.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterPanel.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nRelativeContainer.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/filters/II18nTokenBox.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/filters/II18nTokenBox.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nValueContainer.d.ts +1 -1
- package/dist/cjs/globalization/interfaces/filters/index.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/filters/index.js +1 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/index.d.ts +7 -2
- package/dist/cjs/globalization/interfaces/index.js +7 -2
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemes.d.ts +13 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemes.js +2 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.js +2 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMenu.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMenu.js +2 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMessages.d.ts +9 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesMessages.js +2 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTheme.d.ts +27 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTheme.js +2 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTooltips.d.ts +4 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTooltips.js +2 -0
- package/dist/cjs/globalization/interfaces/style_themes/index.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/style_themes/index.js +18 -0
- package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsPagination.d.ts +1 -0
- package/dist/cjs/globalization/labels/I18N_DEFAULT.d.ts +2 -2
- package/dist/cjs/globalization/labels/I18N_DEFAULT.js +2 -0
- package/dist/cjs/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.js +2 -0
- package/dist/cjs/globalization/labels/calendar/I18N_CALENDAR.d.ts +2 -0
- package/dist/cjs/globalization/labels/calendar/I18N_CALENDAR.js +10 -0
- package/dist/cjs/globalization/labels/calendar/index.d.ts +1 -0
- package/dist/cjs/globalization/labels/calendar/index.js +13 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER.d.ts +1 -1
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_COMPARISION_OPTIONS.d.ts +1 -1
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_FORMAT_OPTIONS.d.ts +1 -1
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +3 -2
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.d.ts +1 -1
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.js +1 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.d.ts +1 -1
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.js +3 -2
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.d.ts +1 -1
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +8 -6
- package/dist/cjs/globalization/labels/common/I18N_COMMON.js +2 -0
- package/dist/cjs/globalization/labels/common/I18N_DAY_NAMES.js +7 -0
- package/dist/cjs/globalization/labels/dashboard/I18N_DASHBOARD.js +6 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER.js +10 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_PANEL.js +2 -0
- package/dist/cjs/globalization/labels/filters/I18N_RELATIVE_CONTAINER.js +1 -0
- package/dist/cjs/globalization/labels/filters/I18N_VALUE_CONTAINER.js +1 -1
- package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +5 -3
- package/dist/cjs/globalization/labels/index.d.ts +6 -3
- package/dist/cjs/globalization/labels/index.js +6 -3
- package/dist/cjs/globalization/labels/panel/I18N_PANEL.js +1 -1
- package/dist/cjs/globalization/labels/style_themes/I18N_STYLE_THEMES.d.ts +2 -0
- package/dist/cjs/globalization/labels/style_themes/I18N_STYLE_THEMES.js +58 -0
- package/dist/cjs/globalization/labels/style_themes/index.d.ts +1 -0
- package/dist/cjs/globalization/labels/style_themes/index.js +13 -0
- package/dist/cjs/globalization/labels/table_charts/I18N_TABLE_CHARTS.js +1 -0
- package/dist/cjs/globalization/service/i18nextBuilder.d.ts +3 -3
- package/dist/cjs/globalization/service/initI18n.d.ts +2 -2
- package/dist/cjs/interfaces/format/IFormatConfig.Interface.d.ts +5 -0
- package/dist/cjs/interfaces/format/IFormatConfig.Interface.js +2 -0
- package/dist/cjs/interfaces/format/IFormatCurrency.Interface.d.ts +4 -0
- package/dist/cjs/interfaces/format/IFormatCurrency.Interface.js +2 -0
- package/dist/cjs/interfaces/format/IFormatOutputFormat.Interface.d.ts +9 -0
- package/dist/cjs/interfaces/format/IFormatOutputFormat.Interface.js +2 -0
- package/dist/cjs/interfaces/format/index.d.ts +3 -0
- package/dist/cjs/interfaces/format/index.js +15 -0
- package/dist/cjs/interfaces/general/IGeneralWidgetConfig.d.ts +5 -3
- package/dist/cjs/interfaces/general/IWidgetConfig.d.ts +10 -0
- package/dist/cjs/interfaces/general/IWidgetConfig.js +2 -0
- package/dist/cjs/interfaces/general/index.d.ts +1 -0
- package/dist/cjs/interfaces/general/index.js +1 -0
- package/dist/cjs/interfaces/index.d.ts +1 -0
- package/dist/cjs/interfaces/index.js +1 -0
- package/dist/cjs/qrvey/constants/APP_DATASET_TYPE_LIST.d.ts +6 -0
- package/dist/cjs/qrvey/constants/APP_DATASET_TYPE_LIST.js +16 -0
- package/dist/cjs/qrvey/constants/APP_FORM_TYPE_LIST.d.ts +6 -0
- package/dist/cjs/qrvey/constants/APP_FORM_TYPE_LIST.js +14 -0
- package/dist/cjs/qrvey/constants/APP_STATUS.d.ts +5 -0
- package/dist/cjs/qrvey/constants/APP_STATUS.js +9 -0
- package/dist/cjs/qrvey/constants/APP_STATUS_LIST.d.ts +6 -0
- package/dist/cjs/qrvey/constants/APP_STATUS_LIST.js +13 -0
- package/dist/cjs/qrvey/constants/APP_TYPE.d.ts +16 -0
- package/dist/cjs/qrvey/constants/APP_TYPE.js +20 -0
- package/dist/cjs/qrvey/constants/index.d.ts +6 -0
- package/dist/cjs/qrvey/constants/index.js +6 -0
- package/dist/cjs/qrvey/helpers/areStaticColumnValues.d.ts +8 -0
- package/dist/cjs/qrvey/helpers/areStaticColumnValues.js +17 -0
- package/dist/cjs/qrvey/helpers/getCategorizableExpression.d.ts +11 -0
- package/dist/cjs/qrvey/helpers/getCategorizableExpression.js +22 -0
- package/dist/cjs/qrvey/helpers/getDataAnswersByColumn.d.ts +13 -0
- package/dist/cjs/qrvey/helpers/getDataAnswersByColumn.js +54 -0
- package/dist/cjs/qrvey/helpers/getDropdownAnswers.d.ts +9 -0
- package/dist/cjs/qrvey/helpers/getDropdownAnswers.js +14 -0
- package/dist/cjs/qrvey/helpers/getExpressionAnswers.d.ts +10 -0
- package/dist/cjs/qrvey/helpers/getExpressionAnswers.js +22 -0
- package/dist/cjs/qrvey/helpers/getImageAnswers.d.ts +8 -0
- package/dist/cjs/qrvey/helpers/getImageAnswers.js +17 -0
- package/dist/cjs/qrvey/helpers/getImageUploadHasAnalysis.d.ts +10 -0
- package/dist/cjs/qrvey/helpers/getImageUploadHasAnalysis.js +23 -0
- package/dist/cjs/qrvey/helpers/getLookupAnswers.d.ts +4 -0
- package/dist/cjs/qrvey/helpers/getLookupAnswers.js +16 -0
- package/dist/cjs/qrvey/helpers/getLookupDisplays.d.ts +4 -0
- package/dist/cjs/qrvey/helpers/getLookupDisplays.js +9 -0
- package/dist/cjs/qrvey/helpers/getRatingAnswers.d.ts +7 -0
- package/dist/cjs/qrvey/helpers/getRatingAnswers.js +12 -0
- package/dist/cjs/qrvey/helpers/getSlidebarAnswers.d.ts +8 -0
- package/dist/cjs/qrvey/helpers/getSlidebarAnswers.js +18 -0
- package/dist/cjs/qrvey/helpers/getSuffixTranslateByColumn.d.ts +7 -0
- package/dist/cjs/qrvey/helpers/getSuffixTranslateByColumn.js +17 -0
- package/dist/cjs/qrvey/helpers/getValueWithSuffixes.d.ts +9 -0
- package/dist/cjs/qrvey/helpers/getValueWithSuffixes.js +23 -0
- package/dist/cjs/qrvey/helpers/getYesNoAnswers.d.ts +9 -0
- package/dist/cjs/qrvey/helpers/getYesNoAnswers.js +13 -0
- package/dist/cjs/qrvey/helpers/index.d.ts +17 -1
- package/dist/cjs/qrvey/helpers/index.js +17 -1
- package/dist/cjs/qrvey/helpers/isDataset.d.ts +2 -0
- package/dist/cjs/qrvey/helpers/isDataset.js +8 -0
- package/dist/cjs/qrvey/helpers/isForm.d.ts +2 -0
- package/dist/cjs/qrvey/helpers/isForm.js +8 -0
- package/dist/cjs/qrvey/helpers/transformValue.d.ts +8 -0
- package/dist/cjs/qrvey/helpers/transformValue.js +49 -0
- package/dist/cjs/qrvey/interfaces/IAppStatus.d.ts +2 -0
- package/dist/cjs/qrvey/interfaces/IAppStatus.js +2 -0
- package/dist/cjs/qrvey/interfaces/IAppType.d.ts +2 -0
- package/dist/cjs/qrvey/interfaces/IAppType.js +2 -0
- package/dist/cjs/qrvey/interfaces/IBModel.d.ts +19 -0
- package/dist/cjs/qrvey/interfaces/IBModel.js +2 -0
- package/dist/cjs/qrvey/interfaces/IBModelBranchesMap.d.ts +5 -0
- package/dist/cjs/qrvey/interfaces/IBModelBranchesMap.js +2 -0
- package/dist/cjs/qrvey/interfaces/IBModelBranchesMapBranch.d.ts +4 -0
- package/dist/cjs/qrvey/interfaces/IBModelBranchesMapBranch.js +2 -0
- package/dist/cjs/qrvey/interfaces/IBModelData.d.ts +4 -0
- package/dist/cjs/qrvey/interfaces/IBModelData.js +2 -0
- package/dist/cjs/qrvey/interfaces/IFunctionGetDataAnswersByColumn.d.ts +11 -0
- package/dist/cjs/qrvey/interfaces/IFunctionGetDataAnswersByColumn.js +2 -0
- package/dist/cjs/qrvey/interfaces/IFunctionGetValueWithSuffixes.d.ts +11 -0
- package/dist/cjs/qrvey/interfaces/IFunctionGetValueWithSuffixes.js +2 -0
- package/dist/cjs/qrvey/interfaces/IModel.d.ts +10 -0
- package/dist/cjs/qrvey/interfaces/IModel.js +2 -0
- package/dist/cjs/qrvey/interfaces/IModelAnswer.d.ts +5 -0
- package/dist/cjs/qrvey/interfaces/IModelAnswer.js +2 -0
- package/dist/cjs/qrvey/interfaces/IModelBranchesMap.d.ts +5 -0
- package/dist/cjs/qrvey/interfaces/IModelBranchesMap.js +2 -0
- package/dist/cjs/qrvey/interfaces/IModelBranchesMapBranch.d.ts +4 -0
- package/dist/cjs/qrvey/interfaces/IModelBranchesMapBranch.js +2 -0
- package/dist/cjs/qrvey/interfaces/IModelColumn.d.ts +23 -0
- package/dist/cjs/qrvey/interfaces/IModelColumn.js +2 -0
- package/dist/cjs/qrvey/interfaces/IModelDataset.d.ts +7 -0
- package/dist/cjs/qrvey/interfaces/IModelDataset.js +2 -0
- package/dist/cjs/qrvey/interfaces/ITransformValueSettings.d.ts +11 -0
- package/dist/cjs/qrvey/interfaces/ITransformValueSettings.js +2 -0
- package/dist/cjs/qrvey/interfaces/index.d.ts +13 -0
- package/dist/cjs/qrvey/interfaces/index.js +13 -0
- package/dist/cjs/services/adapters/BBranchesMapToUIBranchesMap.adapter.d.ts +8 -0
- package/dist/cjs/services/adapters/BBranchesMapToUIBranchesMap.adapter.js +21 -0
- package/dist/cjs/services/adapters/BColumnsToUIColumns.adapter.js +8 -0
- package/dist/cjs/services/adapters/BModelToUIModel.adapter.d.ts +3 -0
- package/dist/cjs/services/adapters/BModelToUIModel.adapter.js +26 -0
- package/dist/cjs/services/adapters/index.d.ts +1 -0
- package/dist/cjs/services/adapters/index.js +1 -0
- package/dist/cjs/services/api/Charts.api.d.ts +15 -0
- package/dist/cjs/services/api/Charts.api.js +37 -0
- package/dist/cjs/services/api/getAllDatasets.api.d.ts +8 -3
- package/dist/cjs/services/api/getAllDatasets.api.js +24 -15
- package/dist/cjs/services/api/getAllQrveys.api.d.ts +1 -1
- package/dist/cjs/services/api/getAllQrveys.api.js +1 -1
- package/dist/cjs/services/api/getDatasetColumns.api.d.ts +2 -2
- package/dist/cjs/services/api/getDatasetColumns.api.js +6 -3
- package/dist/cjs/services/api/getDatasetsByIds.api.d.ts +8 -0
- package/dist/cjs/services/api/getDatasetsByIds.api.js +30 -0
- package/dist/cjs/services/api/getModel.api.d.ts +1 -0
- package/dist/cjs/services/api/getModel.api.js +16 -0
- package/dist/cjs/services/api/index.d.ts +2 -0
- package/dist/cjs/services/api/index.js +2 -0
- package/dist/cjs/services/constants/MODEL_ENDPOINT.d.ts +2 -0
- package/dist/cjs/services/constants/MODEL_ENDPOINT.js +7 -0
- package/dist/cjs/services/constants/QUESTION_LIST_BULK_ENDPOINT.d.ts +2 -0
- package/dist/cjs/services/constants/QUESTION_LIST_BULK_ENDPOINT.js +7 -0
- package/dist/cjs/services/constants/UCHART_ENDPOINT.d.ts +2 -0
- package/dist/cjs/services/constants/UCHART_ENDPOINT.js +7 -0
- package/dist/cjs/services/constants/UCHART_PAGINATION_ENDPOINT.d.ts +2 -0
- package/dist/cjs/services/constants/UCHART_PAGINATION_ENDPOINT.js +7 -0
- package/dist/cjs/services/constants/index.d.ts +4 -0
- package/dist/cjs/services/constants/index.js +4 -0
- package/dist/cjs/services/helpers/getDefaultQuestionListOptionsAttributes.d.ts +1 -0
- package/dist/cjs/services/helpers/getDefaultQuestionListOptionsAttributes.js +28 -0
- package/dist/cjs/services/helpers/index.d.ts +1 -0
- package/dist/cjs/services/helpers/index.js +1 -0
- package/dist/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION.d.ts +5 -0
- package/dist/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION.js +6 -0
- package/dist/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION_LIST.d.ts +2 -0
- package/dist/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION_LIST.js +6 -0
- package/dist/columns/constants/index.d.ts +4 -0
- package/dist/columns/constants/index.js +4 -0
- package/dist/{cjs/qrvey → columns}/helpers/getColumnsLabel.d.ts +1 -1
- package/dist/{qrvey → columns}/helpers/getColumnsLabel.js +2 -0
- package/dist/columns/helpers/getDatasetByColumn.d.ts +3 -0
- package/dist/columns/helpers/getDatasetByColumn.js +6 -0
- package/dist/columns/helpers/getDatasetColumn.d.ts +3 -0
- package/dist/columns/helpers/getDatasetColumn.js +12 -0
- package/dist/columns/helpers/getDatasetColumnyDatasets.d.ts +3 -0
- package/dist/columns/helpers/getDatasetColumnyDatasets.js +8 -0
- package/dist/columns/helpers/getModelColumn.d.ts +9 -0
- package/dist/columns/helpers/getModelColumn.js +26 -0
- package/dist/columns/helpers/index.d.ts +5 -0
- package/dist/columns/helpers/index.js +5 -0
- package/dist/columns/interfaces/IBColumAnswer.d.ts +6 -0
- package/dist/{filters/interfaces/builder/IFilterBuilderGeneralConfig.js → columns/interfaces/IBColumAnswer.js} +0 -0
- package/dist/columns/interfaces/IBColumn.d.ts +10 -3
- package/dist/columns/interfaces/IBColumnAnswerExpression.d.ts +5 -0
- package/dist/{filters/interfaces/common/IFSMergeFiltersSettings.js → columns/interfaces/IBColumnAnswerExpression.js} +0 -0
- package/dist/columns/interfaces/IBColumnAnswerExpressionCategory.d.ts +6 -0
- package/dist/{filters/interfaces/common/IFSParamsToGetFilterSettings.js → columns/interfaces/IBColumnAnswerExpressionCategory.js} +0 -0
- package/dist/columns/interfaces/IBColumnAnswerExpressionWord.d.ts +3 -0
- package/dist/{globalization/interfaces/IResourceI18n.js → columns/interfaces/IBColumnAnswerExpressionWord.js} +0 -0
- package/dist/columns/interfaces/IBColumnAnswerGeneral.d.ts +4 -0
- package/dist/columns/interfaces/IBColumnAnswerGeneral.js +1 -0
- package/dist/columns/interfaces/IBColumnAnswerImages.d.ts +5 -0
- package/dist/columns/interfaces/IBColumnAnswerImages.js +1 -0
- package/dist/columns/interfaces/IBColumnAnswerLookupAnswer.d.ts +5 -0
- package/dist/columns/interfaces/IBColumnAnswerLookupAnswer.js +1 -0
- package/dist/columns/interfaces/IBColumnAnswerLookupAnswerAnswer.d.ts +6 -0
- package/dist/columns/interfaces/IBColumnAnswerLookupAnswerAnswer.js +1 -0
- package/dist/columns/interfaces/IBColumnAnswerLookupValue.d.ts +4 -0
- package/dist/columns/interfaces/IBColumnAnswerLookupValue.js +1 -0
- package/dist/columns/interfaces/IBColumnAnswerLookupValueValue.d.ts +7 -0
- package/dist/columns/interfaces/IBColumnAnswerLookupValueValue.js +1 -0
- package/dist/columns/interfaces/IBColumnAnswerSlidebar.d.ts +3 -0
- package/dist/columns/interfaces/IBColumnAnswerSlidebar.js +1 -0
- package/dist/columns/interfaces/IColumn.d.ts +9 -3
- package/dist/columns/interfaces/IColumnImageUploadOption.d.ts +2 -0
- package/dist/columns/interfaces/IColumnImageUploadOption.js +1 -0
- package/dist/columns/interfaces/index.d.ts +11 -0
- package/dist/columns/interfaces/index.js +11 -0
- package/dist/dates/adapters/index.d.ts +5 -0
- package/dist/dates/adapters/index.js +5 -0
- package/dist/dates/constants/DATETIME_COLUMN_FORMAT.d.ts +1 -0
- package/dist/dates/constants/DATETIME_COLUMN_FORMAT.js +8 -0
- package/dist/dates/constants/index.d.ts +2 -0
- package/dist/dates/constants/index.js +2 -0
- package/dist/dates/helpers/index.d.ts +1 -0
- package/dist/dates/helpers/index.js +1 -0
- package/dist/dates/index.d.ts +1 -0
- package/dist/dates/index.js +1 -0
- package/dist/dates/relative/constants/RELATIVE_CURSOR_INFO_LIST.d.ts +1 -1
- package/dist/filters/adapters/FDToFlatUI.js +2 -1
- package/dist/filters/adapters/FDToUI.js +2 -4
- package/dist/filters/adapters/UIToFlatUI.js +1 -0
- package/dist/filters/adapters/UIToOldLogic.js +5 -3
- package/dist/filters/adapters/adaptFilterValues.js +2 -2
- package/dist/filters/adapters/flatUIToFD.js +1 -0
- package/dist/filters/adapters/flatUIToOldLogic.js +41 -25
- package/dist/filters/adapters/flatUIToUI.js +1 -0
- package/dist/filters/adapters/index.d.ts +2 -0
- package/dist/filters/adapters/index.js +2 -0
- package/dist/filters/adapters/logicToFlatUI.js +9 -8
- package/dist/filters/adapters/modelAnswerToFilterValue.d.ts +8 -0
- package/dist/filters/adapters/modelAnswerToFilterValue.js +12 -0
- package/dist/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.js +1 -1
- package/dist/filters/constants/builder/STATIC_OPTION_COLUMNS.d.ts +2 -2
- package/dist/filters/constants/builder/index.d.ts +1 -0
- package/dist/filters/constants/builder/index.js +1 -0
- package/dist/filters/helpers/OLD_getAggFilters.d.ts +9 -0
- package/dist/filters/helpers/OLD_getAggFilters.js +84 -0
- package/dist/filters/helpers/backend/buildExpression.js +3 -2
- package/dist/filters/helpers/backend/getBackendValidator.d.ts +2 -2
- package/dist/filters/helpers/backend/getBackendValidator.js +4 -4
- package/dist/filters/helpers/backend/getBackendValues.js +13 -12
- package/dist/filters/helpers/backend/index.d.ts +1 -1
- package/dist/filters/helpers/backend/index.js +2 -1
- package/dist/filters/helpers/builder/getFilterBuilderGeneralConfig.d.ts +2 -2
- package/dist/filters/helpers/builder/getFilterBuilderGeneralConfig.js +1 -0
- package/dist/filters/helpers/common/excludeFiltersByParams.js +4 -4
- package/dist/filters/helpers/common/getFiltersByParams.d.ts +2 -2
- package/dist/filters/helpers/common/getFiltersByParams.js +2 -2
- package/dist/filters/helpers/common/getMergeFiltersSettings.d.ts +2 -2
- package/dist/filters/helpers/common/getParamsToGetFilterSettings.d.ts +2 -2
- package/dist/filters/helpers/common/getValuesFromDataset.d.ts +8 -0
- package/dist/filters/helpers/common/getValuesFromDataset.js +16 -0
- package/dist/filters/helpers/common/getValuesFromModel.d.ts +8 -0
- package/dist/filters/helpers/common/getValuesFromModel.js +16 -0
- package/dist/filters/helpers/common/index.d.ts +3 -1
- package/dist/filters/helpers/common/index.js +4 -1
- package/dist/filters/helpers/common/mergeFilters.d.ts +2 -2
- package/dist/filters/helpers/common/mergeFilters.js +15 -13
- package/dist/filters/helpers/index.d.ts +1 -0
- package/dist/filters/helpers/index.js +2 -0
- package/dist/filters/helpers/ui/getQrveyIdsByUIFilters.d.ts +7 -0
- package/dist/filters/helpers/ui/getQrveyIdsByUIFilters.js +20 -0
- package/dist/filters/helpers/ui/getUIFlatFilterByParams.js +1 -1
- package/dist/filters/helpers/ui/getUIFlatFiltersByParams.js +1 -1
- package/dist/filters/helpers/ui/getUIValues.js +21 -14
- package/dist/filters/helpers/ui/getUpdatedUIFilters.d.ts +9 -0
- package/dist/filters/helpers/ui/getUpdatedUIFilters.js +34 -0
- package/dist/filters/helpers/ui/index.d.ts +4 -0
- package/dist/filters/helpers/ui/index.js +4 -0
- package/dist/filters/helpers/ui/{resolveUIFlatFiltersByParams.d.ts → resolveUIFlatFilterByParams.d.ts} +2 -1
- package/dist/filters/helpers/ui/{resolveUIFlatFiltersByParams.js → resolveUIFlatFilterByParams.js} +1 -1
- package/dist/filters/helpers/ui/transformFilterValues.d.ts +4 -0
- package/dist/filters/helpers/ui/transformFilterValues.js +19 -0
- package/dist/filters/index.d.ts +1 -0
- package/dist/filters/index.js +1 -0
- package/dist/filters/interfaces/OLD_IFilterDetail.d.ts +7 -1
- package/dist/filters/interfaces/backend/IFBData.d.ts +5 -0
- package/dist/filters/interfaces/backend/IFBData.js +1 -0
- package/dist/filters/interfaces/backend/index.d.ts +1 -0
- package/dist/filters/interfaces/backend/index.js +1 -0
- package/dist/filters/interfaces/builder/IFilterBuilderConfig.d.ts +2 -4
- package/dist/filters/interfaces/builder/index.d.ts +0 -1
- package/dist/filters/interfaces/builder/index.js +0 -1
- package/dist/filters/interfaces/common/IFSColumn.d.ts +1 -1
- package/dist/filters/interfaces/common/IFSFilter.d.ts +2 -1
- package/dist/filters/interfaces/common/IFSFilterExtras.d.ts +2 -0
- package/dist/filters/interfaces/common/IFSGetDataValues.d.ts +2 -0
- package/dist/filters/interfaces/common/IFSGetDataValues.js +1 -0
- package/dist/filters/interfaces/common/IFSParamsToGetFilter.d.ts +2 -0
- package/dist/filters/interfaces/common/IFilterConfig.d.ts +2 -0
- package/dist/filters/interfaces/common/IFilterConfig.js +1 -0
- package/dist/filters/interfaces/common/index.d.ts +2 -2
- package/dist/filters/interfaces/common/index.js +2 -2
- package/dist/filters/interfaces/functions/IFFiltersGetData.d.ts +17 -0
- package/dist/filters/interfaces/functions/IFFiltersGetData.js +1 -0
- package/dist/filters/interfaces/functions/IFFiltersGetValuesFromDataset.d.ts +10 -0
- package/dist/filters/interfaces/functions/IFFiltersGetValuesFromDataset.js +1 -0
- package/dist/filters/interfaces/functions/IFFiltersGetValuesFromModel.d.ts +10 -0
- package/dist/filters/interfaces/functions/IFFiltersGetValuesFromModel.js +1 -0
- package/dist/filters/interfaces/{common/IFSMergeFiltersSettings.d.ts → functions/IFFiltersMergeFilters.d.ts} +1 -1
- package/dist/filters/interfaces/functions/IFFiltersMergeFilters.js +1 -0
- package/dist/filters/interfaces/{common/IFSParamsToGetFilterSettings.d.ts → functions/IFFiltersParamsToGetFilter.d.ts} +1 -1
- package/dist/filters/interfaces/functions/IFFiltersParamsToGetFilter.js +1 -0
- package/dist/filters/interfaces/functions/index.d.ts +5 -0
- package/dist/filters/interfaces/functions/index.js +5 -0
- package/dist/filters/interfaces/panel/IFPSettingsGeneral.d.ts +2 -1
- package/dist/filters/interfaces/panel/IFilterPanelConfig.d.ts +2 -2
- package/dist/filters/interfaces/ui/IFUColumn.d.ts +2 -2
- package/dist/filters/interfaces/ui/IFUTransformFilterValuesSettings.d.ts +7 -0
- package/dist/filters/interfaces/ui/IFUTransformFilterValuesSettings.js +1 -0
- package/dist/filters/interfaces/ui/index.d.ts +4 -3
- package/dist/filters/interfaces/ui/index.js +4 -3
- package/dist/filters/services/Filters.api.d.ts +52 -0
- package/dist/filters/services/Filters.api.js +128 -0
- package/dist/filters/services/UChartApi.d.ts +86 -0
- package/dist/filters/services/UChartApi.js +244 -0
- package/dist/filters/services/UChartPaginationApi.d.ts +114 -0
- package/dist/filters/services/UChartPaginationApi.js +289 -0
- package/dist/filters/services/index.d.ts +3 -0
- package/dist/filters/services/index.js +3 -0
- package/dist/format/definition.d.ts +31 -0
- package/dist/format/definition.js +32 -0
- package/dist/format/format.d.ts +2 -1
- package/dist/format/format.js +6 -3
- package/dist/format/index.d.ts +1 -0
- package/dist/format/index.js +1 -0
- package/dist/format/localization.d.ts +4 -0
- package/dist/format/localization.js +73 -0
- package/dist/general/array/getArrayByProperty.d.ts +7 -0
- package/dist/general/array/getArrayByProperty.js +15 -0
- package/dist/general/array/getUniqueArray.d.ts +9 -0
- package/dist/general/array/getUniqueArray.js +11 -0
- package/dist/general/array/index.d.ts +1 -0
- package/dist/general/array/index.js +1 -0
- package/dist/globalization/helpers/getI18nCalendar.d.ts +4 -0
- package/dist/globalization/helpers/getI18nCalendar.js +65 -0
- package/dist/globalization/helpers/index.d.ts +1 -0
- package/dist/globalization/helpers/index.js +1 -0
- package/dist/globalization/interfaces/II18nConfig.d.ts +6 -0
- package/dist/globalization/interfaces/II18nConfig.js +1 -0
- package/dist/globalization/interfaces/{IResourceI18n.d.ts → II18nResource.d.ts} +3 -1
- package/dist/globalization/interfaces/II18nResource.js +1 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.d.ts +2 -0
- package/dist/globalization/interfaces/calendar/II18nCalendar.d.ts +7 -0
- package/dist/globalization/interfaces/calendar/II18nCalendar.js +1 -0
- package/dist/globalization/interfaces/calendar/II18nCalendarProperties.d.ts +9 -0
- package/dist/globalization/interfaces/calendar/II18nCalendarProperties.js +1 -0
- package/dist/globalization/interfaces/calendar/index.d.ts +2 -0
- package/dist/globalization/interfaces/calendar/index.js +2 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.d.ts +1 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderFontOptions.d.ts +5 -3
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderRefernceLine.d.ts +1 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderTableCalculation.d.ts +1 -0
- package/dist/globalization/interfaces/common/II18nCommon.d.ts +2 -0
- package/dist/globalization/interfaces/common/II18nDayNames.d.ts +7 -0
- package/dist/globalization/interfaces/dashboard/II18nDashboard.d.ts +2 -0
- package/dist/globalization/interfaces/dashboard/II18nDashboardMessages.d.ts +6 -0
- package/dist/globalization/interfaces/dashboard/II18nDashboardMessages.js +1 -0
- package/dist/globalization/interfaces/dashboard/index.d.ts +1 -0
- package/dist/globalization/interfaces/dashboard/index.js +1 -0
- package/dist/globalization/interfaces/filters/II18nFilter.d.ts +4 -0
- package/dist/globalization/interfaces/filters/II18nFilterExtraInfo.d.ts +4 -0
- package/dist/globalization/interfaces/filters/II18nFilterExtraInfo.js +1 -0
- package/dist/globalization/interfaces/filters/II18nFilterPanel.d.ts +2 -0
- package/dist/globalization/interfaces/filters/II18nRelativeContainer.d.ts +1 -0
- package/dist/globalization/interfaces/filters/II18nTokenBox.d.ts +6 -0
- package/dist/globalization/interfaces/filters/II18nTokenBox.js +1 -0
- package/dist/globalization/interfaces/filters/II18nValueContainer.d.ts +1 -1
- package/dist/globalization/interfaces/filters/index.d.ts +1 -0
- package/dist/globalization/interfaces/filters/index.js +1 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.d.ts +2 -0
- package/dist/globalization/interfaces/index.d.ts +7 -2
- package/dist/globalization/interfaces/index.js +7 -2
- package/dist/globalization/interfaces/style_themes/II18nStyleThemes.d.ts +13 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemes.js +1 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.d.ts +6 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.js +1 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesMenu.d.ts +6 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesMenu.js +1 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesMessages.d.ts +9 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesMessages.js +1 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesTheme.d.ts +27 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesTheme.js +1 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesTooltips.d.ts +4 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesTooltips.js +1 -0
- package/dist/globalization/interfaces/style_themes/index.d.ts +6 -0
- package/dist/globalization/interfaces/style_themes/index.js +6 -0
- package/dist/globalization/interfaces/table_charts/II18nTableChartsPagination.d.ts +1 -0
- package/dist/globalization/labels/I18N_DEFAULT.d.ts +2 -2
- package/dist/globalization/labels/I18N_DEFAULT.js +2 -0
- package/dist/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.js +2 -0
- package/dist/globalization/labels/calendar/I18N_CALENDAR.d.ts +2 -0
- package/dist/globalization/labels/calendar/I18N_CALENDAR.js +7 -0
- package/dist/globalization/labels/calendar/index.d.ts +1 -0
- package/dist/globalization/labels/calendar/index.js +1 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER.d.ts +1 -1
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_COMPARISION_OPTIONS.d.ts +1 -1
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_FORMAT_OPTIONS.d.ts +1 -1
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +3 -2
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.d.ts +1 -1
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.js +1 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.d.ts +1 -1
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.js +3 -2
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.d.ts +1 -1
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +8 -6
- package/dist/globalization/labels/common/I18N_COMMON.js +2 -0
- package/dist/globalization/labels/common/I18N_DAY_NAMES.js +7 -0
- package/dist/globalization/labels/dashboard/I18N_DASHBOARD.js +6 -0
- package/dist/globalization/labels/filters/I18N_FILTER.js +10 -0
- package/dist/globalization/labels/filters/I18N_FILTER_PANEL.js +2 -0
- package/dist/globalization/labels/filters/I18N_RELATIVE_CONTAINER.js +1 -0
- package/dist/globalization/labels/filters/I18N_VALUE_CONTAINER.js +1 -1
- package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +5 -3
- package/dist/globalization/labels/index.d.ts +6 -3
- package/dist/globalization/labels/index.js +6 -3
- package/dist/globalization/labels/panel/I18N_PANEL.js +1 -1
- package/dist/globalization/labels/style_themes/I18N_STYLE_THEMES.d.ts +2 -0
- package/dist/globalization/labels/style_themes/I18N_STYLE_THEMES.js +55 -0
- package/dist/globalization/labels/style_themes/index.d.ts +1 -0
- package/dist/globalization/labels/style_themes/index.js +1 -0
- package/dist/globalization/labels/table_charts/I18N_TABLE_CHARTS.js +1 -0
- package/dist/globalization/service/i18nextBuilder.d.ts +3 -3
- package/dist/globalization/service/initI18n.d.ts +2 -2
- package/dist/interfaces/format/IFormatConfig.Interface.d.ts +5 -0
- package/dist/interfaces/format/IFormatConfig.Interface.js +1 -0
- package/dist/interfaces/format/IFormatCurrency.Interface.d.ts +4 -0
- package/dist/interfaces/format/IFormatCurrency.Interface.js +1 -0
- package/dist/interfaces/format/IFormatOutputFormat.Interface.d.ts +9 -0
- package/dist/interfaces/format/IFormatOutputFormat.Interface.js +1 -0
- package/dist/interfaces/format/index.d.ts +3 -0
- package/dist/interfaces/format/index.js +3 -0
- package/dist/interfaces/general/IGeneralWidgetConfig.d.ts +5 -3
- package/dist/interfaces/general/IWidgetConfig.d.ts +10 -0
- package/dist/interfaces/general/IWidgetConfig.js +1 -0
- package/dist/interfaces/general/index.d.ts +1 -0
- package/dist/interfaces/general/index.js +1 -0
- package/dist/interfaces/index.d.ts +1 -0
- package/dist/interfaces/index.js +1 -0
- package/dist/qrvey/constants/APP_DATASET_TYPE_LIST.d.ts +6 -0
- package/dist/qrvey/constants/APP_DATASET_TYPE_LIST.js +13 -0
- package/dist/qrvey/constants/APP_FORM_TYPE_LIST.d.ts +6 -0
- package/dist/qrvey/constants/APP_FORM_TYPE_LIST.js +11 -0
- package/dist/qrvey/constants/APP_STATUS.d.ts +5 -0
- package/dist/qrvey/constants/APP_STATUS.js +6 -0
- package/dist/qrvey/constants/APP_STATUS_LIST.d.ts +6 -0
- package/dist/qrvey/constants/APP_STATUS_LIST.js +10 -0
- package/dist/qrvey/constants/APP_TYPE.d.ts +16 -0
- package/dist/qrvey/constants/APP_TYPE.js +17 -0
- package/dist/qrvey/constants/index.d.ts +6 -0
- package/dist/qrvey/constants/index.js +6 -0
- package/dist/qrvey/helpers/areStaticColumnValues.d.ts +8 -0
- package/dist/qrvey/helpers/areStaticColumnValues.js +13 -0
- package/dist/qrvey/helpers/getCategorizableExpression.d.ts +11 -0
- package/dist/qrvey/helpers/getCategorizableExpression.js +18 -0
- package/dist/qrvey/helpers/getDataAnswersByColumn.d.ts +13 -0
- package/dist/qrvey/helpers/getDataAnswersByColumn.js +50 -0
- package/dist/qrvey/helpers/getDropdownAnswers.d.ts +9 -0
- package/dist/qrvey/helpers/getDropdownAnswers.js +10 -0
- package/dist/qrvey/helpers/getExpressionAnswers.d.ts +10 -0
- package/dist/qrvey/helpers/getExpressionAnswers.js +18 -0
- package/dist/qrvey/helpers/getImageAnswers.d.ts +8 -0
- package/dist/qrvey/helpers/getImageAnswers.js +13 -0
- package/dist/qrvey/helpers/getImageUploadHasAnalysis.d.ts +10 -0
- package/dist/qrvey/helpers/getImageUploadHasAnalysis.js +19 -0
- package/dist/qrvey/helpers/getLookupAnswers.d.ts +4 -0
- package/dist/qrvey/helpers/getLookupAnswers.js +12 -0
- package/dist/qrvey/helpers/getLookupDisplays.d.ts +4 -0
- package/dist/qrvey/helpers/getLookupDisplays.js +5 -0
- package/dist/qrvey/helpers/getRatingAnswers.d.ts +7 -0
- package/dist/qrvey/helpers/getRatingAnswers.js +8 -0
- package/dist/qrvey/helpers/getSlidebarAnswers.d.ts +8 -0
- package/dist/qrvey/helpers/getSlidebarAnswers.js +14 -0
- package/dist/qrvey/helpers/getSuffixTranslateByColumn.d.ts +7 -0
- package/dist/qrvey/helpers/getSuffixTranslateByColumn.js +13 -0
- package/dist/qrvey/helpers/getValueWithSuffixes.d.ts +9 -0
- package/dist/qrvey/helpers/getValueWithSuffixes.js +19 -0
- package/dist/qrvey/helpers/getYesNoAnswers.d.ts +9 -0
- package/dist/qrvey/helpers/getYesNoAnswers.js +9 -0
- package/dist/qrvey/helpers/index.d.ts +17 -1
- package/dist/qrvey/helpers/index.js +17 -1
- package/dist/qrvey/helpers/isDataset.d.ts +2 -0
- package/dist/qrvey/helpers/isDataset.js +4 -0
- package/dist/qrvey/helpers/isForm.d.ts +2 -0
- package/dist/qrvey/helpers/isForm.js +4 -0
- package/dist/qrvey/helpers/transformValue.d.ts +8 -0
- package/dist/qrvey/helpers/transformValue.js +45 -0
- package/dist/qrvey/interfaces/IAppStatus.d.ts +2 -0
- package/dist/qrvey/interfaces/IAppStatus.js +1 -0
- package/dist/qrvey/interfaces/IAppType.d.ts +2 -0
- package/dist/qrvey/interfaces/IAppType.js +1 -0
- package/dist/qrvey/interfaces/IBModel.d.ts +19 -0
- package/dist/qrvey/interfaces/IBModel.js +1 -0
- package/dist/qrvey/interfaces/IBModelBranchesMap.d.ts +5 -0
- package/dist/qrvey/interfaces/IBModelBranchesMap.js +1 -0
- package/dist/qrvey/interfaces/IBModelBranchesMapBranch.d.ts +4 -0
- package/dist/qrvey/interfaces/IBModelBranchesMapBranch.js +1 -0
- package/dist/qrvey/interfaces/IBModelData.d.ts +4 -0
- package/dist/qrvey/interfaces/IBModelData.js +1 -0
- package/dist/qrvey/interfaces/IFunctionGetDataAnswersByColumn.d.ts +11 -0
- package/dist/qrvey/interfaces/IFunctionGetDataAnswersByColumn.js +1 -0
- package/dist/qrvey/interfaces/IFunctionGetValueWithSuffixes.d.ts +11 -0
- package/dist/qrvey/interfaces/IFunctionGetValueWithSuffixes.js +1 -0
- package/dist/qrvey/interfaces/IModel.d.ts +10 -0
- package/dist/qrvey/interfaces/IModel.js +1 -0
- package/dist/qrvey/interfaces/IModelAnswer.d.ts +5 -0
- package/dist/qrvey/interfaces/IModelAnswer.js +1 -0
- package/dist/qrvey/interfaces/IModelBranchesMap.d.ts +5 -0
- package/dist/qrvey/interfaces/IModelBranchesMap.js +1 -0
- package/dist/qrvey/interfaces/IModelBranchesMapBranch.d.ts +4 -0
- package/dist/qrvey/interfaces/IModelBranchesMapBranch.js +1 -0
- package/dist/qrvey/interfaces/IModelColumn.d.ts +23 -0
- package/dist/qrvey/interfaces/IModelColumn.js +1 -0
- package/dist/qrvey/interfaces/IModelDataset.d.ts +7 -0
- package/dist/qrvey/interfaces/IModelDataset.js +1 -0
- package/dist/qrvey/interfaces/ITransformValueSettings.d.ts +11 -0
- package/dist/qrvey/interfaces/ITransformValueSettings.js +1 -0
- package/dist/qrvey/interfaces/index.d.ts +13 -0
- package/dist/qrvey/interfaces/index.js +13 -0
- package/dist/services/adapters/BBranchesMapToUIBranchesMap.adapter.d.ts +8 -0
- package/dist/services/adapters/BBranchesMapToUIBranchesMap.adapter.js +17 -0
- package/dist/services/adapters/BColumnsToUIColumns.adapter.js +8 -0
- package/dist/services/adapters/BModelToUIModel.adapter.d.ts +3 -0
- package/dist/services/adapters/BModelToUIModel.adapter.js +22 -0
- package/dist/services/adapters/index.d.ts +1 -0
- package/dist/services/adapters/index.js +1 -0
- package/dist/services/api/Charts.api.d.ts +15 -0
- package/dist/services/api/Charts.api.js +31 -0
- package/dist/services/api/getAllDatasets.api.d.ts +8 -3
- package/dist/services/api/getAllDatasets.api.js +24 -15
- package/dist/services/api/getAllQrveys.api.d.ts +1 -1
- package/dist/services/api/getAllQrveys.api.js +1 -1
- package/dist/services/api/getDatasetColumns.api.d.ts +2 -2
- package/dist/services/api/getDatasetColumns.api.js +9 -6
- package/dist/services/api/getDatasetsByIds.api.d.ts +8 -0
- package/dist/services/api/getDatasetsByIds.api.js +23 -0
- package/dist/services/api/getModel.api.d.ts +1 -0
- package/dist/services/api/getModel.api.js +9 -0
- package/dist/services/api/index.d.ts +2 -0
- package/dist/services/api/index.js +2 -0
- package/dist/services/constants/MODEL_ENDPOINT.d.ts +2 -0
- package/dist/services/constants/MODEL_ENDPOINT.js +4 -0
- package/dist/services/constants/QUESTION_LIST_BULK_ENDPOINT.d.ts +2 -0
- package/dist/services/constants/QUESTION_LIST_BULK_ENDPOINT.js +4 -0
- package/dist/services/constants/UCHART_ENDPOINT.d.ts +2 -0
- package/dist/services/constants/UCHART_ENDPOINT.js +4 -0
- package/dist/services/constants/UCHART_PAGINATION_ENDPOINT.d.ts +2 -0
- package/dist/services/constants/UCHART_PAGINATION_ENDPOINT.js +4 -0
- package/dist/services/constants/index.d.ts +4 -0
- package/dist/services/constants/index.js +4 -0
- package/dist/services/helpers/getDefaultQuestionListOptionsAttributes.d.ts +1 -0
- package/dist/services/helpers/getDefaultQuestionListOptionsAttributes.js +24 -0
- package/dist/services/helpers/index.d.ts +1 -0
- package/dist/services/helpers/index.js +1 -0
- package/package.json +4 -7
- package/src/charts/constants/AGGREGATE_LABEL.ts +1 -1
- package/src/charts/constants/index.ts +1 -0
- package/src/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION.ts +5 -0
- package/src/columns/constants/COLUMN_IMAGE_UPLOAD_OPTION_LIST.ts +7 -0
- package/src/columns/constants/index.ts +5 -0
- package/src/{qrvey → columns}/helpers/getColumnsLabel.ts +2 -1
- package/src/columns/helpers/getDatasetByColumn.ts +9 -0
- package/src/columns/helpers/getDatasetColumn.ts +15 -0
- package/src/columns/helpers/getDatasetColumnyDatasets.ts +11 -0
- package/src/columns/helpers/getModelColumn.ts +29 -0
- package/src/columns/helpers/index.ts +5 -0
- package/src/columns/interfaces/IBColumAnswer.ts +7 -0
- package/src/columns/interfaces/IBColumn.ts +10 -3
- package/src/columns/interfaces/IBColumnAnswerExpression.ts +6 -0
- package/src/columns/interfaces/IBColumnAnswerExpressionCategory.ts +7 -0
- package/src/columns/interfaces/IBColumnAnswerExpressionWord.ts +3 -0
- package/src/columns/interfaces/IBColumnAnswerGeneral.ts +4 -0
- package/src/columns/interfaces/IBColumnAnswerImages.ts +6 -0
- package/src/columns/interfaces/IBColumnAnswerLookupAnswer.ts +6 -0
- package/src/columns/interfaces/IBColumnAnswerLookupAnswerAnswer.ts +6 -0
- package/src/columns/interfaces/IBColumnAnswerLookupValue.ts +5 -0
- package/src/columns/interfaces/IBColumnAnswerLookupValueValue.ts +8 -0
- package/src/columns/interfaces/IBColumnAnswerSlidebar.ts +3 -0
- package/src/columns/interfaces/IColumn.ts +9 -3
- package/src/columns/interfaces/IColumnImageUploadOption.ts +3 -0
- package/src/columns/interfaces/index.ts +12 -0
- package/src/dates/adapters/index.ts +5 -0
- package/src/dates/constants/DATETIME_COLUMN_FORMAT.ts +8 -0
- package/src/dates/constants/index.ts +2 -0
- package/src/dates/helpers/index.ts +1 -0
- package/src/dates/index.ts +1 -0
- package/src/dates/relative/constants/RELATIVE_CURSOR_INFO_LIST.ts +1 -1
- package/src/filters/adapters/FDToFlatUI.ts +2 -1
- package/src/filters/adapters/FDToUI.ts +2 -3
- package/src/filters/adapters/UIToFlatUI.ts +1 -0
- package/src/filters/adapters/UIToOldLogic.ts +4 -3
- package/src/filters/adapters/adaptFilterValues.ts +2 -2
- package/src/filters/adapters/flatUIToFD.ts +1 -0
- package/src/filters/adapters/flatUIToOldLogic.ts +36 -32
- package/src/filters/adapters/flatUIToUI.ts +1 -0
- package/src/filters/adapters/index.ts +4 -0
- package/src/filters/adapters/logicToFlatUI.ts +3 -2
- package/src/filters/adapters/modelAnswerToFilterValue.ts +15 -0
- package/src/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.ts +1 -1
- package/src/filters/constants/builder/STATIC_OPTION_COLUMNS.ts +2 -1
- package/src/filters/constants/builder/index.ts +1 -0
- package/src/filters/helpers/OLD_getAggFilters.ts +90 -0
- package/src/filters/helpers/backend/buildExpression.ts +2 -2
- package/src/filters/helpers/backend/getBackendValidator.ts +5 -5
- package/src/filters/helpers/backend/getBackendValues.ts +14 -12
- package/src/filters/helpers/backend/index.ts +2 -1
- package/src/filters/helpers/builder/getFilterBuilderGeneralConfig.ts +3 -2
- package/src/filters/helpers/common/excludeFiltersByParams.ts +3 -3
- package/src/filters/helpers/common/getFiltersByParams.ts +4 -4
- package/src/filters/helpers/common/getMergeFiltersSettings.ts +2 -2
- package/src/filters/helpers/common/getParamsToGetFilterSettings.ts +2 -2
- package/src/filters/helpers/common/getValuesFromDataset.ts +19 -0
- package/src/filters/helpers/common/getValuesFromModel.ts +19 -0
- package/src/filters/helpers/common/index.ts +6 -1
- package/src/filters/helpers/common/mergeFilters.ts +20 -18
- package/src/filters/helpers/index.ts +3 -0
- package/src/filters/helpers/ui/getQrveyIdsByUIFilters.ts +22 -0
- package/src/filters/helpers/ui/getUIFlatFilterByParams.ts +1 -1
- package/src/filters/helpers/ui/getUIFlatFiltersByParams.ts +1 -1
- package/src/filters/helpers/ui/getUIValues.ts +23 -15
- package/src/filters/helpers/ui/getUpdatedUIFilters.ts +36 -0
- package/src/filters/helpers/ui/index.ts +4 -0
- package/src/filters/helpers/ui/{resolveUIFlatFiltersByParams.ts → resolveUIFlatFilterByParams.ts} +3 -2
- package/src/filters/helpers/ui/transformFilterValues.ts +30 -0
- package/src/filters/index.ts +1 -0
- package/src/filters/interfaces/OLD_IFilterDetail.ts +3 -1
- package/src/filters/interfaces/backend/IFBData.ts +6 -0
- package/src/filters/interfaces/backend/index.ts +2 -0
- package/src/filters/interfaces/builder/IFilterBuilderConfig.ts +3 -5
- package/src/filters/interfaces/builder/index.ts +0 -1
- package/src/filters/interfaces/common/IFSColumn.ts +1 -1
- package/src/filters/interfaces/common/IFSFilter.ts +2 -1
- package/src/filters/interfaces/common/IFSFilterExtras.ts +2 -0
- package/src/filters/interfaces/common/IFSGetDataValues.ts +3 -0
- package/src/filters/interfaces/common/IFSParamsToGetFilter.ts +2 -0
- package/src/filters/interfaces/common/IFilterConfig.ts +3 -0
- package/src/filters/interfaces/common/index.ts +2 -2
- package/src/filters/interfaces/functions/IFFiltersGetData.ts +18 -0
- package/src/filters/interfaces/functions/IFFiltersGetValuesFromDataset.ts +11 -0
- package/src/filters/interfaces/functions/IFFiltersGetValuesFromModel.ts +11 -0
- package/src/filters/interfaces/{common/IFSMergeFiltersSettings.ts → functions/IFFiltersMergeFilters.ts} +1 -1
- package/src/filters/interfaces/{common/IFSParamsToGetFilterSettings.ts → functions/IFFiltersParamsToGetFilter.ts} +1 -1
- package/src/filters/interfaces/functions/index.ts +5 -0
- package/src/filters/interfaces/panel/IFPSettingsGeneral.ts +2 -1
- package/src/filters/interfaces/panel/IFilterPanelConfig.ts +2 -2
- package/src/filters/interfaces/ui/IFUColumn.ts +2 -2
- package/src/filters/interfaces/ui/IFUTransformFilterValuesSettings.ts +8 -0
- package/src/filters/interfaces/ui/index.ts +4 -3
- package/src/filters/services/Filters.api.ts +151 -0
- package/src/filters/services/UChartApi.ts +265 -0
- package/src/filters/services/UChartPaginationApi.ts +328 -0
- package/src/filters/services/index.ts +3 -0
- package/src/format/definition.ts +50 -0
- package/src/format/format.ts +19 -15
- package/src/format/index.ts +1 -0
- package/src/format/localization.ts +75 -0
- package/src/general/array/getArrayByProperty.ts +14 -0
- package/src/general/array/getUniqueArray.ts +11 -0
- package/src/general/array/index.ts +1 -0
- package/src/globalization/helpers/getI18nCalendar.ts +68 -0
- package/src/globalization/helpers/index.ts +1 -0
- package/src/globalization/interfaces/II18nConfig.ts +7 -0
- package/src/globalization/interfaces/{IResourceI18n.ts → II18nResource.ts} +3 -1
- package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.ts +2 -0
- package/src/globalization/interfaces/calendar/II18nCalendar.ts +7 -0
- package/src/globalization/interfaces/calendar/II18nCalendarProperties.ts +9 -0
- package/src/globalization/interfaces/calendar/index.ts +2 -0
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderDimensions.ts +1 -0
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderFontOptions.ts +5 -3
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderRefernceLine.ts +1 -0
- package/src/globalization/interfaces/chart_builder/II18nChartBuilderTableCalculation.ts +1 -0
- package/src/globalization/interfaces/common/II18nCommon.ts +2 -0
- package/src/globalization/interfaces/common/II18nDayNames.ts +8 -0
- package/src/globalization/interfaces/dashboard/II18nDashboard.ts +2 -0
- package/src/globalization/interfaces/dashboard/II18nDashboardMessages.ts +6 -0
- package/src/globalization/interfaces/dashboard/index.ts +1 -0
- package/src/globalization/interfaces/filters/II18nFilter.ts +4 -0
- package/src/globalization/interfaces/filters/II18nFilterExtraInfo.ts +4 -0
- package/src/globalization/interfaces/filters/II18nFilterPanel.ts +2 -0
- package/src/globalization/interfaces/filters/II18nRelativeContainer.ts +1 -0
- package/src/globalization/interfaces/filters/II18nTokenBox.ts +6 -0
- package/src/globalization/interfaces/filters/II18nValueContainer.ts +1 -1
- package/src/globalization/interfaces/filters/index.ts +1 -0
- package/src/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.ts +3 -1
- package/src/globalization/interfaces/index.ts +7 -2
- package/src/globalization/interfaces/style_themes/II18nStyleThemes.ts +14 -0
- package/src/globalization/interfaces/style_themes/II18nStyleThemesDeleteDialog.ts +6 -0
- package/src/globalization/interfaces/style_themes/II18nStyleThemesMenu.ts +6 -0
- package/src/globalization/interfaces/style_themes/II18nStyleThemesMessages.ts +9 -0
- package/src/globalization/interfaces/style_themes/II18nStyleThemesTheme.ts +27 -0
- package/src/globalization/interfaces/style_themes/II18nStyleThemesTooltips.ts +4 -0
- package/src/globalization/interfaces/style_themes/index.ts +6 -0
- package/src/globalization/interfaces/table_charts/II18nTableChartsPagination.ts +1 -0
- package/src/globalization/labels/I18N_DEFAULT.ts +4 -2
- package/src/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.ts +2 -0
- package/src/globalization/labels/calendar/I18N_CALENDAR.ts +9 -0
- package/src/globalization/labels/calendar/index.ts +1 -0
- package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER.ts +1 -1
- package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_COMPARISION_OPTIONS.ts +1 -1
- package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_FORMAT_OPTIONS.ts +1 -1
- package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.ts +3 -2
- package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.ts +3 -1
- package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.ts +4 -3
- package/src/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.ts +10 -8
- package/src/globalization/labels/common/I18N_COMMON.ts +2 -0
- package/src/globalization/labels/common/I18N_DAY_NAMES.ts +8 -0
- package/src/globalization/labels/dashboard/I18N_DASHBOARD.ts +6 -0
- package/src/globalization/labels/filters/I18N_FILTER.ts +10 -0
- package/src/globalization/labels/filters/I18N_FILTER_PANEL.ts +2 -0
- package/src/globalization/labels/filters/I18N_RELATIVE_CONTAINER.ts +1 -0
- package/src/globalization/labels/filters/I18N_VALUE_CONTAINER.ts +1 -1
- package/src/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.ts +5 -3
- package/src/globalization/labels/index.ts +6 -3
- package/src/globalization/labels/panel/I18N_PANEL.ts +1 -1
- package/src/globalization/labels/style_themes/I18N_STYLE_THEMES.ts +57 -0
- package/src/globalization/labels/style_themes/index.ts +1 -0
- package/src/globalization/labels/table_charts/I18N_TABLE_CHARTS.ts +1 -0
- package/src/globalization/service/i18nextBuilder.ts +4 -4
- package/src/globalization/service/initI18n.ts +3 -3
- package/src/interfaces/Qrvey.Interface.ts +1 -27
- package/src/interfaces/format/IFormatConfig.Interface.ts +5 -0
- package/src/interfaces/format/IFormatCurrency.Interface.ts +4 -0
- package/src/interfaces/format/IFormatOutputFormat.Interface.ts +10 -0
- package/src/interfaces/format/index.ts +3 -0
- package/src/interfaces/general/IGeneralWidgetConfig.ts +5 -3
- package/src/interfaces/general/IWidgetConfig.ts +11 -0
- package/src/interfaces/general/index.ts +1 -0
- package/src/interfaces/index.ts +1 -0
- package/src/qrvey/constants/APP_DATASET_TYPE_LIST.ts +14 -0
- package/src/qrvey/constants/APP_FORM_TYPE_LIST.ts +12 -0
- package/src/qrvey/constants/APP_STATUS.ts +6 -0
- package/src/qrvey/constants/APP_STATUS_LIST.ts +11 -0
- package/src/qrvey/constants/APP_TYPE.ts +17 -0
- package/src/qrvey/constants/index.ts +6 -0
- package/src/qrvey/helpers/areStaticColumnValues.ts +15 -0
- package/src/qrvey/helpers/getCategorizableExpression.ts +20 -0
- package/src/qrvey/helpers/getDataAnswersByColumn.ts +56 -0
- package/src/qrvey/helpers/getDropdownAnswers.ts +13 -0
- package/src/qrvey/helpers/getExpressionAnswers.ts +21 -0
- package/src/qrvey/helpers/getImageAnswers.ts +16 -0
- package/src/qrvey/helpers/getImageUploadHasAnalysis.ts +23 -0
- package/src/qrvey/helpers/getLookupAnswers.ts +17 -0
- package/src/qrvey/helpers/getLookupDisplays.ts +9 -0
- package/src/qrvey/helpers/getRatingAnswers.ts +10 -0
- package/src/qrvey/helpers/getSlidebarAnswers.ts +16 -0
- package/src/qrvey/helpers/getSuffixTranslateByColumn.ts +13 -0
- package/src/qrvey/helpers/getValueWithSuffixes.ts +19 -0
- package/src/qrvey/helpers/getYesNoAnswers.ts +12 -0
- package/src/qrvey/helpers/index.ts +17 -1
- package/src/qrvey/helpers/isDataset.ts +6 -0
- package/src/qrvey/helpers/isForm.ts +6 -0
- package/src/qrvey/helpers/transformValue.ts +49 -0
- package/src/qrvey/interfaces/IAppStatus.ts +3 -0
- package/src/qrvey/interfaces/IAppType.ts +3 -0
- package/src/qrvey/interfaces/IBModel.ts +20 -0
- package/src/qrvey/interfaces/IBModelBranchesMap.ts +6 -0
- package/src/qrvey/interfaces/IBModelBranchesMapBranch.ts +5 -0
- package/src/qrvey/interfaces/IBModelData.ts +5 -0
- package/src/qrvey/interfaces/IDataset.ts +1 -1
- package/src/qrvey/interfaces/IFunctionGetDataAnswersByColumn.ts +12 -0
- package/src/qrvey/interfaces/IFunctionGetValueWithSuffixes.ts +12 -0
- package/src/qrvey/interfaces/IModel.ts +11 -0
- package/src/qrvey/interfaces/IModelAnswer.ts +5 -0
- package/src/qrvey/interfaces/IModelBranchesMap.ts +6 -0
- package/src/qrvey/interfaces/IModelBranchesMapBranch.ts +5 -0
- package/src/qrvey/interfaces/IModelColumn.ts +25 -0
- package/src/qrvey/interfaces/IModelDataset.ts +7 -0
- package/src/qrvey/interfaces/ITransformValueSettings.ts +13 -0
- package/src/qrvey/interfaces/index.ts +20 -0
- package/src/services/adapters/BBranchesMapToUIBranchesMap.adapter.ts +20 -0
- package/src/services/adapters/BColumnsToUIColumns.adapter.ts +9 -1
- package/src/services/adapters/BDatasetsToUIDatasets.adapter.ts +4 -4
- package/src/services/adapters/BModelToUIModel.adapter.ts +25 -0
- package/src/services/adapters/index.ts +1 -0
- package/src/services/api/Charts.api.ts +44 -0
- package/src/services/api/getAllDatasets.api.ts +22 -15
- package/src/services/api/getAllQrveys.api.ts +1 -1
- package/src/services/api/getDatasetColumns.api.ts +11 -8
- package/src/services/api/getDatasetsByIds.api.ts +26 -0
- package/src/services/api/getModel.api.ts +10 -0
- package/src/services/api/index.ts +2 -0
- package/src/services/constants/MODEL_ENDPOINT.ts +6 -0
- package/src/services/constants/QUESTION_LIST_BULK_ENDPOINT.ts +6 -0
- package/src/services/constants/UCHART_ENDPOINT.ts +6 -0
- package/src/services/constants/UCHART_PAGINATION_ENDPOINT.ts +6 -0
- package/src/services/constants/index.ts +6 -0
- package/src/services/helpers/getDefaultQuestionListOptionsAttributes.ts +24 -0
- package/src/services/helpers/index.ts +1 -0
- package/test/columns/isNumericalColumn.test.js +154 -0
- package/test/format.test.js +11 -11
- package/dist/cjs/filters/interfaces/builder/IFilterBuilderGeneralConfig.d.ts +0 -11
- package/dist/filters/interfaces/builder/IFilterBuilderGeneralConfig.d.ts +0 -11
- package/src/filters/interfaces/builder/IFilterBuilderGeneralConfig.ts +0 -11
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.
|
|
1
|
+
# [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.10-0*
|
|
2
2
|
|
|
3
3
|
> Helper, Utils for all Qrvey Projects
|
|
4
4
|
|
|
@@ -80,6 +80,1570 @@ Get a text and evaluate if it matchs with a token box label.
|
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
|
|
83
|
+
### dist/dates/adapters/mdyDateToDate.js
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
#### mdyDateToDate(monthYearDate, time)
|
|
87
|
+
|
|
88
|
+
Transforms String Date from a [mm/dd/yyyy] format to Date object.
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
##### Parameters
|
|
94
|
+
|
|
95
|
+
| Name | Type | Description | |
|
|
96
|
+
| ---- | ---- | ----------- | -------- |
|
|
97
|
+
| monthYearDate | | String of [mm/dd/yyyy] date | |
|
|
98
|
+
| time | | Flag to parse the object date to milliseconds. | |
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
##### Returns
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
- The date object or the date in milliseconds
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
### dist/dates/adapters/monthYearToDate.js
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
#### monthYearToDate(monthYearDate, time)
|
|
115
|
+
|
|
116
|
+
Transforms String Date from a [Month Year] format to Date object.
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
##### Parameters
|
|
122
|
+
|
|
123
|
+
| Name | Type | Description | |
|
|
124
|
+
| ---- | ---- | ----------- | -------- |
|
|
125
|
+
| monthYearDate | | String of [Month Year] date | |
|
|
126
|
+
| time | | Flag to parse the object date to milliseconds. | |
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
##### Returns
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
- The date object or the date in milliseconds
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
### dist/dates/adapters/quarterYearToDate.js
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
#### quarterYearToDate(quarterYearDate, time)
|
|
143
|
+
|
|
144
|
+
Transforms String Date from a [Quarter Year] format to Date object.
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
##### Parameters
|
|
150
|
+
|
|
151
|
+
| Name | Type | Description | |
|
|
152
|
+
| ---- | ---- | ----------- | -------- |
|
|
153
|
+
| quarterYearDate | | String of [Quarter Year] date | |
|
|
154
|
+
| time | | Flag to parse the object date to milliseconds. | |
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
##### Returns
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
- The date object or the date in milliseconds
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
### dist/dates/adapters/weekYearToDate.js
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
#### weekYearToDate(date, time)
|
|
171
|
+
|
|
172
|
+
Transforms String Date from a [Week Year] format to Date object.
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
##### Parameters
|
|
178
|
+
|
|
179
|
+
| Name | Type | Description | |
|
|
180
|
+
| ---- | ---- | ----------- | -------- |
|
|
181
|
+
| date | | String of [Week Year] date | |
|
|
182
|
+
| time | | Flag to parse the object date to milliseconds. | |
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
##### Returns
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
- The date object or the date in milliseconds
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
### dist/dates/adapters/yearToDate.js
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
#### yearToDate(yearDate, time)
|
|
199
|
+
|
|
200
|
+
Transforms String Date from a [Year] format to Date object.
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
##### Parameters
|
|
206
|
+
|
|
207
|
+
| Name | Type | Description | |
|
|
208
|
+
| ---- | ---- | ----------- | -------- |
|
|
209
|
+
| yearDate | | String of [Year] date | |
|
|
210
|
+
| time | | Flag to parse the object date to milliseconds. | |
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
##### Returns
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
- The date object or the date in milliseconds
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
### dist/dates/helpers/getDateByDateFormat.js
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
#### getDateByDateFormat(date, format, time)
|
|
227
|
+
|
|
228
|
+
Gets a Date Object instance by a Date format
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
##### Parameters
|
|
234
|
+
|
|
235
|
+
| Name | Type | Description | |
|
|
236
|
+
| ---- | ---- | ----------- | -------- |
|
|
237
|
+
| date | | String with a formatted date | |
|
|
238
|
+
| format | | The date format | |
|
|
239
|
+
| time | | flag to convert the formatted date to miliseconds | |
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
##### Returns
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
- a Date object, milisecond time or the same value if date format does not match.
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
### dist/dates/helpers/getDateFormatByProperty.js
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
#### getDateFormatByProperty(property)
|
|
256
|
+
|
|
257
|
+
Gets the date format by the given property
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
##### Parameters
|
|
263
|
+
|
|
264
|
+
| Name | Type | Description | |
|
|
265
|
+
| ---- | ---- | ----------- | -------- |
|
|
266
|
+
| property | | The Column Property | |
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
##### Returns
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
- The date format
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
### dist/dates/helpers/getDateFormatRegularExpressionInArray.js
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
#### getDateFormatRegularExpressionInArray(dateFormat)
|
|
283
|
+
|
|
284
|
+
Gets an array of regular expressions by the given date format
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
##### Parameters
|
|
290
|
+
|
|
291
|
+
| Name | Type | Description | |
|
|
292
|
+
| ---- | ---- | ----------- | -------- |
|
|
293
|
+
| dateFormat | | the date format | |
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
##### Returns
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
- an array of regular expressions
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
### dist/dates/helpers/getSeparatorByDateFormat.js
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
#### getSeparatorByDateFormat(format)
|
|
310
|
+
|
|
311
|
+
Gets the separator of the date format
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
##### Parameters
|
|
317
|
+
|
|
318
|
+
| Name | Type | Description | |
|
|
319
|
+
| ---- | ---- | ----------- | -------- |
|
|
320
|
+
| format | | the date format | |
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
##### Returns
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
- a separator string
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
### dist/dates/helpers/getWeek.js
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
#### getWeek(date)
|
|
337
|
+
|
|
338
|
+
Gets the week number of the year
|
|
339
|
+
Additionally, the month and the year
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
##### Parameters
|
|
345
|
+
|
|
346
|
+
| Name | Type | Description | |
|
|
347
|
+
| ---- | ---- | ----------- | -------- |
|
|
348
|
+
| date | | the date object | |
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
##### Returns
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
- an object with the week, month and year.
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
### dist/dates/helpers/validateDate.js
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
#### validateDate(date, format)
|
|
365
|
+
|
|
366
|
+
Validate a string date depending on giving format
|
|
367
|
+
- If the string is a token label, the function lets it pass.
|
|
368
|
+
- Otherwise depends of the format
|
|
369
|
+
- Some escenarios the string is a mix of token labels and dates
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
##### Parameters
|
|
375
|
+
|
|
376
|
+
| Name | Type | Description | |
|
|
377
|
+
| ---- | ---- | ----------- | -------- |
|
|
378
|
+
| date | | String of date | |
|
|
379
|
+
| format | | String of the format to validate | |
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
##### Returns
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
- True if it is valid or not. Undefined if date is undefined
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
### dist/dates/helpers/validateDateByDateFormat.js
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
#### validateDateByDateFormat(date, dateForma)
|
|
396
|
+
|
|
397
|
+
Validates the given string as Date by its date format.
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
##### Parameters
|
|
403
|
+
|
|
404
|
+
| Name | Type | Description | |
|
|
405
|
+
| ---- | ---- | ----------- | -------- |
|
|
406
|
+
| date | | a string to validate as date form | |
|
|
407
|
+
| dateForma | | the format of the date to validate the string | |
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
##### Returns
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
- true: the string is a valida date
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
### dist/dates/range/getDateRange.js
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
#### getDateRange(value, dateGroupLabel, withTime)
|
|
424
|
+
|
|
425
|
+
Get date range object from a string date value
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
##### Parameters
|
|
431
|
+
|
|
432
|
+
| Name | Type | Description | |
|
|
433
|
+
| ---- | ---- | ----------- | -------- |
|
|
434
|
+
| value | `String` | string date value | |
|
|
435
|
+
| dateGroupLabel | `String` | could be 'YEAR', 'QUARTER', 'MONTH' or 'DAY'. Deafult is 'DAY' | |
|
|
436
|
+
| withTime | `Boolean` | determines if the date range will include time. Default is true | |
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
##### Examples
|
|
442
|
+
|
|
443
|
+
```javascript
|
|
444
|
+
// 1) Year:
|
|
445
|
+
getDateRange('2020', 'YEAR');
|
|
446
|
+
// Will return:
|
|
447
|
+
{
|
|
448
|
+
from: '01/01/2020 00:00:00',
|
|
449
|
+
to: '12/31/2020 23:59:59'
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
// 2) Quarter:
|
|
453
|
+
getDateRange('Q3 2020', 'QUARTER');
|
|
454
|
+
// Will return:
|
|
455
|
+
{
|
|
456
|
+
from: '07/01/2020 00:00:00',
|
|
457
|
+
to: '09/30/2020 23:59:59'
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
// 3) Month:
|
|
461
|
+
getDateRange('Oct 2020', 'MONTH');
|
|
462
|
+
// Will return:
|
|
463
|
+
{
|
|
464
|
+
from: '10/01/2020 00:00:00',
|
|
465
|
+
to: '10/31/2020 23:59:59'
|
|
466
|
+
}
|
|
467
|
+
```
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
##### Returns
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
- `Object` an object with the date range with two string date properties: from and to
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
### dist/dates/relative/Adapter.js
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
#### value()
|
|
482
|
+
|
|
483
|
+
Resolves statement and returns statement value
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
##### Returns
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
- `AbsoluteRange` `string`
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
#### valueAsAnchor()
|
|
498
|
+
|
|
499
|
+
Resolves statement as an anchor
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
##### Returns
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
- `string`
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
#### _statementToRange() *private method*
|
|
514
|
+
|
|
515
|
+
Convert verbal statement to range value
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
##### Returns
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
- `AbsoluteRange`
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
#### _resolveAsThis() *private method*
|
|
530
|
+
|
|
531
|
+
Apply 'this' cursor logic to statement
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
##### Returns
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
- `AbsoluteStatement`
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
#### _resolveAsTheLast() *private method*
|
|
546
|
+
|
|
547
|
+
Apply 'the last' cursor logic to statement
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
##### Returns
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
- `AbsoluteStatement`
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
#### _resolveAsTheNext() *private method*
|
|
562
|
+
|
|
563
|
+
Apply 'the next' cursor logic to statement
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
##### Returns
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
- `AbsoluteStatement`
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
#### replaceNowToken(value, now)
|
|
578
|
+
|
|
579
|
+
Replace '@now' token inside a string
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
##### Parameters
|
|
585
|
+
|
|
586
|
+
| Name | Type | Description | |
|
|
587
|
+
| ---- | ---- | ----------- | -------- |
|
|
588
|
+
| value | `string` | | |
|
|
589
|
+
| now | `Date` | | |
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
##### Returns
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
- `string`
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
#### convertRelativeToAbsolute(args)
|
|
602
|
+
|
|
603
|
+
Returns a range object (date) from a group of statement params
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
##### Parameters
|
|
609
|
+
|
|
610
|
+
| Name | Type | Description | |
|
|
611
|
+
| ---- | ---- | ----------- | -------- |
|
|
612
|
+
| args | `RelativeToAbsoluteStruct` | | |
|
|
613
|
+
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
##### Examples
|
|
618
|
+
|
|
619
|
+
```javascript
|
|
620
|
+
pivot = '2021-03-03T12:30:40'
|
|
621
|
+
unit = month
|
|
622
|
+
steps = 2
|
|
623
|
+
setTo = END
|
|
624
|
+
resolverAsCalendar: true
|
|
625
|
+
=> Returns '2021-05-31T23:59:59'
|
|
626
|
+
```
|
|
627
|
+
```javascript
|
|
628
|
+
pivot = '2021-03-03T12:30:40'
|
|
629
|
+
unit = month
|
|
630
|
+
steps = -2
|
|
631
|
+
setTo = START
|
|
632
|
+
resolverAsCalendar: false
|
|
633
|
+
=> Returns '2021-01-03T00:00:00'
|
|
634
|
+
```
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
##### Returns
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
- `string`
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
### dist/dates/relative/relative.js
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
#### resolveRelative(statements, clock)
|
|
649
|
+
|
|
650
|
+
Resolve a list of relative statements according to operator
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
##### Parameters
|
|
656
|
+
|
|
657
|
+
| Name | Type | Description | |
|
|
658
|
+
| ---- | ---- | ----------- | -------- |
|
|
659
|
+
| statements | `Array.<RelativeStatement>` `Array.<string>` | - Raw statements/values | |
|
|
660
|
+
| clock | `Date` | - Clock/time reference for relative date resolution | |
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
##### Examples
|
|
666
|
+
|
|
667
|
+
```javascript
|
|
668
|
+
Input:
|
|
669
|
+
{
|
|
670
|
+
"cursor": "the_next",
|
|
671
|
+
"unit": "year",
|
|
672
|
+
"number": 1,
|
|
673
|
+
"includeCurrent": false,
|
|
674
|
+
"isCalendarDate": false,
|
|
675
|
+
"anchor": "03/05/2021"
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
Output:
|
|
679
|
+
{ gte: "03/06/2021 00:00:00", lte: "03/05/2022 23:59:59" }
|
|
680
|
+
```
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
##### Returns
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
- `Array.<AbsoluteRange>` `Array.<string>`
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
### dist/columns/helpers/getColumnsLabel.js
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
#### getColumnLabels(column)
|
|
695
|
+
|
|
696
|
+
Get an string of the properties of the given column.
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
##### Parameters
|
|
702
|
+
|
|
703
|
+
| Name | Type | Description | |
|
|
704
|
+
| ---- | ---- | ----------- | -------- |
|
|
705
|
+
| column | | The column | |
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
##### Returns
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
- an string with the property, aggregate or calculation label.
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
### dist/columns/helpers/getModelColumn.js
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
#### getModelColumn(column, model)
|
|
722
|
+
|
|
723
|
+
Get a model question by column id.
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
##### Parameters
|
|
729
|
+
|
|
730
|
+
| Name | Type | Description | |
|
|
731
|
+
| ---- | ---- | ----------- | -------- |
|
|
732
|
+
| column | | The column with info | |
|
|
733
|
+
| model | | The model object | |
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
##### Returns
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
- the model question
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
|
|
745
|
+
#### getQuestionData(model)
|
|
746
|
+
|
|
747
|
+
[TODO: Change the question.data access path. IModel structure is different]
|
|
748
|
+
Get the question data array from model object
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
|
|
753
|
+
##### Parameters
|
|
754
|
+
|
|
755
|
+
| Name | Type | Description | |
|
|
756
|
+
| ---- | ---- | ----------- | -------- |
|
|
757
|
+
| model | | The model object | |
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
##### Returns
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
- the question data array from model object
|
|
766
|
+
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
### dist/filters/adapters/FDToFlatUI.js
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
#### FDToFlatUI(filterData, datasetsInfo)
|
|
774
|
+
|
|
775
|
+
Generates a Flattened UI filter structure from Filter Data structure.
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
##### Parameters
|
|
781
|
+
|
|
782
|
+
| Name | Type | Description | |
|
|
783
|
+
| ---- | ---- | ----------- | -------- |
|
|
784
|
+
| filterData | | The filter data object. | |
|
|
785
|
+
| datasetsInfo | | Collection of datasets information | |
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
##### Returns
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
- a flattened UI filters array
|
|
794
|
+
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
#### FD21ToFlatUI(scopes, datasetsInfo)
|
|
798
|
+
|
|
799
|
+
Generates a Filter Builder Structure from the Filter Data structure v2.1
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+
|
|
804
|
+
##### Parameters
|
|
805
|
+
|
|
806
|
+
| Name | Type | Description | |
|
|
807
|
+
| ---- | ---- | ----------- | -------- |
|
|
808
|
+
| scopes | | The filter scope section | |
|
|
809
|
+
| datasetsInfo | | Collection of datasets information | |
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
##### Returns
|
|
815
|
+
|
|
816
|
+
|
|
817
|
+
- a flattened UI filters array
|
|
818
|
+
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
### dist/filters/adapters/FDToLogic.js
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
#### FDToLogic(filterData)
|
|
826
|
+
|
|
827
|
+
Generates a Filter Logic structure from Filter Data structure.
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
|
|
832
|
+
##### Parameters
|
|
833
|
+
|
|
834
|
+
| Name | Type | Description | |
|
|
835
|
+
| ---- | ---- | ----------- | -------- |
|
|
836
|
+
| filterData | | The filter data object. | |
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
##### Returns
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
- a filter logic array
|
|
845
|
+
|
|
846
|
+
|
|
847
|
+
|
|
848
|
+
#### getLogicBodyFromFD21(filterData)
|
|
849
|
+
|
|
850
|
+
Gets the logic body
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
##### Parameters
|
|
856
|
+
|
|
857
|
+
| Name | Type | Description | |
|
|
858
|
+
| ---- | ---- | ----------- | -------- |
|
|
859
|
+
| filterData | | The filter data object | |
|
|
860
|
+
|
|
861
|
+
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
##### Returns
|
|
865
|
+
|
|
866
|
+
|
|
867
|
+
- a filter logic array
|
|
868
|
+
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
### dist/filters/adapters/FDToUI.js
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
#### FDToUI(filterData, datasetsInfo)
|
|
876
|
+
|
|
877
|
+
Generates a UI filter structure from Filter Data structure.
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
##### Parameters
|
|
883
|
+
|
|
884
|
+
| Name | Type | Description | |
|
|
885
|
+
| ---- | ---- | ----------- | -------- |
|
|
886
|
+
| filterData | | The filter data object. | |
|
|
887
|
+
| datasetsInfo | | Collection of datasets information | |
|
|
888
|
+
|
|
889
|
+
|
|
890
|
+
|
|
891
|
+
|
|
892
|
+
##### Returns
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
- a UI Filters structure
|
|
896
|
+
|
|
897
|
+
|
|
898
|
+
|
|
899
|
+
#### FD21ToUI(scopes, section, version, datasetsInfo)
|
|
900
|
+
|
|
901
|
+
Generates a UI filter Structure from the Filter Data structure v2.1
|
|
902
|
+
|
|
903
|
+
|
|
904
|
+
|
|
905
|
+
|
|
906
|
+
##### Parameters
|
|
907
|
+
|
|
908
|
+
| Name | Type | Description | |
|
|
909
|
+
| ---- | ---- | ----------- | -------- |
|
|
910
|
+
| scopes | | The filter scope section | |
|
|
911
|
+
| section | | The filter section. | |
|
|
912
|
+
| version | | The version of the filter structure | |
|
|
913
|
+
| datasetsInfo | | Collection of datasets information | |
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
|
|
918
|
+
##### Returns
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
- a UI filter Structure
|
|
922
|
+
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
|
|
926
|
+
### dist/filters/adapters/UIToFD.js
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
#### UIToFD(filterData)
|
|
930
|
+
|
|
931
|
+
Generates a Filter Data Structure structure from UI Filter Data structure.
|
|
932
|
+
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
##### Parameters
|
|
937
|
+
|
|
938
|
+
| Name | Type | Description | |
|
|
939
|
+
| ---- | ---- | ----------- | -------- |
|
|
940
|
+
| filterData | | The UI filter data object. | |
|
|
941
|
+
|
|
942
|
+
|
|
943
|
+
|
|
944
|
+
|
|
945
|
+
##### Returns
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
- a Filter Data structure
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
|
|
952
|
+
#### UI21ToFD(uFilterData, version)
|
|
953
|
+
|
|
954
|
+
Builds the Fitler Data structure from UI filter data
|
|
955
|
+
|
|
956
|
+
|
|
957
|
+
|
|
958
|
+
|
|
959
|
+
##### Parameters
|
|
960
|
+
|
|
961
|
+
| Name | Type | Description | |
|
|
962
|
+
| ---- | ---- | ----------- | -------- |
|
|
963
|
+
| uFilterData | | The UI filter Data object | |
|
|
964
|
+
| version | | the version of the structure | |
|
|
965
|
+
|
|
966
|
+
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
##### Returns
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
-
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
### dist/filters/adapters/UIToFlatUI.js
|
|
978
|
+
|
|
979
|
+
|
|
980
|
+
#### UIToFlatUI(filterData, datasetsInfo)
|
|
981
|
+
|
|
982
|
+
Generates a Flattened UI filter structure from UI Filter Data structure.
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
|
|
987
|
+
##### Parameters
|
|
988
|
+
|
|
989
|
+
| Name | Type | Description | |
|
|
990
|
+
| ---- | ---- | ----------- | -------- |
|
|
991
|
+
| filterData | | The UI filter data object. | |
|
|
992
|
+
| datasetsInfo | | Collection of datasets information. Optional for updating the datasets info | |
|
|
993
|
+
|
|
994
|
+
|
|
995
|
+
|
|
996
|
+
|
|
997
|
+
##### Returns
|
|
998
|
+
|
|
999
|
+
|
|
1000
|
+
- a flattened UI filters array
|
|
1001
|
+
|
|
1002
|
+
|
|
1003
|
+
|
|
1004
|
+
#### UI21ToFlatUI(scopes)
|
|
1005
|
+
|
|
1006
|
+
Generates a Flattened UI Filter Structure from the UI Filter Data structure v2.1
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
|
|
1010
|
+
|
|
1011
|
+
##### Parameters
|
|
1012
|
+
|
|
1013
|
+
| Name | Type | Description | |
|
|
1014
|
+
| ---- | ---- | ----------- | -------- |
|
|
1015
|
+
| scopes | | The filter scope section | |
|
|
1016
|
+
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
|
|
1020
|
+
##### Returns
|
|
1021
|
+
|
|
1022
|
+
|
|
1023
|
+
- a flattened UI filters array
|
|
1024
|
+
|
|
1025
|
+
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
### dist/filters/adapters/adaptDateGroupingProperty.js
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
#### adaptDateGroupingProperty(property)
|
|
1032
|
+
|
|
1033
|
+
[TODO: For 2022, eliminate this adapter]
|
|
1034
|
+
Get the new property base on the old date grouping properties
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
##### Parameters
|
|
1040
|
+
|
|
1041
|
+
| Name | Type | Description | |
|
|
1042
|
+
| ---- | ---- | ----------- | -------- |
|
|
1043
|
+
| property | | | |
|
|
1044
|
+
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
|
|
1048
|
+
##### Returns
|
|
1049
|
+
|
|
1050
|
+
|
|
1051
|
+
-
|
|
1052
|
+
|
|
1053
|
+
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
### dist/filters/adapters/adaptFilterData.js
|
|
1057
|
+
|
|
1058
|
+
|
|
1059
|
+
#### adaptFilterData(filterData, getUIFilterData, datasetsInfo)
|
|
1060
|
+
|
|
1061
|
+
Checks and adapts the v2.0 Filter Data Structure to the v2.1
|
|
1062
|
+
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
|
|
1066
|
+
##### Parameters
|
|
1067
|
+
|
|
1068
|
+
| Name | Type | Description | |
|
|
1069
|
+
| ---- | ---- | ----------- | -------- |
|
|
1070
|
+
| filterData | | The filter data structure. Accepts both v2.1 or v2.0 | |
|
|
1071
|
+
| getUIFilterData | | Flag to get a Filter Data (False) or the UI Filter Data (True) | |
|
|
1072
|
+
| datasetsInfo | | Collection of datasets information. If getUIFilterData is true, the datasetsInfo should be mandatory | |
|
|
1073
|
+
|
|
1074
|
+
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
##### Returns
|
|
1078
|
+
|
|
1079
|
+
|
|
1080
|
+
- A new filter data structure v2.1
|
|
1081
|
+
|
|
1082
|
+
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
### dist/filters/adapters/adaptFilterValues.js
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
|
+
#### adaptFilterValues(filter)
|
|
1089
|
+
|
|
1090
|
+
[TODO: For 2022, eliminate this adapter]
|
|
1091
|
+
Gets an adapted filter value array. Validates the enabled property and sets
|
|
1092
|
+
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
|
|
1096
|
+
##### Parameters
|
|
1097
|
+
|
|
1098
|
+
| Name | Type | Description | |
|
|
1099
|
+
| ---- | ---- | ----------- | -------- |
|
|
1100
|
+
| filter | | The filter | |
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
|
|
1105
|
+
##### Returns
|
|
1106
|
+
|
|
1107
|
+
|
|
1108
|
+
- A new value array with the filled properties.
|
|
1109
|
+
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
### dist/filters/adapters/flatUIToFD.js
|
|
1114
|
+
|
|
1115
|
+
|
|
1116
|
+
#### flatUIToFD(uFilters, version)
|
|
1117
|
+
|
|
1118
|
+
Generates a filter data structure from the flatttened UI filters.
|
|
1119
|
+
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
|
|
1123
|
+
##### Parameters
|
|
1124
|
+
|
|
1125
|
+
| Name | Type | Description | |
|
|
1126
|
+
| ---- | ---- | ----------- | -------- |
|
|
1127
|
+
| uFilters | | Array of flattened filters from UI | |
|
|
1128
|
+
| version | | Tag for the version of the filter data structure | |
|
|
1129
|
+
|
|
1130
|
+
|
|
1131
|
+
|
|
1132
|
+
|
|
1133
|
+
##### Returns
|
|
1134
|
+
|
|
1135
|
+
|
|
1136
|
+
- a Filter Data.
|
|
1137
|
+
|
|
1138
|
+
|
|
1139
|
+
|
|
1140
|
+
#### buildScopes(fbFilters)
|
|
1141
|
+
|
|
1142
|
+
Gets an array of scopes structure for the filter data. The scopes is organized by scope types and scope IDs
|
|
1143
|
+
Also, adds and organizes filters by datasets
|
|
1144
|
+
|
|
1145
|
+
|
|
1146
|
+
|
|
1147
|
+
|
|
1148
|
+
##### Parameters
|
|
1149
|
+
|
|
1150
|
+
| Name | Type | Description | |
|
|
1151
|
+
| ---- | ---- | ----------- | -------- |
|
|
1152
|
+
| fbFilters | | Array of flat filters from UI | |
|
|
1153
|
+
|
|
1154
|
+
|
|
1155
|
+
|
|
1156
|
+
|
|
1157
|
+
##### Returns
|
|
1158
|
+
|
|
1159
|
+
|
|
1160
|
+
- an array of scopes structure.
|
|
1161
|
+
|
|
1162
|
+
|
|
1163
|
+
|
|
1164
|
+
#### buildScope(uFilter)
|
|
1165
|
+
|
|
1166
|
+
Gets an scope structure for the filter data
|
|
1167
|
+
|
|
1168
|
+
|
|
1169
|
+
|
|
1170
|
+
|
|
1171
|
+
##### Parameters
|
|
1172
|
+
|
|
1173
|
+
| Name | Type | Description | |
|
|
1174
|
+
| ---- | ---- | ----------- | -------- |
|
|
1175
|
+
| uFilter | | UI structure filter | |
|
|
1176
|
+
|
|
1177
|
+
|
|
1178
|
+
|
|
1179
|
+
|
|
1180
|
+
##### Returns
|
|
1181
|
+
|
|
1182
|
+
|
|
1183
|
+
- an scope structure
|
|
1184
|
+
|
|
1185
|
+
|
|
1186
|
+
|
|
1187
|
+
#### buildDataset(uFilter)
|
|
1188
|
+
|
|
1189
|
+
Gets an dataset structure for the filter data
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
|
|
1193
|
+
|
|
1194
|
+
##### Parameters
|
|
1195
|
+
|
|
1196
|
+
| Name | Type | Description | |
|
|
1197
|
+
| ---- | ---- | ----------- | -------- |
|
|
1198
|
+
| uFilter | | a UI structure filter | |
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
|
|
1202
|
+
|
|
1203
|
+
##### Returns
|
|
1204
|
+
|
|
1205
|
+
|
|
1206
|
+
- an dataset structure
|
|
1207
|
+
|
|
1208
|
+
|
|
1209
|
+
|
|
1210
|
+
#### buildFilter(uFilter)
|
|
1211
|
+
|
|
1212
|
+
Gets an filter structure for the filter data
|
|
1213
|
+
|
|
1214
|
+
|
|
1215
|
+
|
|
1216
|
+
|
|
1217
|
+
##### Parameters
|
|
1218
|
+
|
|
1219
|
+
| Name | Type | Description | |
|
|
1220
|
+
| ---- | ---- | ----------- | -------- |
|
|
1221
|
+
| uFilter | | a UI structure filter | |
|
|
1222
|
+
|
|
1223
|
+
|
|
1224
|
+
|
|
1225
|
+
|
|
1226
|
+
##### Returns
|
|
1227
|
+
|
|
1228
|
+
|
|
1229
|
+
- an filter structure
|
|
1230
|
+
|
|
1231
|
+
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
### dist/filters/adapters/flatUIToLogic.js
|
|
1235
|
+
|
|
1236
|
+
|
|
1237
|
+
#### flatUIToLogic(uFilter)
|
|
1238
|
+
|
|
1239
|
+
Generates a Logic structure from flattened UI filters
|
|
1240
|
+
|
|
1241
|
+
|
|
1242
|
+
|
|
1243
|
+
|
|
1244
|
+
##### Parameters
|
|
1245
|
+
|
|
1246
|
+
| Name | Type | Description | |
|
|
1247
|
+
| ---- | ---- | ----------- | -------- |
|
|
1248
|
+
| uFilter | | Array of flat filters from UI | |
|
|
1249
|
+
|
|
1250
|
+
|
|
1251
|
+
|
|
1252
|
+
|
|
1253
|
+
##### Returns
|
|
1254
|
+
|
|
1255
|
+
|
|
1256
|
+
- The logic structure
|
|
1257
|
+
|
|
1258
|
+
|
|
1259
|
+
|
|
1260
|
+
|
|
1261
|
+
### dist/filters/adapters/flatUIToOldLogic.js
|
|
1262
|
+
|
|
1263
|
+
|
|
1264
|
+
#### flatUIToOldLogic(uFilters)
|
|
1265
|
+
|
|
1266
|
+
Generates a Logic structure from flattened UI filters
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
|
|
1270
|
+
|
|
1271
|
+
##### Parameters
|
|
1272
|
+
|
|
1273
|
+
| Name | Type | Description | |
|
|
1274
|
+
| ---- | ---- | ----------- | -------- |
|
|
1275
|
+
| uFilters | | Array of flat filters from UI | |
|
|
1276
|
+
|
|
1277
|
+
|
|
1278
|
+
|
|
1279
|
+
|
|
1280
|
+
##### Returns
|
|
1281
|
+
|
|
1282
|
+
|
|
1283
|
+
- The logic structure
|
|
1284
|
+
|
|
1285
|
+
|
|
1286
|
+
|
|
1287
|
+
|
|
1288
|
+
### dist/filters/adapters/flatUIToUI.js
|
|
1289
|
+
|
|
1290
|
+
|
|
1291
|
+
#### flatUIToUI(uFilters, version)
|
|
1292
|
+
|
|
1293
|
+
Generates a UI filter data structure from the flatttened UI filters.
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
|
|
1297
|
+
|
|
1298
|
+
##### Parameters
|
|
1299
|
+
|
|
1300
|
+
| Name | Type | Description | |
|
|
1301
|
+
| ---- | ---- | ----------- | -------- |
|
|
1302
|
+
| uFilters | | Array of flattened filters from UI | |
|
|
1303
|
+
| version | | Tag for the version of the filter data structure | |
|
|
1304
|
+
|
|
1305
|
+
|
|
1306
|
+
|
|
1307
|
+
|
|
1308
|
+
##### Returns
|
|
1309
|
+
|
|
1310
|
+
|
|
1311
|
+
- a UI Filter Data.
|
|
1312
|
+
|
|
1313
|
+
|
|
1314
|
+
|
|
1315
|
+
#### buildScopes(fbFilters)
|
|
1316
|
+
|
|
1317
|
+
Gets an array of scopes structure for the UI filter data. The scopes is organized by scope types and scope IDs
|
|
1318
|
+
Also, adds and organizes filters by datasets
|
|
1319
|
+
|
|
1320
|
+
|
|
1321
|
+
|
|
1322
|
+
|
|
1323
|
+
##### Parameters
|
|
1324
|
+
|
|
1325
|
+
| Name | Type | Description | |
|
|
1326
|
+
| ---- | ---- | ----------- | -------- |
|
|
1327
|
+
| fbFilters | | Array of flat filters from UI | |
|
|
1328
|
+
|
|
1329
|
+
|
|
1330
|
+
|
|
1331
|
+
|
|
1332
|
+
##### Returns
|
|
1333
|
+
|
|
1334
|
+
|
|
1335
|
+
- an array of scopes structure.
|
|
1336
|
+
|
|
1337
|
+
|
|
1338
|
+
|
|
1339
|
+
#### buildScope(uFilter)
|
|
1340
|
+
|
|
1341
|
+
Gets an scope structure for the UI filter data
|
|
1342
|
+
|
|
1343
|
+
|
|
1344
|
+
|
|
1345
|
+
|
|
1346
|
+
##### Parameters
|
|
1347
|
+
|
|
1348
|
+
| Name | Type | Description | |
|
|
1349
|
+
| ---- | ---- | ----------- | -------- |
|
|
1350
|
+
| uFilter | | UI structure filter | |
|
|
1351
|
+
|
|
1352
|
+
|
|
1353
|
+
|
|
1354
|
+
|
|
1355
|
+
##### Returns
|
|
1356
|
+
|
|
1357
|
+
|
|
1358
|
+
- an scope structure
|
|
1359
|
+
|
|
1360
|
+
|
|
1361
|
+
|
|
1362
|
+
#### buildDataset(uFilter)
|
|
1363
|
+
|
|
1364
|
+
Gets an dataset structure for the UI filter data
|
|
1365
|
+
|
|
1366
|
+
|
|
1367
|
+
|
|
1368
|
+
|
|
1369
|
+
##### Parameters
|
|
1370
|
+
|
|
1371
|
+
| Name | Type | Description | |
|
|
1372
|
+
| ---- | ---- | ----------- | -------- |
|
|
1373
|
+
| uFilter | | a UI structure filter | |
|
|
1374
|
+
|
|
1375
|
+
|
|
1376
|
+
|
|
1377
|
+
|
|
1378
|
+
##### Returns
|
|
1379
|
+
|
|
1380
|
+
|
|
1381
|
+
- an dataset structure
|
|
1382
|
+
|
|
1383
|
+
|
|
1384
|
+
|
|
1385
|
+
#### buildFilter(uFilter)
|
|
1386
|
+
|
|
1387
|
+
Gets an filter structure for the UI filter data
|
|
1388
|
+
|
|
1389
|
+
|
|
1390
|
+
|
|
1391
|
+
|
|
1392
|
+
##### Parameters
|
|
1393
|
+
|
|
1394
|
+
| Name | Type | Description | |
|
|
1395
|
+
| ---- | ---- | ----------- | -------- |
|
|
1396
|
+
| uFilter | | a UI structure filter | |
|
|
1397
|
+
|
|
1398
|
+
|
|
1399
|
+
|
|
1400
|
+
|
|
1401
|
+
##### Returns
|
|
1402
|
+
|
|
1403
|
+
|
|
1404
|
+
- an filter structure
|
|
1405
|
+
|
|
1406
|
+
|
|
1407
|
+
|
|
1408
|
+
|
|
1409
|
+
### dist/filters/adapters/logicToFD.js
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
#### logicToFD(filterData, version)
|
|
1413
|
+
|
|
1414
|
+
Generates a filter data structure from the old logic structure (v2.0).
|
|
1415
|
+
|
|
1416
|
+
|
|
1417
|
+
|
|
1418
|
+
|
|
1419
|
+
##### Parameters
|
|
1420
|
+
|
|
1421
|
+
| Name | Type | Description | |
|
|
1422
|
+
| ---- | ---- | ----------- | -------- |
|
|
1423
|
+
| filterData | | The old filter data structure with logic (v2.0) | |
|
|
1424
|
+
| version | | Tag for the version of the filter data structure | |
|
|
1425
|
+
|
|
1426
|
+
|
|
1427
|
+
|
|
1428
|
+
|
|
1429
|
+
##### Returns
|
|
1430
|
+
|
|
1431
|
+
|
|
1432
|
+
- a Filter Data.
|
|
1433
|
+
|
|
1434
|
+
|
|
1435
|
+
|
|
1436
|
+
|
|
1437
|
+
### dist/filters/adapters/logicToFlatUI.js
|
|
1438
|
+
|
|
1439
|
+
|
|
1440
|
+
#### logicToFlatUI(logics)
|
|
1441
|
+
|
|
1442
|
+
Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
|
|
1443
|
+
|
|
1444
|
+
|
|
1445
|
+
|
|
1446
|
+
|
|
1447
|
+
##### Parameters
|
|
1448
|
+
|
|
1449
|
+
| Name | Type | Description | |
|
|
1450
|
+
| ---- | ---- | ----------- | -------- |
|
|
1451
|
+
| logics | | The old logic structure (v2.0) | |
|
|
1452
|
+
|
|
1453
|
+
|
|
1454
|
+
|
|
1455
|
+
|
|
1456
|
+
##### Returns
|
|
1457
|
+
|
|
1458
|
+
|
|
1459
|
+
- The Flattened UI Filters array
|
|
1460
|
+
|
|
1461
|
+
|
|
1462
|
+
|
|
1463
|
+
#### getFilter(filters, filter, getIndex)
|
|
1464
|
+
|
|
1465
|
+
Get the filter or the index of the given array, validating an old filter structure.
|
|
1466
|
+
|
|
1467
|
+
|
|
1468
|
+
|
|
1469
|
+
|
|
1470
|
+
##### Parameters
|
|
1471
|
+
|
|
1472
|
+
| Name | Type | Description | |
|
|
1473
|
+
| ---- | ---- | ----------- | -------- |
|
|
1474
|
+
| filters | | The array of UI filters | |
|
|
1475
|
+
| filter | | The old logic structure filter | |
|
|
1476
|
+
| getIndex | | Determines if the index or returns the UI filter object | |
|
|
1477
|
+
|
|
1478
|
+
|
|
1479
|
+
|
|
1480
|
+
|
|
1481
|
+
##### Returns
|
|
1482
|
+
|
|
1483
|
+
|
|
1484
|
+
- the index or the UI filter object
|
|
1485
|
+
|
|
1486
|
+
|
|
1487
|
+
|
|
1488
|
+
#### refineRankingValues(values, uiValues)
|
|
1489
|
+
|
|
1490
|
+
Refines the values of the Ranking column type.
|
|
1491
|
+
|
|
1492
|
+
|
|
1493
|
+
|
|
1494
|
+
|
|
1495
|
+
##### Parameters
|
|
1496
|
+
|
|
1497
|
+
| Name | Type | Description | |
|
|
1498
|
+
| ---- | ---- | ----------- | -------- |
|
|
1499
|
+
| values | | the Array of Ranking values | |
|
|
1500
|
+
| uiValues | | Object with additional info about the values of the filter. | |
|
|
1501
|
+
|
|
1502
|
+
|
|
1503
|
+
|
|
1504
|
+
|
|
1505
|
+
##### Returns
|
|
1506
|
+
|
|
1507
|
+
|
|
1508
|
+
- the array of Ranking values
|
|
1509
|
+
|
|
1510
|
+
|
|
1511
|
+
|
|
1512
|
+
|
|
1513
|
+
### dist/filters/adapters/logicToUI.js
|
|
1514
|
+
|
|
1515
|
+
|
|
1516
|
+
#### logicToUI(uFilters, datasetsInfo)
|
|
1517
|
+
|
|
1518
|
+
Generates a UI filter structure from the old logic structure (v2.0).
|
|
1519
|
+
|
|
1520
|
+
|
|
1521
|
+
|
|
1522
|
+
|
|
1523
|
+
##### Parameters
|
|
1524
|
+
|
|
1525
|
+
| Name | Type | Description | |
|
|
1526
|
+
| ---- | ---- | ----------- | -------- |
|
|
1527
|
+
| uFilters | | Array of filters from old logic structure | |
|
|
1528
|
+
| datasetsInfo | | Collection of datasets information | |
|
|
1529
|
+
|
|
1530
|
+
|
|
1531
|
+
|
|
1532
|
+
|
|
1533
|
+
##### Returns
|
|
1534
|
+
|
|
1535
|
+
|
|
1536
|
+
- a UI Filter Data.
|
|
1537
|
+
|
|
1538
|
+
|
|
1539
|
+
|
|
1540
|
+
|
|
1541
|
+
### dist/filters/adapters/modelAnswerToFilterValue.js
|
|
1542
|
+
|
|
1543
|
+
|
|
1544
|
+
#### modelAnswerToFilterValue(answers)
|
|
1545
|
+
|
|
1546
|
+
Adapter for model answer to convert to recognizable values for Filter Builder
|
|
1547
|
+
|
|
1548
|
+
|
|
1549
|
+
|
|
1550
|
+
|
|
1551
|
+
##### Parameters
|
|
1552
|
+
|
|
1553
|
+
| Name | Type | Description | |
|
|
1554
|
+
| ---- | ---- | ----------- | -------- |
|
|
1555
|
+
| answers | | Array of the qrvey model answers | |
|
|
1556
|
+
|
|
1557
|
+
|
|
1558
|
+
|
|
1559
|
+
|
|
1560
|
+
##### Returns
|
|
1561
|
+
|
|
1562
|
+
|
|
1563
|
+
- Array of values
|
|
1564
|
+
|
|
1565
|
+
|
|
1566
|
+
|
|
1567
|
+
|
|
1568
|
+
### dist/filters/adapters/transformFilters.js
|
|
1569
|
+
|
|
1570
|
+
|
|
1571
|
+
#### transformFilters(oldFiltersObj, section)
|
|
1572
|
+
|
|
1573
|
+
Transform the old filters structure into the new one
|
|
1574
|
+
|
|
1575
|
+
|
|
1576
|
+
|
|
1577
|
+
|
|
1578
|
+
##### Parameters
|
|
1579
|
+
|
|
1580
|
+
| Name | Type | Description | |
|
|
1581
|
+
| ---- | ---- | ----------- | -------- |
|
|
1582
|
+
| oldFiltersObj | `Object` | an object with the old filters structure | |
|
|
1583
|
+
| section | `String` | could be 'ANALYZE', 'PB', 'UM' or any other value. Deafult is 'ANYWHERE' | |
|
|
1584
|
+
|
|
1585
|
+
|
|
1586
|
+
|
|
1587
|
+
|
|
1588
|
+
##### Examples
|
|
1589
|
+
|
|
1590
|
+
```javascript
|
|
1591
|
+
|
|
1592
|
+
const oldPreferenceFilters = {
|
|
1593
|
+
"WWXHAULtR-_-xYOQAdpqT__ENABLED": true,
|
|
1594
|
+
"WWXHAULtR-_-xYOQAdpqT__ALL--ENABLED": true,
|
|
1595
|
+
"WWXHAULtR-_-xYOQAdpqT__COLLAPSED": false,
|
|
1596
|
+
"WWXHAULtR-_-xYOQAdpqT__LABEL": "GLOBAL",
|
|
1597
|
+
"WWXHAULtR-_-xYOQAdpqT-_-AK4M8UV2": {
|
|
1598
|
+
"formulaId": null,
|
|
1599
|
+
"panelId": null,
|
|
1600
|
+
"values": [
|
|
1601
|
+
{
|
|
1602
|
+
"EQUALS": [
|
|
1603
|
+
{
|
|
1604
|
+
"id": "AK4M8UV2a0",
|
|
1605
|
+
"value": "A",
|
|
1606
|
+
"enabled": true,
|
|
1607
|
+
"imageUrl": null
|
|
1608
|
+
},
|
|
1609
|
+
{
|
|
1610
|
+
"id": "AK4M8UV2a1",
|
|
1611
|
+
"value": "B",
|
|
1612
|
+
"enabled": true,
|
|
1613
|
+
"imageUrl": null
|
|
1614
|
+
}
|
|
1615
|
+
]
|
|
1616
|
+
}
|
|
1617
|
+
],
|
|
1618
|
+
"bucketId": null,
|
|
1619
|
+
"text": "MC",
|
|
1620
|
+
"title": "MC",
|
|
1621
|
+
"type": "SINGLE_CHOICE",
|
|
1622
|
+
"qid": "AK4M8UV2",
|
|
1623
|
+
"dataset": {
|
|
1624
|
+
"sourceid": "xYOQAdpqT",
|
|
1625
|
+
"name": "Form All Questions",
|
|
1626
|
+
"qrveyid": "xYOQAdpqT",
|
|
1627
|
+
"text": "Form All Questions",
|
|
1628
|
+
"linkid": 0
|
|
1629
|
+
},
|
|
1630
|
+
"enabled": true,
|
|
1631
|
+
"linked": null
|
|
1632
|
+
}
|
|
1633
|
+
};
|
|
1634
|
+
|
|
1635
|
+
const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
|
|
1636
|
+
```
|
|
1637
|
+
|
|
1638
|
+
|
|
1639
|
+
##### Returns
|
|
1640
|
+
|
|
1641
|
+
|
|
1642
|
+
- `Object` an object with the new filters structure
|
|
1643
|
+
|
|
1644
|
+
|
|
1645
|
+
|
|
1646
|
+
|
|
83
1647
|
### dist/filters/classes/FilterInputErrorHandler.js
|
|
84
1648
|
|
|
85
1649
|
|
|
@@ -100,12 +1664,12 @@ Get a text and evaluate if it matchs with a token box label.
|
|
|
100
1664
|
|
|
101
1665
|
|
|
102
1666
|
|
|
103
|
-
### dist/filters/
|
|
1667
|
+
### dist/filters/helpers/OLD_getAggFilters.js
|
|
104
1668
|
|
|
105
1669
|
|
|
106
|
-
####
|
|
1670
|
+
#### getAggFilters(logics, summaries)
|
|
1671
|
+
|
|
107
1672
|
|
|
108
|
-
Generates a Filter Logic structure from Filter Data structure.
|
|
109
1673
|
|
|
110
1674
|
|
|
111
1675
|
|
|
@@ -114,7 +1678,8 @@ Generates a Filter Logic structure from Filter Data structure.
|
|
|
114
1678
|
|
|
115
1679
|
| Name | Type | Description | |
|
|
116
1680
|
| ---- | ---- | ----------- | -------- |
|
|
117
|
-
|
|
|
1681
|
+
| logics | | | |
|
|
1682
|
+
| summaries | | | |
|
|
118
1683
|
|
|
119
1684
|
|
|
120
1685
|
|
|
@@ -122,13 +1687,13 @@ Generates a Filter Logic structure from Filter Data structure.
|
|
|
122
1687
|
##### Returns
|
|
123
1688
|
|
|
124
1689
|
|
|
125
|
-
-
|
|
1690
|
+
-
|
|
126
1691
|
|
|
127
1692
|
|
|
128
1693
|
|
|
129
|
-
####
|
|
1694
|
+
#### getAggregateFilters(logics, formatToFilters)
|
|
130
1695
|
|
|
131
|
-
|
|
1696
|
+
Filters and gets the filters used for aggregate values.
|
|
132
1697
|
|
|
133
1698
|
|
|
134
1699
|
|
|
@@ -137,7 +1702,8 @@ Gets the logic body
|
|
|
137
1702
|
|
|
138
1703
|
| Name | Type | Description | |
|
|
139
1704
|
| ---- | ---- | ----------- | -------- |
|
|
140
|
-
|
|
|
1705
|
+
| logics | | The filter logic structure | |
|
|
1706
|
+
| formatToFilters | | Flag to change de way of returning the filter structure. | |
|
|
141
1707
|
|
|
142
1708
|
|
|
143
1709
|
|
|
@@ -145,17 +1711,17 @@ Gets the logic body
|
|
|
145
1711
|
##### Returns
|
|
146
1712
|
|
|
147
1713
|
|
|
148
|
-
-
|
|
1714
|
+
- the aggregate filters in the IFilterFilters way or as logic structure.
|
|
149
1715
|
|
|
150
1716
|
|
|
151
1717
|
|
|
152
1718
|
|
|
153
|
-
### dist/filters/
|
|
1719
|
+
### dist/filters/helpers/applyHierarchyForAggFilters.js
|
|
154
1720
|
|
|
155
1721
|
|
|
156
|
-
####
|
|
1722
|
+
#### applyHierarchyForAggFilters(chartSettings, scopes, currentScope)
|
|
157
1723
|
|
|
158
|
-
|
|
1724
|
+
[TODO: Make a proper description for this function]
|
|
159
1725
|
|
|
160
1726
|
|
|
161
1727
|
|
|
@@ -164,8 +1730,9 @@ Generates a UI filter structure from Filter Data structure.
|
|
|
164
1730
|
|
|
165
1731
|
| Name | Type | Description | |
|
|
166
1732
|
| ---- | ---- | ----------- | -------- |
|
|
167
|
-
|
|
|
168
|
-
|
|
|
1733
|
+
| chartSettings | | Chart Settings for the Filter Builder | |
|
|
1734
|
+
| scopes | | | |
|
|
1735
|
+
| currentScope | | | |
|
|
169
1736
|
|
|
170
1737
|
|
|
171
1738
|
|
|
@@ -173,13 +1740,17 @@ Generates a UI filter structure from Filter Data structure.
|
|
|
173
1740
|
##### Returns
|
|
174
1741
|
|
|
175
1742
|
|
|
176
|
-
-
|
|
1743
|
+
-
|
|
177
1744
|
|
|
178
1745
|
|
|
179
1746
|
|
|
180
|
-
#### FD21ToUI(scopes, section, version, datasetsInfo)
|
|
181
1747
|
|
|
182
|
-
|
|
1748
|
+
### dist/filters/helpers/getAvailableScopes.js
|
|
1749
|
+
|
|
1750
|
+
|
|
1751
|
+
#### getAvailableScopes(config)
|
|
1752
|
+
|
|
1753
|
+
Gets Scopes/Scope IDs by given IDs
|
|
183
1754
|
|
|
184
1755
|
|
|
185
1756
|
|
|
@@ -188,10 +1759,7 @@ Generates a UI filter Structure from the Filter Data structure v2.1
|
|
|
188
1759
|
|
|
189
1760
|
| Name | Type | Description | |
|
|
190
1761
|
| ---- | ---- | ----------- | -------- |
|
|
191
|
-
|
|
|
192
|
-
| section | | The filter section. | |
|
|
193
|
-
| version | | The version of the filter structure | |
|
|
194
|
-
| datasetsInfo | | Collection of datasets information | |
|
|
1762
|
+
| config | | given Differnts IDs in order set a available scope | |
|
|
195
1763
|
|
|
196
1764
|
|
|
197
1765
|
|
|
@@ -199,17 +1767,17 @@ Generates a UI filter Structure from the Filter Data structure v2.1
|
|
|
199
1767
|
##### Returns
|
|
200
1768
|
|
|
201
1769
|
|
|
202
|
-
- a
|
|
1770
|
+
- a Scopes/Scope IDs array
|
|
203
1771
|
|
|
204
1772
|
|
|
205
1773
|
|
|
206
1774
|
|
|
207
|
-
### dist/filters/
|
|
1775
|
+
### dist/filters/helpers/getAvailableScopesIDsByConfig.js
|
|
208
1776
|
|
|
209
1777
|
|
|
210
|
-
####
|
|
1778
|
+
#### getAvailableScopesIDsByConfig(config)
|
|
211
1779
|
|
|
212
|
-
|
|
1780
|
+
Gets the Scopes IDS for the Available Scope function by any config
|
|
213
1781
|
|
|
214
1782
|
|
|
215
1783
|
|
|
@@ -218,7 +1786,7 @@ Generates a Filter Data Structure structure from UI Filter Data structure.
|
|
|
218
1786
|
|
|
219
1787
|
| Name | Type | Description | |
|
|
220
1788
|
| ---- | ---- | ----------- | -------- |
|
|
221
|
-
|
|
|
1789
|
+
| config | | any config | |
|
|
222
1790
|
|
|
223
1791
|
|
|
224
1792
|
|
|
@@ -226,13 +1794,17 @@ Generates a Filter Data Structure structure from UI Filter Data structure.
|
|
|
226
1794
|
##### Returns
|
|
227
1795
|
|
|
228
1796
|
|
|
229
|
-
- a
|
|
1797
|
+
- a Available Scope IDS config
|
|
230
1798
|
|
|
231
1799
|
|
|
232
1800
|
|
|
233
|
-
#### UI21ToFD(uFilterData, version)
|
|
234
1801
|
|
|
235
|
-
|
|
1802
|
+
### dist/filters/helpers/getScopesByHierarchy.js
|
|
1803
|
+
|
|
1804
|
+
|
|
1805
|
+
#### getScopesByHierarchy(scopes, currentScope)
|
|
1806
|
+
|
|
1807
|
+
[TODO: Make a description for this]
|
|
236
1808
|
|
|
237
1809
|
|
|
238
1810
|
|
|
@@ -241,8 +1813,8 @@ Builds the Fitler Data structure from UI filter data
|
|
|
241
1813
|
|
|
242
1814
|
| Name | Type | Description | |
|
|
243
1815
|
| ---- | ---- | ----------- | -------- |
|
|
244
|
-
|
|
|
245
|
-
|
|
|
1816
|
+
| scopes | | the collection of Scopes/Scope IDs | |
|
|
1817
|
+
| currentScope | | Current scope type | |
|
|
246
1818
|
|
|
247
1819
|
|
|
248
1820
|
|
|
@@ -250,17 +1822,17 @@ Builds the Fitler Data structure from UI filter data
|
|
|
250
1822
|
##### Returns
|
|
251
1823
|
|
|
252
1824
|
|
|
253
|
-
-
|
|
1825
|
+
- A new array of Scopes/Scope IDs
|
|
254
1826
|
|
|
255
1827
|
|
|
256
1828
|
|
|
257
1829
|
|
|
258
|
-
### dist/filters/
|
|
1830
|
+
### dist/filters/services/Filters.api.js
|
|
259
1831
|
|
|
260
1832
|
|
|
261
|
-
####
|
|
1833
|
+
#### getModel(qrveyid)
|
|
262
1834
|
|
|
263
|
-
|
|
1835
|
+
Get the model by Qrvey ID
|
|
264
1836
|
|
|
265
1837
|
|
|
266
1838
|
|
|
@@ -269,8 +1841,7 @@ Generates a Flattened UI filter structure from UI Filter Data structure.
|
|
|
269
1841
|
|
|
270
1842
|
| Name | Type | Description | |
|
|
271
1843
|
| ---- | ---- | ----------- | -------- |
|
|
272
|
-
|
|
|
273
|
-
| datasetsInfo | | Collection of datasets information. Optional for updating the datasets info | |
|
|
1844
|
+
| qrveyid | | The Qrvey ID | |
|
|
274
1845
|
|
|
275
1846
|
|
|
276
1847
|
|
|
@@ -278,13 +1849,13 @@ Generates a Flattened UI filter structure from UI Filter Data structure.
|
|
|
278
1849
|
##### Returns
|
|
279
1850
|
|
|
280
1851
|
|
|
281
|
-
- a
|
|
1852
|
+
- a promise with the resulting model
|
|
282
1853
|
|
|
283
1854
|
|
|
284
1855
|
|
|
285
|
-
####
|
|
1856
|
+
#### getDatasets(qrveyids)
|
|
286
1857
|
|
|
287
|
-
|
|
1858
|
+
Get a dataset list from a collection of Qrvey IDs
|
|
288
1859
|
|
|
289
1860
|
|
|
290
1861
|
|
|
@@ -293,7 +1864,7 @@ Generates a Flattened UI Filter Structure from the UI Filter Data structure v2.1
|
|
|
293
1864
|
|
|
294
1865
|
| Name | Type | Description | |
|
|
295
1866
|
| ---- | ---- | ----------- | -------- |
|
|
296
|
-
|
|
|
1867
|
+
| qrveyids | | Collection of Qrvey IDs | |
|
|
297
1868
|
|
|
298
1869
|
|
|
299
1870
|
|
|
@@ -301,18 +1872,55 @@ Generates a Flattened UI Filter Structure from the UI Filter Data structure v2.1
|
|
|
301
1872
|
##### Returns
|
|
302
1873
|
|
|
303
1874
|
|
|
304
|
-
- a
|
|
1875
|
+
- a promise
|
|
305
1876
|
|
|
306
1877
|
|
|
307
1878
|
|
|
1879
|
+
#### getDataValues(uFilter, filterLogic, chartSettings, resetApi)
|
|
308
1880
|
|
|
309
|
-
|
|
1881
|
+
Get a promise with a preview of resulting data. Depending on the validator, the endpoint will change.
|
|
310
1882
|
|
|
311
1883
|
|
|
312
|
-
#### adaptDateGroupingProperty(property)
|
|
313
1884
|
|
|
314
|
-
|
|
315
|
-
|
|
1885
|
+
|
|
1886
|
+
##### Parameters
|
|
1887
|
+
|
|
1888
|
+
| Name | Type | Description | |
|
|
1889
|
+
| ---- | ---- | ----------- | -------- |
|
|
1890
|
+
| uFilter | | The Filter Builder Filter | |
|
|
1891
|
+
| filterLogic | | Additional filter logic to apply in the preview | |
|
|
1892
|
+
| chartSettings | | | |
|
|
1893
|
+
| resetApi | | flag to determine when the api should be reseted. | |
|
|
1894
|
+
|
|
1895
|
+
|
|
1896
|
+
|
|
1897
|
+
|
|
1898
|
+
##### Returns
|
|
1899
|
+
|
|
1900
|
+
|
|
1901
|
+
- a promise with a preview of resulting data.
|
|
1902
|
+
|
|
1903
|
+
|
|
1904
|
+
|
|
1905
|
+
#### getAvailableScopeIds()
|
|
1906
|
+
|
|
1907
|
+
Gets the available scopes and scope IDs
|
|
1908
|
+
|
|
1909
|
+
|
|
1910
|
+
|
|
1911
|
+
|
|
1912
|
+
|
|
1913
|
+
|
|
1914
|
+
##### Returns
|
|
1915
|
+
|
|
1916
|
+
|
|
1917
|
+
- a collection of the pair Scopes and Scope IDs
|
|
1918
|
+
|
|
1919
|
+
|
|
1920
|
+
|
|
1921
|
+
#### setConfig(config)
|
|
1922
|
+
|
|
1923
|
+
Set the config into the Filter Builder Api class
|
|
316
1924
|
|
|
317
1925
|
|
|
318
1926
|
|
|
@@ -321,7 +1929,7 @@ Get the new property base on the old date grouping properties
|
|
|
321
1929
|
|
|
322
1930
|
| Name | Type | Description | |
|
|
323
1931
|
| ---- | ---- | ----------- | -------- |
|
|
324
|
-
|
|
|
1932
|
+
| config | | the config. | |
|
|
325
1933
|
|
|
326
1934
|
|
|
327
1935
|
|
|
@@ -329,17 +1937,17 @@ Get the new property base on the old date grouping properties
|
|
|
329
1937
|
##### Returns
|
|
330
1938
|
|
|
331
1939
|
|
|
332
|
-
-
|
|
1940
|
+
- `Void`
|
|
333
1941
|
|
|
334
1942
|
|
|
335
1943
|
|
|
336
1944
|
|
|
337
|
-
### dist/filters/
|
|
1945
|
+
### dist/filters/services/UChartApi.js
|
|
338
1946
|
|
|
339
1947
|
|
|
340
|
-
####
|
|
1948
|
+
#### this.getChartResult(config, uFilter, filterLogic, chartSettings)
|
|
341
1949
|
|
|
342
|
-
|
|
1950
|
+
Gets a promise with a resulting data
|
|
343
1951
|
|
|
344
1952
|
|
|
345
1953
|
|
|
@@ -348,9 +1956,10 @@ Checks and adapts the v2.0 Filter Data Structure to the v2.1
|
|
|
348
1956
|
|
|
349
1957
|
| Name | Type | Description | |
|
|
350
1958
|
| ---- | ---- | ----------- | -------- |
|
|
351
|
-
|
|
|
352
|
-
|
|
|
353
|
-
|
|
|
1959
|
+
| config | | the config | |
|
|
1960
|
+
| uFilter | | The filter Builder filter | |
|
|
1961
|
+
| filterLogic | | Additional filter logic to apply in the preview | |
|
|
1962
|
+
| chartSettings | | The settings of the chart. For Aggregate Columns. | |
|
|
354
1963
|
|
|
355
1964
|
|
|
356
1965
|
|
|
@@ -358,18 +1967,86 @@ Checks and adapts the v2.0 Filter Data Structure to the v2.1
|
|
|
358
1967
|
##### Returns
|
|
359
1968
|
|
|
360
1969
|
|
|
361
|
-
-
|
|
1970
|
+
- a promise with a resulting data
|
|
362
1971
|
|
|
363
1972
|
|
|
364
1973
|
|
|
1974
|
+
#### this._getPreviewRequestBody(uFilter, filterLogic, chartSettings)
|
|
365
1975
|
|
|
366
|
-
|
|
1976
|
+
Gets request body structure
|
|
367
1977
|
|
|
368
1978
|
|
|
369
|
-
#### adaptFilterValues(filter)
|
|
370
1979
|
|
|
371
|
-
|
|
372
|
-
|
|
1980
|
+
|
|
1981
|
+
##### Parameters
|
|
1982
|
+
|
|
1983
|
+
| Name | Type | Description | |
|
|
1984
|
+
| ---- | ---- | ----------- | -------- |
|
|
1985
|
+
| uFilter | | The filter Builder filter | |
|
|
1986
|
+
| filterLogic | | Additional filter logic to apply in the preview | |
|
|
1987
|
+
| chartSettings | | The settings of the chart. For Aggregate Columns. | |
|
|
1988
|
+
|
|
1989
|
+
|
|
1990
|
+
|
|
1991
|
+
|
|
1992
|
+
##### Returns
|
|
1993
|
+
|
|
1994
|
+
|
|
1995
|
+
- the request body structure
|
|
1996
|
+
|
|
1997
|
+
|
|
1998
|
+
|
|
1999
|
+
#### this._getChartBody(uFilter, chartSettings)
|
|
2000
|
+
|
|
2001
|
+
Gets chart body structure
|
|
2002
|
+
|
|
2003
|
+
|
|
2004
|
+
|
|
2005
|
+
|
|
2006
|
+
##### Parameters
|
|
2007
|
+
|
|
2008
|
+
| Name | Type | Description | |
|
|
2009
|
+
| ---- | ---- | ----------- | -------- |
|
|
2010
|
+
| uFilter | | The filter Builder filter | |
|
|
2011
|
+
| chartSettings | | The settings of the chart. For Aggregate Columns. | |
|
|
2012
|
+
|
|
2013
|
+
|
|
2014
|
+
|
|
2015
|
+
|
|
2016
|
+
##### Returns
|
|
2017
|
+
|
|
2018
|
+
|
|
2019
|
+
- the chart body structure
|
|
2020
|
+
|
|
2021
|
+
|
|
2022
|
+
|
|
2023
|
+
#### this._getDimensionsBody(uFilter, chartSettings)
|
|
2024
|
+
|
|
2025
|
+
Gets dimension body structure
|
|
2026
|
+
|
|
2027
|
+
|
|
2028
|
+
|
|
2029
|
+
|
|
2030
|
+
##### Parameters
|
|
2031
|
+
|
|
2032
|
+
| Name | Type | Description | |
|
|
2033
|
+
| ---- | ---- | ----------- | -------- |
|
|
2034
|
+
| uFilter | | The filter Builder filter | |
|
|
2035
|
+
| chartSettings | | The settings of the chart. For Aggregate Columns. | |
|
|
2036
|
+
|
|
2037
|
+
|
|
2038
|
+
|
|
2039
|
+
|
|
2040
|
+
##### Returns
|
|
2041
|
+
|
|
2042
|
+
|
|
2043
|
+
- the dimension body structure
|
|
2044
|
+
|
|
2045
|
+
|
|
2046
|
+
|
|
2047
|
+
#### this._getMaxDataPoints(column, chartSettings)
|
|
2048
|
+
|
|
2049
|
+
Gets max data point number
|
|
373
2050
|
|
|
374
2051
|
|
|
375
2052
|
|
|
@@ -378,7 +2055,8 @@ Gets an adapted filter value array. Validates the enabled property and sets
|
|
|
378
2055
|
|
|
379
2056
|
| Name | Type | Description | |
|
|
380
2057
|
| ---- | ---- | ----------- | -------- |
|
|
381
|
-
|
|
|
2058
|
+
| column | | The column to filter | |
|
|
2059
|
+
| chartSettings | | The settings of the chart. For Aggregate Columns. | |
|
|
382
2060
|
|
|
383
2061
|
|
|
384
2062
|
|
|
@@ -386,17 +2064,13 @@ Gets an adapted filter value array. Validates the enabled property and sets
|
|
|
386
2064
|
##### Returns
|
|
387
2065
|
|
|
388
2066
|
|
|
389
|
-
-
|
|
390
|
-
|
|
391
|
-
|
|
2067
|
+
- max data point number
|
|
392
2068
|
|
|
393
2069
|
|
|
394
|
-
### dist/filters/adapters/FDToFlatUI.js
|
|
395
|
-
|
|
396
2070
|
|
|
397
|
-
####
|
|
2071
|
+
#### this._getSortOption(column)
|
|
398
2072
|
|
|
399
|
-
|
|
2073
|
+
Gets sort option structure
|
|
400
2074
|
|
|
401
2075
|
|
|
402
2076
|
|
|
@@ -405,8 +2079,7 @@ Generates a Flattened UI filter structure from Filter Data structure.
|
|
|
405
2079
|
|
|
406
2080
|
| Name | Type | Description | |
|
|
407
2081
|
| ---- | ---- | ----------- | -------- |
|
|
408
|
-
|
|
|
409
|
-
| datasetsInfo | | Collection of datasets information | |
|
|
2082
|
+
| column | | The column to filter | |
|
|
410
2083
|
|
|
411
2084
|
|
|
412
2085
|
|
|
@@ -414,13 +2087,13 @@ Generates a Flattened UI filter structure from Filter Data structure.
|
|
|
414
2087
|
##### Returns
|
|
415
2088
|
|
|
416
2089
|
|
|
417
|
-
-
|
|
2090
|
+
- sort option structure
|
|
418
2091
|
|
|
419
2092
|
|
|
420
2093
|
|
|
421
|
-
####
|
|
2094
|
+
#### this._getSummariesBody(uFilter)
|
|
422
2095
|
|
|
423
|
-
|
|
2096
|
+
Gets summaries body structure
|
|
424
2097
|
|
|
425
2098
|
|
|
426
2099
|
|
|
@@ -429,8 +2102,7 @@ Generates a Filter Builder Structure from the Filter Data structure v2.1
|
|
|
429
2102
|
|
|
430
2103
|
| Name | Type | Description | |
|
|
431
2104
|
| ---- | ---- | ----------- | -------- |
|
|
432
|
-
|
|
|
433
|
-
| datasetsInfo | | Collection of datasets information | |
|
|
2105
|
+
| uFilter | | The filter Builder filter | |
|
|
434
2106
|
|
|
435
2107
|
|
|
436
2108
|
|
|
@@ -438,17 +2110,13 @@ Generates a Filter Builder Structure from the Filter Data structure v2.1
|
|
|
438
2110
|
##### Returns
|
|
439
2111
|
|
|
440
2112
|
|
|
441
|
-
-
|
|
442
|
-
|
|
443
|
-
|
|
2113
|
+
- summaries body structure
|
|
444
2114
|
|
|
445
2115
|
|
|
446
|
-
### dist/filters/adapters/flatUIToFD.js
|
|
447
|
-
|
|
448
2116
|
|
|
449
|
-
####
|
|
2117
|
+
#### this._refineBodies(bodies, uFilter)
|
|
450
2118
|
|
|
451
|
-
|
|
2119
|
+
Refines the body structure
|
|
452
2120
|
|
|
453
2121
|
|
|
454
2122
|
|
|
@@ -457,8 +2125,8 @@ Generates a filter data structure from the flatttened UI filters.
|
|
|
457
2125
|
|
|
458
2126
|
| Name | Type | Description | |
|
|
459
2127
|
| ---- | ---- | ----------- | -------- |
|
|
460
|
-
|
|
|
461
|
-
|
|
|
2128
|
+
| bodies | | The body structure | |
|
|
2129
|
+
| uFilter | | The filter Builder filter | |
|
|
462
2130
|
|
|
463
2131
|
|
|
464
2132
|
|
|
@@ -466,14 +2134,13 @@ Generates a filter data structure from the flatttened UI filters.
|
|
|
466
2134
|
##### Returns
|
|
467
2135
|
|
|
468
2136
|
|
|
469
|
-
-
|
|
2137
|
+
- the body structure
|
|
470
2138
|
|
|
471
2139
|
|
|
472
2140
|
|
|
473
|
-
####
|
|
2141
|
+
#### this._getValidationType(column, vaildator)
|
|
474
2142
|
|
|
475
|
-
Gets
|
|
476
|
-
Also, adds and organizes filters by datasets
|
|
2143
|
+
Gets the validation type for the preview request
|
|
477
2144
|
|
|
478
2145
|
|
|
479
2146
|
|
|
@@ -482,7 +2149,8 @@ Also, adds and organizes filters by datasets
|
|
|
482
2149
|
|
|
483
2150
|
| Name | Type | Description | |
|
|
484
2151
|
| ---- | ---- | ----------- | -------- |
|
|
485
|
-
|
|
|
2152
|
+
| column | | The column to filter | |
|
|
2153
|
+
| vaildator | | Validator Type | |
|
|
486
2154
|
|
|
487
2155
|
|
|
488
2156
|
|
|
@@ -490,13 +2158,13 @@ Also, adds and organizes filters by datasets
|
|
|
490
2158
|
##### Returns
|
|
491
2159
|
|
|
492
2160
|
|
|
493
|
-
-
|
|
2161
|
+
- the validator type for the preview request
|
|
494
2162
|
|
|
495
2163
|
|
|
496
2164
|
|
|
497
|
-
####
|
|
2165
|
+
#### this._getDataFromResponse(response, uFilter)
|
|
498
2166
|
|
|
499
|
-
Gets
|
|
2167
|
+
Gets the Data from preview Response
|
|
500
2168
|
|
|
501
2169
|
|
|
502
2170
|
|
|
@@ -505,7 +2173,8 @@ Gets an scope structure for the filter data
|
|
|
505
2173
|
|
|
506
2174
|
| Name | Type | Description | |
|
|
507
2175
|
| ---- | ---- | ----------- | -------- |
|
|
508
|
-
|
|
|
2176
|
+
| response | | The preview presponse | |
|
|
2177
|
+
| uFilter | | The filter Builder filter | |
|
|
509
2178
|
|
|
510
2179
|
|
|
511
2180
|
|
|
@@ -513,13 +2182,13 @@ Gets an scope structure for the filter data
|
|
|
513
2182
|
##### Returns
|
|
514
2183
|
|
|
515
2184
|
|
|
516
|
-
-
|
|
2185
|
+
- The resulting data
|
|
517
2186
|
|
|
518
2187
|
|
|
519
2188
|
|
|
520
|
-
####
|
|
2189
|
+
#### this._getResponseSummaries(records, values)
|
|
521
2190
|
|
|
522
|
-
Gets
|
|
2191
|
+
Gets summaries from preview response
|
|
523
2192
|
|
|
524
2193
|
|
|
525
2194
|
|
|
@@ -528,7 +2197,8 @@ Gets an dataset structure for the filter data
|
|
|
528
2197
|
|
|
529
2198
|
| Name | Type | Description | |
|
|
530
2199
|
| ---- | ---- | ----------- | -------- |
|
|
531
|
-
|
|
|
2200
|
+
| records | | The data from preview response | |
|
|
2201
|
+
| values | | The values from the preview response | |
|
|
532
2202
|
|
|
533
2203
|
|
|
534
2204
|
|
|
@@ -536,22 +2206,19 @@ Gets an dataset structure for the filter data
|
|
|
536
2206
|
##### Returns
|
|
537
2207
|
|
|
538
2208
|
|
|
539
|
-
-
|
|
2209
|
+
- the sumaries
|
|
540
2210
|
|
|
541
2211
|
|
|
542
2212
|
|
|
543
|
-
#### buildFilter(uFilter)
|
|
544
2213
|
|
|
545
|
-
|
|
2214
|
+
### dist/filters/services/UChartPaginationApi.js
|
|
546
2215
|
|
|
547
2216
|
|
|
2217
|
+
#### this.getAfterKey()
|
|
548
2218
|
|
|
2219
|
+
Gets afterKey object
|
|
549
2220
|
|
|
550
|
-
##### Parameters
|
|
551
2221
|
|
|
552
|
-
| Name | Type | Description | |
|
|
553
|
-
| ---- | ---- | ----------- | -------- |
|
|
554
|
-
| uFilter | | a UI structure filter | |
|
|
555
2222
|
|
|
556
2223
|
|
|
557
2224
|
|
|
@@ -559,17 +2226,13 @@ Gets an filter structure for the filter data
|
|
|
559
2226
|
##### Returns
|
|
560
2227
|
|
|
561
2228
|
|
|
562
|
-
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
2229
|
+
-
|
|
566
2230
|
|
|
567
|
-
### dist/filters/adapters/flatUIToLogic.js
|
|
568
2231
|
|
|
569
2232
|
|
|
570
|
-
####
|
|
2233
|
+
#### this.getChartResult(config, uFilter, filterLogic, chartSettings)
|
|
571
2234
|
|
|
572
|
-
|
|
2235
|
+
Gets a promise with a resulting data
|
|
573
2236
|
|
|
574
2237
|
|
|
575
2238
|
|
|
@@ -578,7 +2241,10 @@ Generates a Logic structure from flattened UI filters
|
|
|
578
2241
|
|
|
579
2242
|
| Name | Type | Description | |
|
|
580
2243
|
| ---- | ---- | ----------- | -------- |
|
|
581
|
-
|
|
|
2244
|
+
| config | | the config | |
|
|
2245
|
+
| uFilter | | The filter Builder filter | |
|
|
2246
|
+
| filterLogic | | Additional filter logic to apply in the preview | |
|
|
2247
|
+
| chartSettings | | The settings of the chart. For Aggregate Columns. | |
|
|
582
2248
|
|
|
583
2249
|
|
|
584
2250
|
|
|
@@ -586,17 +2252,13 @@ Generates a Logic structure from flattened UI filters
|
|
|
586
2252
|
##### Returns
|
|
587
2253
|
|
|
588
2254
|
|
|
589
|
-
-
|
|
590
|
-
|
|
591
|
-
|
|
2255
|
+
- a promise with a resulting data
|
|
592
2256
|
|
|
593
2257
|
|
|
594
|
-
### dist/filters/adapters/flatUIToOldLogic.js
|
|
595
|
-
|
|
596
2258
|
|
|
597
|
-
####
|
|
2259
|
+
#### this._getPreviewRequestBody(uFilter, filterLogic, chartSettings)
|
|
598
2260
|
|
|
599
|
-
|
|
2261
|
+
Gets request body structure
|
|
600
2262
|
|
|
601
2263
|
|
|
602
2264
|
|
|
@@ -605,7 +2267,9 @@ Generates a Logic structure from flattened UI filters
|
|
|
605
2267
|
|
|
606
2268
|
| Name | Type | Description | |
|
|
607
2269
|
| ---- | ---- | ----------- | -------- |
|
|
608
|
-
|
|
|
2270
|
+
| uFilter | | The filter Builder filter | |
|
|
2271
|
+
| filterLogic | | Additional filter logic to apply in the preview | |
|
|
2272
|
+
| chartSettings | | The settings of the chart. For Aggregate Columns. | |
|
|
609
2273
|
|
|
610
2274
|
|
|
611
2275
|
|
|
@@ -613,17 +2277,13 @@ Generates a Logic structure from flattened UI filters
|
|
|
613
2277
|
##### Returns
|
|
614
2278
|
|
|
615
2279
|
|
|
616
|
-
-
|
|
617
|
-
|
|
618
|
-
|
|
2280
|
+
- the request body structure
|
|
619
2281
|
|
|
620
2282
|
|
|
621
|
-
### dist/filters/adapters/flatUIToUI.js
|
|
622
|
-
|
|
623
2283
|
|
|
624
|
-
####
|
|
2284
|
+
#### this._getDimensionsBody(uFilter)
|
|
625
2285
|
|
|
626
|
-
|
|
2286
|
+
Gets dimension body structure
|
|
627
2287
|
|
|
628
2288
|
|
|
629
2289
|
|
|
@@ -632,8 +2292,7 @@ Generates a UI filter data structure from the flatttened UI filters.
|
|
|
632
2292
|
|
|
633
2293
|
| Name | Type | Description | |
|
|
634
2294
|
| ---- | ---- | ----------- | -------- |
|
|
635
|
-
|
|
|
636
|
-
| version | | Tag for the version of the filter data structure | |
|
|
2295
|
+
| uFilter | | The filter Builder filter | |
|
|
637
2296
|
|
|
638
2297
|
|
|
639
2298
|
|
|
@@ -641,14 +2300,13 @@ Generates a UI filter data structure from the flatttened UI filters.
|
|
|
641
2300
|
##### Returns
|
|
642
2301
|
|
|
643
2302
|
|
|
644
|
-
-
|
|
2303
|
+
- the dimension body structure
|
|
645
2304
|
|
|
646
2305
|
|
|
647
2306
|
|
|
648
|
-
####
|
|
2307
|
+
#### this._getDimensionsBodyAdapter(dimensions)
|
|
649
2308
|
|
|
650
|
-
|
|
651
|
-
Also, adds and organizes filters by datasets
|
|
2309
|
+
Get a dimension body structure foor pagination endpoint
|
|
652
2310
|
|
|
653
2311
|
|
|
654
2312
|
|
|
@@ -657,7 +2315,7 @@ Also, adds and organizes filters by datasets
|
|
|
657
2315
|
|
|
658
2316
|
| Name | Type | Description | |
|
|
659
2317
|
| ---- | ---- | ----------- | -------- |
|
|
660
|
-
|
|
|
2318
|
+
| dimensions | | | |
|
|
661
2319
|
|
|
662
2320
|
|
|
663
2321
|
|
|
@@ -665,13 +2323,13 @@ Also, adds and organizes filters by datasets
|
|
|
665
2323
|
##### Returns
|
|
666
2324
|
|
|
667
2325
|
|
|
668
|
-
-
|
|
2326
|
+
-
|
|
669
2327
|
|
|
670
2328
|
|
|
671
2329
|
|
|
672
|
-
####
|
|
2330
|
+
#### this._getMaxDataPoints(column, chartSettings)
|
|
673
2331
|
|
|
674
|
-
Gets
|
|
2332
|
+
Gets max data point number
|
|
675
2333
|
|
|
676
2334
|
|
|
677
2335
|
|
|
@@ -680,7 +2338,8 @@ Gets an scope structure for the UI filter data
|
|
|
680
2338
|
|
|
681
2339
|
| Name | Type | Description | |
|
|
682
2340
|
| ---- | ---- | ----------- | -------- |
|
|
683
|
-
|
|
|
2341
|
+
| column | | The column to filter | |
|
|
2342
|
+
| chartSettings | | The settings of the chart. For Aggregate Columns. | |
|
|
684
2343
|
|
|
685
2344
|
|
|
686
2345
|
|
|
@@ -688,13 +2347,13 @@ Gets an scope structure for the UI filter data
|
|
|
688
2347
|
##### Returns
|
|
689
2348
|
|
|
690
2349
|
|
|
691
|
-
-
|
|
2350
|
+
- max data point number
|
|
692
2351
|
|
|
693
2352
|
|
|
694
2353
|
|
|
695
|
-
####
|
|
2354
|
+
#### this._getSortOption(column)
|
|
696
2355
|
|
|
697
|
-
Gets
|
|
2356
|
+
Gets sort option structure
|
|
698
2357
|
|
|
699
2358
|
|
|
700
2359
|
|
|
@@ -703,7 +2362,7 @@ Gets an dataset structure for the UI filter data
|
|
|
703
2362
|
|
|
704
2363
|
| Name | Type | Description | |
|
|
705
2364
|
| ---- | ---- | ----------- | -------- |
|
|
706
|
-
|
|
|
2365
|
+
| column | | The column to filter | |
|
|
707
2366
|
|
|
708
2367
|
|
|
709
2368
|
|
|
@@ -711,13 +2370,13 @@ Gets an dataset structure for the UI filter data
|
|
|
711
2370
|
##### Returns
|
|
712
2371
|
|
|
713
2372
|
|
|
714
|
-
-
|
|
2373
|
+
- sort option structure
|
|
715
2374
|
|
|
716
2375
|
|
|
717
2376
|
|
|
718
|
-
####
|
|
2377
|
+
#### this._getSummariesBody(uFilter)
|
|
719
2378
|
|
|
720
|
-
Gets
|
|
2379
|
+
Gets summaries body structure
|
|
721
2380
|
|
|
722
2381
|
|
|
723
2382
|
|
|
@@ -726,7 +2385,7 @@ Gets an filter structure for the UI filter data
|
|
|
726
2385
|
|
|
727
2386
|
| Name | Type | Description | |
|
|
728
2387
|
| ---- | ---- | ----------- | -------- |
|
|
729
|
-
| uFilter | |
|
|
2388
|
+
| uFilter | | The filter Builder filter | |
|
|
730
2389
|
|
|
731
2390
|
|
|
732
2391
|
|
|
@@ -734,17 +2393,13 @@ Gets an filter structure for the UI filter data
|
|
|
734
2393
|
##### Returns
|
|
735
2394
|
|
|
736
2395
|
|
|
737
|
-
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
2396
|
+
- summaries body structure
|
|
741
2397
|
|
|
742
|
-
### dist/filters/adapters/logicToFD.js
|
|
743
2398
|
|
|
744
2399
|
|
|
745
|
-
####
|
|
2400
|
+
#### this._refineBodies(bodies, uFilter)
|
|
746
2401
|
|
|
747
|
-
|
|
2402
|
+
Refines the body structure
|
|
748
2403
|
|
|
749
2404
|
|
|
750
2405
|
|
|
@@ -753,8 +2408,8 @@ Generates a filter data structure from the old logic structure (v2.0).
|
|
|
753
2408
|
|
|
754
2409
|
| Name | Type | Description | |
|
|
755
2410
|
| ---- | ---- | ----------- | -------- |
|
|
756
|
-
|
|
|
757
|
-
|
|
|
2411
|
+
| bodies | | The body structure | |
|
|
2412
|
+
| uFilter | | The filter Builder filter | |
|
|
758
2413
|
|
|
759
2414
|
|
|
760
2415
|
|
|
@@ -762,17 +2417,13 @@ Generates a filter data structure from the old logic structure (v2.0).
|
|
|
762
2417
|
##### Returns
|
|
763
2418
|
|
|
764
2419
|
|
|
765
|
-
-
|
|
766
|
-
|
|
767
|
-
|
|
2420
|
+
- the body structure
|
|
768
2421
|
|
|
769
2422
|
|
|
770
|
-
### dist/filters/adapters/logicToFlatUI.js
|
|
771
|
-
|
|
772
2423
|
|
|
773
|
-
####
|
|
2424
|
+
#### this._getValidationType(column, vaildator)
|
|
774
2425
|
|
|
775
|
-
|
|
2426
|
+
Gets the validation type for the preview request
|
|
776
2427
|
|
|
777
2428
|
|
|
778
2429
|
|
|
@@ -781,7 +2432,8 @@ Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
|
|
|
781
2432
|
|
|
782
2433
|
| Name | Type | Description | |
|
|
783
2434
|
| ---- | ---- | ----------- | -------- |
|
|
784
|
-
|
|
|
2435
|
+
| column | | The column to filter | |
|
|
2436
|
+
| vaildator | | Validator Type | |
|
|
785
2437
|
|
|
786
2438
|
|
|
787
2439
|
|
|
@@ -789,13 +2441,13 @@ Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
|
|
|
789
2441
|
##### Returns
|
|
790
2442
|
|
|
791
2443
|
|
|
792
|
-
-
|
|
2444
|
+
- the validator type for the preview request
|
|
793
2445
|
|
|
794
2446
|
|
|
795
2447
|
|
|
796
|
-
####
|
|
2448
|
+
#### this._getDataFromResponse(response, uFilter)
|
|
797
2449
|
|
|
798
|
-
|
|
2450
|
+
Gets the Data from preview Response
|
|
799
2451
|
|
|
800
2452
|
|
|
801
2453
|
|
|
@@ -804,9 +2456,8 @@ Get the filter or the index of the given array, validating an old filter structu
|
|
|
804
2456
|
|
|
805
2457
|
| Name | Type | Description | |
|
|
806
2458
|
| ---- | ---- | ----------- | -------- |
|
|
807
|
-
|
|
|
808
|
-
|
|
|
809
|
-
| getIndex | | Determines if the index or returns the UI filter object | |
|
|
2459
|
+
| response | | The preview presponse | |
|
|
2460
|
+
| uFilter | | The filter Builder filter | |
|
|
810
2461
|
|
|
811
2462
|
|
|
812
2463
|
|
|
@@ -814,13 +2465,13 @@ Get the filter or the index of the given array, validating an old filter structu
|
|
|
814
2465
|
##### Returns
|
|
815
2466
|
|
|
816
2467
|
|
|
817
|
-
-
|
|
2468
|
+
- The resulting data
|
|
818
2469
|
|
|
819
2470
|
|
|
820
2471
|
|
|
821
|
-
####
|
|
2472
|
+
#### this._getResponseSummaries(records, values)
|
|
822
2473
|
|
|
823
|
-
|
|
2474
|
+
Gets summaries from preview response
|
|
824
2475
|
|
|
825
2476
|
|
|
826
2477
|
|
|
@@ -829,8 +2480,8 @@ Refines the values of the Ranking column type.
|
|
|
829
2480
|
|
|
830
2481
|
| Name | Type | Description | |
|
|
831
2482
|
| ---- | ---- | ----------- | -------- |
|
|
832
|
-
|
|
|
833
|
-
|
|
|
2483
|
+
| records | | The data from preview response | |
|
|
2484
|
+
| values | | The values from the preview response | |
|
|
834
2485
|
|
|
835
2486
|
|
|
836
2487
|
|
|
@@ -838,17 +2489,13 @@ Refines the values of the Ranking column type.
|
|
|
838
2489
|
##### Returns
|
|
839
2490
|
|
|
840
2491
|
|
|
841
|
-
- the
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
2492
|
+
- the sumaries
|
|
845
2493
|
|
|
846
|
-
### dist/filters/adapters/logicToUI.js
|
|
847
2494
|
|
|
848
2495
|
|
|
849
|
-
####
|
|
2496
|
+
#### this.refineAfterkey(props)
|
|
850
2497
|
|
|
851
|
-
|
|
2498
|
+
Refines the afterKey object
|
|
852
2499
|
|
|
853
2500
|
|
|
854
2501
|
|
|
@@ -857,8 +2504,7 @@ Generates a UI filter structure from the old logic structure (v2.0).
|
|
|
857
2504
|
|
|
858
2505
|
| Name | Type | Description | |
|
|
859
2506
|
| ---- | ---- | ----------- | -------- |
|
|
860
|
-
|
|
|
861
|
-
| datasetsInfo | | Collection of datasets information | |
|
|
2507
|
+
| props | | | |
|
|
862
2508
|
|
|
863
2509
|
|
|
864
2510
|
|
|
@@ -866,17 +2512,13 @@ Generates a UI filter structure from the old logic structure (v2.0).
|
|
|
866
2512
|
##### Returns
|
|
867
2513
|
|
|
868
2514
|
|
|
869
|
-
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
2515
|
+
- `Void`
|
|
873
2516
|
|
|
874
|
-
### dist/filters/adapters/transformFilters.js
|
|
875
2517
|
|
|
876
2518
|
|
|
877
|
-
####
|
|
2519
|
+
#### this.setAfterKey(afterKey)
|
|
878
2520
|
|
|
879
|
-
|
|
2521
|
+
Sets the afterKey object
|
|
880
2522
|
|
|
881
2523
|
|
|
882
2524
|
|
|
@@ -885,77 +2527,44 @@ Transform the old filters structure into the new one
|
|
|
885
2527
|
|
|
886
2528
|
| Name | Type | Description | |
|
|
887
2529
|
| ---- | ---- | ----------- | -------- |
|
|
888
|
-
|
|
|
889
|
-
| section | `String` | could be 'ANALYZE', 'PB', 'UM' or any other value. Deafult is 'ANYWHERE' | |
|
|
2530
|
+
| afterKey | | the afterKey object | |
|
|
890
2531
|
|
|
891
2532
|
|
|
892
2533
|
|
|
893
2534
|
|
|
894
|
-
#####
|
|
2535
|
+
##### Returns
|
|
895
2536
|
|
|
896
|
-
```javascript
|
|
897
2537
|
|
|
898
|
-
|
|
899
|
-
"WWXHAULtR-_-xYOQAdpqT__ENABLED": true,
|
|
900
|
-
"WWXHAULtR-_-xYOQAdpqT__ALL--ENABLED": true,
|
|
901
|
-
"WWXHAULtR-_-xYOQAdpqT__COLLAPSED": false,
|
|
902
|
-
"WWXHAULtR-_-xYOQAdpqT__LABEL": "GLOBAL",
|
|
903
|
-
"WWXHAULtR-_-xYOQAdpqT-_-AK4M8UV2": {
|
|
904
|
-
"formulaId": null,
|
|
905
|
-
"panelId": null,
|
|
906
|
-
"values": [
|
|
907
|
-
{
|
|
908
|
-
"EQUALS": [
|
|
909
|
-
{
|
|
910
|
-
"id": "AK4M8UV2a0",
|
|
911
|
-
"value": "A",
|
|
912
|
-
"enabled": true,
|
|
913
|
-
"imageUrl": null
|
|
914
|
-
},
|
|
915
|
-
{
|
|
916
|
-
"id": "AK4M8UV2a1",
|
|
917
|
-
"value": "B",
|
|
918
|
-
"enabled": true,
|
|
919
|
-
"imageUrl": null
|
|
920
|
-
}
|
|
921
|
-
]
|
|
922
|
-
}
|
|
923
|
-
],
|
|
924
|
-
"bucketId": null,
|
|
925
|
-
"text": "MC",
|
|
926
|
-
"title": "MC",
|
|
927
|
-
"type": "SINGLE_CHOICE",
|
|
928
|
-
"qid": "AK4M8UV2",
|
|
929
|
-
"dataset": {
|
|
930
|
-
"sourceid": "xYOQAdpqT",
|
|
931
|
-
"name": "Form All Questions",
|
|
932
|
-
"qrveyid": "xYOQAdpqT",
|
|
933
|
-
"text": "Form All Questions",
|
|
934
|
-
"linkid": 0
|
|
935
|
-
},
|
|
936
|
-
"enabled": true,
|
|
937
|
-
"linked": null
|
|
938
|
-
}
|
|
939
|
-
};
|
|
2538
|
+
- `Void`
|
|
940
2539
|
|
|
941
|
-
const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
|
|
942
|
-
```
|
|
943
2540
|
|
|
944
2541
|
|
|
945
|
-
|
|
2542
|
+
#### this.setProps(uFilter)
|
|
946
2543
|
|
|
2544
|
+
Sets the Filter Builder Filter
|
|
947
2545
|
|
|
948
|
-
- `Object` an object with the new filters structure
|
|
949
2546
|
|
|
950
2547
|
|
|
951
2548
|
|
|
2549
|
+
##### Parameters
|
|
952
2550
|
|
|
953
|
-
|
|
2551
|
+
| Name | Type | Description | |
|
|
2552
|
+
| ---- | ---- | ----------- | -------- |
|
|
2553
|
+
| uFilter | | | |
|
|
954
2554
|
|
|
955
2555
|
|
|
956
|
-
#### applyHierarchyForAggFilters(chartSettings, scopes, currentScope)
|
|
957
2556
|
|
|
958
|
-
|
|
2557
|
+
|
|
2558
|
+
##### Returns
|
|
2559
|
+
|
|
2560
|
+
|
|
2561
|
+
- `Void`
|
|
2562
|
+
|
|
2563
|
+
|
|
2564
|
+
|
|
2565
|
+
#### this.areColumnsEquals(column1, column2)
|
|
2566
|
+
|
|
2567
|
+
Checks if two filter columns are the same.
|
|
959
2568
|
|
|
960
2569
|
|
|
961
2570
|
|
|
@@ -964,9 +2573,8 @@ const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
|
|
|
964
2573
|
|
|
965
2574
|
| Name | Type | Description | |
|
|
966
2575
|
| ---- | ---- | ----------- | -------- |
|
|
967
|
-
|
|
|
968
|
-
|
|
|
969
|
-
| currentScope | | | |
|
|
2576
|
+
| column1 | | | |
|
|
2577
|
+
| column2 | | | |
|
|
970
2578
|
|
|
971
2579
|
|
|
972
2580
|
|
|
@@ -974,17 +2582,17 @@ const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
|
|
|
974
2582
|
##### Returns
|
|
975
2583
|
|
|
976
2584
|
|
|
977
|
-
-
|
|
2585
|
+
- True: Columns are equal; False: Columns are not equal
|
|
978
2586
|
|
|
979
2587
|
|
|
980
2588
|
|
|
981
2589
|
|
|
982
|
-
### dist/
|
|
2590
|
+
### dist/general/array/delete.js
|
|
983
2591
|
|
|
984
2592
|
|
|
985
|
-
####
|
|
2593
|
+
#### ArrayDelete(array, index)
|
|
986
2594
|
|
|
987
|
-
|
|
2595
|
+
Inmutable Array Item deletion
|
|
988
2596
|
|
|
989
2597
|
|
|
990
2598
|
|
|
@@ -993,7 +2601,8 @@ Gets Scopes/Scope IDs by given IDs
|
|
|
993
2601
|
|
|
994
2602
|
| Name | Type | Description | |
|
|
995
2603
|
| ---- | ---- | ----------- | -------- |
|
|
996
|
-
|
|
|
2604
|
+
| array | `Array` | a collection of items to delete | |
|
|
2605
|
+
| index | `Number` | the position of the item to delete | |
|
|
997
2606
|
|
|
998
2607
|
|
|
999
2608
|
|
|
@@ -1001,17 +2610,20 @@ Gets Scopes/Scope IDs by given IDs
|
|
|
1001
2610
|
##### Returns
|
|
1002
2611
|
|
|
1003
2612
|
|
|
1004
|
-
- a
|
|
2613
|
+
- a new Array or the given parameter when is empty or not an array
|
|
1005
2614
|
|
|
1006
2615
|
|
|
1007
2616
|
|
|
1008
2617
|
|
|
1009
|
-
### dist/
|
|
2618
|
+
### dist/general/array/filterNestedTree.js
|
|
1010
2619
|
|
|
1011
2620
|
|
|
1012
|
-
####
|
|
2621
|
+
#### filterNestedTree(arr, childArrKey, condition)
|
|
1013
2622
|
|
|
1014
|
-
|
|
2623
|
+
Filters a nested tree array by a custom condition on the last child node
|
|
2624
|
+
- If the given arguments are not valid, the function returns the first argument.
|
|
2625
|
+
- If the childArrKey is not matched in the object, the condition tries to resolve the filter anyway and returns an empty array.
|
|
2626
|
+
- If the condition is not fulfilled, the function returns a filtered array, probably a empty array inside of the child array
|
|
1015
2627
|
|
|
1016
2628
|
|
|
1017
2629
|
|
|
@@ -1020,7 +2632,9 @@ Gets the Scopes IDS for the Available Scope function by any config
|
|
|
1020
2632
|
|
|
1021
2633
|
| Name | Type | Description | |
|
|
1022
2634
|
| ---- | ---- | ----------- | -------- |
|
|
1023
|
-
|
|
|
2635
|
+
| arr | | nested tree array | |
|
|
2636
|
+
| childArrKey | | property representing the children array on the nested tree | |
|
|
2637
|
+
| condition | | function callback that determines if the filter is applied on the last child node of the nested tree | |
|
|
1024
2638
|
|
|
1025
2639
|
|
|
1026
2640
|
|
|
@@ -1028,17 +2642,17 @@ Gets the Scopes IDS for the Available Scope function by any config
|
|
|
1028
2642
|
##### Returns
|
|
1029
2643
|
|
|
1030
2644
|
|
|
1031
|
-
-
|
|
2645
|
+
- array filtered
|
|
1032
2646
|
|
|
1033
2647
|
|
|
1034
2648
|
|
|
1035
2649
|
|
|
1036
|
-
### dist/
|
|
2650
|
+
### dist/general/array/flattenDeep.js
|
|
1037
2651
|
|
|
1038
2652
|
|
|
1039
|
-
####
|
|
2653
|
+
#### flattenDeep(arr)
|
|
1040
2654
|
|
|
1041
|
-
|
|
2655
|
+
Flat deeply an array
|
|
1042
2656
|
|
|
1043
2657
|
|
|
1044
2658
|
|
|
@@ -1047,8 +2661,7 @@ Gets the Scopes IDS for the Available Scope function by any config
|
|
|
1047
2661
|
|
|
1048
2662
|
| Name | Type | Description | |
|
|
1049
2663
|
| ---- | ---- | ----------- | -------- |
|
|
1050
|
-
|
|
|
1051
|
-
| currentScope | | Current scope type | |
|
|
2664
|
+
| arr | | Array to flat deeply | |
|
|
1052
2665
|
|
|
1053
2666
|
|
|
1054
2667
|
|
|
@@ -1056,17 +2669,17 @@ Gets the Scopes IDS for the Available Scope function by any config
|
|
|
1056
2669
|
##### Returns
|
|
1057
2670
|
|
|
1058
2671
|
|
|
1059
|
-
-
|
|
2672
|
+
- flatten array
|
|
1060
2673
|
|
|
1061
2674
|
|
|
1062
2675
|
|
|
1063
2676
|
|
|
1064
|
-
### dist/general/
|
|
2677
|
+
### dist/general/array/getArrayByProperty.js
|
|
1065
2678
|
|
|
1066
2679
|
|
|
1067
|
-
####
|
|
2680
|
+
#### getArrayByProperty(arr, property)
|
|
1068
2681
|
|
|
1069
|
-
|
|
2682
|
+
Gets a collection of object values by the given property
|
|
1070
2683
|
|
|
1071
2684
|
|
|
1072
2685
|
|
|
@@ -1075,8 +2688,8 @@ Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last
|
|
|
1075
2688
|
|
|
1076
2689
|
| Name | Type | Description | |
|
|
1077
2690
|
| ---- | ---- | ----------- | -------- |
|
|
1078
|
-
|
|
|
1079
|
-
|
|
|
2691
|
+
| arr | | An array | |
|
|
2692
|
+
| property | | the property to get the value collection | |
|
|
1080
2693
|
|
|
1081
2694
|
|
|
1082
2695
|
|
|
@@ -1084,17 +2697,17 @@ Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last
|
|
|
1084
2697
|
##### Returns
|
|
1085
2698
|
|
|
1086
2699
|
|
|
1087
|
-
-
|
|
2700
|
+
- a collection of values by property
|
|
1088
2701
|
|
|
1089
2702
|
|
|
1090
2703
|
|
|
1091
2704
|
|
|
1092
|
-
### dist/general/
|
|
2705
|
+
### dist/general/array/getFirstIndexFromArray.js
|
|
1093
2706
|
|
|
1094
2707
|
|
|
1095
|
-
####
|
|
2708
|
+
#### getFirstIndexFromArray(array, callback)
|
|
1096
2709
|
|
|
1097
|
-
|
|
2710
|
+
Gets the first index from the array by a callback condition
|
|
1098
2711
|
|
|
1099
2712
|
|
|
1100
2713
|
|
|
@@ -1103,8 +2716,8 @@ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
|
|
|
1103
2716
|
|
|
1104
2717
|
| Name | Type | Description | |
|
|
1105
2718
|
| ---- | ---- | ----------- | -------- |
|
|
1106
|
-
|
|
|
1107
|
-
|
|
|
2719
|
+
| array | | | |
|
|
2720
|
+
| callback | | function callback | |
|
|
1108
2721
|
|
|
1109
2722
|
|
|
1110
2723
|
|
|
@@ -1112,17 +2725,17 @@ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
|
|
|
1112
2725
|
##### Returns
|
|
1113
2726
|
|
|
1114
2727
|
|
|
1115
|
-
-
|
|
2728
|
+
- the first index of the array. -1 when the condition is not satisfied
|
|
1116
2729
|
|
|
1117
2730
|
|
|
1118
2731
|
|
|
1119
2732
|
|
|
1120
|
-
### dist/general/array/
|
|
2733
|
+
### dist/general/array/getLastIndexFromArray.js
|
|
1121
2734
|
|
|
1122
2735
|
|
|
1123
|
-
####
|
|
2736
|
+
#### getLastIndexFromArray(array, callback)
|
|
1124
2737
|
|
|
1125
|
-
|
|
2738
|
+
Gets the last index from the array by a callback condition
|
|
1126
2739
|
|
|
1127
2740
|
|
|
1128
2741
|
|
|
@@ -1131,8 +2744,8 @@ Inmutable Array Item deletion
|
|
|
1131
2744
|
|
|
1132
2745
|
| Name | Type | Description | |
|
|
1133
2746
|
| ---- | ---- | ----------- | -------- |
|
|
1134
|
-
| array |
|
|
1135
|
-
|
|
|
2747
|
+
| array | | | |
|
|
2748
|
+
| callback | | function callback | |
|
|
1136
2749
|
|
|
1137
2750
|
|
|
1138
2751
|
|
|
@@ -1140,17 +2753,19 @@ Inmutable Array Item deletion
|
|
|
1140
2753
|
##### Returns
|
|
1141
2754
|
|
|
1142
2755
|
|
|
1143
|
-
-
|
|
2756
|
+
- the last index of the array. -1 when the condition is not satisfied
|
|
1144
2757
|
|
|
1145
2758
|
|
|
1146
2759
|
|
|
1147
2760
|
|
|
1148
|
-
### dist/general/array/
|
|
2761
|
+
### dist/general/array/getUniqueArray.js
|
|
1149
2762
|
|
|
1150
2763
|
|
|
1151
|
-
####
|
|
2764
|
+
#### getUniqueArray(arr, prop)
|
|
1152
2765
|
|
|
1153
|
-
|
|
2766
|
+
Remove duplicated items from a given array by property name
|
|
2767
|
+
// 1. Store the keys of the unique objects
|
|
2768
|
+
// 2. Eliminate the dead keys & store unique objects
|
|
1154
2769
|
|
|
1155
2770
|
|
|
1156
2771
|
|
|
@@ -1159,7 +2774,8 @@ Flat deeply an array
|
|
|
1159
2774
|
|
|
1160
2775
|
| Name | Type | Description | |
|
|
1161
2776
|
| ---- | ---- | ----------- | -------- |
|
|
1162
|
-
| arr | |
|
|
2777
|
+
| arr | | The array | |
|
|
2778
|
+
| prop | | Property name to search duplicated values | |
|
|
1163
2779
|
|
|
1164
2780
|
|
|
1165
2781
|
|
|
@@ -1167,17 +2783,17 @@ Flat deeply an array
|
|
|
1167
2783
|
##### Returns
|
|
1168
2784
|
|
|
1169
2785
|
|
|
1170
|
-
-
|
|
2786
|
+
- Array without duplicated items.
|
|
1171
2787
|
|
|
1172
2788
|
|
|
1173
2789
|
|
|
1174
2790
|
|
|
1175
|
-
### dist/general/
|
|
2791
|
+
### dist/general/function/debounce.js
|
|
1176
2792
|
|
|
1177
2793
|
|
|
1178
|
-
####
|
|
2794
|
+
#### debounce(fn, time)
|
|
1179
2795
|
|
|
1180
|
-
|
|
2796
|
+
Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last time the debounced function was invoked.
|
|
1181
2797
|
|
|
1182
2798
|
|
|
1183
2799
|
|
|
@@ -1186,8 +2802,8 @@ Gets the first index from the array by a callback condition
|
|
|
1186
2802
|
|
|
1187
2803
|
| Name | Type | Description | |
|
|
1188
2804
|
| ---- | ---- | ----------- | -------- |
|
|
1189
|
-
|
|
|
1190
|
-
|
|
|
2805
|
+
| fn | `Function` | original Function | |
|
|
2806
|
+
| time | `Number` | default 500ms | |
|
|
1191
2807
|
|
|
1192
2808
|
|
|
1193
2809
|
|
|
@@ -1195,17 +2811,17 @@ Gets the first index from the array by a callback condition
|
|
|
1195
2811
|
##### Returns
|
|
1196
2812
|
|
|
1197
2813
|
|
|
1198
|
-
-
|
|
2814
|
+
- `Function` debounced functions
|
|
1199
2815
|
|
|
1200
2816
|
|
|
1201
2817
|
|
|
1202
2818
|
|
|
1203
|
-
### dist/general/
|
|
2819
|
+
### dist/general/function/throttled.js
|
|
1204
2820
|
|
|
1205
2821
|
|
|
1206
|
-
####
|
|
2822
|
+
#### throttled(fn, time)
|
|
1207
2823
|
|
|
1208
|
-
|
|
2824
|
+
Make sure to only invokes _fn_ at most once per every _time_ milliseconds
|
|
1209
2825
|
|
|
1210
2826
|
|
|
1211
2827
|
|
|
@@ -1214,8 +2830,8 @@ Gets the last index from the array by a callback condition
|
|
|
1214
2830
|
|
|
1215
2831
|
| Name | Type | Description | |
|
|
1216
2832
|
| ---- | ---- | ----------- | -------- |
|
|
1217
|
-
|
|
|
1218
|
-
|
|
|
2833
|
+
| fn | `Function` | original Function | |
|
|
2834
|
+
| time | `Number` | default 500ms | |
|
|
1219
2835
|
|
|
1220
2836
|
|
|
1221
2837
|
|
|
@@ -1223,20 +2839,18 @@ Gets the last index from the array by a callback condition
|
|
|
1223
2839
|
##### Returns
|
|
1224
2840
|
|
|
1225
2841
|
|
|
1226
|
-
-
|
|
2842
|
+
- `Function` throttled function
|
|
1227
2843
|
|
|
1228
2844
|
|
|
1229
2845
|
|
|
1230
2846
|
|
|
1231
|
-
### dist/general/
|
|
2847
|
+
### dist/general/mix/compareDeep.js
|
|
1232
2848
|
|
|
1233
2849
|
|
|
1234
|
-
####
|
|
2850
|
+
#### compareDeep(object1, object2)
|
|
1235
2851
|
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
- If the childArrKey is not matched in the object, the condition tries to resolve the filter anyway and returns an empty array.
|
|
1239
|
-
- If the condition is not fulfilled, the function returns a filtered array, probably a empty array inside of the child array
|
|
2852
|
+
Compares two objects to know if they are equals. Go across nested objects.
|
|
2853
|
+
Includes arrays in the comparison.
|
|
1240
2854
|
|
|
1241
2855
|
|
|
1242
2856
|
|
|
@@ -1245,9 +2859,8 @@ Filters a nested tree array by a custom condition on the last child node
|
|
|
1245
2859
|
|
|
1246
2860
|
| Name | Type | Description | |
|
|
1247
2861
|
| ---- | ---- | ----------- | -------- |
|
|
1248
|
-
|
|
|
1249
|
-
|
|
|
1250
|
-
| condition | | function callback that determines if the filter is applied on the last child node of the nested tree | |
|
|
2862
|
+
| object1 | | First Object to compare | |
|
|
2863
|
+
| object2 | | Second Object to compare | |
|
|
1251
2864
|
|
|
1252
2865
|
|
|
1253
2866
|
|
|
@@ -1255,18 +2868,17 @@ Filters a nested tree array by a custom condition on the last child node
|
|
|
1255
2868
|
##### Returns
|
|
1256
2869
|
|
|
1257
2870
|
|
|
1258
|
-
-
|
|
2871
|
+
- True: objects are equal. False: Objects are not equal. Undefined: invalid
|
|
1259
2872
|
|
|
1260
2873
|
|
|
1261
2874
|
|
|
1262
2875
|
|
|
1263
|
-
### dist/general/mix/
|
|
2876
|
+
### dist/general/mix/getTag.js
|
|
1264
2877
|
|
|
1265
2878
|
|
|
1266
|
-
####
|
|
2879
|
+
#### getTag(value)
|
|
1267
2880
|
|
|
1268
|
-
|
|
1269
|
-
Includes arrays in the comparison.
|
|
2881
|
+
Gets the `toStringTag` of `value`.
|
|
1270
2882
|
|
|
1271
2883
|
|
|
1272
2884
|
|
|
@@ -1275,8 +2887,7 @@ Includes arrays in the comparison.
|
|
|
1275
2887
|
|
|
1276
2888
|
| Name | Type | Description | |
|
|
1277
2889
|
| ---- | ---- | ----------- | -------- |
|
|
1278
|
-
|
|
|
1279
|
-
| object2 | | Second Object to compare | |
|
|
2890
|
+
| value | | The value to query. | |
|
|
1280
2891
|
|
|
1281
2892
|
|
|
1282
2893
|
|
|
@@ -1284,7 +2895,7 @@ Includes arrays in the comparison.
|
|
|
1284
2895
|
##### Returns
|
|
1285
2896
|
|
|
1286
2897
|
|
|
1287
|
-
-
|
|
2898
|
+
- `string` Returns the `toStringTag`.
|
|
1288
2899
|
|
|
1289
2900
|
|
|
1290
2901
|
|
|
@@ -1374,33 +2985,6 @@ return a Promise that is resolved when the script is loaded
|
|
|
1374
2985
|
|
|
1375
2986
|
|
|
1376
2987
|
|
|
1377
|
-
### dist/general/mix/getTag.js
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
#### getTag(value)
|
|
1381
|
-
|
|
1382
|
-
Gets the `toStringTag` of `value`.
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
##### Parameters
|
|
1388
|
-
|
|
1389
|
-
| Name | Type | Description | |
|
|
1390
|
-
| ---- | ---- | ----------- | -------- |
|
|
1391
|
-
| value | | The value to query. | |
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
##### Returns
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
- `string` Returns the `toStringTag`.
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
2988
|
### dist/general/mix/isEmpty.js
|
|
1405
2989
|
|
|
1406
2990
|
|
|
@@ -1545,6 +3129,33 @@ Gets the length of the given array.
|
|
|
1545
3129
|
|
|
1546
3130
|
|
|
1547
3131
|
|
|
3132
|
+
### dist/general/string/capitalize.js
|
|
3133
|
+
|
|
3134
|
+
|
|
3135
|
+
#### capitalize(text)
|
|
3136
|
+
|
|
3137
|
+
Upper case the first letter of a given text
|
|
3138
|
+
|
|
3139
|
+
|
|
3140
|
+
|
|
3141
|
+
|
|
3142
|
+
##### Parameters
|
|
3143
|
+
|
|
3144
|
+
| Name | Type | Description | |
|
|
3145
|
+
| ---- | ---- | ----------- | -------- |
|
|
3146
|
+
| text | `String` | | |
|
|
3147
|
+
|
|
3148
|
+
|
|
3149
|
+
|
|
3150
|
+
|
|
3151
|
+
##### Returns
|
|
3152
|
+
|
|
3153
|
+
|
|
3154
|
+
- `String` a capitalized text
|
|
3155
|
+
|
|
3156
|
+
|
|
3157
|
+
|
|
3158
|
+
|
|
1548
3159
|
### dist/general/object/cloneDeep.js
|
|
1549
3160
|
|
|
1550
3161
|
|
|
@@ -1769,83 +3380,6 @@ and return a mapped object
|
|
|
1769
3380
|
|
|
1770
3381
|
|
|
1771
3382
|
|
|
1772
|
-
### dist/general/object/mergeDeep.js
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
#### mergeDeep(obj1, obj2, settings)
|
|
1776
|
-
|
|
1777
|
-
Merges two objects into a new one.
|
|
1778
|
-
The second given argument to the first given argument.
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
##### Parameters
|
|
1784
|
-
|
|
1785
|
-
| Name | Type | Description | |
|
|
1786
|
-
| ---- | ---- | ----------- | -------- |
|
|
1787
|
-
| obj1 | | The target object | |
|
|
1788
|
-
| obj2 | | The object to be merged | |
|
|
1789
|
-
| settings | | Object settings for this function | |
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
##### Returns
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
- a new merged object
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
#### isValid(obj1, obj2)
|
|
1802
|
-
|
|
1803
|
-
Validates if the two arguments are objects
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
##### Parameters
|
|
1809
|
-
|
|
1810
|
-
| Name | Type | Description | |
|
|
1811
|
-
| ---- | ---- | ----------- | -------- |
|
|
1812
|
-
| obj1 | | The target object | |
|
|
1813
|
-
| obj2 | | The object to be merged | |
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
##### Returns
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
- true: they are valid; false: they are not
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
#### getParamsToMergeDeep(settings)
|
|
1826
|
-
|
|
1827
|
-
Validates and gets the settings with all set parameters.
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
##### Parameters
|
|
1833
|
-
|
|
1834
|
-
| Name | Type | Description | |
|
|
1835
|
-
| ---- | ---- | ----------- | -------- |
|
|
1836
|
-
| settings | | the settings object | |
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
##### Returns
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
- a new settings object with all set parameters.
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
3383
|
### dist/general/object/objectCopy.js
|
|
1850
3384
|
|
|
1851
3385
|
|
|
@@ -1902,40 +3436,13 @@ return a new Object excluding attributes in _props_ list
|
|
|
1902
3436
|
|
|
1903
3437
|
|
|
1904
3438
|
|
|
1905
|
-
### dist/general/object/
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
#### pick(baseObject, keys)
|
|
1909
|
-
|
|
1910
|
-
return a new object just with attributes in _keys_ list
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
##### Parameters
|
|
1916
|
-
|
|
1917
|
-
| Name | Type | Description | |
|
|
1918
|
-
| ---- | ---- | ----------- | -------- |
|
|
1919
|
-
| baseObject | `Object` | base object | |
|
|
1920
|
-
| keys | `Array.<String>` | list of attributes to preserve | |
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
##### Returns
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
- `Object` new object just with desired attributes
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
### dist/general/object/serialize.js
|
|
3439
|
+
### dist/general/object/mergeDeep.js
|
|
1934
3440
|
|
|
1935
3441
|
|
|
1936
|
-
####
|
|
3442
|
+
#### mergeDeep(obj1, obj2, settings)
|
|
1937
3443
|
|
|
1938
|
-
|
|
3444
|
+
Merges two objects into a new one.
|
|
3445
|
+
The second given argument to the first given argument.
|
|
1939
3446
|
|
|
1940
3447
|
|
|
1941
3448
|
|
|
@@ -1944,7 +3451,9 @@ serialize object to url param
|
|
|
1944
3451
|
|
|
1945
3452
|
| Name | Type | Description | |
|
|
1946
3453
|
| ---- | ---- | ----------- | -------- |
|
|
1947
|
-
|
|
|
3454
|
+
| obj1 | | The target object | |
|
|
3455
|
+
| obj2 | | The object to be merged | |
|
|
3456
|
+
| settings | | Object settings for this function | |
|
|
1948
3457
|
|
|
1949
3458
|
|
|
1950
3459
|
|
|
@@ -1952,17 +3461,13 @@ serialize object to url param
|
|
|
1952
3461
|
##### Returns
|
|
1953
3462
|
|
|
1954
3463
|
|
|
1955
|
-
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
3464
|
+
- a new merged object
|
|
1959
3465
|
|
|
1960
|
-
### dist/general/string/capitalize.js
|
|
1961
3466
|
|
|
1962
3467
|
|
|
1963
|
-
####
|
|
3468
|
+
#### isValid(obj1, obj2)
|
|
1964
3469
|
|
|
1965
|
-
|
|
3470
|
+
Validates if the two arguments are objects
|
|
1966
3471
|
|
|
1967
3472
|
|
|
1968
3473
|
|
|
@@ -1971,7 +3476,8 @@ Upper case the first letter of a given text
|
|
|
1971
3476
|
|
|
1972
3477
|
| Name | Type | Description | |
|
|
1973
3478
|
| ---- | ---- | ----------- | -------- |
|
|
1974
|
-
|
|
|
3479
|
+
| obj1 | | The target object | |
|
|
3480
|
+
| obj2 | | The object to be merged | |
|
|
1975
3481
|
|
|
1976
3482
|
|
|
1977
3483
|
|
|
@@ -1979,17 +3485,13 @@ Upper case the first letter of a given text
|
|
|
1979
3485
|
##### Returns
|
|
1980
3486
|
|
|
1981
3487
|
|
|
1982
|
-
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
3488
|
+
- true: they are valid; false: they are not
|
|
1986
3489
|
|
|
1987
|
-
### dist/dates/helpers/getDateByDateFormat.js
|
|
1988
3490
|
|
|
1989
3491
|
|
|
1990
|
-
####
|
|
3492
|
+
#### getParamsToMergeDeep(settings)
|
|
1991
3493
|
|
|
1992
|
-
|
|
3494
|
+
Validates and gets the settings with all set parameters.
|
|
1993
3495
|
|
|
1994
3496
|
|
|
1995
3497
|
|
|
@@ -1998,9 +3500,7 @@ Gets a Date Object instance by a Date format
|
|
|
1998
3500
|
|
|
1999
3501
|
| Name | Type | Description | |
|
|
2000
3502
|
| ---- | ---- | ----------- | -------- |
|
|
2001
|
-
|
|
|
2002
|
-
| format | | The date format | |
|
|
2003
|
-
| time | | flag to convert the formatted date to miliseconds | |
|
|
3503
|
+
| settings | | the settings object | |
|
|
2004
3504
|
|
|
2005
3505
|
|
|
2006
3506
|
|
|
@@ -2008,17 +3508,17 @@ Gets a Date Object instance by a Date format
|
|
|
2008
3508
|
##### Returns
|
|
2009
3509
|
|
|
2010
3510
|
|
|
2011
|
-
- a
|
|
3511
|
+
- a new settings object with all set parameters.
|
|
2012
3512
|
|
|
2013
3513
|
|
|
2014
3514
|
|
|
2015
3515
|
|
|
2016
|
-
### dist/
|
|
3516
|
+
### dist/general/object/pick.js
|
|
2017
3517
|
|
|
2018
3518
|
|
|
2019
|
-
####
|
|
3519
|
+
#### pick(baseObject, keys)
|
|
2020
3520
|
|
|
2021
|
-
|
|
3521
|
+
return a new object just with attributes in _keys_ list
|
|
2022
3522
|
|
|
2023
3523
|
|
|
2024
3524
|
|
|
@@ -2027,7 +3527,8 @@ Gets the date format by the given property
|
|
|
2027
3527
|
|
|
2028
3528
|
| Name | Type | Description | |
|
|
2029
3529
|
| ---- | ---- | ----------- | -------- |
|
|
2030
|
-
|
|
|
3530
|
+
| baseObject | `Object` | base object | |
|
|
3531
|
+
| keys | `Array.<String>` | list of attributes to preserve | |
|
|
2031
3532
|
|
|
2032
3533
|
|
|
2033
3534
|
|
|
@@ -2035,17 +3536,17 @@ Gets the date format by the given property
|
|
|
2035
3536
|
##### Returns
|
|
2036
3537
|
|
|
2037
3538
|
|
|
2038
|
-
-
|
|
3539
|
+
- `Object` new object just with desired attributes
|
|
2039
3540
|
|
|
2040
3541
|
|
|
2041
3542
|
|
|
2042
3543
|
|
|
2043
|
-
### dist/
|
|
3544
|
+
### dist/general/object/serialize.js
|
|
2044
3545
|
|
|
2045
3546
|
|
|
2046
|
-
####
|
|
3547
|
+
#### serialize(obj)
|
|
2047
3548
|
|
|
2048
|
-
|
|
3549
|
+
serialize object to url param
|
|
2049
3550
|
|
|
2050
3551
|
|
|
2051
3552
|
|
|
@@ -2054,7 +3555,7 @@ Gets an array of regular expressions by the given date format
|
|
|
2054
3555
|
|
|
2055
3556
|
| Name | Type | Description | |
|
|
2056
3557
|
| ---- | ---- | ----------- | -------- |
|
|
2057
|
-
|
|
|
3558
|
+
| obj | | - Object to be serialized | |
|
|
2058
3559
|
|
|
2059
3560
|
|
|
2060
3561
|
|
|
@@ -2062,17 +3563,18 @@ Gets an array of regular expressions by the given date format
|
|
|
2062
3563
|
##### Returns
|
|
2063
3564
|
|
|
2064
3565
|
|
|
2065
|
-
-
|
|
3566
|
+
- `Void`
|
|
2066
3567
|
|
|
2067
3568
|
|
|
2068
3569
|
|
|
2069
3570
|
|
|
2070
|
-
### dist/
|
|
3571
|
+
### dist/qrvey/helpers/areStaticColumnValues.js
|
|
2071
3572
|
|
|
2072
3573
|
|
|
2073
|
-
####
|
|
3574
|
+
#### areStaticColumnValues(column)
|
|
2074
3575
|
|
|
2075
|
-
|
|
3576
|
+
Determines if the given column is belonging to static values questions.
|
|
3577
|
+
Static values questions are questions that do not need request an info from backend, instead the info is got from Model, Question/List object.
|
|
2076
3578
|
|
|
2077
3579
|
|
|
2078
3580
|
|
|
@@ -2081,7 +3583,7 @@ Gets the separator of the date format
|
|
|
2081
3583
|
|
|
2082
3584
|
| Name | Type | Description | |
|
|
2083
3585
|
| ---- | ---- | ----------- | -------- |
|
|
2084
|
-
|
|
|
3586
|
+
| column | | The question column | |
|
|
2085
3587
|
|
|
2086
3588
|
|
|
2087
3589
|
|
|
@@ -2089,18 +3591,19 @@ Gets the separator of the date format
|
|
|
2089
3591
|
##### Returns
|
|
2090
3592
|
|
|
2091
3593
|
|
|
2092
|
-
- a
|
|
3594
|
+
- true if the column belongs to a static values question; otherwise, false
|
|
2093
3595
|
|
|
2094
3596
|
|
|
2095
3597
|
|
|
2096
3598
|
|
|
2097
|
-
### dist/
|
|
3599
|
+
### dist/qrvey/helpers/getCategorizableExpression.js
|
|
2098
3600
|
|
|
2099
3601
|
|
|
2100
|
-
####
|
|
3602
|
+
#### getCategorizableExpression(column, dataset)
|
|
2101
3603
|
|
|
2102
|
-
|
|
2103
|
-
|
|
3604
|
+
Special function for Expression Columns.
|
|
3605
|
+
This function allows validating if expression columns have active category option.
|
|
3606
|
+
This is esential in order to display the asigned property for expression.
|
|
2104
3607
|
|
|
2105
3608
|
|
|
2106
3609
|
|
|
@@ -2109,7 +3612,8 @@ Additionally, the month and the year
|
|
|
2109
3612
|
|
|
2110
3613
|
| Name | Type | Description | |
|
|
2111
3614
|
| ---- | ---- | ----------- | -------- |
|
|
2112
|
-
|
|
|
3615
|
+
| column | | The column with info | |
|
|
3616
|
+
| dataset | | the dataset object to search the column | |
|
|
2113
3617
|
|
|
2114
3618
|
|
|
2115
3619
|
|
|
@@ -2117,20 +3621,20 @@ Additionally, the month and the year
|
|
|
2117
3621
|
##### Returns
|
|
2118
3622
|
|
|
2119
3623
|
|
|
2120
|
-
-
|
|
3624
|
+
- true if expression column is categorizable; otherwise not. If does not exist, undefined is sent.
|
|
2121
3625
|
|
|
2122
3626
|
|
|
2123
3627
|
|
|
2124
3628
|
|
|
2125
|
-
### dist/
|
|
3629
|
+
### dist/qrvey/helpers/getDataAnswersByColumn.js
|
|
2126
3630
|
|
|
2127
3631
|
|
|
2128
|
-
####
|
|
3632
|
+
#### getDataAnswersByColumn(column, model, property)
|
|
2129
3633
|
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
-
|
|
2133
|
-
|
|
3634
|
+
Get answers located in model object. If column exists in the model, answers will be gotten depending on column type.
|
|
3635
|
+
For Rating columns, needs a number sequence (From 1 to 5).
|
|
3636
|
+
For Expression columns, needs a property type attribute for categorizable ones; for non-categorizable expressions is not required this attribute.
|
|
3637
|
+
For the others columns, answers is located in the property of the same name.
|
|
2134
3638
|
|
|
2135
3639
|
|
|
2136
3640
|
|
|
@@ -2139,8 +3643,9 @@ Validate a string date depending on giving format
|
|
|
2139
3643
|
|
|
2140
3644
|
| Name | Type | Description | |
|
|
2141
3645
|
| ---- | ---- | ----------- | -------- |
|
|
2142
|
-
|
|
|
2143
|
-
|
|
|
3646
|
+
| column | | Info of the column | |
|
|
3647
|
+
| model | | The model object | |
|
|
3648
|
+
| property | | Optional Attribute, especially for expression columns. | |
|
|
2144
3649
|
|
|
2145
3650
|
|
|
2146
3651
|
|
|
@@ -2148,17 +3653,17 @@ Validate a string date depending on giving format
|
|
|
2148
3653
|
##### Returns
|
|
2149
3654
|
|
|
2150
3655
|
|
|
2151
|
-
-
|
|
3656
|
+
- Formatted answers inside of answer property.
|
|
2152
3657
|
|
|
2153
3658
|
|
|
2154
3659
|
|
|
2155
3660
|
|
|
2156
|
-
### dist/
|
|
3661
|
+
### dist/qrvey/helpers/getExpressionAnswers.js
|
|
2157
3662
|
|
|
2158
3663
|
|
|
2159
|
-
####
|
|
3664
|
+
#### getExpressionAnswers(column, property)
|
|
2160
3665
|
|
|
2161
|
-
|
|
3666
|
+
Get the answers of expression columns. Depends of the property attribute and if the column is categorizable.
|
|
2162
3667
|
|
|
2163
3668
|
|
|
2164
3669
|
|
|
@@ -2167,8 +3672,8 @@ Validates the given string as Date by its date format.
|
|
|
2167
3672
|
|
|
2168
3673
|
| Name | Type | Description | |
|
|
2169
3674
|
| ---- | ---- | ----------- | -------- |
|
|
2170
|
-
|
|
|
2171
|
-
|
|
|
3675
|
+
| column | | The column located inside the model object. | |
|
|
3676
|
+
| property | | Optional Attribute, especially for expression columns. | |
|
|
2172
3677
|
|
|
2173
3678
|
|
|
2174
3679
|
|
|
@@ -2176,17 +3681,18 @@ Validates the given string as Date by its date format.
|
|
|
2176
3681
|
##### Returns
|
|
2177
3682
|
|
|
2178
3683
|
|
|
2179
|
-
-
|
|
3684
|
+
- Formatted answers inside of an answer property.
|
|
2180
3685
|
|
|
2181
3686
|
|
|
2182
3687
|
|
|
2183
3688
|
|
|
2184
|
-
### dist/
|
|
3689
|
+
### dist/qrvey/helpers/getDropdownAnswers.js
|
|
2185
3690
|
|
|
2186
3691
|
|
|
2187
|
-
####
|
|
3692
|
+
#### getDropdownAnswers(question)
|
|
2188
3693
|
|
|
2189
|
-
|
|
3694
|
+
Get the answers of dropdown columns.
|
|
3695
|
+
Answers is a direct array of strings so it is necessary to format them.
|
|
2190
3696
|
|
|
2191
3697
|
|
|
2192
3698
|
|
|
@@ -2195,46 +3701,34 @@ Resolve a list of relative statements according to operator
|
|
|
2195
3701
|
|
|
2196
3702
|
| Name | Type | Description | |
|
|
2197
3703
|
| ---- | ---- | ----------- | -------- |
|
|
2198
|
-
|
|
|
2199
|
-
| clock | `Date` | - Clock/time reference for relative date resolution | |
|
|
3704
|
+
| question | | The column located inside the model object. | |
|
|
2200
3705
|
|
|
2201
3706
|
|
|
2202
3707
|
|
|
2203
3708
|
|
|
2204
|
-
#####
|
|
2205
|
-
|
|
2206
|
-
```javascript
|
|
2207
|
-
Input:
|
|
2208
|
-
{
|
|
2209
|
-
"cursor": "the_next",
|
|
2210
|
-
"unit": "year",
|
|
2211
|
-
"number": 1,
|
|
2212
|
-
"includeCurrent": false,
|
|
2213
|
-
"isCalendarDate": false,
|
|
2214
|
-
"anchor": "03/05/2021"
|
|
2215
|
-
}
|
|
3709
|
+
##### Returns
|
|
2216
3710
|
|
|
2217
|
-
Output:
|
|
2218
|
-
{ gte: "03/06/2021 00:00:00", lte: "03/05/2022 23:59:59" }
|
|
2219
|
-
```
|
|
2220
3711
|
|
|
3712
|
+
- Formatted answers inside of an answer property.
|
|
2221
3713
|
|
|
2222
|
-
##### Returns
|
|
2223
3714
|
|
|
2224
3715
|
|
|
2225
|
-
- `Array.<AbsoluteRange>` `Array.<string>`
|
|
2226
3716
|
|
|
3717
|
+
### dist/qrvey/helpers/getImageAnswers.js
|
|
2227
3718
|
|
|
2228
3719
|
|
|
3720
|
+
#### getImageAnswers(column)
|
|
2229
3721
|
|
|
2230
|
-
|
|
3722
|
+
Get the answers of image columns.
|
|
2231
3723
|
|
|
2232
3724
|
|
|
2233
|
-
#### value()
|
|
2234
3725
|
|
|
2235
|
-
Resolves statement and returns statement value
|
|
2236
3726
|
|
|
3727
|
+
##### Parameters
|
|
2237
3728
|
|
|
3729
|
+
| Name | Type | Description | |
|
|
3730
|
+
| ---- | ---- | ----------- | -------- |
|
|
3731
|
+
| column | | The column located inside the model object. | |
|
|
2238
3732
|
|
|
2239
3733
|
|
|
2240
3734
|
|
|
@@ -2242,47 +3736,55 @@ Resolves statement and returns statement value
|
|
|
2242
3736
|
##### Returns
|
|
2243
3737
|
|
|
2244
3738
|
|
|
2245
|
-
-
|
|
3739
|
+
- Formatted answers inside of an answer property.
|
|
2246
3740
|
|
|
2247
3741
|
|
|
2248
3742
|
|
|
2249
|
-
#### valueAsAnchor()
|
|
2250
3743
|
|
|
2251
|
-
|
|
3744
|
+
### dist/qrvey/helpers/getImageUploadHasAnalysis.js
|
|
2252
3745
|
|
|
2253
3746
|
|
|
3747
|
+
#### getImageUploadHasAnalysis(column, model)
|
|
2254
3748
|
|
|
3749
|
+
Special function for Image Upload
|
|
3750
|
+
This function returns if the current column has object or text analysis as property.
|
|
2255
3751
|
|
|
2256
3752
|
|
|
2257
3753
|
|
|
2258
|
-
##### Returns
|
|
2259
3754
|
|
|
3755
|
+
##### Parameters
|
|
2260
3756
|
|
|
2261
|
-
|
|
3757
|
+
| Name | Type | Description | |
|
|
3758
|
+
| ---- | ---- | ----------- | -------- |
|
|
3759
|
+
| column | | The column with info | |
|
|
3760
|
+
| model | | The model object | |
|
|
2262
3761
|
|
|
2263
3762
|
|
|
2264
3763
|
|
|
2265
|
-
#### _statementToRange() *private method*
|
|
2266
3764
|
|
|
2267
|
-
|
|
3765
|
+
##### Returns
|
|
2268
3766
|
|
|
2269
3767
|
|
|
3768
|
+
- true if this column has analysis. Otherwise false.
|
|
2270
3769
|
|
|
2271
3770
|
|
|
2272
3771
|
|
|
2273
3772
|
|
|
2274
|
-
|
|
3773
|
+
### dist/qrvey/helpers/getRatingAnswers.js
|
|
2275
3774
|
|
|
2276
3775
|
|
|
2277
|
-
|
|
3776
|
+
#### getRatingAnswers(_question)
|
|
2278
3777
|
|
|
3778
|
+
Get the answers of rating columns.
|
|
2279
3779
|
|
|
2280
3780
|
|
|
2281
|
-
#### _resolveAsThis() *private method*
|
|
2282
3781
|
|
|
2283
|
-
Apply 'this' cursor logic to statement
|
|
2284
3782
|
|
|
3783
|
+
##### Parameters
|
|
2285
3784
|
|
|
3785
|
+
| Name | Type | Description | |
|
|
3786
|
+
| ---- | ---- | ----------- | -------- |
|
|
3787
|
+
| _question | | The column located inside the model object. | |
|
|
2286
3788
|
|
|
2287
3789
|
|
|
2288
3790
|
|
|
@@ -2290,45 +3792,44 @@ Apply 'this' cursor logic to statement
|
|
|
2290
3792
|
##### Returns
|
|
2291
3793
|
|
|
2292
3794
|
|
|
2293
|
-
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
#### _resolveAsTheLast() *private method*
|
|
3795
|
+
- Formatted answers inside of an answer property
|
|
2298
3796
|
|
|
2299
|
-
Apply 'the last' cursor logic to statement
|
|
2300
3797
|
|
|
2301
3798
|
|
|
2302
3799
|
|
|
3800
|
+
### dist/qrvey/helpers/getSlidebarAnswers.js
|
|
2303
3801
|
|
|
2304
3802
|
|
|
3803
|
+
#### getSlidebarAnswers(_question)
|
|
2305
3804
|
|
|
2306
|
-
|
|
3805
|
+
Get the answers of slidebar columns. The quantity of answers depend on the steps chosen in maker.
|
|
2307
3806
|
|
|
2308
3807
|
|
|
2309
|
-
- `AbsoluteStatement`
|
|
2310
3808
|
|
|
2311
3809
|
|
|
3810
|
+
##### Parameters
|
|
2312
3811
|
|
|
2313
|
-
|
|
3812
|
+
| Name | Type | Description | |
|
|
3813
|
+
| ---- | ---- | ----------- | -------- |
|
|
3814
|
+
| _question | | The column located inside the model object. | |
|
|
2314
3815
|
|
|
2315
|
-
Apply 'the next' cursor logic to statement
|
|
2316
3816
|
|
|
2317
3817
|
|
|
2318
3818
|
|
|
3819
|
+
##### Returns
|
|
2319
3820
|
|
|
2320
3821
|
|
|
3822
|
+
- Formatted answers inside of an answer property
|
|
2321
3823
|
|
|
2322
|
-
##### Returns
|
|
2323
3824
|
|
|
2324
3825
|
|
|
2325
|
-
- `AbsoluteStatement`
|
|
2326
3826
|
|
|
3827
|
+
### dist/qrvey/helpers/getSuffixTranslateByColumn.js
|
|
2327
3828
|
|
|
2328
3829
|
|
|
2329
|
-
####
|
|
3830
|
+
#### getSuffixTranslateByColumn(column)
|
|
2330
3831
|
|
|
2331
|
-
|
|
3832
|
+
Gets a string of the translate structure by the given column
|
|
2332
3833
|
|
|
2333
3834
|
|
|
2334
3835
|
|
|
@@ -2337,8 +3838,7 @@ Replace '@now' token inside a string
|
|
|
2337
3838
|
|
|
2338
3839
|
| Name | Type | Description | |
|
|
2339
3840
|
| ---- | ---- | ----------- | -------- |
|
|
2340
|
-
|
|
|
2341
|
-
| now | `Date` | | |
|
|
3841
|
+
| column | | the Info of the column | |
|
|
2342
3842
|
|
|
2343
3843
|
|
|
2344
3844
|
|
|
@@ -2346,60 +3846,47 @@ Replace '@now' token inside a string
|
|
|
2346
3846
|
##### Returns
|
|
2347
3847
|
|
|
2348
3848
|
|
|
2349
|
-
-
|
|
3849
|
+
- a string of the translation structure where the label is located.
|
|
2350
3850
|
|
|
2351
3851
|
|
|
2352
3852
|
|
|
2353
|
-
#### convertRelativeToAbsolute(args)
|
|
2354
3853
|
|
|
2355
|
-
|
|
3854
|
+
### dist/qrvey/helpers/getValueWithSuffixes.js
|
|
2356
3855
|
|
|
2357
3856
|
|
|
3857
|
+
#### getValueWithSuffixes(value, suffixes)
|
|
2358
3858
|
|
|
3859
|
+
Get a string value with suffixes if available.
|
|
3860
|
+
Add suffix into the value string. Prioritized for numeric values.
|
|
2359
3861
|
|
|
2360
|
-
##### Parameters
|
|
2361
3862
|
|
|
2362
|
-
| Name | Type | Description | |
|
|
2363
|
-
| ---- | ---- | ----------- | -------- |
|
|
2364
|
-
| args | `RelativeToAbsoluteStruct` | | |
|
|
2365
3863
|
|
|
2366
3864
|
|
|
3865
|
+
##### Parameters
|
|
2367
3866
|
|
|
3867
|
+
| Name | Type | Description | |
|
|
3868
|
+
| ---- | ---- | ----------- | -------- |
|
|
3869
|
+
| value | | a number or string | |
|
|
3870
|
+
| suffixes | | An object with singular or plural suffix string. | |
|
|
2368
3871
|
|
|
2369
|
-
##### Examples
|
|
2370
3872
|
|
|
2371
|
-
```javascript
|
|
2372
|
-
pivot = '2021-03-03T12:30:40'
|
|
2373
|
-
unit = month
|
|
2374
|
-
steps = 2
|
|
2375
|
-
setTo = END
|
|
2376
|
-
resolverAsCalendar: true
|
|
2377
|
-
=> Returns '2021-05-31T23:59:59'
|
|
2378
|
-
```
|
|
2379
|
-
```javascript
|
|
2380
|
-
pivot = '2021-03-03T12:30:40'
|
|
2381
|
-
unit = month
|
|
2382
|
-
steps = -2
|
|
2383
|
-
setTo = START
|
|
2384
|
-
resolverAsCalendar: false
|
|
2385
|
-
=> Returns '2021-01-03T00:00:00'
|
|
2386
|
-
```
|
|
2387
3873
|
|
|
2388
3874
|
|
|
2389
3875
|
##### Returns
|
|
2390
3876
|
|
|
2391
3877
|
|
|
2392
|
-
-
|
|
3878
|
+
- a string value with suffix
|
|
2393
3879
|
|
|
2394
3880
|
|
|
2395
3881
|
|
|
2396
3882
|
|
|
2397
|
-
### dist/
|
|
3883
|
+
### dist/qrvey/helpers/getYesNoAnswers.js
|
|
2398
3884
|
|
|
2399
3885
|
|
|
2400
|
-
####
|
|
3886
|
+
#### getYesNoAnswers(column)
|
|
2401
3887
|
|
|
2402
|
-
Get
|
|
3888
|
+
Get the answers of Yes/No columns.
|
|
3889
|
+
Yes/No answers from model object are capitalized but the filters need values in lowercase.
|
|
2403
3890
|
|
|
2404
3891
|
|
|
2405
3892
|
|
|
@@ -2408,56 +3895,25 @@ Get date range object from a string date value
|
|
|
2408
3895
|
|
|
2409
3896
|
| Name | Type | Description | |
|
|
2410
3897
|
| ---- | ---- | ----------- | -------- |
|
|
2411
|
-
|
|
|
2412
|
-
| dateGroupLabel | `String` | could be 'YEAR', 'QUARTER', 'MONTH' or 'DAY'. Deafult is 'DAY' | |
|
|
2413
|
-
| withTime | `Boolean` | determines if the date range will include time. Default is true | |
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
##### Examples
|
|
2419
|
-
|
|
2420
|
-
```javascript
|
|
2421
|
-
// 1) Year:
|
|
2422
|
-
getDateRange('2020', 'YEAR');
|
|
2423
|
-
// Will return:
|
|
2424
|
-
{
|
|
2425
|
-
from: '01/01/2020 00:00:00',
|
|
2426
|
-
to: '12/31/2020 23:59:59'
|
|
2427
|
-
}
|
|
3898
|
+
| column | | The column located inside the model object. | |
|
|
2428
3899
|
|
|
2429
|
-
// 2) Quarter:
|
|
2430
|
-
getDateRange('Q3 2020', 'QUARTER');
|
|
2431
|
-
// Will return:
|
|
2432
|
-
{
|
|
2433
|
-
from: '07/01/2020 00:00:00',
|
|
2434
|
-
to: '09/30/2020 23:59:59'
|
|
2435
|
-
}
|
|
2436
3900
|
|
|
2437
|
-
// 3) Month:
|
|
2438
|
-
getDateRange('Oct 2020', 'MONTH');
|
|
2439
|
-
// Will return:
|
|
2440
|
-
{
|
|
2441
|
-
from: '10/01/2020 00:00:00',
|
|
2442
|
-
to: '10/31/2020 23:59:59'
|
|
2443
|
-
}
|
|
2444
|
-
```
|
|
2445
3901
|
|
|
2446
3902
|
|
|
2447
3903
|
##### Returns
|
|
2448
3904
|
|
|
2449
3905
|
|
|
2450
|
-
-
|
|
3906
|
+
- Formatted answers inside of an answer property
|
|
2451
3907
|
|
|
2452
3908
|
|
|
2453
3909
|
|
|
2454
3910
|
|
|
2455
|
-
### dist/
|
|
3911
|
+
### dist/qrvey/helpers/transformValue.js
|
|
2456
3912
|
|
|
2457
3913
|
|
|
2458
|
-
####
|
|
3914
|
+
#### transformValue(value, settings)
|
|
2459
3915
|
|
|
2460
|
-
Transforms
|
|
3916
|
+
Transforms a value depending of localization/globalization and extras settings.
|
|
2461
3917
|
|
|
2462
3918
|
|
|
2463
3919
|
|
|
@@ -2466,8 +3922,8 @@ Transforms String Date from a [Month Year] format to Date object.
|
|
|
2466
3922
|
|
|
2467
3923
|
| Name | Type | Description | |
|
|
2468
3924
|
| ---- | ---- | ----------- | -------- |
|
|
2469
|
-
|
|
|
2470
|
-
|
|
|
3925
|
+
| value | | A value to transform | |
|
|
3926
|
+
| settings | | The settings of the transformValue function | |
|
|
2471
3927
|
|
|
2472
3928
|
|
|
2473
3929
|
|
|
@@ -2475,17 +3931,13 @@ Transforms String Date from a [Month Year] format to Date object.
|
|
|
2475
3931
|
##### Returns
|
|
2476
3932
|
|
|
2477
3933
|
|
|
2478
|
-
-
|
|
2479
|
-
|
|
2480
|
-
|
|
3934
|
+
- A transformed value
|
|
2481
3935
|
|
|
2482
3936
|
|
|
2483
|
-
### dist/dates/adapters/quarterYearToDate.js
|
|
2484
|
-
|
|
2485
3937
|
|
|
2486
|
-
####
|
|
3938
|
+
#### getOutputFormat(settings)
|
|
2487
3939
|
|
|
2488
|
-
|
|
3940
|
+
Gets the outputformat settings
|
|
2489
3941
|
|
|
2490
3942
|
|
|
2491
3943
|
|
|
@@ -2494,8 +3946,7 @@ Transforms String Date from a [Quarter Year] format to Date object.
|
|
|
2494
3946
|
|
|
2495
3947
|
| Name | Type | Description | |
|
|
2496
3948
|
| ---- | ---- | ----------- | -------- |
|
|
2497
|
-
|
|
|
2498
|
-
| time | | Flag to parse the object date to milliseconds. | |
|
|
3949
|
+
| settings | | The settings of the transformValue function | |
|
|
2499
3950
|
|
|
2500
3951
|
|
|
2501
3952
|
|
|
@@ -2503,17 +3954,13 @@ Transforms String Date from a [Quarter Year] format to Date object.
|
|
|
2503
3954
|
##### Returns
|
|
2504
3955
|
|
|
2505
3956
|
|
|
2506
|
-
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
3957
|
+
- the outputformat settings
|
|
2510
3958
|
|
|
2511
|
-
### dist/dates/adapters/weekYearToDate.js
|
|
2512
3959
|
|
|
2513
3960
|
|
|
2514
|
-
####
|
|
3961
|
+
#### getFormatConfig(settings)
|
|
2515
3962
|
|
|
2516
|
-
|
|
3963
|
+
Gets the format config
|
|
2517
3964
|
|
|
2518
3965
|
|
|
2519
3966
|
|
|
@@ -2522,8 +3969,7 @@ Transforms String Date from a [Week Year] format to Date object.
|
|
|
2522
3969
|
|
|
2523
3970
|
| Name | Type | Description | |
|
|
2524
3971
|
| ---- | ---- | ----------- | -------- |
|
|
2525
|
-
|
|
|
2526
|
-
| time | | Flag to parse the object date to milliseconds. | |
|
|
3972
|
+
| settings | | The settings of the transformValue function | |
|
|
2527
3973
|
|
|
2528
3974
|
|
|
2529
3975
|
|
|
@@ -2531,17 +3977,17 @@ Transforms String Date from a [Week Year] format to Date object.
|
|
|
2531
3977
|
##### Returns
|
|
2532
3978
|
|
|
2533
3979
|
|
|
2534
|
-
-
|
|
3980
|
+
- the format config
|
|
2535
3981
|
|
|
2536
3982
|
|
|
2537
3983
|
|
|
2538
3984
|
|
|
2539
|
-
### dist/
|
|
3985
|
+
### dist/services/adapters/BBranchesMapToUIBranchesMap.adapter.js
|
|
2540
3986
|
|
|
2541
3987
|
|
|
2542
|
-
####
|
|
3988
|
+
#### BBranchesMapToUIBranchesMap(branchesMap)
|
|
3989
|
+
|
|
2543
3990
|
|
|
2544
|
-
Transforms String Date from a [mm/dd/yyyy] format to Date object.
|
|
2545
3991
|
|
|
2546
3992
|
|
|
2547
3993
|
|
|
@@ -2550,8 +3996,7 @@ Transforms String Date from a [mm/dd/yyyy] format to Date object.
|
|
|
2550
3996
|
|
|
2551
3997
|
| Name | Type | Description | |
|
|
2552
3998
|
| ---- | ---- | ----------- | -------- |
|
|
2553
|
-
|
|
|
2554
|
-
| time | | Flag to parse the object date to milliseconds. | |
|
|
3999
|
+
| branchesMap | | | |
|
|
2555
4000
|
|
|
2556
4001
|
|
|
2557
4002
|
|
|
@@ -2559,17 +4004,21 @@ Transforms String Date from a [mm/dd/yyyy] format to Date object.
|
|
|
2559
4004
|
##### Returns
|
|
2560
4005
|
|
|
2561
4006
|
|
|
2562
|
-
-
|
|
4007
|
+
-
|
|
2563
4008
|
|
|
2564
4009
|
|
|
2565
4010
|
|
|
2566
4011
|
|
|
2567
|
-
### dist/
|
|
4012
|
+
### dist/services/api/getAllDatasets.api.js
|
|
2568
4013
|
|
|
2569
4014
|
|
|
2570
|
-
####
|
|
4015
|
+
#### getAllDatasets(config, qrveyids)
|
|
2571
4016
|
|
|
2572
|
-
|
|
4017
|
+
Get a dataset list from a collection of Qrvey IDs
|
|
4018
|
+
Considerations for qrveyids second argument:
|
|
4019
|
+
- If it is a undefined argument, the function will return all available datasets of the app
|
|
4020
|
+
- If it is a empty array argument, the function will return an empty dataset list. (A request will not be executed)
|
|
4021
|
+
- If it is a non-empty array argument, the function will return a set of available datasets
|
|
2573
4022
|
|
|
2574
4023
|
|
|
2575
4024
|
|
|
@@ -2578,8 +4027,8 @@ Transforms String Date from a [Year] format to Date object.
|
|
|
2578
4027
|
|
|
2579
4028
|
| Name | Type | Description | |
|
|
2580
4029
|
| ---- | ---- | ----------- | -------- |
|
|
2581
|
-
|
|
|
2582
|
-
|
|
|
4030
|
+
| config | | the widget config. Includes general configuration properties | |
|
|
4031
|
+
| qrveyids | | Collection of Qrvey IDs for returning a set of available datasets | |
|
|
2583
4032
|
|
|
2584
4033
|
|
|
2585
4034
|
|
|
@@ -2587,17 +4036,17 @@ Transforms String Date from a [Year] format to Date object.
|
|
|
2587
4036
|
##### Returns
|
|
2588
4037
|
|
|
2589
4038
|
|
|
2590
|
-
-
|
|
4039
|
+
- a promise that if it is resolved displays a collection of dataset info.
|
|
2591
4040
|
|
|
2592
4041
|
|
|
2593
4042
|
|
|
2594
4043
|
|
|
2595
|
-
### dist/
|
|
4044
|
+
### dist/services/api/getAllQrveys.api.js
|
|
2596
4045
|
|
|
2597
4046
|
|
|
2598
|
-
####
|
|
4047
|
+
#### getAllQrveys(config, params)
|
|
2599
4048
|
|
|
2600
|
-
|
|
4049
|
+
Request function for getting Qrveys such as Web Forms and Datasets. Use params for getting precise data
|
|
2601
4050
|
|
|
2602
4051
|
|
|
2603
4052
|
|
|
@@ -2606,7 +4055,8 @@ Get an string of the properties of the given column.
|
|
|
2606
4055
|
|
|
2607
4056
|
| Name | Type | Description | |
|
|
2608
4057
|
| ---- | ---- | ----------- | -------- |
|
|
2609
|
-
|
|
|
4058
|
+
| config | | Configuration | |
|
|
4059
|
+
| params | | Object for getting precise data | |
|
|
2610
4060
|
|
|
2611
4061
|
|
|
2612
4062
|
|
|
@@ -2614,17 +4064,17 @@ Get an string of the properties of the given column.
|
|
|
2614
4064
|
##### Returns
|
|
2615
4065
|
|
|
2616
4066
|
|
|
2617
|
-
-
|
|
4067
|
+
- `Void`
|
|
2618
4068
|
|
|
2619
4069
|
|
|
2620
4070
|
|
|
2621
4071
|
|
|
2622
|
-
### dist/services/api/
|
|
4072
|
+
### dist/services/api/getDatasetColumns.api.js
|
|
2623
4073
|
|
|
2624
4074
|
|
|
2625
|
-
####
|
|
4075
|
+
#### getDatasetColumns(qrveyid)
|
|
2626
4076
|
|
|
2627
|
-
Get a dataset
|
|
4077
|
+
Get a dataset by Qrvey ID
|
|
2628
4078
|
|
|
2629
4079
|
|
|
2630
4080
|
|
|
@@ -2633,7 +4083,7 @@ Get a dataset list from a collection of Qrvey IDs
|
|
|
2633
4083
|
|
|
2634
4084
|
| Name | Type | Description | |
|
|
2635
4085
|
| ---- | ---- | ----------- | -------- |
|
|
2636
|
-
|
|
|
4086
|
+
| qrveyid | | The Qrvey ID | |
|
|
2637
4087
|
|
|
2638
4088
|
|
|
2639
4089
|
|
|
@@ -2646,12 +4096,12 @@ Get a dataset list from a collection of Qrvey IDs
|
|
|
2646
4096
|
|
|
2647
4097
|
|
|
2648
4098
|
|
|
2649
|
-
### dist/services/api/
|
|
4099
|
+
### dist/services/api/getDatasetsByIds.api.js
|
|
2650
4100
|
|
|
2651
4101
|
|
|
2652
|
-
####
|
|
4102
|
+
#### getDatasetsByIds(qrveyid)
|
|
2653
4103
|
|
|
2654
|
-
|
|
4104
|
+
Get a dataset by Qrvey ID
|
|
2655
4105
|
|
|
2656
4106
|
|
|
2657
4107
|
|
|
@@ -2660,8 +4110,7 @@ POST Request for getting Qrveys such as Web Forms and Datasets. Use params for g
|
|
|
2660
4110
|
|
|
2661
4111
|
| Name | Type | Description | |
|
|
2662
4112
|
| ---- | ---- | ----------- | -------- |
|
|
2663
|
-
|
|
|
2664
|
-
| params | | Object for getting precise data | |
|
|
4113
|
+
| qrveyid | | The Qrvey ID | |
|
|
2665
4114
|
|
|
2666
4115
|
|
|
2667
4116
|
|
|
@@ -2669,34 +4118,40 @@ POST Request for getting Qrveys such as Web Forms and Datasets. Use params for g
|
|
|
2669
4118
|
##### Returns
|
|
2670
4119
|
|
|
2671
4120
|
|
|
2672
|
-
-
|
|
4121
|
+
- a promise
|
|
2673
4122
|
|
|
2674
4123
|
|
|
2675
4124
|
|
|
2676
4125
|
|
|
2677
|
-
### dist/
|
|
4126
|
+
### dist/stencil/decorators/Config.js
|
|
2678
4127
|
|
|
2679
4128
|
|
|
2680
|
-
####
|
|
4129
|
+
#### Config()
|
|
2681
4130
|
|
|
2682
|
-
|
|
4131
|
+
Stencil.js - Prop Decorator
|
|
4132
|
+
Get and Parse the Widget Configuration Object and also provide the ability to get properties in different case styles such as: lower, upper, camel and pascal
|
|
4133
|
+
But for this, is required ask for a property in `snake_case` style
|
|
2683
4134
|
|
|
2684
4135
|
|
|
2685
4136
|
|
|
2686
4137
|
|
|
2687
|
-
##### Parameters
|
|
2688
4138
|
|
|
2689
|
-
| Name | Type | Description | |
|
|
2690
|
-
| ---- | ---- | ----------- | -------- |
|
|
2691
|
-
| qrveyid | | The Qrvey ID | |
|
|
2692
4139
|
|
|
4140
|
+
##### Examples
|
|
4141
|
+
|
|
4142
|
+
```javascript
|
|
4143
|
+
\ @Config() @Prop() settings;
|
|
2693
4144
|
|
|
4145
|
+
someMethod() {
|
|
4146
|
+
this.settings.snake_case //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
|
|
4147
|
+
}
|
|
4148
|
+
```
|
|
2694
4149
|
|
|
2695
4150
|
|
|
2696
4151
|
##### Returns
|
|
2697
4152
|
|
|
2698
4153
|
|
|
2699
|
-
-
|
|
4154
|
+
- `Void`
|
|
2700
4155
|
|
|
2701
4156
|
|
|
2702
4157
|
|
|
@@ -2752,29 +4207,23 @@ try to find this string as a variable on Windows object
|
|
|
2752
4207
|
|
|
2753
4208
|
|
|
2754
4209
|
|
|
2755
|
-
### dist/
|
|
2756
|
-
|
|
4210
|
+
### dist/typescript/decorators/Throttled.js
|
|
2757
4211
|
|
|
2758
|
-
#### Config()
|
|
2759
4212
|
|
|
2760
|
-
|
|
2761
|
-
Get and Parse the Widget Configuration Object and also provide the ability to get properties in different case styles such as: lower, upper, camel and pascal
|
|
2762
|
-
But for this, is required ask for a property in `snake_case` style
|
|
4213
|
+
#### Throttled(time)
|
|
2763
4214
|
|
|
4215
|
+
(Method Decorator) Throttled Class Method
|
|
2764
4216
|
|
|
2765
4217
|
|
|
2766
4218
|
|
|
2767
4219
|
|
|
4220
|
+
##### Parameters
|
|
2768
4221
|
|
|
2769
|
-
|
|
4222
|
+
| Name | Type | Description | |
|
|
4223
|
+
| ---- | ---- | ----------- | -------- |
|
|
4224
|
+
| time | | (optional) deafult 500 | |
|
|
2770
4225
|
|
|
2771
|
-
```javascript
|
|
2772
|
-
\ @Config() @Prop() settings;
|
|
2773
4226
|
|
|
2774
|
-
someMethod() {
|
|
2775
|
-
this.settings.snake_case //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
|
|
2776
|
-
}
|
|
2777
|
-
```
|
|
2778
4227
|
|
|
2779
4228
|
|
|
2780
4229
|
##### Returns
|
|
@@ -2812,12 +4261,12 @@ someMethod() {
|
|
|
2812
4261
|
|
|
2813
4262
|
|
|
2814
4263
|
|
|
2815
|
-
### dist/
|
|
4264
|
+
### dist/dates/relative/helpers/formatStatement.js
|
|
2816
4265
|
|
|
2817
4266
|
|
|
2818
|
-
####
|
|
4267
|
+
#### formatStatement(statement)
|
|
2819
4268
|
|
|
2820
|
-
|
|
4269
|
+
Build a proper relative date statement type
|
|
2821
4270
|
|
|
2822
4271
|
|
|
2823
4272
|
|
|
@@ -2826,7 +4275,7 @@ someMethod() {
|
|
|
2826
4275
|
|
|
2827
4276
|
| Name | Type | Description | |
|
|
2828
4277
|
| ---- | ---- | ----------- | -------- |
|
|
2829
|
-
|
|
|
4278
|
+
| statement | `RelativeStatement` | | |
|
|
2830
4279
|
|
|
2831
4280
|
|
|
2832
4281
|
|
|
@@ -2834,17 +4283,17 @@ someMethod() {
|
|
|
2834
4283
|
##### Returns
|
|
2835
4284
|
|
|
2836
4285
|
|
|
2837
|
-
- `
|
|
4286
|
+
- `RelativeStatement`
|
|
2838
4287
|
|
|
2839
4288
|
|
|
2840
4289
|
|
|
2841
4290
|
|
|
2842
|
-
### dist/
|
|
4291
|
+
### dist/dates/relative/helpers/getStatementCase.js
|
|
2843
4292
|
|
|
2844
4293
|
|
|
2845
|
-
####
|
|
4294
|
+
#### getStatementCase(includeCurrent, isCalendarDate)
|
|
2846
4295
|
|
|
2847
|
-
Returns a
|
|
4296
|
+
Returns a number/constant that identifies a relative date case
|
|
2848
4297
|
|
|
2849
4298
|
|
|
2850
4299
|
|
|
@@ -2853,7 +4302,8 @@ Returns a filter builder config object by a any given config
|
|
|
2853
4302
|
|
|
2854
4303
|
| Name | Type | Description | |
|
|
2855
4304
|
| ---- | ---- | ----------- | -------- |
|
|
2856
|
-
|
|
|
4305
|
+
| includeCurrent | `boolean` | | |
|
|
4306
|
+
| isCalendarDate | `boolean` | | |
|
|
2857
4307
|
|
|
2858
4308
|
|
|
2859
4309
|
|
|
@@ -2861,7 +4311,34 @@ Returns a filter builder config object by a any given config
|
|
|
2861
4311
|
##### Returns
|
|
2862
4312
|
|
|
2863
4313
|
|
|
2864
|
-
-
|
|
4314
|
+
- `number`
|
|
4315
|
+
|
|
4316
|
+
|
|
4317
|
+
|
|
4318
|
+
|
|
4319
|
+
### dist/dates/relative/helpers/parseDate.js
|
|
4320
|
+
|
|
4321
|
+
|
|
4322
|
+
#### parseDate(date)
|
|
4323
|
+
|
|
4324
|
+
Parses a string date and returns a dayjs date
|
|
4325
|
+
|
|
4326
|
+
|
|
4327
|
+
|
|
4328
|
+
|
|
4329
|
+
##### Parameters
|
|
4330
|
+
|
|
4331
|
+
| Name | Type | Description | |
|
|
4332
|
+
| ---- | ---- | ----------- | -------- |
|
|
4333
|
+
| date | `string` `Dayjs` `Date` | | |
|
|
4334
|
+
|
|
4335
|
+
|
|
4336
|
+
|
|
4337
|
+
|
|
4338
|
+
##### Returns
|
|
4339
|
+
|
|
4340
|
+
|
|
4341
|
+
- `Dayjs` A dayjs date
|
|
2865
4342
|
|
|
2866
4343
|
|
|
2867
4344
|
|
|
@@ -3162,6 +4639,33 @@ Gets filters from the logic by the scopes hierarchy.
|
|
|
3162
4639
|
|
|
3163
4640
|
|
|
3164
4641
|
|
|
4642
|
+
### dist/filters/helpers/builder/getFilterBuilderGeneralConfig.js
|
|
4643
|
+
|
|
4644
|
+
|
|
4645
|
+
#### getFilterBuilderGeneralConfig(config)
|
|
4646
|
+
|
|
4647
|
+
Returns a filter builder config object by a any given config
|
|
4648
|
+
|
|
4649
|
+
|
|
4650
|
+
|
|
4651
|
+
|
|
4652
|
+
##### Parameters
|
|
4653
|
+
|
|
4654
|
+
| Name | Type | Description | |
|
|
4655
|
+
| ---- | ---- | ----------- | -------- |
|
|
4656
|
+
| config | | any config object | |
|
|
4657
|
+
|
|
4658
|
+
|
|
4659
|
+
|
|
4660
|
+
|
|
4661
|
+
##### Returns
|
|
4662
|
+
|
|
4663
|
+
|
|
4664
|
+
- The filter builder config object
|
|
4665
|
+
|
|
4666
|
+
|
|
4667
|
+
|
|
4668
|
+
|
|
3165
4669
|
### dist/filters/helpers/common/areFiltersEquals.js
|
|
3166
4670
|
|
|
3167
4671
|
|
|
@@ -3576,6 +5080,60 @@ Transforms the given ParamsToGetFilter settings object. Adds the missing propert
|
|
|
3576
5080
|
|
|
3577
5081
|
|
|
3578
5082
|
|
|
5083
|
+
### dist/filters/helpers/common/getValuesFromDataset.js
|
|
5084
|
+
|
|
5085
|
+
|
|
5086
|
+
#### getValuesFromDataset(props)
|
|
5087
|
+
|
|
5088
|
+
Gets the values from the model object that will be used to filter. Static values are values to belong from static values questions. Static values questions are questions that do not need request an info from backend, instead the info is got from Model object.
|
|
5089
|
+
|
|
5090
|
+
|
|
5091
|
+
|
|
5092
|
+
|
|
5093
|
+
##### Parameters
|
|
5094
|
+
|
|
5095
|
+
| Name | Type | Description | |
|
|
5096
|
+
| ---- | ---- | ----------- | -------- |
|
|
5097
|
+
| props | | Configuration to get static values from the given dataset. | |
|
|
5098
|
+
|
|
5099
|
+
|
|
5100
|
+
|
|
5101
|
+
|
|
5102
|
+
##### Returns
|
|
5103
|
+
|
|
5104
|
+
|
|
5105
|
+
- The values.
|
|
5106
|
+
|
|
5107
|
+
|
|
5108
|
+
|
|
5109
|
+
|
|
5110
|
+
### dist/filters/helpers/common/getValuesFromModel.js
|
|
5111
|
+
|
|
5112
|
+
|
|
5113
|
+
#### getValuesFromModel(props)
|
|
5114
|
+
|
|
5115
|
+
Gets the values from the model object that will be used to filter. Static values are values to belong from static values questions. Static values questions are questions that do not need request an info from backend, instead the info is got from Model object.
|
|
5116
|
+
|
|
5117
|
+
|
|
5118
|
+
|
|
5119
|
+
|
|
5120
|
+
##### Parameters
|
|
5121
|
+
|
|
5122
|
+
| Name | Type | Description | |
|
|
5123
|
+
| ---- | ---- | ----------- | -------- |
|
|
5124
|
+
| props | | Configuration to get static values from the given model. | |
|
|
5125
|
+
|
|
5126
|
+
|
|
5127
|
+
|
|
5128
|
+
|
|
5129
|
+
##### Returns
|
|
5130
|
+
|
|
5131
|
+
|
|
5132
|
+
- The values.
|
|
5133
|
+
|
|
5134
|
+
|
|
5135
|
+
|
|
5136
|
+
|
|
3579
5137
|
### dist/filters/helpers/common/haveFiltersByDataset.js
|
|
3580
5138
|
|
|
3581
5139
|
|
|
@@ -4096,6 +5654,34 @@ Gets output format object from Datasets by the given column. Item of the dataset
|
|
|
4096
5654
|
|
|
4097
5655
|
|
|
4098
5656
|
|
|
5657
|
+
### dist/filters/helpers/ui/getQrveyIdsByUIFilters.js
|
|
5658
|
+
|
|
5659
|
+
|
|
5660
|
+
#### getQrveyIdsByUIFilters(uiFilter)
|
|
5661
|
+
|
|
5662
|
+
Gets a collection of Qrvey IDs in the UI Filter structure.
|
|
5663
|
+
Looks around all filter structure finding the qrveyid propertty in each dataset
|
|
5664
|
+
|
|
5665
|
+
|
|
5666
|
+
|
|
5667
|
+
|
|
5668
|
+
##### Parameters
|
|
5669
|
+
|
|
5670
|
+
| Name | Type | Description | |
|
|
5671
|
+
| ---- | ---- | ----------- | -------- |
|
|
5672
|
+
| uiFilter | | | |
|
|
5673
|
+
|
|
5674
|
+
|
|
5675
|
+
|
|
5676
|
+
|
|
5677
|
+
##### Returns
|
|
5678
|
+
|
|
5679
|
+
|
|
5680
|
+
- `Void`
|
|
5681
|
+
|
|
5682
|
+
|
|
5683
|
+
|
|
5684
|
+
|
|
4099
5685
|
### dist/filters/helpers/ui/getUIFlatFilterByParams.js
|
|
4100
5686
|
|
|
4101
5687
|
|
|
@@ -4210,67 +5796,12 @@ Filters and gets a UI Flatten Filters by the given scopes
|
|
|
4210
5796
|
|
|
4211
5797
|
|
|
4212
5798
|
|
|
4213
|
-
### dist/filters/helpers/ui/
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
#### resolveUIFlatFilterByParams(filter, params)
|
|
4217
|
-
|
|
4218
|
-
Resolves conditions between UI flattened filter and given parameters
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
##### Parameters
|
|
4224
|
-
|
|
4225
|
-
| Name | Type | Description | |
|
|
4226
|
-
| ---- | ---- | ----------- | -------- |
|
|
4227
|
-
| filter | | UI Flatten Filter | |
|
|
4228
|
-
| params | | Parameters to validate | |
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
##### Returns
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
- true: the conditions are satisfied.
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
### dist/dates/relative/helpers/formatStatement.js
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
#### formatStatement(statement)
|
|
4245
|
-
|
|
4246
|
-
Build a proper relative date statement type
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
##### Parameters
|
|
4252
|
-
|
|
4253
|
-
| Name | Type | Description | |
|
|
4254
|
-
| ---- | ---- | ----------- | -------- |
|
|
4255
|
-
| statement | `RelativeStatement` | | |
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
##### Returns
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
- `RelativeStatement`
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
### dist/dates/relative/helpers/parseDate.js
|
|
5799
|
+
### dist/filters/helpers/ui/getUpdatedUIFilters.js
|
|
4269
5800
|
|
|
4270
5801
|
|
|
4271
|
-
####
|
|
5802
|
+
#### getUpdatedUIFilters(data, datasets)
|
|
4272
5803
|
|
|
4273
|
-
|
|
5804
|
+
Gets a new UI Filter structure with a datasets/columns info updates
|
|
4274
5805
|
|
|
4275
5806
|
|
|
4276
5807
|
|
|
@@ -4279,7 +5810,8 @@ Parses a string date and returns a dayjs date
|
|
|
4279
5810
|
|
|
4280
5811
|
| Name | Type | Description | |
|
|
4281
5812
|
| ---- | ---- | ----------- | -------- |
|
|
4282
|
-
|
|
|
5813
|
+
| data | | The UI Filter structure | |
|
|
5814
|
+
| datasets | | An array of datasets/column info used for updating the data | |
|
|
4283
5815
|
|
|
4284
5816
|
|
|
4285
5817
|
|
|
@@ -4287,17 +5819,17 @@ Parses a string date and returns a dayjs date
|
|
|
4287
5819
|
##### Returns
|
|
4288
5820
|
|
|
4289
5821
|
|
|
4290
|
-
-
|
|
5822
|
+
- A new UI FIlter structure
|
|
4291
5823
|
|
|
4292
5824
|
|
|
4293
5825
|
|
|
4294
5826
|
|
|
4295
|
-
### dist/
|
|
5827
|
+
### dist/filters/helpers/ui/resolveUIFlatFilterByParams.js
|
|
4296
5828
|
|
|
4297
5829
|
|
|
4298
|
-
####
|
|
5830
|
+
#### resolveUIFlatFilterByParams(filter, params)
|
|
4299
5831
|
|
|
4300
|
-
|
|
5832
|
+
Resolves conditions between UI flattened filter and given parameters
|
|
4301
5833
|
|
|
4302
5834
|
|
|
4303
5835
|
|
|
@@ -4306,8 +5838,8 @@ Returns a number/constant that identifies a relative date case
|
|
|
4306
5838
|
|
|
4307
5839
|
| Name | Type | Description | |
|
|
4308
5840
|
| ---- | ---- | ----------- | -------- |
|
|
4309
|
-
|
|
|
4310
|
-
|
|
|
5841
|
+
| filter | | UI Flatten Filter | |
|
|
5842
|
+
| params | | Parameters to validate | |
|
|
4311
5843
|
|
|
4312
5844
|
|
|
4313
5845
|
|
|
@@ -4315,7 +5847,7 @@ Returns a number/constant that identifies a relative date case
|
|
|
4315
5847
|
##### Returns
|
|
4316
5848
|
|
|
4317
5849
|
|
|
4318
|
-
-
|
|
5850
|
+
- true: the conditions are satisfied.
|
|
4319
5851
|
|
|
4320
5852
|
|
|
4321
5853
|
|