@qrvey/utils 1.2.4-13 → 1.2.4-17
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 +1468 -1082
- package/dist/cjs/columns/constants/COLUMN.d.ts +6 -6
- package/dist/cjs/columns/constants/COLUMN.js +8 -8
- package/dist/cjs/columns/constants/COLUMN_INFO.js +2 -1
- package/dist/cjs/columns/constants/COLUMN_INFO_LIST.js +2 -6
- package/dist/cjs/columns/constants/COLUMN_LABEL.d.ts +7 -6
- package/dist/cjs/columns/constants/COLUMN_LABEL.js +2 -1
- package/dist/cjs/columns/constants/COLUMN_PROPERTY.d.ts +4 -4
- package/dist/cjs/columns/constants/COLUMN_PROPERTY.js +4 -4
- package/dist/cjs/columns/constants/COLUMN_PROPERTY_LABEL.d.ts +4 -4
- package/dist/cjs/columns/constants/COMPLEX_COLUMN_PROPERTIES.js +4 -4
- package/dist/cjs/columns/constants/COMPLEX_COLUMN_PROPERTY.d.ts +4 -4
- package/dist/cjs/columns/constants/COMPLEX_COLUMN_PROPERTY.js +4 -4
- package/dist/cjs/columns/constants/COMPLEX_COLUMN_PROPERTY_INFO.js +4 -4
- package/dist/cjs/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.d.ts +4 -4
- package/dist/cjs/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.js +4 -4
- package/dist/cjs/columns/constants/NUMERICAL_COLUMN.d.ts +8 -0
- package/dist/cjs/columns/constants/NUMERICAL_COLUMN.js +12 -0
- package/dist/cjs/columns/constants/NUMERICAL_COLUMNS.d.ts +5 -0
- package/dist/cjs/columns/constants/NUMERICAL_COLUMNS.js +15 -0
- package/dist/cjs/columns/constants/NUMERICAL_COLUMN_INFO.d.ts +8 -0
- package/dist/cjs/columns/constants/NUMERICAL_COLUMN_INFO.js +16 -0
- package/dist/cjs/columns/constants/NUMERICAL_COLUMN_INFO_LIST.d.ts +5 -0
- package/dist/cjs/columns/constants/NUMERICAL_COLUMN_INFO_LIST.js +16 -0
- package/dist/cjs/columns/constants/NUMERICAL_COLUMN_LABEL.d.ts +8 -0
- package/dist/cjs/columns/constants/NUMERICAL_COLUMN_LABEL.js +12 -0
- package/dist/cjs/columns/constants/index.d.ts +5 -0
- package/dist/cjs/columns/constants/index.js +5 -0
- package/dist/cjs/columns/helpers/index.d.ts +1 -0
- package/dist/cjs/columns/helpers/index.js +1 -0
- package/dist/cjs/columns/helpers/isNumericalColumn.d.ts +2 -0
- package/dist/cjs/columns/helpers/isNumericalColumn.js +8 -0
- package/dist/cjs/columns/interfaces/IColumnType.d.ts +2 -1
- package/dist/cjs/columns/interfaces/INumericalColumnType.d.ts +2 -0
- package/dist/cjs/{globalization/interfaces/filters/II18nFilterBuilderInfoContainerSelection.js → columns/interfaces/INumericalColumnType.js} +0 -0
- package/dist/cjs/columns/interfaces/index.d.ts +3 -0
- package/dist/cjs/columns/interfaces/index.js +3 -0
- package/dist/cjs/dates/adapters/mdyDateToDate.d.ts +7 -0
- package/dist/cjs/dates/adapters/mdyDateToDate.js +21 -0
- package/dist/cjs/dates/adapters/monthYearToDate.d.ts +7 -0
- package/dist/cjs/dates/adapters/monthYearToDate.js +24 -0
- package/dist/cjs/dates/adapters/quarterYearToDate.d.ts +7 -0
- package/dist/cjs/dates/adapters/quarterYearToDate.js +24 -0
- package/dist/cjs/dates/adapters/weekYearToDate.d.ts +7 -0
- package/dist/cjs/dates/adapters/weekYearToDate.js +32 -0
- package/dist/cjs/dates/adapters/yearToDate.d.ts +7 -0
- package/dist/cjs/dates/adapters/yearToDate.js +22 -0
- package/dist/cjs/dates/constants/DATE_FORMAT.d.ts +16 -14
- package/dist/cjs/dates/constants/DATE_FORMAT.js +23 -18
- package/dist/cjs/dates/constants/DATE_REGULAR_EXPRESSION.d.ts +19 -1
- package/dist/cjs/dates/constants/DATE_REGULAR_EXPRESSION.js +29 -5
- package/dist/cjs/dates/constants/DATE_YEAR_QUARTERS_RANGE.d.ts +18 -0
- package/dist/cjs/dates/constants/DATE_YEAR_QUARTERS_RANGE.js +21 -0
- package/dist/cjs/dates/constants/index.d.ts +1 -0
- package/dist/cjs/dates/constants/index.js +1 -0
- package/dist/cjs/dates/helpers/getDateByDateFormat.d.ts +9 -0
- package/dist/cjs/dates/helpers/getDateByDateFormat.js +36 -0
- package/dist/cjs/dates/helpers/getDateFormatByProperty.d.ts +8 -0
- package/dist/cjs/dates/helpers/getDateFormatByProperty.js +27 -0
- package/dist/cjs/dates/helpers/getDateFormatRegularExpressionInArray.d.ts +7 -0
- package/dist/cjs/dates/helpers/getDateFormatRegularExpressionInArray.js +47 -0
- package/dist/cjs/dates/helpers/getSeparatorByDateFormat.d.ts +7 -0
- package/dist/cjs/dates/helpers/getSeparatorByDateFormat.js +15 -0
- package/dist/cjs/dates/helpers/getWeek.d.ts +11 -0
- package/dist/cjs/dates/helpers/getWeek.js +25 -0
- package/dist/cjs/dates/helpers/index.d.ts +6 -0
- package/dist/cjs/dates/helpers/index.js +18 -0
- package/dist/cjs/dates/helpers/validateDate.d.ts +11 -0
- package/dist/cjs/dates/helpers/validateDate.js +24 -0
- package/dist/cjs/dates/helpers/validateDateByDateFormat.d.ts +8 -0
- package/dist/cjs/dates/helpers/validateDateByDateFormat.js +26 -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.d.ts +3 -12
- package/dist/cjs/dates/relative/constants/RELATIVE_CURSOR_INFO.js +4 -3
- package/dist/cjs/dates/relative/constants/RELATIVE_CURSOR_INFO_LIST.d.ts +5 -0
- package/dist/cjs/dates/relative/constants/RELATIVE_CURSOR_INFO_LIST.js +13 -0
- package/dist/cjs/dates/relative/constants/RELATIVE_CURSOR_LABEL.d.ts +5 -0
- package/dist/cjs/dates/relative/constants/RELATIVE_CURSOR_LABEL.js +9 -0
- package/dist/cjs/dates/relative/constants/index.d.ts +2 -0
- package/dist/cjs/dates/relative/constants/index.js +2 -0
- package/dist/cjs/dates/relative/interfaces/IRelativeCursorInfo.d.ts +5 -0
- package/dist/cjs/{globalization/interfaces/filters/II18nValueContainerSearchInputEnterValue.js → dates/relative/interfaces/IRelativeCursorInfo.js} +0 -0
- package/dist/cjs/dates/relative/interfaces/index.d.ts +1 -0
- package/dist/cjs/dates/relative/interfaces/index.js +1 -0
- package/dist/cjs/filters/classes/FilterInputErrorHandler.d.ts +27 -0
- package/dist/cjs/filters/classes/FilterInputErrorHandler.js +15 -0
- package/dist/cjs/filters/classes/index.d.ts +1 -0
- package/dist/cjs/filters/classes/index.js +13 -0
- package/dist/cjs/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.d.ts +5 -0
- package/dist/cjs/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.js +9 -0
- package/dist/cjs/filters/index.d.ts +1 -0
- package/dist/cjs/filters/index.js +1 -0
- package/dist/cjs/general/mix/index.d.ts +1 -0
- package/dist/cjs/general/mix/index.js +1 -0
- package/dist/cjs/general/mix/isNaNV2.d.ts +8 -0
- package/dist/cjs/general/mix/isNaNV2.js +15 -0
- package/dist/cjs/globalization/interfaces/II18nServiceTranslateOption.d.ts +4 -0
- package/dist/cjs/globalization/interfaces/II18nServiceTranslateOption.js +2 -0
- package/dist/cjs/globalization/interfaces/IResourceI18n.d.ts +18 -10
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilder.d.ts +24 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilder.js +2 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderBasicBucket.d.ts +15 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderBasicBucket.js +2 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderCreateBucket.d.ts +33 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderCreateBucket.js +2 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderCustomBucket.d.ts +15 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderCustomBucket.js +2 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderDeleteDialog.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderDeleteDialog.js +2 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderEditDialog.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderEditDialog.js +2 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderListBuckets.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderListBuckets.js +2 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderMenuBucket.d.ts +5 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderMenuBucket.js +2 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.d.ts +7 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.js +2 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.d.ts +5 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.js +2 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderOperator.d.ts +11 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderOperator.js +2 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderSentimentBucket.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderSentimentBucket.js +2 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/index.d.ts +12 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/index.js +24 -0
- package/dist/cjs/globalization/interfaces/common/II18nColumnProperties.d.ts +29 -29
- package/dist/cjs/globalization/interfaces/common/II18nColumnTypesSuffixes.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/common/II18nColumnTypesSuffixes.js +2 -0
- package/dist/cjs/globalization/interfaces/common/II18nCommon.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/common/index.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/common/index.js +1 -0
- package/dist/cjs/globalization/interfaces/cross_tabs/II18nCrossTabs.d.ts +8 -0
- package/dist/cjs/globalization/interfaces/cross_tabs/II18nCrossTabs.js +2 -0
- package/dist/cjs/globalization/interfaces/cross_tabs/II18nCrossTabsSorting.d.ts +5 -0
- package/dist/cjs/globalization/interfaces/cross_tabs/II18nCrossTabsSorting.js +2 -0
- package/dist/cjs/globalization/interfaces/cross_tabs/index.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/cross_tabs/index.js +13 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilter.d.ts +9 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilder.d.ts +4 -4
- package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderErrorMessages.d.ts +14 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderErrorMessages.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderInfoContainer.d.ts +2 -2
- package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderScopes.d.ts +10 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderScopes.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterDisplay.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterDisplay.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterOperator.d.ts +4 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterOperator.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterPanel.d.ts +17 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterPanel.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelCardAction.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelCardAction.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelDeleteDialog.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelDeleteDialog.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelEmptyState.d.ts +4 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelEmptyState.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelHeaderSection.d.ts +9 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelHeaderSection.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelScopeTooltip.d.ts +7 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelScopeTooltip.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelSettingsContainerScopeConfig.d.ts +5 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelSettingsContainerScopeConfig.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelSettingsSection.d.ts +10 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelSettingsSection.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterScopes.d.ts +10 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterScopes.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nRankingContainer.d.ts +4 -0
- package/dist/cjs/globalization/interfaces/filters/II18nRankingContainer.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nRelativeContainer.d.ts +10 -0
- package/dist/cjs/globalization/interfaces/filters/II18nRelativeContainer.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nRelativeContainerCursor.d.ts +5 -0
- package/dist/cjs/globalization/interfaces/filters/II18nRelativeContainerCursor.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nValueContainer.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nValueContainerSearchInput.d.ts +3 -2
- package/dist/cjs/globalization/interfaces/filters/index.d.ts +16 -2
- package/dist/cjs/globalization/interfaces/filters/index.js +16 -2
- package/dist/cjs/globalization/interfaces/index.d.ts +8 -3
- package/dist/cjs/globalization/interfaces/index.js +8 -3
- package/dist/cjs/globalization/interfaces/panel/II18nPanel.d.ts +8 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanelEmbed.d.ts +7 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanelEmbed.js +2 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanelSummaryDisplay.d.ts +5 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanelSummaryDisplay.js +2 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanelSummaryFilter.d.ts +5 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanelSummaryFilter.js +2 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanelSummaryGroup.d.ts +7 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanelSummaryGroup.js +2 -0
- package/dist/cjs/globalization/interfaces/panel/index.d.ts +4 -0
- package/dist/cjs/globalization/interfaces/panel/index.js +4 -0
- package/dist/cjs/globalization/labels/I18N_DEFAULT.js +11 -3
- package/dist/cjs/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.d.ts +2 -0
- package/dist/cjs/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.js +120 -0
- package/dist/cjs/globalization/labels/bucket_builder/index.d.ts +1 -0
- package/dist/cjs/globalization/labels/bucket_builder/index.js +13 -0
- package/dist/cjs/globalization/labels/common/I18N_COLUMN_LABEL.d.ts +6 -6
- package/dist/cjs/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.js +29 -29
- package/dist/cjs/globalization/labels/common/I18N_COMMON.js +6 -0
- package/dist/cjs/globalization/labels/cross_tabs/I18N_CROSS_TABS.d.ts +2 -0
- package/dist/cjs/globalization/labels/cross_tabs/I18N_CROSS_TABS.js +14 -0
- package/dist/cjs/globalization/labels/cross_tabs/index.d.ts +1 -0
- package/dist/cjs/globalization/labels/cross_tabs/index.js +13 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER.js +10 -1
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_BUILDER.js +23 -8
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_DISPLAY.d.ts +2 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_DISPLAY.js +9 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_OPERATOR.d.ts +2 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_OPERATOR.js +7 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_PANEL.d.ts +2 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_PANEL.js +50 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_SCOPE.d.ts +2 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_SCOPE.js +14 -0
- package/dist/cjs/globalization/labels/filters/I18N_RANKING_CONTAINER.d.ts +2 -0
- package/dist/cjs/globalization/labels/filters/I18N_RANKING_CONTAINER.js +7 -0
- package/dist/cjs/globalization/labels/filters/I18N_RELATIVE_CONTAINER.d.ts +2 -0
- package/dist/cjs/globalization/labels/filters/I18N_RELATIVE_CONTAINER.js +13 -0
- package/dist/cjs/globalization/labels/filters/I18N_RELATIVE_CURSOR.d.ts +6 -0
- package/dist/cjs/globalization/labels/filters/I18N_RELATIVE_CURSOR.js +9 -0
- package/dist/cjs/globalization/labels/filters/I18N_VALUE_CONTAINER.js +5 -5
- package/dist/cjs/globalization/labels/filters/index.d.ts +6 -0
- package/dist/cjs/globalization/labels/filters/index.js +6 -0
- package/dist/cjs/globalization/labels/index.d.ts +1 -0
- package/dist/cjs/globalization/labels/index.js +1 -0
- package/dist/cjs/globalization/labels/panel/I18N_PANEL.js +24 -0
- package/dist/cjs/globalization/service/i18nextBuilder.d.ts +2 -1
- package/dist/cjs/globalization/service/i18nextBuilder.js +2 -2
- package/dist/columns/constants/COLUMN.d.ts +6 -6
- package/dist/columns/constants/COLUMN.js +8 -8
- package/dist/columns/constants/COLUMN_INFO.js +2 -1
- package/dist/columns/constants/COLUMN_INFO_LIST.js +2 -6
- package/dist/columns/constants/COLUMN_LABEL.d.ts +7 -6
- package/dist/columns/constants/COLUMN_LABEL.js +2 -1
- package/dist/columns/constants/COLUMN_PROPERTY.d.ts +4 -4
- package/dist/columns/constants/COLUMN_PROPERTY.js +4 -4
- package/dist/columns/constants/COLUMN_PROPERTY_LABEL.d.ts +4 -4
- package/dist/columns/constants/COMPLEX_COLUMN_PROPERTIES.js +4 -4
- package/dist/columns/constants/COMPLEX_COLUMN_PROPERTY.d.ts +4 -4
- package/dist/columns/constants/COMPLEX_COLUMN_PROPERTY.js +4 -4
- package/dist/columns/constants/COMPLEX_COLUMN_PROPERTY_INFO.js +4 -4
- package/dist/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.d.ts +4 -4
- package/dist/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.js +4 -4
- package/dist/columns/constants/NUMERICAL_COLUMN.d.ts +8 -0
- package/dist/columns/constants/NUMERICAL_COLUMN.js +9 -0
- package/dist/columns/constants/NUMERICAL_COLUMNS.d.ts +5 -0
- package/dist/columns/constants/NUMERICAL_COLUMNS.js +12 -0
- package/dist/columns/constants/NUMERICAL_COLUMN_INFO.d.ts +8 -0
- package/dist/columns/constants/NUMERICAL_COLUMN_INFO.js +13 -0
- package/dist/columns/constants/NUMERICAL_COLUMN_INFO_LIST.d.ts +5 -0
- package/dist/columns/constants/NUMERICAL_COLUMN_INFO_LIST.js +13 -0
- package/dist/columns/constants/NUMERICAL_COLUMN_LABEL.d.ts +8 -0
- package/dist/columns/constants/NUMERICAL_COLUMN_LABEL.js +9 -0
- package/dist/columns/constants/index.d.ts +5 -0
- package/dist/columns/constants/index.js +5 -0
- package/dist/columns/helpers/index.d.ts +1 -0
- package/dist/columns/helpers/index.js +1 -0
- package/dist/columns/helpers/isNumericalColumn.d.ts +2 -0
- package/dist/columns/helpers/isNumericalColumn.js +4 -0
- package/dist/columns/interfaces/IColumnType.d.ts +2 -1
- package/dist/columns/interfaces/INumericalColumnType.d.ts +2 -0
- package/dist/{globalization/interfaces/filters/II18nFilterBuilderInfoContainerSelection.js → columns/interfaces/INumericalColumnType.js} +0 -0
- package/dist/columns/interfaces/index.d.ts +3 -0
- package/dist/columns/interfaces/index.js +3 -0
- package/dist/dates/adapters/mdyDateToDate.d.ts +7 -0
- package/dist/dates/adapters/mdyDateToDate.js +17 -0
- package/dist/dates/adapters/monthYearToDate.d.ts +7 -0
- package/dist/dates/adapters/monthYearToDate.js +20 -0
- package/dist/dates/adapters/quarterYearToDate.d.ts +7 -0
- package/dist/dates/adapters/quarterYearToDate.js +20 -0
- package/dist/dates/adapters/weekYearToDate.d.ts +7 -0
- package/dist/dates/adapters/weekYearToDate.js +28 -0
- package/dist/dates/adapters/yearToDate.d.ts +7 -0
- package/dist/dates/adapters/yearToDate.js +18 -0
- package/dist/dates/constants/DATE_FORMAT.d.ts +16 -14
- package/dist/dates/constants/DATE_FORMAT.js +23 -18
- package/dist/dates/constants/DATE_REGULAR_EXPRESSION.d.ts +19 -1
- package/dist/dates/constants/DATE_REGULAR_EXPRESSION.js +29 -5
- package/dist/dates/constants/DATE_YEAR_QUARTERS_RANGE.d.ts +18 -0
- package/dist/dates/constants/DATE_YEAR_QUARTERS_RANGE.js +18 -0
- package/dist/dates/constants/index.d.ts +1 -0
- package/dist/dates/constants/index.js +1 -0
- package/dist/dates/helpers/getDateByDateFormat.d.ts +9 -0
- package/dist/dates/helpers/getDateByDateFormat.js +32 -0
- package/dist/dates/helpers/getDateFormatByProperty.d.ts +8 -0
- package/dist/dates/helpers/getDateFormatByProperty.js +23 -0
- package/dist/dates/helpers/getDateFormatRegularExpressionInArray.d.ts +7 -0
- package/dist/dates/helpers/getDateFormatRegularExpressionInArray.js +43 -0
- package/dist/dates/helpers/getSeparatorByDateFormat.d.ts +7 -0
- package/dist/dates/helpers/getSeparatorByDateFormat.js +11 -0
- package/dist/dates/helpers/getWeek.d.ts +11 -0
- package/dist/dates/helpers/getWeek.js +21 -0
- package/dist/dates/helpers/index.d.ts +6 -0
- package/dist/dates/helpers/index.js +6 -0
- package/dist/dates/helpers/validateDate.d.ts +11 -0
- package/dist/dates/helpers/validateDate.js +20 -0
- package/dist/dates/helpers/validateDateByDateFormat.d.ts +8 -0
- package/dist/dates/helpers/validateDateByDateFormat.js +22 -0
- package/dist/dates/index.d.ts +1 -0
- package/dist/dates/index.js +1 -0
- package/dist/dates/relative/constants/RELATIVE_CURSOR_INFO.d.ts +3 -12
- package/dist/dates/relative/constants/RELATIVE_CURSOR_INFO.js +4 -3
- package/dist/dates/relative/constants/RELATIVE_CURSOR_INFO_LIST.d.ts +5 -0
- package/dist/dates/relative/constants/RELATIVE_CURSOR_INFO_LIST.js +10 -0
- package/dist/dates/relative/constants/RELATIVE_CURSOR_LABEL.d.ts +5 -0
- package/dist/dates/relative/constants/RELATIVE_CURSOR_LABEL.js +6 -0
- package/dist/dates/relative/constants/index.d.ts +2 -0
- package/dist/dates/relative/constants/index.js +2 -0
- package/dist/dates/relative/interfaces/IRelativeCursorInfo.d.ts +5 -0
- package/dist/{globalization/interfaces/filters/II18nValueContainerSearchInputEnterValue.js → dates/relative/interfaces/IRelativeCursorInfo.js} +0 -0
- package/dist/dates/relative/interfaces/index.d.ts +1 -0
- package/dist/dates/relative/interfaces/index.js +1 -0
- package/dist/filters/classes/FilterInputErrorHandler.d.ts +27 -0
- package/dist/filters/classes/FilterInputErrorHandler.js +11 -0
- package/dist/filters/classes/index.d.ts +1 -0
- package/dist/filters/classes/index.js +1 -0
- package/dist/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.d.ts +5 -0
- package/dist/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.js +6 -0
- package/dist/filters/index.d.ts +1 -0
- package/dist/filters/index.js +1 -0
- package/dist/general/mix/index.d.ts +1 -0
- package/dist/general/mix/index.js +1 -0
- package/dist/general/mix/isNaNV2.d.ts +8 -0
- package/dist/general/mix/isNaNV2.js +11 -0
- package/dist/globalization/interfaces/II18nServiceTranslateOption.d.ts +4 -0
- package/dist/globalization/interfaces/II18nServiceTranslateOption.js +1 -0
- package/dist/globalization/interfaces/IResourceI18n.d.ts +18 -10
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilder.d.ts +24 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilder.js +1 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderBasicBucket.d.ts +15 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderBasicBucket.js +1 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderCreateBucket.d.ts +33 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderCreateBucket.js +1 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderCustomBucket.d.ts +15 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderCustomBucket.js +1 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderDeleteDialog.d.ts +6 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderDeleteDialog.js +1 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderEditDialog.d.ts +6 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderEditDialog.js +1 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderListBuckets.d.ts +6 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderListBuckets.js +1 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderMenuBucket.d.ts +5 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderMenuBucket.js +1 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.d.ts +7 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.js +1 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.d.ts +5 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.js +1 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderOperator.d.ts +11 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderOperator.js +1 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderSentimentBucket.d.ts +6 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderSentimentBucket.js +1 -0
- package/dist/globalization/interfaces/bucket_builder/index.d.ts +12 -0
- package/dist/globalization/interfaces/bucket_builder/index.js +12 -0
- package/dist/globalization/interfaces/common/II18nColumnProperties.d.ts +29 -29
- package/dist/globalization/interfaces/common/II18nColumnTypesSuffixes.d.ts +6 -0
- package/dist/globalization/interfaces/common/II18nColumnTypesSuffixes.js +1 -0
- package/dist/globalization/interfaces/common/II18nCommon.d.ts +2 -0
- package/dist/globalization/interfaces/common/index.d.ts +1 -0
- package/dist/globalization/interfaces/common/index.js +1 -0
- package/dist/globalization/interfaces/cross_tabs/II18nCrossTabs.d.ts +8 -0
- package/dist/globalization/interfaces/cross_tabs/II18nCrossTabs.js +1 -0
- package/dist/globalization/interfaces/cross_tabs/II18nCrossTabsSorting.d.ts +5 -0
- package/dist/globalization/interfaces/cross_tabs/II18nCrossTabsSorting.js +1 -0
- package/dist/globalization/interfaces/cross_tabs/index.d.ts +1 -0
- package/dist/globalization/interfaces/cross_tabs/index.js +1 -0
- package/dist/globalization/interfaces/filters/II18nFilter.d.ts +9 -0
- package/dist/globalization/interfaces/filters/II18nFilterBuilder.d.ts +4 -4
- package/dist/globalization/interfaces/filters/II18nFilterBuilderErrorMessages.d.ts +14 -0
- package/dist/globalization/interfaces/filters/II18nFilterBuilderErrorMessages.js +1 -0
- package/dist/globalization/interfaces/filters/II18nFilterBuilderInfoContainer.d.ts +2 -2
- package/dist/globalization/interfaces/filters/II18nFilterBuilderScopes.d.ts +10 -0
- package/dist/globalization/interfaces/filters/II18nFilterBuilderScopes.js +1 -0
- package/dist/globalization/interfaces/filters/II18nFilterDisplay.d.ts +6 -0
- package/dist/globalization/interfaces/filters/II18nFilterDisplay.js +1 -0
- package/dist/globalization/interfaces/filters/II18nFilterOperator.d.ts +4 -0
- package/dist/globalization/interfaces/filters/II18nFilterOperator.js +1 -0
- package/dist/globalization/interfaces/filters/II18nFilterPanel.d.ts +17 -0
- package/dist/globalization/interfaces/filters/II18nFilterPanel.js +1 -0
- package/dist/globalization/interfaces/filters/II18nFilterPanelCardAction.d.ts +6 -0
- package/dist/globalization/interfaces/filters/II18nFilterPanelCardAction.js +1 -0
- package/dist/globalization/interfaces/filters/II18nFilterPanelDeleteDialog.d.ts +6 -0
- package/dist/globalization/interfaces/filters/II18nFilterPanelDeleteDialog.js +1 -0
- package/dist/globalization/interfaces/filters/II18nFilterPanelEmptyState.d.ts +4 -0
- package/dist/globalization/interfaces/filters/II18nFilterPanelEmptyState.js +1 -0
- package/dist/globalization/interfaces/filters/II18nFilterPanelHeaderSection.d.ts +9 -0
- package/dist/globalization/interfaces/filters/II18nFilterPanelHeaderSection.js +1 -0
- package/dist/globalization/interfaces/filters/II18nFilterPanelScopeTooltip.d.ts +7 -0
- package/dist/globalization/interfaces/filters/II18nFilterPanelScopeTooltip.js +1 -0
- package/dist/globalization/interfaces/filters/II18nFilterPanelSettingsContainerScopeConfig.d.ts +5 -0
- package/dist/globalization/interfaces/filters/II18nFilterPanelSettingsContainerScopeConfig.js +1 -0
- package/dist/globalization/interfaces/filters/II18nFilterPanelSettingsSection.d.ts +10 -0
- package/dist/globalization/interfaces/filters/II18nFilterPanelSettingsSection.js +1 -0
- package/dist/globalization/interfaces/filters/II18nFilterScopes.d.ts +10 -0
- package/dist/globalization/interfaces/filters/II18nFilterScopes.js +1 -0
- package/dist/globalization/interfaces/filters/II18nRankingContainer.d.ts +4 -0
- package/dist/globalization/interfaces/filters/II18nRankingContainer.js +1 -0
- package/dist/globalization/interfaces/filters/II18nRelativeContainer.d.ts +10 -0
- package/dist/globalization/interfaces/filters/II18nRelativeContainer.js +1 -0
- package/dist/globalization/interfaces/filters/II18nRelativeContainerCursor.d.ts +5 -0
- package/dist/globalization/interfaces/filters/II18nRelativeContainerCursor.js +1 -0
- package/dist/globalization/interfaces/filters/II18nValueContainer.d.ts +2 -0
- package/dist/globalization/interfaces/filters/II18nValueContainerSearchInput.d.ts +3 -2
- package/dist/globalization/interfaces/filters/index.d.ts +16 -2
- package/dist/globalization/interfaces/filters/index.js +16 -2
- package/dist/globalization/interfaces/index.d.ts +8 -3
- package/dist/globalization/interfaces/index.js +8 -3
- package/dist/globalization/interfaces/panel/II18nPanel.d.ts +8 -0
- package/dist/globalization/interfaces/panel/II18nPanelEmbed.d.ts +7 -0
- package/dist/globalization/interfaces/panel/II18nPanelEmbed.js +1 -0
- package/dist/globalization/interfaces/panel/II18nPanelSummaryDisplay.d.ts +5 -0
- package/dist/globalization/interfaces/panel/II18nPanelSummaryDisplay.js +1 -0
- package/dist/globalization/interfaces/panel/II18nPanelSummaryFilter.d.ts +5 -0
- package/dist/globalization/interfaces/panel/II18nPanelSummaryFilter.js +1 -0
- package/dist/globalization/interfaces/panel/II18nPanelSummaryGroup.d.ts +7 -0
- package/dist/globalization/interfaces/panel/II18nPanelSummaryGroup.js +1 -0
- package/dist/globalization/interfaces/panel/index.d.ts +4 -0
- package/dist/globalization/interfaces/panel/index.js +4 -0
- package/dist/globalization/labels/I18N_DEFAULT.js +11 -3
- package/dist/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.d.ts +2 -0
- package/dist/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.js +117 -0
- package/dist/globalization/labels/bucket_builder/index.d.ts +1 -0
- package/dist/globalization/labels/bucket_builder/index.js +1 -0
- package/dist/globalization/labels/common/I18N_COLUMN_LABEL.d.ts +6 -6
- package/dist/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.js +29 -29
- package/dist/globalization/labels/common/I18N_COMMON.js +6 -0
- package/dist/globalization/labels/cross_tabs/I18N_CROSS_TABS.d.ts +2 -0
- package/dist/globalization/labels/cross_tabs/I18N_CROSS_TABS.js +11 -0
- package/dist/globalization/labels/cross_tabs/index.d.ts +1 -0
- package/dist/globalization/labels/cross_tabs/index.js +1 -0
- package/dist/globalization/labels/filters/I18N_FILTER.js +10 -1
- package/dist/globalization/labels/filters/I18N_FILTER_BUILDER.js +23 -8
- package/dist/globalization/labels/filters/I18N_FILTER_DISPLAY.d.ts +2 -0
- package/dist/globalization/labels/filters/I18N_FILTER_DISPLAY.js +6 -0
- package/dist/globalization/labels/filters/I18N_FILTER_OPERATOR.d.ts +2 -0
- package/dist/globalization/labels/filters/I18N_FILTER_OPERATOR.js +4 -0
- package/dist/globalization/labels/filters/I18N_FILTER_PANEL.d.ts +2 -0
- package/dist/globalization/labels/filters/I18N_FILTER_PANEL.js +47 -0
- package/dist/globalization/labels/filters/I18N_FILTER_SCOPE.d.ts +2 -0
- package/dist/globalization/labels/filters/I18N_FILTER_SCOPE.js +11 -0
- package/dist/globalization/labels/filters/I18N_RANKING_CONTAINER.d.ts +2 -0
- package/dist/globalization/labels/filters/I18N_RANKING_CONTAINER.js +4 -0
- package/dist/globalization/labels/filters/I18N_RELATIVE_CONTAINER.d.ts +2 -0
- package/dist/globalization/labels/filters/I18N_RELATIVE_CONTAINER.js +10 -0
- package/dist/globalization/labels/filters/I18N_RELATIVE_CURSOR.d.ts +6 -0
- package/dist/globalization/labels/filters/I18N_RELATIVE_CURSOR.js +6 -0
- package/dist/globalization/labels/filters/I18N_VALUE_CONTAINER.js +5 -5
- package/dist/globalization/labels/filters/index.d.ts +6 -0
- package/dist/globalization/labels/filters/index.js +6 -0
- package/dist/globalization/labels/index.d.ts +1 -0
- package/dist/globalization/labels/index.js +1 -0
- package/dist/globalization/labels/panel/I18N_PANEL.js +24 -0
- package/dist/globalization/service/i18nextBuilder.d.ts +2 -1
- package/dist/globalization/service/i18nextBuilder.js +2 -2
- package/package.json +2 -2
- package/src/columns/constants/COLUMN.ts +9 -9
- package/src/columns/constants/COLUMN_INFO.ts +2 -6
- package/src/columns/constants/COLUMN_INFO_LIST.ts +2 -6
- package/src/columns/constants/COLUMN_LABEL.ts +3 -7
- package/src/columns/constants/COLUMN_PROPERTY.ts +4 -4
- package/src/columns/constants/COMPLEX_COLUMN_PROPERTIES.ts +4 -4
- package/src/columns/constants/COMPLEX_COLUMN_PROPERTY.ts +4 -4
- package/src/columns/constants/COMPLEX_COLUMN_PROPERTY_INFO.ts +4 -4
- package/src/columns/constants/COMPLEX_COLUMN_PROPERTY_LABEL.ts +4 -4
- package/src/columns/constants/NUMERICAL_COLUMN.ts +8 -0
- package/src/columns/constants/NUMERICAL_COLUMNS.ts +13 -0
- package/src/columns/constants/NUMERICAL_COLUMN_INFO.ts +16 -0
- package/src/columns/constants/NUMERICAL_COLUMN_INFO_LIST.ts +15 -0
- package/src/columns/constants/NUMERICAL_COLUMN_LABEL.ts +8 -0
- package/src/columns/constants/index.ts +6 -0
- package/src/columns/helpers/index.ts +1 -0
- package/src/columns/helpers/isNumericalColumn.ts +7 -0
- package/src/columns/interfaces/IColumnType.ts +2 -1
- package/src/columns/interfaces/INumericalColumnType.ts +4 -0
- package/src/columns/interfaces/index.ts +4 -0
- package/src/dates/adapters/mdyDateToDate.ts +18 -0
- package/src/dates/adapters/monthYearToDate.ts +21 -0
- package/src/dates/adapters/quarterYearToDate.ts +21 -0
- package/src/dates/adapters/weekYearToDate.ts +28 -0
- package/src/dates/adapters/yearToDate.ts +20 -0
- package/src/dates/constants/DATE_FORMAT.ts +23 -18
- package/src/dates/constants/DATE_REGULAR_EXPRESSION.ts +32 -5
- package/src/dates/constants/DATE_YEAR_QUARTERS_RANGE.ts +18 -0
- package/src/dates/constants/index.ts +1 -0
- package/src/dates/helpers/getDateByDateFormat.ts +34 -0
- package/src/dates/helpers/getDateFormatByProperty.ts +26 -0
- package/src/dates/helpers/getDateFormatRegularExpressionInArray.ts +45 -0
- package/src/dates/helpers/getSeparatorByDateFormat.ts +13 -0
- package/src/dates/helpers/getWeek.ts +21 -0
- package/src/dates/helpers/index.ts +6 -0
- package/src/dates/helpers/validateDate.ts +22 -0
- package/src/dates/helpers/validateDateByDateFormat.ts +25 -0
- package/src/dates/index.ts +1 -0
- package/src/dates/relative/constants/RELATIVE_CURSOR_INFO.ts +7 -4
- package/src/dates/relative/constants/RELATIVE_CURSOR_INFO_LIST.ts +11 -0
- package/src/dates/relative/constants/RELATIVE_CURSOR_LABEL.ts +5 -0
- package/src/dates/relative/constants/index.ts +2 -0
- package/src/dates/relative/interfaces/IRelativeCursorInfo.ts +6 -0
- package/src/dates/relative/interfaces/index.ts +1 -0
- package/src/filters/classes/FilterInputErrorHandler.ts +213 -0
- package/src/filters/classes/index.ts +1 -0
- package/src/filters/constants/builder/FILTER_BUILDER_SCOPE_LABEL.ts +7 -0
- package/src/filters/index.ts +1 -0
- package/src/general/mix/index.ts +1 -0
- package/src/general/mix/isNaNV2.ts +12 -0
- package/src/globalization/interfaces/II18nServiceTranslateOption.ts +4 -0
- package/src/globalization/interfaces/IResourceI18n.ts +18 -11
- package/src/globalization/interfaces/bucket_builder/II18nBucketBuilder.ts +25 -0
- package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderBasicBucket.ts +15 -0
- package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderCreateBucket.ts +33 -0
- package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderCustomBucket.ts +15 -0
- package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderDeleteDialog.ts +6 -0
- package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderEditDialog.ts +6 -0
- package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderListBuckets.ts +6 -0
- package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderMenuBucket.ts +5 -0
- package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.ts +7 -0
- package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.ts +5 -0
- package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderOperator.ts +11 -0
- package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderSentimentBucket.ts +6 -0
- package/src/globalization/interfaces/bucket_builder/index.ts +12 -0
- package/src/globalization/interfaces/common/II18nColumnProperties.ts +29 -29
- package/src/globalization/interfaces/common/II18nColumnTypesSuffixes.ts +6 -0
- package/src/globalization/interfaces/common/II18nCommon.ts +2 -0
- package/src/globalization/interfaces/common/index.ts +1 -0
- package/src/globalization/interfaces/cross_tabs/II18nCrossTabs.ts +9 -0
- package/src/globalization/interfaces/cross_tabs/II18nCrossTabsSorting.ts +5 -0
- package/src/globalization/interfaces/cross_tabs/index.ts +1 -0
- package/src/globalization/interfaces/filters/II18nFilter.ts +9 -0
- package/src/globalization/interfaces/filters/II18nFilterBuilder.ts +4 -2
- package/src/globalization/interfaces/filters/II18nFilterBuilderErrorMessages.ts +14 -0
- package/src/globalization/interfaces/filters/II18nFilterBuilderInfoContainer.ts +2 -3
- package/src/globalization/interfaces/filters/II18nFilterBuilderScopes.ts +10 -0
- package/src/globalization/interfaces/filters/II18nFilterDisplay.ts +6 -0
- package/src/globalization/interfaces/filters/II18nFilterOperator.ts +4 -0
- package/src/globalization/interfaces/filters/II18nFilterPanel.ts +18 -0
- package/src/globalization/interfaces/filters/II18nFilterPanelCardAction.ts +6 -0
- package/src/globalization/interfaces/filters/II18nFilterPanelDeleteDialog.ts +6 -0
- package/src/globalization/interfaces/filters/II18nFilterPanelEmptyState.ts +4 -0
- package/src/globalization/interfaces/filters/II18nFilterPanelHeaderSection.ts +9 -0
- package/src/globalization/interfaces/filters/II18nFilterPanelScopeTooltip.ts +7 -0
- package/src/globalization/interfaces/filters/II18nFilterPanelSettingsContainerScopeConfig.ts +5 -0
- package/src/globalization/interfaces/filters/II18nFilterPanelSettingsSection.ts +10 -0
- package/src/globalization/interfaces/filters/II18nFilterScopes.ts +10 -0
- package/src/globalization/interfaces/filters/II18nRankingContainer.ts +4 -0
- package/src/globalization/interfaces/filters/II18nRelativeContainer.ts +11 -0
- package/src/globalization/interfaces/filters/II18nRelativeContainerCursor.ts +5 -0
- package/src/globalization/interfaces/filters/II18nValueContainer.ts +2 -0
- package/src/globalization/interfaces/filters/II18nValueContainerSearchInput.ts +3 -3
- package/src/globalization/interfaces/filters/index.ts +18 -2
- package/src/globalization/interfaces/index.ts +9 -3
- package/src/globalization/interfaces/panel/II18nPanel.ts +8 -1
- package/src/globalization/interfaces/panel/II18nPanelEmbed.ts +7 -0
- package/src/globalization/interfaces/panel/II18nPanelSummaryDisplay.ts +5 -0
- package/src/globalization/interfaces/panel/II18nPanelSummaryFilter.ts +5 -0
- package/src/globalization/interfaces/panel/II18nPanelSummaryGroup.ts +7 -0
- package/src/globalization/interfaces/panel/index.ts +4 -0
- package/src/globalization/labels/I18N_DEFAULT.ts +11 -3
- package/src/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.ts +119 -0
- package/src/globalization/labels/bucket_builder/index.ts +1 -0
- package/src/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.ts +31 -29
- package/src/globalization/labels/common/I18N_COMMON.ts +6 -0
- package/src/globalization/labels/cross_tabs/I18N_CROSS_TABS.ts +14 -0
- package/src/globalization/labels/cross_tabs/index.ts +1 -0
- package/src/globalization/labels/filters/I18N_FILTER.ts +10 -1
- package/src/globalization/labels/filters/I18N_FILTER_BUILDER.ts +23 -8
- package/src/globalization/labels/filters/I18N_FILTER_DISPLAY.ts +8 -0
- package/src/globalization/labels/filters/I18N_FILTER_OPERATOR.ts +6 -0
- package/src/globalization/labels/filters/I18N_FILTER_PANEL.ts +49 -0
- package/src/globalization/labels/filters/I18N_FILTER_SCOPE.ts +13 -0
- package/src/globalization/labels/filters/I18N_RANKING_CONTAINER.ts +6 -0
- package/src/globalization/labels/filters/I18N_RELATIVE_CONTAINER.ts +12 -0
- package/src/globalization/labels/filters/I18N_RELATIVE_CURSOR.ts +7 -0
- package/src/globalization/labels/filters/I18N_VALUE_CONTAINER.ts +5 -5
- package/src/globalization/labels/filters/index.ts +6 -1
- package/src/globalization/labels/index.ts +1 -1
- package/src/globalization/labels/panel/I18N_PANEL.ts +24 -0
- package/src/globalization/service/i18nextBuilder.ts +4 -3
- package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderInfoContainerSelection.d.ts +0 -4
- package/dist/cjs/globalization/interfaces/filters/II18nValueContainerSearchInputEnterValue.d.ts +0 -5
- package/dist/globalization/interfaces/filters/II18nFilterBuilderInfoContainerSelection.d.ts +0 -4
- package/dist/globalization/interfaces/filters/II18nValueContainerSearchInputEnterValue.d.ts +0 -5
- package/src/globalization/interfaces/filters/II18nFilterBuilderInfoContainerSelection.ts +0 -4
- package/src/globalization/interfaces/filters/II18nValueContainerSearchInputEnterValue.ts +0 -5
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.4-
|
|
1
|
+
# [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.2.4-17*
|
|
2
2
|
|
|
3
3
|
> Helper, Utils for all Qrvey Projects
|
|
4
4
|
|
|
@@ -80,12 +80,12 @@ Get a text and evaluate if it matchs with a token box label.
|
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
|
|
83
|
-
### dist/dates/
|
|
83
|
+
### dist/dates/adapters/mdyDateToDate.js
|
|
84
84
|
|
|
85
85
|
|
|
86
|
-
####
|
|
86
|
+
#### mdyDateToDate(monthYearDate, time)
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
Transforms String Date from a [mm/dd/yyyy] format to Date object.
|
|
89
89
|
|
|
90
90
|
|
|
91
91
|
|
|
@@ -94,58 +94,36 @@ Get date range object from a string date value
|
|
|
94
94
|
|
|
95
95
|
| Name | Type | Description | |
|
|
96
96
|
| ---- | ---- | ----------- | -------- |
|
|
97
|
-
|
|
|
98
|
-
|
|
|
99
|
-
| withTime | `Boolean` | determines if the date range will include time. Default is true | |
|
|
100
|
-
|
|
101
|
-
|
|
97
|
+
| monthYearDate | | String of [mm/dd/yyyy] date | |
|
|
98
|
+
| time | | Flag to parse the object date to milliseconds. | |
|
|
102
99
|
|
|
103
100
|
|
|
104
|
-
##### Examples
|
|
105
101
|
|
|
106
|
-
```javascript
|
|
107
|
-
// 1) Year:
|
|
108
|
-
getDateRange('2020', 'YEAR');
|
|
109
|
-
// Will return:
|
|
110
|
-
{
|
|
111
|
-
from: '01/01/2020 00:00:00',
|
|
112
|
-
to: '12/31/2020 23:59:59'
|
|
113
|
-
}
|
|
114
102
|
|
|
115
|
-
|
|
116
|
-
getDateRange('Q3 2020', 'QUARTER');
|
|
117
|
-
// Will return:
|
|
118
|
-
{
|
|
119
|
-
from: '07/01/2020 00:00:00',
|
|
120
|
-
to: '09/30/2020 23:59:59'
|
|
121
|
-
}
|
|
103
|
+
##### Returns
|
|
122
104
|
|
|
123
|
-
// 3) Month:
|
|
124
|
-
getDateRange('Oct 2020', 'MONTH');
|
|
125
|
-
// Will return:
|
|
126
|
-
{
|
|
127
|
-
from: '10/01/2020 00:00:00',
|
|
128
|
-
to: '10/31/2020 23:59:59'
|
|
129
|
-
}
|
|
130
|
-
```
|
|
131
105
|
|
|
106
|
+
- The date object or the date in milliseconds
|
|
132
107
|
|
|
133
|
-
##### Returns
|
|
134
108
|
|
|
135
109
|
|
|
136
|
-
- `Object` an object with the date range with two string date properties: from and to
|
|
137
110
|
|
|
111
|
+
### dist/dates/adapters/monthYearToDate.js
|
|
138
112
|
|
|
139
113
|
|
|
114
|
+
#### monthYearToDate(monthYearDate, time)
|
|
140
115
|
|
|
141
|
-
|
|
116
|
+
Transforms String Date from a [Month Year] format to Date object.
|
|
142
117
|
|
|
143
118
|
|
|
144
|
-
#### value()
|
|
145
119
|
|
|
146
|
-
Resolves statement and returns statement value
|
|
147
120
|
|
|
121
|
+
##### Parameters
|
|
148
122
|
|
|
123
|
+
| Name | Type | Description | |
|
|
124
|
+
| ---- | ---- | ----------- | -------- |
|
|
125
|
+
| monthYearDate | | String of [Month Year] date | |
|
|
126
|
+
| time | | Flag to parse the object date to milliseconds. | |
|
|
149
127
|
|
|
150
128
|
|
|
151
129
|
|
|
@@ -153,47 +131,55 @@ Resolves statement and returns statement value
|
|
|
153
131
|
##### Returns
|
|
154
132
|
|
|
155
133
|
|
|
156
|
-
-
|
|
134
|
+
- The date object or the date in milliseconds
|
|
157
135
|
|
|
158
136
|
|
|
159
137
|
|
|
160
|
-
#### valueAsAnchor()
|
|
161
138
|
|
|
162
|
-
|
|
139
|
+
### dist/dates/adapters/quarterYearToDate.js
|
|
163
140
|
|
|
164
141
|
|
|
142
|
+
#### quarterYearToDate(quarterYearDate, time)
|
|
165
143
|
|
|
144
|
+
Transforms String Date from a [Quarter Year] format to Date object.
|
|
166
145
|
|
|
167
146
|
|
|
168
147
|
|
|
169
|
-
##### Returns
|
|
170
148
|
|
|
149
|
+
##### Parameters
|
|
171
150
|
|
|
172
|
-
|
|
151
|
+
| Name | Type | Description | |
|
|
152
|
+
| ---- | ---- | ----------- | -------- |
|
|
153
|
+
| quarterYearDate | | String of [Quarter Year] date | |
|
|
154
|
+
| time | | Flag to parse the object date to milliseconds. | |
|
|
173
155
|
|
|
174
156
|
|
|
175
157
|
|
|
176
|
-
#### _statementToRange() *private method*
|
|
177
158
|
|
|
178
|
-
|
|
159
|
+
##### Returns
|
|
179
160
|
|
|
180
161
|
|
|
162
|
+
- The date object or the date in milliseconds
|
|
181
163
|
|
|
182
164
|
|
|
183
165
|
|
|
184
166
|
|
|
185
|
-
|
|
167
|
+
### dist/dates/adapters/weekYearToDate.js
|
|
186
168
|
|
|
187
169
|
|
|
188
|
-
|
|
170
|
+
#### weekYearToDate(date, time)
|
|
189
171
|
|
|
172
|
+
Transforms String Date from a [Week Year] format to Date object.
|
|
190
173
|
|
|
191
174
|
|
|
192
|
-
#### _resolveAsThis() *private method*
|
|
193
175
|
|
|
194
|
-
Apply 'this' cursor logic to statement
|
|
195
176
|
|
|
177
|
+
##### Parameters
|
|
196
178
|
|
|
179
|
+
| Name | Type | Description | |
|
|
180
|
+
| ---- | ---- | ----------- | -------- |
|
|
181
|
+
| date | | String of [Week Year] date | |
|
|
182
|
+
| time | | Flag to parse the object date to milliseconds. | |
|
|
197
183
|
|
|
198
184
|
|
|
199
185
|
|
|
@@ -201,45 +187,45 @@ Apply 'this' cursor logic to statement
|
|
|
201
187
|
##### Returns
|
|
202
188
|
|
|
203
189
|
|
|
204
|
-
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
#### _resolveAsTheLast() *private method*
|
|
190
|
+
- The date object or the date in milliseconds
|
|
209
191
|
|
|
210
|
-
Apply 'the last' cursor logic to statement
|
|
211
192
|
|
|
212
193
|
|
|
213
194
|
|
|
195
|
+
### dist/dates/adapters/yearToDate.js
|
|
214
196
|
|
|
215
197
|
|
|
198
|
+
#### yearToDate(yearDate, time)
|
|
216
199
|
|
|
217
|
-
|
|
200
|
+
Transforms String Date from a [Year] format to Date object.
|
|
218
201
|
|
|
219
202
|
|
|
220
|
-
- `AbsoluteStatement`
|
|
221
203
|
|
|
222
204
|
|
|
205
|
+
##### Parameters
|
|
223
206
|
|
|
224
|
-
|
|
207
|
+
| Name | Type | Description | |
|
|
208
|
+
| ---- | ---- | ----------- | -------- |
|
|
209
|
+
| yearDate | | String of [Year] date | |
|
|
210
|
+
| time | | Flag to parse the object date to milliseconds. | |
|
|
225
211
|
|
|
226
|
-
Apply 'the next' cursor logic to statement
|
|
227
212
|
|
|
228
213
|
|
|
229
214
|
|
|
215
|
+
##### Returns
|
|
230
216
|
|
|
231
217
|
|
|
218
|
+
- The date object or the date in milliseconds
|
|
232
219
|
|
|
233
|
-
##### Returns
|
|
234
220
|
|
|
235
221
|
|
|
236
|
-
- `AbsoluteStatement`
|
|
237
222
|
|
|
223
|
+
### dist/dates/helpers/getDateByDateFormat.js
|
|
238
224
|
|
|
239
225
|
|
|
240
|
-
####
|
|
226
|
+
#### getDateByDateFormat(date, format, time)
|
|
241
227
|
|
|
242
|
-
|
|
228
|
+
Gets a Date Object instance by a Date format
|
|
243
229
|
|
|
244
230
|
|
|
245
231
|
|
|
@@ -248,8 +234,9 @@ Replace '@now' token inside a string
|
|
|
248
234
|
|
|
249
235
|
| Name | Type | Description | |
|
|
250
236
|
| ---- | ---- | ----------- | -------- |
|
|
251
|
-
|
|
|
252
|
-
|
|
|
237
|
+
| date | | String with a formatted date | |
|
|
238
|
+
| format | | The date format | |
|
|
239
|
+
| time | | flag to convert the formatted date to miliseconds | |
|
|
253
240
|
|
|
254
241
|
|
|
255
242
|
|
|
@@ -257,60 +244,44 @@ Replace '@now' token inside a string
|
|
|
257
244
|
##### Returns
|
|
258
245
|
|
|
259
246
|
|
|
260
|
-
-
|
|
247
|
+
- a Date object, milisecond time or the same value if date format does not match.
|
|
261
248
|
|
|
262
249
|
|
|
263
250
|
|
|
264
|
-
#### convertRelativeToAbsolute(args)
|
|
265
251
|
|
|
266
|
-
|
|
252
|
+
### dist/dates/helpers/getDateFormatByProperty.js
|
|
267
253
|
|
|
268
254
|
|
|
255
|
+
#### getDateFormatByProperty(property)
|
|
269
256
|
|
|
257
|
+
Gets the date format by the given property
|
|
270
258
|
|
|
271
|
-
##### Parameters
|
|
272
259
|
|
|
273
|
-
| Name | Type | Description | |
|
|
274
|
-
| ---- | ---- | ----------- | -------- |
|
|
275
|
-
| args | `RelativeToAbsoluteStruct` | | |
|
|
276
260
|
|
|
277
261
|
|
|
262
|
+
##### Parameters
|
|
278
263
|
|
|
264
|
+
| Name | Type | Description | |
|
|
265
|
+
| ---- | ---- | ----------- | -------- |
|
|
266
|
+
| property | | The Column Property | |
|
|
279
267
|
|
|
280
|
-
##### Examples
|
|
281
268
|
|
|
282
|
-
```javascript
|
|
283
|
-
pivot = '2021-03-03T12:30:40'
|
|
284
|
-
unit = month
|
|
285
|
-
steps = 2
|
|
286
|
-
setTo = END
|
|
287
|
-
resolverAsCalendar: true
|
|
288
|
-
=> Returns '2021-05-31T23:59:59'
|
|
289
|
-
```
|
|
290
|
-
```javascript
|
|
291
|
-
pivot = '2021-03-03T12:30:40'
|
|
292
|
-
unit = month
|
|
293
|
-
steps = -2
|
|
294
|
-
setTo = START
|
|
295
|
-
resolverAsCalendar: false
|
|
296
|
-
=> Returns '2021-01-03T00:00:00'
|
|
297
|
-
```
|
|
298
269
|
|
|
299
270
|
|
|
300
271
|
##### Returns
|
|
301
272
|
|
|
302
273
|
|
|
303
|
-
-
|
|
274
|
+
- The date format
|
|
304
275
|
|
|
305
276
|
|
|
306
277
|
|
|
307
278
|
|
|
308
|
-
### dist/dates/
|
|
279
|
+
### dist/dates/helpers/getDateFormatRegularExpressionInArray.js
|
|
309
280
|
|
|
310
281
|
|
|
311
|
-
####
|
|
282
|
+
#### getDateFormatRegularExpressionInArray(dateFormat)
|
|
312
283
|
|
|
313
|
-
|
|
284
|
+
Gets an array of regular expressions by the given date format
|
|
314
285
|
|
|
315
286
|
|
|
316
287
|
|
|
@@ -319,44 +290,25 @@ Resolve a list of relative statements according to operator
|
|
|
319
290
|
|
|
320
291
|
| Name | Type | Description | |
|
|
321
292
|
| ---- | ---- | ----------- | -------- |
|
|
322
|
-
|
|
|
323
|
-
| clock | `Date` | - Clock/time reference for relative date resolution | |
|
|
293
|
+
| dateFormat | | the date format | |
|
|
324
294
|
|
|
325
295
|
|
|
326
296
|
|
|
327
297
|
|
|
328
|
-
##### Examples
|
|
329
|
-
|
|
330
|
-
```javascript
|
|
331
|
-
Input:
|
|
332
|
-
{
|
|
333
|
-
"cursor": "the_next",
|
|
334
|
-
"unit": "year",
|
|
335
|
-
"number": 1,
|
|
336
|
-
"includeCurrent": false,
|
|
337
|
-
"isCalendarDate": false,
|
|
338
|
-
"anchor": "03/05/2021"
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
Output:
|
|
342
|
-
{ gte: "03/06/2021 00:00:00", lte: "03/05/2022 23:59:59" }
|
|
343
|
-
```
|
|
344
|
-
|
|
345
|
-
|
|
346
298
|
##### Returns
|
|
347
299
|
|
|
348
300
|
|
|
349
|
-
-
|
|
301
|
+
- an array of regular expressions
|
|
350
302
|
|
|
351
303
|
|
|
352
304
|
|
|
353
305
|
|
|
354
|
-
### dist/
|
|
306
|
+
### dist/dates/helpers/getSeparatorByDateFormat.js
|
|
355
307
|
|
|
356
308
|
|
|
357
|
-
####
|
|
309
|
+
#### getSeparatorByDateFormat(format)
|
|
358
310
|
|
|
359
|
-
|
|
311
|
+
Gets the separator of the date format
|
|
360
312
|
|
|
361
313
|
|
|
362
314
|
|
|
@@ -365,8 +317,7 @@ Generates a Flattened UI filter structure from Filter Data structure.
|
|
|
365
317
|
|
|
366
318
|
| Name | Type | Description | |
|
|
367
319
|
| ---- | ---- | ----------- | -------- |
|
|
368
|
-
|
|
|
369
|
-
| datasetsInfo | | Collection of datasets information | |
|
|
320
|
+
| format | | the date format | |
|
|
370
321
|
|
|
371
322
|
|
|
372
323
|
|
|
@@ -374,13 +325,18 @@ Generates a Flattened UI filter structure from Filter Data structure.
|
|
|
374
325
|
##### Returns
|
|
375
326
|
|
|
376
327
|
|
|
377
|
-
- a
|
|
328
|
+
- a separator string
|
|
378
329
|
|
|
379
330
|
|
|
380
331
|
|
|
381
|
-
#### FD21ToFlatUI(scopes, datasetsInfo)
|
|
382
332
|
|
|
383
|
-
|
|
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
|
|
384
340
|
|
|
385
341
|
|
|
386
342
|
|
|
@@ -389,8 +345,7 @@ Generates a Filter Builder Structure from the Filter Data structure v2.1
|
|
|
389
345
|
|
|
390
346
|
| Name | Type | Description | |
|
|
391
347
|
| ---- | ---- | ----------- | -------- |
|
|
392
|
-
|
|
|
393
|
-
| datasetsInfo | | Collection of datasets information | |
|
|
348
|
+
| date | | the date object | |
|
|
394
349
|
|
|
395
350
|
|
|
396
351
|
|
|
@@ -398,17 +353,20 @@ Generates a Filter Builder Structure from the Filter Data structure v2.1
|
|
|
398
353
|
##### Returns
|
|
399
354
|
|
|
400
355
|
|
|
401
|
-
-
|
|
356
|
+
- an object with the week, month and year.
|
|
402
357
|
|
|
403
358
|
|
|
404
359
|
|
|
405
360
|
|
|
406
|
-
### dist/
|
|
361
|
+
### dist/dates/helpers/validateDate.js
|
|
407
362
|
|
|
408
363
|
|
|
409
|
-
####
|
|
364
|
+
#### validateDate(date, format)
|
|
410
365
|
|
|
411
|
-
|
|
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
|
|
412
370
|
|
|
413
371
|
|
|
414
372
|
|
|
@@ -417,7 +375,8 @@ Generates a Filter Logic structure from Filter Data structure.
|
|
|
417
375
|
|
|
418
376
|
| Name | Type | Description | |
|
|
419
377
|
| ---- | ---- | ----------- | -------- |
|
|
420
|
-
|
|
|
378
|
+
| date | | String of date | |
|
|
379
|
+
| format | | String of the format to validate | |
|
|
421
380
|
|
|
422
381
|
|
|
423
382
|
|
|
@@ -425,13 +384,17 @@ Generates a Filter Logic structure from Filter Data structure.
|
|
|
425
384
|
##### Returns
|
|
426
385
|
|
|
427
386
|
|
|
428
|
-
-
|
|
387
|
+
- True if it is valid or not. Undefined if date is undefined
|
|
429
388
|
|
|
430
389
|
|
|
431
390
|
|
|
432
|
-
#### getLogicBodyFromFD21(filterData)
|
|
433
391
|
|
|
434
|
-
|
|
392
|
+
### dist/dates/helpers/validateDateByDateFormat.js
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
#### validateDateByDateFormat(date, dateForma)
|
|
396
|
+
|
|
397
|
+
Validates the given string as Date by its date format.
|
|
435
398
|
|
|
436
399
|
|
|
437
400
|
|
|
@@ -440,7 +403,8 @@ Gets the logic body
|
|
|
440
403
|
|
|
441
404
|
| Name | Type | Description | |
|
|
442
405
|
| ---- | ---- | ----------- | -------- |
|
|
443
|
-
|
|
|
406
|
+
| date | | a string to validate as date form | |
|
|
407
|
+
| dateForma | | the format of the date to validate the string | |
|
|
444
408
|
|
|
445
409
|
|
|
446
410
|
|
|
@@ -448,17 +412,17 @@ Gets the logic body
|
|
|
448
412
|
##### Returns
|
|
449
413
|
|
|
450
414
|
|
|
451
|
-
- a
|
|
415
|
+
- true: the string is a valida date
|
|
452
416
|
|
|
453
417
|
|
|
454
418
|
|
|
455
419
|
|
|
456
|
-
### dist/
|
|
420
|
+
### dist/dates/range/getDateRange.js
|
|
457
421
|
|
|
458
422
|
|
|
459
|
-
####
|
|
423
|
+
#### getDateRange(value, dateGroupLabel, withTime)
|
|
460
424
|
|
|
461
|
-
|
|
425
|
+
Get date range object from a string date value
|
|
462
426
|
|
|
463
427
|
|
|
464
428
|
|
|
@@ -467,61 +431,74 @@ Generates a UI filter structure from Filter Data structure.
|
|
|
467
431
|
|
|
468
432
|
| Name | Type | Description | |
|
|
469
433
|
| ---- | ---- | ----------- | -------- |
|
|
470
|
-
|
|
|
471
|
-
|
|
|
472
|
-
|
|
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 | |
|
|
473
437
|
|
|
474
438
|
|
|
475
439
|
|
|
476
|
-
##### Returns
|
|
477
440
|
|
|
441
|
+
##### Examples
|
|
478
442
|
|
|
479
|
-
|
|
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
|
+
}
|
|
480
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
|
+
}
|
|
481
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
|
+
```
|
|
482
468
|
|
|
483
|
-
#### FD21ToUI(scopes, section, version, datasetsInfo)
|
|
484
469
|
|
|
485
|
-
|
|
470
|
+
##### Returns
|
|
486
471
|
|
|
487
472
|
|
|
473
|
+
- `Object` an object with the date range with two string date properties: from and to
|
|
488
474
|
|
|
489
475
|
|
|
490
|
-
##### Parameters
|
|
491
476
|
|
|
492
|
-
| Name | Type | Description | |
|
|
493
|
-
| ---- | ---- | ----------- | -------- |
|
|
494
|
-
| scopes | | The filter scope section | |
|
|
495
|
-
| section | | The filter section. | |
|
|
496
|
-
| version | | The version of the filter structure | |
|
|
497
|
-
| datasetsInfo | | Collection of datasets information | |
|
|
498
477
|
|
|
478
|
+
### dist/dates/relative/Adapter.js
|
|
499
479
|
|
|
500
480
|
|
|
481
|
+
#### value()
|
|
501
482
|
|
|
502
|
-
|
|
483
|
+
Resolves statement and returns statement value
|
|
503
484
|
|
|
504
485
|
|
|
505
|
-
- a UI filter Structure
|
|
506
486
|
|
|
507
487
|
|
|
508
488
|
|
|
509
489
|
|
|
510
|
-
|
|
490
|
+
##### Returns
|
|
511
491
|
|
|
512
492
|
|
|
513
|
-
|
|
493
|
+
- `AbsoluteRange` `string`
|
|
514
494
|
|
|
515
|
-
Generates a Filter Data Structure structure from UI Filter Data structure.
|
|
516
495
|
|
|
517
496
|
|
|
497
|
+
#### valueAsAnchor()
|
|
518
498
|
|
|
499
|
+
Resolves statement as an anchor
|
|
519
500
|
|
|
520
|
-
##### Parameters
|
|
521
501
|
|
|
522
|
-
| Name | Type | Description | |
|
|
523
|
-
| ---- | ---- | ----------- | -------- |
|
|
524
|
-
| filterData | | The UI filter data object. | |
|
|
525
502
|
|
|
526
503
|
|
|
527
504
|
|
|
@@ -529,74 +506,63 @@ Generates a Filter Data Structure structure from UI Filter Data structure.
|
|
|
529
506
|
##### Returns
|
|
530
507
|
|
|
531
508
|
|
|
532
|
-
-
|
|
509
|
+
- `string`
|
|
533
510
|
|
|
534
511
|
|
|
535
512
|
|
|
536
|
-
####
|
|
513
|
+
#### _statementToRange() *private method*
|
|
537
514
|
|
|
538
|
-
|
|
515
|
+
Convert verbal statement to range value
|
|
539
516
|
|
|
540
517
|
|
|
541
518
|
|
|
542
519
|
|
|
543
|
-
##### Parameters
|
|
544
520
|
|
|
545
|
-
| Name | Type | Description | |
|
|
546
|
-
| ---- | ---- | ----------- | -------- |
|
|
547
|
-
| uFilterData | | The UI filter Data object | |
|
|
548
|
-
| version | | the version of the structure | |
|
|
549
521
|
|
|
522
|
+
##### Returns
|
|
550
523
|
|
|
551
524
|
|
|
525
|
+
- `AbsoluteRange`
|
|
552
526
|
|
|
553
|
-
##### Returns
|
|
554
527
|
|
|
555
528
|
|
|
556
|
-
|
|
529
|
+
#### _resolveAsThis() *private method*
|
|
557
530
|
|
|
531
|
+
Apply 'this' cursor logic to statement
|
|
558
532
|
|
|
559
533
|
|
|
560
534
|
|
|
561
|
-
### dist/filters/adapters/UIToFlatUI.js
|
|
562
535
|
|
|
563
536
|
|
|
564
|
-
#### UIToFlatUI(filterData, datasetsInfo)
|
|
565
537
|
|
|
566
|
-
|
|
538
|
+
##### Returns
|
|
567
539
|
|
|
568
540
|
|
|
541
|
+
- `AbsoluteStatement`
|
|
569
542
|
|
|
570
543
|
|
|
571
|
-
##### Parameters
|
|
572
544
|
|
|
573
|
-
|
|
574
|
-
| ---- | ---- | ----------- | -------- |
|
|
575
|
-
| filterData | | The UI filter data object. | |
|
|
576
|
-
| datasetsInfo | | Collection of datasets information. Optional for updating the datasets info | |
|
|
545
|
+
#### _resolveAsTheLast() *private method*
|
|
577
546
|
|
|
547
|
+
Apply 'the last' cursor logic to statement
|
|
578
548
|
|
|
579
549
|
|
|
580
550
|
|
|
581
|
-
##### Returns
|
|
582
551
|
|
|
583
552
|
|
|
584
|
-
- a flattened UI filters array
|
|
585
553
|
|
|
554
|
+
##### Returns
|
|
586
555
|
|
|
587
556
|
|
|
588
|
-
|
|
557
|
+
- `AbsoluteStatement`
|
|
589
558
|
|
|
590
|
-
Generates a Flattened UI Filter Structure from the UI Filter Data structure v2.1
|
|
591
559
|
|
|
592
560
|
|
|
561
|
+
#### _resolveAsTheNext() *private method*
|
|
593
562
|
|
|
563
|
+
Apply 'the next' cursor logic to statement
|
|
594
564
|
|
|
595
|
-
##### Parameters
|
|
596
565
|
|
|
597
|
-
| Name | Type | Description | |
|
|
598
|
-
| ---- | ---- | ----------- | -------- |
|
|
599
|
-
| scopes | | The filter scope section | |
|
|
600
566
|
|
|
601
567
|
|
|
602
568
|
|
|
@@ -604,18 +570,13 @@ Generates a Flattened UI Filter Structure from the UI Filter Data structure v2.1
|
|
|
604
570
|
##### Returns
|
|
605
571
|
|
|
606
572
|
|
|
607
|
-
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
573
|
+
- `AbsoluteStatement`
|
|
611
574
|
|
|
612
|
-
### dist/filters/adapters/adaptDateGroupingProperty.js
|
|
613
575
|
|
|
614
576
|
|
|
615
|
-
####
|
|
577
|
+
#### replaceNowToken(value, now)
|
|
616
578
|
|
|
617
|
-
|
|
618
|
-
Get the new property base on the old date grouping properties
|
|
579
|
+
Replace '@now' token inside a string
|
|
619
580
|
|
|
620
581
|
|
|
621
582
|
|
|
@@ -624,7 +585,8 @@ Get the new property base on the old date grouping properties
|
|
|
624
585
|
|
|
625
586
|
| Name | Type | Description | |
|
|
626
587
|
| ---- | ---- | ----------- | -------- |
|
|
627
|
-
|
|
|
588
|
+
| value | `string` | | |
|
|
589
|
+
| now | `Date` | | |
|
|
628
590
|
|
|
629
591
|
|
|
630
592
|
|
|
@@ -632,17 +594,13 @@ Get the new property base on the old date grouping properties
|
|
|
632
594
|
##### Returns
|
|
633
595
|
|
|
634
596
|
|
|
635
|
-
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
597
|
+
- `string`
|
|
639
598
|
|
|
640
|
-
### dist/filters/adapters/adaptFilterData.js
|
|
641
599
|
|
|
642
600
|
|
|
643
|
-
####
|
|
601
|
+
#### convertRelativeToAbsolute(args)
|
|
644
602
|
|
|
645
|
-
|
|
603
|
+
Returns a range object (date) from a group of statement params
|
|
646
604
|
|
|
647
605
|
|
|
648
606
|
|
|
@@ -651,28 +609,45 @@ Checks and adapts the v2.0 Filter Data Structure to the v2.1
|
|
|
651
609
|
|
|
652
610
|
| Name | Type | Description | |
|
|
653
611
|
| ---- | ---- | ----------- | -------- |
|
|
654
|
-
|
|
|
655
|
-
|
|
656
|
-
| datasetsInfo | | Collection of datasets information. If getUIFilterData is true, the datasetsInfo should be mandatory | |
|
|
612
|
+
| args | `RelativeToAbsoluteStruct` | | |
|
|
613
|
+
|
|
657
614
|
|
|
658
615
|
|
|
659
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
|
+
|
|
660
636
|
|
|
661
637
|
##### Returns
|
|
662
638
|
|
|
663
639
|
|
|
664
|
-
-
|
|
640
|
+
- `string`
|
|
665
641
|
|
|
666
642
|
|
|
667
643
|
|
|
668
644
|
|
|
669
|
-
### dist/
|
|
645
|
+
### dist/dates/relative/relative.js
|
|
670
646
|
|
|
671
647
|
|
|
672
|
-
####
|
|
648
|
+
#### resolveRelative(statements, clock)
|
|
673
649
|
|
|
674
|
-
|
|
675
|
-
Gets an adapted filter value array. Validates the enabled property and sets
|
|
650
|
+
Resolve a list of relative statements according to operator
|
|
676
651
|
|
|
677
652
|
|
|
678
653
|
|
|
@@ -681,35 +656,46 @@ Gets an adapted filter value array. Validates the enabled property and sets
|
|
|
681
656
|
|
|
682
657
|
| Name | Type | Description | |
|
|
683
658
|
| ---- | ---- | ----------- | -------- |
|
|
684
|
-
|
|
|
659
|
+
| statements | `Array.<RelativeStatement>` `Array.<string>` | - Raw statements/values | |
|
|
660
|
+
| clock | `Date` | - Clock/time reference for relative date resolution | |
|
|
685
661
|
|
|
686
662
|
|
|
687
663
|
|
|
688
664
|
|
|
689
|
-
#####
|
|
665
|
+
##### Examples
|
|
690
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
|
+
}
|
|
691
677
|
|
|
692
|
-
|
|
678
|
+
Output:
|
|
679
|
+
{ gte: "03/06/2021 00:00:00", lte: "03/05/2022 23:59:59" }
|
|
680
|
+
```
|
|
693
681
|
|
|
694
682
|
|
|
683
|
+
##### Returns
|
|
695
684
|
|
|
696
685
|
|
|
697
|
-
|
|
686
|
+
- `Array.<AbsoluteRange>` `Array.<string>`
|
|
698
687
|
|
|
699
688
|
|
|
700
|
-
#### flatUIToFD(uFilters, version)
|
|
701
689
|
|
|
702
|
-
Generates a filter data structure from the flatttened UI filters.
|
|
703
690
|
|
|
691
|
+
### dist/filters/classes/FilterInputErrorHandler.js
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
#### new FilterInputErrorHandler()
|
|
704
695
|
|
|
705
696
|
|
|
706
697
|
|
|
707
|
-
##### Parameters
|
|
708
698
|
|
|
709
|
-
| Name | Type | Description | |
|
|
710
|
-
| ---- | ---- | ----------- | -------- |
|
|
711
|
-
| uFilters | | Array of flattened filters from UI | |
|
|
712
|
-
| version | | Tag for the version of the filter data structure | |
|
|
713
699
|
|
|
714
700
|
|
|
715
701
|
|
|
@@ -717,14 +703,17 @@ Generates a filter data structure from the flatttened UI filters.
|
|
|
717
703
|
##### Returns
|
|
718
704
|
|
|
719
705
|
|
|
720
|
-
-
|
|
706
|
+
- `Void`
|
|
721
707
|
|
|
722
708
|
|
|
723
709
|
|
|
724
|
-
#### buildScopes(fbFilters)
|
|
725
710
|
|
|
726
|
-
|
|
727
|
-
|
|
711
|
+
### dist/filters/adapters/FDToFlatUI.js
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
#### FDToFlatUI(filterData, datasetsInfo)
|
|
715
|
+
|
|
716
|
+
Generates a Flattened UI filter structure from Filter Data structure.
|
|
728
717
|
|
|
729
718
|
|
|
730
719
|
|
|
@@ -733,7 +722,8 @@ Also, adds and organizes filters by datasets
|
|
|
733
722
|
|
|
734
723
|
| Name | Type | Description | |
|
|
735
724
|
| ---- | ---- | ----------- | -------- |
|
|
736
|
-
|
|
|
725
|
+
| filterData | | The filter data object. | |
|
|
726
|
+
| datasetsInfo | | Collection of datasets information | |
|
|
737
727
|
|
|
738
728
|
|
|
739
729
|
|
|
@@ -741,13 +731,13 @@ Also, adds and organizes filters by datasets
|
|
|
741
731
|
##### Returns
|
|
742
732
|
|
|
743
733
|
|
|
744
|
-
-
|
|
734
|
+
- a flattened UI filters array
|
|
745
735
|
|
|
746
736
|
|
|
747
737
|
|
|
748
|
-
####
|
|
738
|
+
#### FD21ToFlatUI(scopes, datasetsInfo)
|
|
749
739
|
|
|
750
|
-
|
|
740
|
+
Generates a Filter Builder Structure from the Filter Data structure v2.1
|
|
751
741
|
|
|
752
742
|
|
|
753
743
|
|
|
@@ -756,7 +746,8 @@ Gets an scope structure for the filter data
|
|
|
756
746
|
|
|
757
747
|
| Name | Type | Description | |
|
|
758
748
|
| ---- | ---- | ----------- | -------- |
|
|
759
|
-
|
|
|
749
|
+
| scopes | | The filter scope section | |
|
|
750
|
+
| datasetsInfo | | Collection of datasets information | |
|
|
760
751
|
|
|
761
752
|
|
|
762
753
|
|
|
@@ -764,13 +755,17 @@ Gets an scope structure for the filter data
|
|
|
764
755
|
##### Returns
|
|
765
756
|
|
|
766
757
|
|
|
767
|
-
-
|
|
758
|
+
- a flattened UI filters array
|
|
768
759
|
|
|
769
760
|
|
|
770
761
|
|
|
771
|
-
#### buildDataset(uFilter)
|
|
772
762
|
|
|
773
|
-
|
|
763
|
+
### dist/filters/adapters/FDToLogic.js
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
#### FDToLogic(filterData)
|
|
767
|
+
|
|
768
|
+
Generates a Filter Logic structure from Filter Data structure.
|
|
774
769
|
|
|
775
770
|
|
|
776
771
|
|
|
@@ -779,7 +774,7 @@ Gets an dataset structure for the filter data
|
|
|
779
774
|
|
|
780
775
|
| Name | Type | Description | |
|
|
781
776
|
| ---- | ---- | ----------- | -------- |
|
|
782
|
-
|
|
|
777
|
+
| filterData | | The filter data object. | |
|
|
783
778
|
|
|
784
779
|
|
|
785
780
|
|
|
@@ -787,13 +782,13 @@ Gets an dataset structure for the filter data
|
|
|
787
782
|
##### Returns
|
|
788
783
|
|
|
789
784
|
|
|
790
|
-
-
|
|
785
|
+
- a filter logic array
|
|
791
786
|
|
|
792
787
|
|
|
793
788
|
|
|
794
|
-
####
|
|
789
|
+
#### getLogicBodyFromFD21(filterData)
|
|
795
790
|
|
|
796
|
-
Gets
|
|
791
|
+
Gets the logic body
|
|
797
792
|
|
|
798
793
|
|
|
799
794
|
|
|
@@ -802,7 +797,7 @@ Gets an filter structure for the filter data
|
|
|
802
797
|
|
|
803
798
|
| Name | Type | Description | |
|
|
804
799
|
| ---- | ---- | ----------- | -------- |
|
|
805
|
-
|
|
|
800
|
+
| filterData | | The filter data object | |
|
|
806
801
|
|
|
807
802
|
|
|
808
803
|
|
|
@@ -810,17 +805,17 @@ Gets an filter structure for the filter data
|
|
|
810
805
|
##### Returns
|
|
811
806
|
|
|
812
807
|
|
|
813
|
-
-
|
|
808
|
+
- a filter logic array
|
|
814
809
|
|
|
815
810
|
|
|
816
811
|
|
|
817
812
|
|
|
818
|
-
### dist/filters/adapters/
|
|
813
|
+
### dist/filters/adapters/FDToUI.js
|
|
819
814
|
|
|
820
815
|
|
|
821
|
-
####
|
|
816
|
+
#### FDToUI(filterData, datasetsInfo)
|
|
822
817
|
|
|
823
|
-
Generates a
|
|
818
|
+
Generates a UI filter structure from Filter Data structure.
|
|
824
819
|
|
|
825
820
|
|
|
826
821
|
|
|
@@ -829,7 +824,8 @@ Generates a Logic structure from flattened UI filters
|
|
|
829
824
|
|
|
830
825
|
| Name | Type | Description | |
|
|
831
826
|
| ---- | ---- | ----------- | -------- |
|
|
832
|
-
|
|
|
827
|
+
| filterData | | The filter data object. | |
|
|
828
|
+
| datasetsInfo | | Collection of datasets information | |
|
|
833
829
|
|
|
834
830
|
|
|
835
831
|
|
|
@@ -837,17 +833,13 @@ Generates a Logic structure from flattened UI filters
|
|
|
837
833
|
##### Returns
|
|
838
834
|
|
|
839
835
|
|
|
840
|
-
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
836
|
+
- a UI Filters structure
|
|
844
837
|
|
|
845
|
-
### dist/filters/adapters/flatUIToOldLogic.js
|
|
846
838
|
|
|
847
839
|
|
|
848
|
-
####
|
|
840
|
+
#### FD21ToUI(scopes, section, version, datasetsInfo)
|
|
849
841
|
|
|
850
|
-
Generates a
|
|
842
|
+
Generates a UI filter Structure from the Filter Data structure v2.1
|
|
851
843
|
|
|
852
844
|
|
|
853
845
|
|
|
@@ -856,7 +848,10 @@ Generates a Logic structure from flattened UI filters
|
|
|
856
848
|
|
|
857
849
|
| Name | Type | Description | |
|
|
858
850
|
| ---- | ---- | ----------- | -------- |
|
|
859
|
-
|
|
|
851
|
+
| scopes | | The filter scope section | |
|
|
852
|
+
| section | | The filter section. | |
|
|
853
|
+
| version | | The version of the filter structure | |
|
|
854
|
+
| datasetsInfo | | Collection of datasets information | |
|
|
860
855
|
|
|
861
856
|
|
|
862
857
|
|
|
@@ -864,17 +859,17 @@ Generates a Logic structure from flattened UI filters
|
|
|
864
859
|
##### Returns
|
|
865
860
|
|
|
866
861
|
|
|
867
|
-
-
|
|
862
|
+
- a UI filter Structure
|
|
868
863
|
|
|
869
864
|
|
|
870
865
|
|
|
871
866
|
|
|
872
|
-
### dist/filters/adapters/
|
|
867
|
+
### dist/filters/adapters/UIToFD.js
|
|
873
868
|
|
|
874
869
|
|
|
875
|
-
####
|
|
870
|
+
#### UIToFD(filterData)
|
|
876
871
|
|
|
877
|
-
Generates a
|
|
872
|
+
Generates a Filter Data Structure structure from UI Filter Data structure.
|
|
878
873
|
|
|
879
874
|
|
|
880
875
|
|
|
@@ -883,8 +878,7 @@ Generates a UI filter data structure from the flatttened UI filters.
|
|
|
883
878
|
|
|
884
879
|
| Name | Type | Description | |
|
|
885
880
|
| ---- | ---- | ----------- | -------- |
|
|
886
|
-
|
|
|
887
|
-
| version | | Tag for the version of the filter data structure | |
|
|
881
|
+
| filterData | | The UI filter data object. | |
|
|
888
882
|
|
|
889
883
|
|
|
890
884
|
|
|
@@ -892,14 +886,13 @@ Generates a UI filter data structure from the flatttened UI filters.
|
|
|
892
886
|
##### Returns
|
|
893
887
|
|
|
894
888
|
|
|
895
|
-
- a
|
|
889
|
+
- a Filter Data structure
|
|
896
890
|
|
|
897
891
|
|
|
898
892
|
|
|
899
|
-
####
|
|
893
|
+
#### UI21ToFD(uFilterData, version)
|
|
900
894
|
|
|
901
|
-
|
|
902
|
-
Also, adds and organizes filters by datasets
|
|
895
|
+
Builds the Fitler Data structure from UI filter data
|
|
903
896
|
|
|
904
897
|
|
|
905
898
|
|
|
@@ -908,7 +901,8 @@ Also, adds and organizes filters by datasets
|
|
|
908
901
|
|
|
909
902
|
| Name | Type | Description | |
|
|
910
903
|
| ---- | ---- | ----------- | -------- |
|
|
911
|
-
|
|
|
904
|
+
| uFilterData | | The UI filter Data object | |
|
|
905
|
+
| version | | the version of the structure | |
|
|
912
906
|
|
|
913
907
|
|
|
914
908
|
|
|
@@ -916,13 +910,17 @@ Also, adds and organizes filters by datasets
|
|
|
916
910
|
##### Returns
|
|
917
911
|
|
|
918
912
|
|
|
919
|
-
-
|
|
913
|
+
-
|
|
920
914
|
|
|
921
915
|
|
|
922
916
|
|
|
923
|
-
#### buildScope(uFilter)
|
|
924
917
|
|
|
925
|
-
|
|
918
|
+
### dist/filters/adapters/UIToFlatUI.js
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
#### UIToFlatUI(filterData, datasetsInfo)
|
|
922
|
+
|
|
923
|
+
Generates a Flattened UI filter structure from UI Filter Data structure.
|
|
926
924
|
|
|
927
925
|
|
|
928
926
|
|
|
@@ -931,7 +929,8 @@ Gets an scope structure for the UI filter data
|
|
|
931
929
|
|
|
932
930
|
| Name | Type | Description | |
|
|
933
931
|
| ---- | ---- | ----------- | -------- |
|
|
934
|
-
|
|
|
932
|
+
| filterData | | The UI filter data object. | |
|
|
933
|
+
| datasetsInfo | | Collection of datasets information. Optional for updating the datasets info | |
|
|
935
934
|
|
|
936
935
|
|
|
937
936
|
|
|
@@ -939,13 +938,13 @@ Gets an scope structure for the UI filter data
|
|
|
939
938
|
##### Returns
|
|
940
939
|
|
|
941
940
|
|
|
942
|
-
-
|
|
941
|
+
- a flattened UI filters array
|
|
943
942
|
|
|
944
943
|
|
|
945
944
|
|
|
946
|
-
####
|
|
945
|
+
#### UI21ToFlatUI(scopes)
|
|
947
946
|
|
|
948
|
-
|
|
947
|
+
Generates a Flattened UI Filter Structure from the UI Filter Data structure v2.1
|
|
949
948
|
|
|
950
949
|
|
|
951
950
|
|
|
@@ -954,7 +953,7 @@ Gets an dataset structure for the UI filter data
|
|
|
954
953
|
|
|
955
954
|
| Name | Type | Description | |
|
|
956
955
|
| ---- | ---- | ----------- | -------- |
|
|
957
|
-
|
|
|
956
|
+
| scopes | | The filter scope section | |
|
|
958
957
|
|
|
959
958
|
|
|
960
959
|
|
|
@@ -962,13 +961,18 @@ Gets an dataset structure for the UI filter data
|
|
|
962
961
|
##### Returns
|
|
963
962
|
|
|
964
963
|
|
|
965
|
-
-
|
|
964
|
+
- a flattened UI filters array
|
|
966
965
|
|
|
967
966
|
|
|
968
967
|
|
|
969
|
-
#### buildFilter(uFilter)
|
|
970
968
|
|
|
971
|
-
|
|
969
|
+
### dist/filters/adapters/adaptDateGroupingProperty.js
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
#### adaptDateGroupingProperty(property)
|
|
973
|
+
|
|
974
|
+
[TODO: For 2022, eliminate this adapter]
|
|
975
|
+
Get the new property base on the old date grouping properties
|
|
972
976
|
|
|
973
977
|
|
|
974
978
|
|
|
@@ -977,7 +981,7 @@ Gets an filter structure for the UI filter data
|
|
|
977
981
|
|
|
978
982
|
| Name | Type | Description | |
|
|
979
983
|
| ---- | ---- | ----------- | -------- |
|
|
980
|
-
|
|
|
984
|
+
| property | | | |
|
|
981
985
|
|
|
982
986
|
|
|
983
987
|
|
|
@@ -985,17 +989,17 @@ Gets an filter structure for the UI filter data
|
|
|
985
989
|
##### Returns
|
|
986
990
|
|
|
987
991
|
|
|
988
|
-
-
|
|
992
|
+
-
|
|
989
993
|
|
|
990
994
|
|
|
991
995
|
|
|
992
996
|
|
|
993
|
-
### dist/filters/adapters/
|
|
997
|
+
### dist/filters/adapters/adaptFilterData.js
|
|
994
998
|
|
|
995
999
|
|
|
996
|
-
####
|
|
1000
|
+
#### adaptFilterData(filterData, getUIFilterData, datasetsInfo)
|
|
997
1001
|
|
|
998
|
-
|
|
1002
|
+
Checks and adapts the v2.0 Filter Data Structure to the v2.1
|
|
999
1003
|
|
|
1000
1004
|
|
|
1001
1005
|
|
|
@@ -1004,8 +1008,9 @@ Generates a filter data structure from the old logic structure (v2.0).
|
|
|
1004
1008
|
|
|
1005
1009
|
| Name | Type | Description | |
|
|
1006
1010
|
| ---- | ---- | ----------- | -------- |
|
|
1007
|
-
| filterData | | The
|
|
1008
|
-
|
|
|
1011
|
+
| filterData | | The filter data structure. Accepts both v2.1 or v2.0 | |
|
|
1012
|
+
| getUIFilterData | | Flag to get a Filter Data (False) or the UI Filter Data (True) | |
|
|
1013
|
+
| datasetsInfo | | Collection of datasets information. If getUIFilterData is true, the datasetsInfo should be mandatory | |
|
|
1009
1014
|
|
|
1010
1015
|
|
|
1011
1016
|
|
|
@@ -1013,17 +1018,18 @@ Generates a filter data structure from the old logic structure (v2.0).
|
|
|
1013
1018
|
##### Returns
|
|
1014
1019
|
|
|
1015
1020
|
|
|
1016
|
-
-
|
|
1021
|
+
- A new filter data structure v2.1
|
|
1017
1022
|
|
|
1018
1023
|
|
|
1019
1024
|
|
|
1020
1025
|
|
|
1021
|
-
### dist/filters/adapters/
|
|
1026
|
+
### dist/filters/adapters/adaptFilterValues.js
|
|
1022
1027
|
|
|
1023
1028
|
|
|
1024
|
-
####
|
|
1029
|
+
#### adaptFilterValues(filter)
|
|
1025
1030
|
|
|
1026
|
-
|
|
1031
|
+
[TODO: For 2022, eliminate this adapter]
|
|
1032
|
+
Gets an adapted filter value array. Validates the enabled property and sets
|
|
1027
1033
|
|
|
1028
1034
|
|
|
1029
1035
|
|
|
@@ -1032,7 +1038,7 @@ Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
|
|
|
1032
1038
|
|
|
1033
1039
|
| Name | Type | Description | |
|
|
1034
1040
|
| ---- | ---- | ----------- | -------- |
|
|
1035
|
-
|
|
|
1041
|
+
| filter | | The filter | |
|
|
1036
1042
|
|
|
1037
1043
|
|
|
1038
1044
|
|
|
@@ -1040,13 +1046,17 @@ Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
|
|
|
1040
1046
|
##### Returns
|
|
1041
1047
|
|
|
1042
1048
|
|
|
1043
|
-
-
|
|
1049
|
+
- A new value array with the filled properties.
|
|
1044
1050
|
|
|
1045
1051
|
|
|
1046
1052
|
|
|
1047
|
-
#### getFilter(filters, filter, getIndex)
|
|
1048
1053
|
|
|
1049
|
-
|
|
1054
|
+
### dist/filters/adapters/flatUIToFD.js
|
|
1055
|
+
|
|
1056
|
+
|
|
1057
|
+
#### flatUIToFD(uFilters, version)
|
|
1058
|
+
|
|
1059
|
+
Generates a filter data structure from the flatttened UI filters.
|
|
1050
1060
|
|
|
1051
1061
|
|
|
1052
1062
|
|
|
@@ -1055,9 +1065,685 @@ Get the filter or the index of the given array, validating an old filter structu
|
|
|
1055
1065
|
|
|
1056
1066
|
| Name | Type | Description | |
|
|
1057
1067
|
| ---- | ---- | ----------- | -------- |
|
|
1058
|
-
|
|
|
1059
|
-
|
|
|
1060
|
-
|
|
1068
|
+
| uFilters | | Array of flattened filters from UI | |
|
|
1069
|
+
| version | | Tag for the version of the filter data structure | |
|
|
1070
|
+
|
|
1071
|
+
|
|
1072
|
+
|
|
1073
|
+
|
|
1074
|
+
##### Returns
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
- a Filter Data.
|
|
1078
|
+
|
|
1079
|
+
|
|
1080
|
+
|
|
1081
|
+
#### buildScopes(fbFilters)
|
|
1082
|
+
|
|
1083
|
+
Gets an array of scopes structure for the filter data. The scopes is organized by scope types and scope IDs
|
|
1084
|
+
Also, adds and organizes filters by datasets
|
|
1085
|
+
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
|
+
|
|
1089
|
+
##### Parameters
|
|
1090
|
+
|
|
1091
|
+
| Name | Type | Description | |
|
|
1092
|
+
| ---- | ---- | ----------- | -------- |
|
|
1093
|
+
| fbFilters | | Array of flat filters from UI | |
|
|
1094
|
+
|
|
1095
|
+
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
##### Returns
|
|
1099
|
+
|
|
1100
|
+
|
|
1101
|
+
- an array of scopes structure.
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
|
|
1105
|
+
#### buildScope(uFilter)
|
|
1106
|
+
|
|
1107
|
+
Gets an scope structure for the filter data
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
##### Parameters
|
|
1113
|
+
|
|
1114
|
+
| Name | Type | Description | |
|
|
1115
|
+
| ---- | ---- | ----------- | -------- |
|
|
1116
|
+
| uFilter | | UI structure filter | |
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
|
|
1121
|
+
##### Returns
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
- an scope structure
|
|
1125
|
+
|
|
1126
|
+
|
|
1127
|
+
|
|
1128
|
+
#### buildDataset(uFilter)
|
|
1129
|
+
|
|
1130
|
+
Gets an dataset structure for the filter data
|
|
1131
|
+
|
|
1132
|
+
|
|
1133
|
+
|
|
1134
|
+
|
|
1135
|
+
##### Parameters
|
|
1136
|
+
|
|
1137
|
+
| Name | Type | Description | |
|
|
1138
|
+
| ---- | ---- | ----------- | -------- |
|
|
1139
|
+
| uFilter | | a UI structure filter | |
|
|
1140
|
+
|
|
1141
|
+
|
|
1142
|
+
|
|
1143
|
+
|
|
1144
|
+
##### Returns
|
|
1145
|
+
|
|
1146
|
+
|
|
1147
|
+
- an dataset structure
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
|
+
|
|
1151
|
+
#### buildFilter(uFilter)
|
|
1152
|
+
|
|
1153
|
+
Gets an filter structure for the filter data
|
|
1154
|
+
|
|
1155
|
+
|
|
1156
|
+
|
|
1157
|
+
|
|
1158
|
+
##### Parameters
|
|
1159
|
+
|
|
1160
|
+
| Name | Type | Description | |
|
|
1161
|
+
| ---- | ---- | ----------- | -------- |
|
|
1162
|
+
| uFilter | | a UI structure filter | |
|
|
1163
|
+
|
|
1164
|
+
|
|
1165
|
+
|
|
1166
|
+
|
|
1167
|
+
##### Returns
|
|
1168
|
+
|
|
1169
|
+
|
|
1170
|
+
- an filter structure
|
|
1171
|
+
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
|
|
1175
|
+
### dist/filters/adapters/flatUIToLogic.js
|
|
1176
|
+
|
|
1177
|
+
|
|
1178
|
+
#### flatUIToLogic(uFilter)
|
|
1179
|
+
|
|
1180
|
+
Generates a Logic structure from flattened UI filters
|
|
1181
|
+
|
|
1182
|
+
|
|
1183
|
+
|
|
1184
|
+
|
|
1185
|
+
##### Parameters
|
|
1186
|
+
|
|
1187
|
+
| Name | Type | Description | |
|
|
1188
|
+
| ---- | ---- | ----------- | -------- |
|
|
1189
|
+
| uFilter | | Array of flat filters from UI | |
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
|
|
1193
|
+
|
|
1194
|
+
##### Returns
|
|
1195
|
+
|
|
1196
|
+
|
|
1197
|
+
- The logic structure
|
|
1198
|
+
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
|
|
1202
|
+
### dist/filters/adapters/flatUIToOldLogic.js
|
|
1203
|
+
|
|
1204
|
+
|
|
1205
|
+
#### flatUIToOldLogic(uFilters)
|
|
1206
|
+
|
|
1207
|
+
Generates a Logic structure from flattened UI filters
|
|
1208
|
+
|
|
1209
|
+
|
|
1210
|
+
|
|
1211
|
+
|
|
1212
|
+
##### Parameters
|
|
1213
|
+
|
|
1214
|
+
| Name | Type | Description | |
|
|
1215
|
+
| ---- | ---- | ----------- | -------- |
|
|
1216
|
+
| uFilters | | Array of flat filters from UI | |
|
|
1217
|
+
|
|
1218
|
+
|
|
1219
|
+
|
|
1220
|
+
|
|
1221
|
+
##### Returns
|
|
1222
|
+
|
|
1223
|
+
|
|
1224
|
+
- The logic structure
|
|
1225
|
+
|
|
1226
|
+
|
|
1227
|
+
|
|
1228
|
+
|
|
1229
|
+
### dist/filters/adapters/flatUIToUI.js
|
|
1230
|
+
|
|
1231
|
+
|
|
1232
|
+
#### flatUIToUI(uFilters, version)
|
|
1233
|
+
|
|
1234
|
+
Generates a UI filter data structure from the flatttened UI filters.
|
|
1235
|
+
|
|
1236
|
+
|
|
1237
|
+
|
|
1238
|
+
|
|
1239
|
+
##### Parameters
|
|
1240
|
+
|
|
1241
|
+
| Name | Type | Description | |
|
|
1242
|
+
| ---- | ---- | ----------- | -------- |
|
|
1243
|
+
| uFilters | | Array of flattened filters from UI | |
|
|
1244
|
+
| version | | Tag for the version of the filter data structure | |
|
|
1245
|
+
|
|
1246
|
+
|
|
1247
|
+
|
|
1248
|
+
|
|
1249
|
+
##### Returns
|
|
1250
|
+
|
|
1251
|
+
|
|
1252
|
+
- a UI Filter Data.
|
|
1253
|
+
|
|
1254
|
+
|
|
1255
|
+
|
|
1256
|
+
#### buildScopes(fbFilters)
|
|
1257
|
+
|
|
1258
|
+
Gets an array of scopes structure for the UI filter data. The scopes is organized by scope types and scope IDs
|
|
1259
|
+
Also, adds and organizes filters by datasets
|
|
1260
|
+
|
|
1261
|
+
|
|
1262
|
+
|
|
1263
|
+
|
|
1264
|
+
##### Parameters
|
|
1265
|
+
|
|
1266
|
+
| Name | Type | Description | |
|
|
1267
|
+
| ---- | ---- | ----------- | -------- |
|
|
1268
|
+
| fbFilters | | Array of flat filters from UI | |
|
|
1269
|
+
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
##### Returns
|
|
1274
|
+
|
|
1275
|
+
|
|
1276
|
+
- an array of scopes structure.
|
|
1277
|
+
|
|
1278
|
+
|
|
1279
|
+
|
|
1280
|
+
#### buildScope(uFilter)
|
|
1281
|
+
|
|
1282
|
+
Gets an scope structure for the UI filter data
|
|
1283
|
+
|
|
1284
|
+
|
|
1285
|
+
|
|
1286
|
+
|
|
1287
|
+
##### Parameters
|
|
1288
|
+
|
|
1289
|
+
| Name | Type | Description | |
|
|
1290
|
+
| ---- | ---- | ----------- | -------- |
|
|
1291
|
+
| uFilter | | UI structure filter | |
|
|
1292
|
+
|
|
1293
|
+
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
##### Returns
|
|
1297
|
+
|
|
1298
|
+
|
|
1299
|
+
- an scope structure
|
|
1300
|
+
|
|
1301
|
+
|
|
1302
|
+
|
|
1303
|
+
#### buildDataset(uFilter)
|
|
1304
|
+
|
|
1305
|
+
Gets an dataset structure for the UI filter data
|
|
1306
|
+
|
|
1307
|
+
|
|
1308
|
+
|
|
1309
|
+
|
|
1310
|
+
##### Parameters
|
|
1311
|
+
|
|
1312
|
+
| Name | Type | Description | |
|
|
1313
|
+
| ---- | ---- | ----------- | -------- |
|
|
1314
|
+
| uFilter | | a UI structure filter | |
|
|
1315
|
+
|
|
1316
|
+
|
|
1317
|
+
|
|
1318
|
+
|
|
1319
|
+
##### Returns
|
|
1320
|
+
|
|
1321
|
+
|
|
1322
|
+
- an dataset structure
|
|
1323
|
+
|
|
1324
|
+
|
|
1325
|
+
|
|
1326
|
+
#### buildFilter(uFilter)
|
|
1327
|
+
|
|
1328
|
+
Gets an filter structure for the UI filter data
|
|
1329
|
+
|
|
1330
|
+
|
|
1331
|
+
|
|
1332
|
+
|
|
1333
|
+
##### Parameters
|
|
1334
|
+
|
|
1335
|
+
| Name | Type | Description | |
|
|
1336
|
+
| ---- | ---- | ----------- | -------- |
|
|
1337
|
+
| uFilter | | a UI structure filter | |
|
|
1338
|
+
|
|
1339
|
+
|
|
1340
|
+
|
|
1341
|
+
|
|
1342
|
+
##### Returns
|
|
1343
|
+
|
|
1344
|
+
|
|
1345
|
+
- an filter structure
|
|
1346
|
+
|
|
1347
|
+
|
|
1348
|
+
|
|
1349
|
+
|
|
1350
|
+
### dist/filters/adapters/logicToFD.js
|
|
1351
|
+
|
|
1352
|
+
|
|
1353
|
+
#### logicToFD(filterData, version)
|
|
1354
|
+
|
|
1355
|
+
Generates a filter data structure from the old logic structure (v2.0).
|
|
1356
|
+
|
|
1357
|
+
|
|
1358
|
+
|
|
1359
|
+
|
|
1360
|
+
##### Parameters
|
|
1361
|
+
|
|
1362
|
+
| Name | Type | Description | |
|
|
1363
|
+
| ---- | ---- | ----------- | -------- |
|
|
1364
|
+
| filterData | | The old filter data structure with logic (v2.0) | |
|
|
1365
|
+
| version | | Tag for the version of the filter data structure | |
|
|
1366
|
+
|
|
1367
|
+
|
|
1368
|
+
|
|
1369
|
+
|
|
1370
|
+
##### Returns
|
|
1371
|
+
|
|
1372
|
+
|
|
1373
|
+
- a Filter Data.
|
|
1374
|
+
|
|
1375
|
+
|
|
1376
|
+
|
|
1377
|
+
|
|
1378
|
+
### dist/filters/adapters/logicToFlatUI.js
|
|
1379
|
+
|
|
1380
|
+
|
|
1381
|
+
#### logicToFlatUI(logics)
|
|
1382
|
+
|
|
1383
|
+
Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
|
|
1384
|
+
|
|
1385
|
+
|
|
1386
|
+
|
|
1387
|
+
|
|
1388
|
+
##### Parameters
|
|
1389
|
+
|
|
1390
|
+
| Name | Type | Description | |
|
|
1391
|
+
| ---- | ---- | ----------- | -------- |
|
|
1392
|
+
| logics | | The old logic structure (v2.0) | |
|
|
1393
|
+
|
|
1394
|
+
|
|
1395
|
+
|
|
1396
|
+
|
|
1397
|
+
##### Returns
|
|
1398
|
+
|
|
1399
|
+
|
|
1400
|
+
- The Flattened UI Filters array
|
|
1401
|
+
|
|
1402
|
+
|
|
1403
|
+
|
|
1404
|
+
#### getFilter(filters, filter, getIndex)
|
|
1405
|
+
|
|
1406
|
+
Get the filter or the index of the given array, validating an old filter structure.
|
|
1407
|
+
|
|
1408
|
+
|
|
1409
|
+
|
|
1410
|
+
|
|
1411
|
+
##### Parameters
|
|
1412
|
+
|
|
1413
|
+
| Name | Type | Description | |
|
|
1414
|
+
| ---- | ---- | ----------- | -------- |
|
|
1415
|
+
| filters | | The array of UI filters | |
|
|
1416
|
+
| filter | | The old logic structure filter | |
|
|
1417
|
+
| getIndex | | Determines if the index or returns the UI filter object | |
|
|
1418
|
+
|
|
1419
|
+
|
|
1420
|
+
|
|
1421
|
+
|
|
1422
|
+
##### Returns
|
|
1423
|
+
|
|
1424
|
+
|
|
1425
|
+
- the index or the UI filter object
|
|
1426
|
+
|
|
1427
|
+
|
|
1428
|
+
|
|
1429
|
+
#### refineRankingValues(values, uiValues)
|
|
1430
|
+
|
|
1431
|
+
Refines the values of the Ranking column type.
|
|
1432
|
+
|
|
1433
|
+
|
|
1434
|
+
|
|
1435
|
+
|
|
1436
|
+
##### Parameters
|
|
1437
|
+
|
|
1438
|
+
| Name | Type | Description | |
|
|
1439
|
+
| ---- | ---- | ----------- | -------- |
|
|
1440
|
+
| values | | the Array of Ranking values | |
|
|
1441
|
+
| uiValues | | Object with additional info about the values of the filter. | |
|
|
1442
|
+
|
|
1443
|
+
|
|
1444
|
+
|
|
1445
|
+
|
|
1446
|
+
##### Returns
|
|
1447
|
+
|
|
1448
|
+
|
|
1449
|
+
- the array of Ranking values
|
|
1450
|
+
|
|
1451
|
+
|
|
1452
|
+
|
|
1453
|
+
|
|
1454
|
+
### dist/filters/adapters/logicToUI.js
|
|
1455
|
+
|
|
1456
|
+
|
|
1457
|
+
#### logicToUI(uFilters, datasetsInfo)
|
|
1458
|
+
|
|
1459
|
+
Generates a UI filter structure from the old logic structure (v2.0).
|
|
1460
|
+
|
|
1461
|
+
|
|
1462
|
+
|
|
1463
|
+
|
|
1464
|
+
##### Parameters
|
|
1465
|
+
|
|
1466
|
+
| Name | Type | Description | |
|
|
1467
|
+
| ---- | ---- | ----------- | -------- |
|
|
1468
|
+
| uFilters | | Array of filters from old logic structure | |
|
|
1469
|
+
| datasetsInfo | | Collection of datasets information | |
|
|
1470
|
+
|
|
1471
|
+
|
|
1472
|
+
|
|
1473
|
+
|
|
1474
|
+
##### Returns
|
|
1475
|
+
|
|
1476
|
+
|
|
1477
|
+
- a UI Filter Data.
|
|
1478
|
+
|
|
1479
|
+
|
|
1480
|
+
|
|
1481
|
+
|
|
1482
|
+
### dist/filters/adapters/transformFilters.js
|
|
1483
|
+
|
|
1484
|
+
|
|
1485
|
+
#### transformFilters(oldFiltersObj, section)
|
|
1486
|
+
|
|
1487
|
+
Transform the old filters structure into the new one
|
|
1488
|
+
|
|
1489
|
+
|
|
1490
|
+
|
|
1491
|
+
|
|
1492
|
+
##### Parameters
|
|
1493
|
+
|
|
1494
|
+
| Name | Type | Description | |
|
|
1495
|
+
| ---- | ---- | ----------- | -------- |
|
|
1496
|
+
| oldFiltersObj | `Object` | an object with the old filters structure | |
|
|
1497
|
+
| section | `String` | could be 'ANALYZE', 'PB', 'UM' or any other value. Deafult is 'ANYWHERE' | |
|
|
1498
|
+
|
|
1499
|
+
|
|
1500
|
+
|
|
1501
|
+
|
|
1502
|
+
##### Examples
|
|
1503
|
+
|
|
1504
|
+
```javascript
|
|
1505
|
+
|
|
1506
|
+
const oldPreferenceFilters = {
|
|
1507
|
+
"WWXHAULtR-_-xYOQAdpqT__ENABLED": true,
|
|
1508
|
+
"WWXHAULtR-_-xYOQAdpqT__ALL--ENABLED": true,
|
|
1509
|
+
"WWXHAULtR-_-xYOQAdpqT__COLLAPSED": false,
|
|
1510
|
+
"WWXHAULtR-_-xYOQAdpqT__LABEL": "GLOBAL",
|
|
1511
|
+
"WWXHAULtR-_-xYOQAdpqT-_-AK4M8UV2": {
|
|
1512
|
+
"formulaId": null,
|
|
1513
|
+
"panelId": null,
|
|
1514
|
+
"values": [
|
|
1515
|
+
{
|
|
1516
|
+
"EQUALS": [
|
|
1517
|
+
{
|
|
1518
|
+
"id": "AK4M8UV2a0",
|
|
1519
|
+
"value": "A",
|
|
1520
|
+
"enabled": true,
|
|
1521
|
+
"imageUrl": null
|
|
1522
|
+
},
|
|
1523
|
+
{
|
|
1524
|
+
"id": "AK4M8UV2a1",
|
|
1525
|
+
"value": "B",
|
|
1526
|
+
"enabled": true,
|
|
1527
|
+
"imageUrl": null
|
|
1528
|
+
}
|
|
1529
|
+
]
|
|
1530
|
+
}
|
|
1531
|
+
],
|
|
1532
|
+
"bucketId": null,
|
|
1533
|
+
"text": "MC",
|
|
1534
|
+
"title": "MC",
|
|
1535
|
+
"type": "SINGLE_CHOICE",
|
|
1536
|
+
"qid": "AK4M8UV2",
|
|
1537
|
+
"dataset": {
|
|
1538
|
+
"sourceid": "xYOQAdpqT",
|
|
1539
|
+
"name": "Form All Questions",
|
|
1540
|
+
"qrveyid": "xYOQAdpqT",
|
|
1541
|
+
"text": "Form All Questions",
|
|
1542
|
+
"linkid": 0
|
|
1543
|
+
},
|
|
1544
|
+
"enabled": true,
|
|
1545
|
+
"linked": null
|
|
1546
|
+
}
|
|
1547
|
+
};
|
|
1548
|
+
|
|
1549
|
+
const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
|
|
1550
|
+
```
|
|
1551
|
+
|
|
1552
|
+
|
|
1553
|
+
##### Returns
|
|
1554
|
+
|
|
1555
|
+
|
|
1556
|
+
- `Object` an object with the new filters structure
|
|
1557
|
+
|
|
1558
|
+
|
|
1559
|
+
|
|
1560
|
+
|
|
1561
|
+
### dist/filters/helpers/applyHierarchyForAggFilters.js
|
|
1562
|
+
|
|
1563
|
+
|
|
1564
|
+
#### applyHierarchyForAggFilters(chartSettings, scopes, currentScope)
|
|
1565
|
+
|
|
1566
|
+
[TODO: Make a proper description for this function]
|
|
1567
|
+
|
|
1568
|
+
|
|
1569
|
+
|
|
1570
|
+
|
|
1571
|
+
##### Parameters
|
|
1572
|
+
|
|
1573
|
+
| Name | Type | Description | |
|
|
1574
|
+
| ---- | ---- | ----------- | -------- |
|
|
1575
|
+
| chartSettings | | Chart Settings for the Filter Builder | |
|
|
1576
|
+
| scopes | | | |
|
|
1577
|
+
| currentScope | | | |
|
|
1578
|
+
|
|
1579
|
+
|
|
1580
|
+
|
|
1581
|
+
|
|
1582
|
+
##### Returns
|
|
1583
|
+
|
|
1584
|
+
|
|
1585
|
+
-
|
|
1586
|
+
|
|
1587
|
+
|
|
1588
|
+
|
|
1589
|
+
|
|
1590
|
+
### dist/filters/helpers/getAvailableScopes.js
|
|
1591
|
+
|
|
1592
|
+
|
|
1593
|
+
#### getAvailableScopes(config)
|
|
1594
|
+
|
|
1595
|
+
Gets Scopes/Scope IDs by given IDs
|
|
1596
|
+
|
|
1597
|
+
|
|
1598
|
+
|
|
1599
|
+
|
|
1600
|
+
##### Parameters
|
|
1601
|
+
|
|
1602
|
+
| Name | Type | Description | |
|
|
1603
|
+
| ---- | ---- | ----------- | -------- |
|
|
1604
|
+
| config | | given Differnts IDs in order set a available scope | |
|
|
1605
|
+
|
|
1606
|
+
|
|
1607
|
+
|
|
1608
|
+
|
|
1609
|
+
##### Returns
|
|
1610
|
+
|
|
1611
|
+
|
|
1612
|
+
- a Scopes/Scope IDs array
|
|
1613
|
+
|
|
1614
|
+
|
|
1615
|
+
|
|
1616
|
+
|
|
1617
|
+
### dist/filters/helpers/getAvailableScopesIDsByConfig.js
|
|
1618
|
+
|
|
1619
|
+
|
|
1620
|
+
#### getAvailableScopesIDsByConfig(config)
|
|
1621
|
+
|
|
1622
|
+
Gets the Scopes IDS for the Available Scope function by any config
|
|
1623
|
+
|
|
1624
|
+
|
|
1625
|
+
|
|
1626
|
+
|
|
1627
|
+
##### Parameters
|
|
1628
|
+
|
|
1629
|
+
| Name | Type | Description | |
|
|
1630
|
+
| ---- | ---- | ----------- | -------- |
|
|
1631
|
+
| config | | any config | |
|
|
1632
|
+
|
|
1633
|
+
|
|
1634
|
+
|
|
1635
|
+
|
|
1636
|
+
##### Returns
|
|
1637
|
+
|
|
1638
|
+
|
|
1639
|
+
- a Available Scope IDS config
|
|
1640
|
+
|
|
1641
|
+
|
|
1642
|
+
|
|
1643
|
+
|
|
1644
|
+
### dist/filters/helpers/getScopesByHierarchy.js
|
|
1645
|
+
|
|
1646
|
+
|
|
1647
|
+
#### getScopesByHierarchy(scopes, currentScope)
|
|
1648
|
+
|
|
1649
|
+
[TODO: Make a description for this]
|
|
1650
|
+
|
|
1651
|
+
|
|
1652
|
+
|
|
1653
|
+
|
|
1654
|
+
##### Parameters
|
|
1655
|
+
|
|
1656
|
+
| Name | Type | Description | |
|
|
1657
|
+
| ---- | ---- | ----------- | -------- |
|
|
1658
|
+
| scopes | | the collection of Scopes/Scope IDs | |
|
|
1659
|
+
| currentScope | | Current scope type | |
|
|
1660
|
+
|
|
1661
|
+
|
|
1662
|
+
|
|
1663
|
+
|
|
1664
|
+
##### Returns
|
|
1665
|
+
|
|
1666
|
+
|
|
1667
|
+
- A new array of Scopes/Scope IDs
|
|
1668
|
+
|
|
1669
|
+
|
|
1670
|
+
|
|
1671
|
+
|
|
1672
|
+
### dist/general/array/filterNestedTree.js
|
|
1673
|
+
|
|
1674
|
+
|
|
1675
|
+
#### filterNestedTree(arr, childArrKey, condition)
|
|
1676
|
+
|
|
1677
|
+
Filters a nested tree array by a custom condition on the last child node
|
|
1678
|
+
- If the given arguments are not valid, the function returns the first argument.
|
|
1679
|
+
- If the childArrKey is not matched in the object, the condition tries to resolve the filter anyway and returns an empty array.
|
|
1680
|
+
- If the condition is not fulfilled, the function returns a filtered array, probably a empty array inside of the child array
|
|
1681
|
+
|
|
1682
|
+
|
|
1683
|
+
|
|
1684
|
+
|
|
1685
|
+
##### Parameters
|
|
1686
|
+
|
|
1687
|
+
| Name | Type | Description | |
|
|
1688
|
+
| ---- | ---- | ----------- | -------- |
|
|
1689
|
+
| arr | | nested tree array | |
|
|
1690
|
+
| childArrKey | | property representing the children array on the nested tree | |
|
|
1691
|
+
| condition | | function callback that determines if the filter is applied on the last child node of the nested tree | |
|
|
1692
|
+
|
|
1693
|
+
|
|
1694
|
+
|
|
1695
|
+
|
|
1696
|
+
##### Returns
|
|
1697
|
+
|
|
1698
|
+
|
|
1699
|
+
- array filtered
|
|
1700
|
+
|
|
1701
|
+
|
|
1702
|
+
|
|
1703
|
+
|
|
1704
|
+
### dist/general/array/getFirstIndexFromArray.js
|
|
1705
|
+
|
|
1706
|
+
|
|
1707
|
+
#### getFirstIndexFromArray(array, callback)
|
|
1708
|
+
|
|
1709
|
+
Gets the first index from the array by a callback condition
|
|
1710
|
+
|
|
1711
|
+
|
|
1712
|
+
|
|
1713
|
+
|
|
1714
|
+
##### Parameters
|
|
1715
|
+
|
|
1716
|
+
| Name | Type | Description | |
|
|
1717
|
+
| ---- | ---- | ----------- | -------- |
|
|
1718
|
+
| array | | | |
|
|
1719
|
+
| callback | | function callback | |
|
|
1720
|
+
|
|
1721
|
+
|
|
1722
|
+
|
|
1723
|
+
|
|
1724
|
+
##### Returns
|
|
1725
|
+
|
|
1726
|
+
|
|
1727
|
+
- the first index of the array. -1 when the condition is not satisfied
|
|
1728
|
+
|
|
1729
|
+
|
|
1730
|
+
|
|
1731
|
+
|
|
1732
|
+
### dist/general/array/flattenDeep.js
|
|
1733
|
+
|
|
1734
|
+
|
|
1735
|
+
#### flattenDeep(arr)
|
|
1736
|
+
|
|
1737
|
+
Flat deeply an array
|
|
1738
|
+
|
|
1739
|
+
|
|
1740
|
+
|
|
1741
|
+
|
|
1742
|
+
##### Parameters
|
|
1743
|
+
|
|
1744
|
+
| Name | Type | Description | |
|
|
1745
|
+
| ---- | ---- | ----------- | -------- |
|
|
1746
|
+
| arr | | Array to flat deeply | |
|
|
1061
1747
|
|
|
1062
1748
|
|
|
1063
1749
|
|
|
@@ -1065,13 +1751,17 @@ Get the filter or the index of the given array, validating an old filter structu
|
|
|
1065
1751
|
##### Returns
|
|
1066
1752
|
|
|
1067
1753
|
|
|
1068
|
-
-
|
|
1754
|
+
- flatten array
|
|
1069
1755
|
|
|
1070
1756
|
|
|
1071
1757
|
|
|
1072
|
-
#### refineRankingValues(values, uiValues)
|
|
1073
1758
|
|
|
1074
|
-
|
|
1759
|
+
### dist/general/array/getLastIndexFromArray.js
|
|
1760
|
+
|
|
1761
|
+
|
|
1762
|
+
#### getLastIndexFromArray(array, callback)
|
|
1763
|
+
|
|
1764
|
+
Gets the last index from the array by a callback condition
|
|
1075
1765
|
|
|
1076
1766
|
|
|
1077
1767
|
|
|
@@ -1080,8 +1770,8 @@ Refines the values of the Ranking column type.
|
|
|
1080
1770
|
|
|
1081
1771
|
| Name | Type | Description | |
|
|
1082
1772
|
| ---- | ---- | ----------- | -------- |
|
|
1083
|
-
|
|
|
1084
|
-
|
|
|
1773
|
+
| array | | | |
|
|
1774
|
+
| callback | | function callback | |
|
|
1085
1775
|
|
|
1086
1776
|
|
|
1087
1777
|
|
|
@@ -1089,17 +1779,17 @@ Refines the values of the Ranking column type.
|
|
|
1089
1779
|
##### Returns
|
|
1090
1780
|
|
|
1091
1781
|
|
|
1092
|
-
- the
|
|
1782
|
+
- the last index of the array. -1 when the condition is not satisfied
|
|
1093
1783
|
|
|
1094
1784
|
|
|
1095
1785
|
|
|
1096
1786
|
|
|
1097
|
-
### dist/
|
|
1787
|
+
### dist/general/array/delete.js
|
|
1098
1788
|
|
|
1099
1789
|
|
|
1100
|
-
####
|
|
1790
|
+
#### ArrayDelete(array, index)
|
|
1101
1791
|
|
|
1102
|
-
|
|
1792
|
+
Inmutable Array Item deletion
|
|
1103
1793
|
|
|
1104
1794
|
|
|
1105
1795
|
|
|
@@ -1108,8 +1798,8 @@ Generates a UI filter structure from the old logic structure (v2.0).
|
|
|
1108
1798
|
|
|
1109
1799
|
| Name | Type | Description | |
|
|
1110
1800
|
| ---- | ---- | ----------- | -------- |
|
|
1111
|
-
|
|
|
1112
|
-
|
|
|
1801
|
+
| array | `Array` | a collection of items to delete | |
|
|
1802
|
+
| index | `Number` | the position of the item to delete | |
|
|
1113
1803
|
|
|
1114
1804
|
|
|
1115
1805
|
|
|
@@ -1117,17 +1807,17 @@ Generates a UI filter structure from the old logic structure (v2.0).
|
|
|
1117
1807
|
##### Returns
|
|
1118
1808
|
|
|
1119
1809
|
|
|
1120
|
-
- a
|
|
1810
|
+
- a new Array or the given parameter when is empty or not an array
|
|
1121
1811
|
|
|
1122
1812
|
|
|
1123
1813
|
|
|
1124
1814
|
|
|
1125
|
-
### dist/
|
|
1815
|
+
### dist/general/function/debounce.js
|
|
1126
1816
|
|
|
1127
1817
|
|
|
1128
|
-
####
|
|
1818
|
+
#### debounce(fn, time)
|
|
1129
1819
|
|
|
1130
|
-
|
|
1820
|
+
Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last time the debounced function was invoked.
|
|
1131
1821
|
|
|
1132
1822
|
|
|
1133
1823
|
|
|
@@ -1136,77 +1826,147 @@ Transform the old filters structure into the new one
|
|
|
1136
1826
|
|
|
1137
1827
|
| Name | Type | Description | |
|
|
1138
1828
|
| ---- | ---- | ----------- | -------- |
|
|
1139
|
-
|
|
|
1140
|
-
|
|
|
1829
|
+
| fn | `Function` | original Function | |
|
|
1830
|
+
| time | `Number` | default 500ms | |
|
|
1141
1831
|
|
|
1142
1832
|
|
|
1143
1833
|
|
|
1144
1834
|
|
|
1145
|
-
#####
|
|
1835
|
+
##### Returns
|
|
1146
1836
|
|
|
1147
|
-
```javascript
|
|
1148
1837
|
|
|
1149
|
-
|
|
1150
|
-
"WWXHAULtR-_-xYOQAdpqT__ENABLED": true,
|
|
1151
|
-
"WWXHAULtR-_-xYOQAdpqT__ALL--ENABLED": true,
|
|
1152
|
-
"WWXHAULtR-_-xYOQAdpqT__COLLAPSED": false,
|
|
1153
|
-
"WWXHAULtR-_-xYOQAdpqT__LABEL": "GLOBAL",
|
|
1154
|
-
"WWXHAULtR-_-xYOQAdpqT-_-AK4M8UV2": {
|
|
1155
|
-
"formulaId": null,
|
|
1156
|
-
"panelId": null,
|
|
1157
|
-
"values": [
|
|
1158
|
-
{
|
|
1159
|
-
"EQUALS": [
|
|
1160
|
-
{
|
|
1161
|
-
"id": "AK4M8UV2a0",
|
|
1162
|
-
"value": "A",
|
|
1163
|
-
"enabled": true,
|
|
1164
|
-
"imageUrl": null
|
|
1165
|
-
},
|
|
1166
|
-
{
|
|
1167
|
-
"id": "AK4M8UV2a1",
|
|
1168
|
-
"value": "B",
|
|
1169
|
-
"enabled": true,
|
|
1170
|
-
"imageUrl": null
|
|
1171
|
-
}
|
|
1172
|
-
]
|
|
1173
|
-
}
|
|
1174
|
-
],
|
|
1175
|
-
"bucketId": null,
|
|
1176
|
-
"text": "MC",
|
|
1177
|
-
"title": "MC",
|
|
1178
|
-
"type": "SINGLE_CHOICE",
|
|
1179
|
-
"qid": "AK4M8UV2",
|
|
1180
|
-
"dataset": {
|
|
1181
|
-
"sourceid": "xYOQAdpqT",
|
|
1182
|
-
"name": "Form All Questions",
|
|
1183
|
-
"qrveyid": "xYOQAdpqT",
|
|
1184
|
-
"text": "Form All Questions",
|
|
1185
|
-
"linkid": 0
|
|
1186
|
-
},
|
|
1187
|
-
"enabled": true,
|
|
1188
|
-
"linked": null
|
|
1189
|
-
}
|
|
1190
|
-
};
|
|
1838
|
+
- `Function` debounced functions
|
|
1191
1839
|
|
|
1192
|
-
|
|
1840
|
+
|
|
1841
|
+
|
|
1842
|
+
|
|
1843
|
+
### dist/general/function/throttled.js
|
|
1844
|
+
|
|
1845
|
+
|
|
1846
|
+
#### throttled(fn, time)
|
|
1847
|
+
|
|
1848
|
+
Make sure to only invokes _fn_ at most once per every _time_ milliseconds
|
|
1849
|
+
|
|
1850
|
+
|
|
1851
|
+
|
|
1852
|
+
|
|
1853
|
+
##### Parameters
|
|
1854
|
+
|
|
1855
|
+
| Name | Type | Description | |
|
|
1856
|
+
| ---- | ---- | ----------- | -------- |
|
|
1857
|
+
| fn | `Function` | original Function | |
|
|
1858
|
+
| time | `Number` | default 500ms | |
|
|
1859
|
+
|
|
1860
|
+
|
|
1861
|
+
|
|
1862
|
+
|
|
1863
|
+
##### Returns
|
|
1864
|
+
|
|
1865
|
+
|
|
1866
|
+
- `Function` throttled function
|
|
1867
|
+
|
|
1868
|
+
|
|
1869
|
+
|
|
1870
|
+
|
|
1871
|
+
### dist/general/object/cloneDeep.js
|
|
1872
|
+
|
|
1873
|
+
|
|
1874
|
+
#### cloneDeep(obj)
|
|
1875
|
+
|
|
1876
|
+
A simple Deep Cloning function. Valid only for primivite values and object with primitive values.
|
|
1877
|
+
Not to use this function with inner objects and functions
|
|
1878
|
+
|
|
1879
|
+
|
|
1880
|
+
|
|
1881
|
+
|
|
1882
|
+
##### Parameters
|
|
1883
|
+
|
|
1884
|
+
| Name | Type | Description | |
|
|
1885
|
+
| ---- | ---- | ----------- | -------- |
|
|
1886
|
+
| obj | | The object | |
|
|
1887
|
+
|
|
1888
|
+
|
|
1889
|
+
|
|
1890
|
+
|
|
1891
|
+
##### Returns
|
|
1892
|
+
|
|
1893
|
+
|
|
1894
|
+
- The new reference object or the given object if the parsing is incorrect or empty
|
|
1895
|
+
|
|
1896
|
+
|
|
1897
|
+
|
|
1898
|
+
|
|
1899
|
+
### dist/general/object/get.js
|
|
1900
|
+
|
|
1901
|
+
|
|
1902
|
+
#### _get(baseObject, path, defaultValue)
|
|
1903
|
+
|
|
1904
|
+
Like lodash _.get.
|
|
1905
|
+
Gets the value at path of object. If the resolved value is undefined, the defaultValue is returned in its place.
|
|
1906
|
+
|
|
1907
|
+
Empty arrays and empty objects are returned but the defaultValue is not
|
|
1908
|
+
Undefined and null values will return the defaultValue.
|
|
1909
|
+
|
|
1910
|
+
|
|
1911
|
+
|
|
1912
|
+
|
|
1913
|
+
##### Parameters
|
|
1914
|
+
|
|
1915
|
+
| Name | Type | Description | |
|
|
1916
|
+
| ---- | ---- | ----------- | -------- |
|
|
1917
|
+
| baseObject | | The object to query | |
|
|
1918
|
+
| path | | The string path or collection of string paths of the property to get. | |
|
|
1919
|
+
| defaultValue | | The value returned for undefined resolved values. | |
|
|
1920
|
+
|
|
1921
|
+
|
|
1922
|
+
|
|
1923
|
+
|
|
1924
|
+
##### Examples
|
|
1925
|
+
|
|
1926
|
+
```javascript
|
|
1927
|
+
// returns 'Hello'
|
|
1928
|
+
_get({ item1: 'Hello', item2: 'World' }, 'item1')
|
|
1929
|
+
```
|
|
1930
|
+
```javascript
|
|
1931
|
+
// returns 'A simple Hello'
|
|
1932
|
+
_get({ item1: 'Hello', item2: 'World' }, 'item3', 'A simple Hello')
|
|
1933
|
+
```
|
|
1934
|
+
```javascript
|
|
1935
|
+
// returns 'Hello Again'
|
|
1936
|
+
_get({ item1: { item11: 'Hello Again' }, item2: {} }, 'item1.item11')
|
|
1937
|
+
```
|
|
1938
|
+
```javascript
|
|
1939
|
+
// returns 'Hello 2'
|
|
1940
|
+
_get({ item1: ['Hello 1', 'Hello 2' }, item2: [] }, 'item1[1]')
|
|
1941
|
+
```
|
|
1942
|
+
```javascript
|
|
1943
|
+
// returns 'Hello Again'
|
|
1944
|
+
_get({ item1: { item11: 'Hello Again' }, item2: {} }, ['item1', 'item11'])
|
|
1193
1945
|
```
|
|
1194
1946
|
|
|
1195
1947
|
|
|
1196
1948
|
##### Returns
|
|
1197
1949
|
|
|
1198
1950
|
|
|
1199
|
-
-
|
|
1951
|
+
- the resolved value.
|
|
1200
1952
|
|
|
1201
1953
|
|
|
1202
1954
|
|
|
1203
1955
|
|
|
1204
|
-
### dist/
|
|
1956
|
+
### dist/general/object/getAttribute.js
|
|
1205
1957
|
|
|
1206
1958
|
|
|
1207
|
-
####
|
|
1959
|
+
#### getAttribute(obj, key)
|
|
1208
1960
|
|
|
1209
|
-
|
|
1961
|
+
Searchs for properties in different case styles such as: lower, upper, camel and pascal
|
|
1962
|
+
- To optimize the searching, it is required a key in a snake_case style
|
|
1963
|
+
- List of cases that do not match
|
|
1964
|
+
-- From lower to snake case
|
|
1965
|
+
-- From upper to snake case
|
|
1966
|
+
-- From lower to camel case
|
|
1967
|
+
-- From upper to camel case
|
|
1968
|
+
-- From lower to pascal case
|
|
1969
|
+
-- From upper to pascal case
|
|
1210
1970
|
|
|
1211
1971
|
|
|
1212
1972
|
|
|
@@ -1215,27 +1975,33 @@ const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
|
|
|
1215
1975
|
|
|
1216
1976
|
| Name | Type | Description | |
|
|
1217
1977
|
| ---- | ---- | ----------- | -------- |
|
|
1218
|
-
|
|
|
1219
|
-
|
|
|
1220
|
-
| currentScope | | | |
|
|
1978
|
+
| obj | `object` | object to look for | |
|
|
1979
|
+
| key | `string` | String attribute in snake_case style | |
|
|
1221
1980
|
|
|
1222
1981
|
|
|
1223
1982
|
|
|
1224
1983
|
|
|
1984
|
+
##### Examples
|
|
1985
|
+
|
|
1986
|
+
```javascript
|
|
1987
|
+
getAttribute(obj, 'snake_case') //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
|
|
1988
|
+
```
|
|
1989
|
+
|
|
1990
|
+
|
|
1225
1991
|
##### Returns
|
|
1226
1992
|
|
|
1227
1993
|
|
|
1228
|
-
-
|
|
1994
|
+
- `Void`
|
|
1229
1995
|
|
|
1230
1996
|
|
|
1231
1997
|
|
|
1232
1998
|
|
|
1233
|
-
### dist/
|
|
1999
|
+
### dist/general/object/hasProperty.js
|
|
1234
2000
|
|
|
1235
2001
|
|
|
1236
|
-
####
|
|
2002
|
+
#### _hasProperty(obj, property)
|
|
1237
2003
|
|
|
1238
|
-
|
|
2004
|
+
Use the hasOwnProperty in order to verify if the given property exists in the object.
|
|
1239
2005
|
|
|
1240
2006
|
|
|
1241
2007
|
|
|
@@ -1244,25 +2010,38 @@ Gets Scopes/Scope IDs by given IDs
|
|
|
1244
2010
|
|
|
1245
2011
|
| Name | Type | Description | |
|
|
1246
2012
|
| ---- | ---- | ----------- | -------- |
|
|
1247
|
-
|
|
|
2013
|
+
| obj | `object` | an object | |
|
|
2014
|
+
| property | `string` | String to verify if exists in the object as property | |
|
|
2015
|
+
|
|
2016
|
+
|
|
1248
2017
|
|
|
1249
2018
|
|
|
2019
|
+
##### Examples
|
|
2020
|
+
|
|
2021
|
+
```javascript
|
|
2022
|
+
const prop = 'prop2'
|
|
2023
|
+
const obj1 = { prop1: 'hello', prop2: 'world'}
|
|
2024
|
+
_hasProperty(ob1, prop1) // true
|
|
2025
|
+
|
|
2026
|
+
const obj2 = { prop1: 'hello world' }
|
|
2027
|
+
_hasProperty(ob1, prop2) // false
|
|
2028
|
+
```
|
|
1250
2029
|
|
|
1251
2030
|
|
|
1252
2031
|
##### Returns
|
|
1253
2032
|
|
|
1254
2033
|
|
|
1255
|
-
-
|
|
2034
|
+
- True if the object has the given property; otherwise, false.
|
|
1256
2035
|
|
|
1257
2036
|
|
|
1258
2037
|
|
|
1259
2038
|
|
|
1260
|
-
### dist/
|
|
2039
|
+
### dist/general/object/isObject.js
|
|
1261
2040
|
|
|
1262
2041
|
|
|
1263
|
-
####
|
|
2042
|
+
#### isObject(obj)
|
|
1264
2043
|
|
|
1265
|
-
|
|
2044
|
+
Checks if the given argument is an object type
|
|
1266
2045
|
|
|
1267
2046
|
|
|
1268
2047
|
|
|
@@ -1271,7 +2050,7 @@ Gets the Scopes IDS for the Available Scope function by any config
|
|
|
1271
2050
|
|
|
1272
2051
|
| Name | Type | Description | |
|
|
1273
2052
|
| ---- | ---- | ----------- | -------- |
|
|
1274
|
-
|
|
|
2053
|
+
| obj | | the variable to check | |
|
|
1275
2054
|
|
|
1276
2055
|
|
|
1277
2056
|
|
|
@@ -1279,17 +2058,18 @@ Gets the Scopes IDS for the Available Scope function by any config
|
|
|
1279
2058
|
##### Returns
|
|
1280
2059
|
|
|
1281
2060
|
|
|
1282
|
-
-
|
|
2061
|
+
- True: It is an object; False: It is not.
|
|
1283
2062
|
|
|
1284
2063
|
|
|
1285
2064
|
|
|
1286
2065
|
|
|
1287
|
-
### dist/
|
|
2066
|
+
### dist/general/object/mapValues.js
|
|
1288
2067
|
|
|
1289
2068
|
|
|
1290
|
-
####
|
|
2069
|
+
#### mapValues(baseObject, iteratee)
|
|
1291
2070
|
|
|
1292
|
-
|
|
2071
|
+
Invoke iteratee (function) for each object key-value pair
|
|
2072
|
+
and return a mapped object
|
|
1293
2073
|
|
|
1294
2074
|
|
|
1295
2075
|
|
|
@@ -1298,8 +2078,8 @@ Gets the Scopes IDS for the Available Scope function by any config
|
|
|
1298
2078
|
|
|
1299
2079
|
| Name | Type | Description | |
|
|
1300
2080
|
| ---- | ---- | ----------- | -------- |
|
|
1301
|
-
|
|
|
1302
|
-
|
|
|
2081
|
+
| baseObject | `Object` | Base object. | |
|
|
2082
|
+
| iteratee | `Function` | The executed per iteration. | |
|
|
1303
2083
|
|
|
1304
2084
|
|
|
1305
2085
|
|
|
@@ -1307,17 +2087,18 @@ Gets the Scopes IDS for the Available Scope function by any config
|
|
|
1307
2087
|
##### Returns
|
|
1308
2088
|
|
|
1309
2089
|
|
|
1310
|
-
-
|
|
2090
|
+
- `Object` New mapped object.
|
|
1311
2091
|
|
|
1312
2092
|
|
|
1313
2093
|
|
|
1314
2094
|
|
|
1315
|
-
### dist/general/
|
|
2095
|
+
### dist/general/object/mergeDeep.js
|
|
1316
2096
|
|
|
1317
2097
|
|
|
1318
|
-
####
|
|
2098
|
+
#### mergeDeep(obj1, obj2, settings)
|
|
1319
2099
|
|
|
1320
|
-
|
|
2100
|
+
Merges two objects into a new one.
|
|
2101
|
+
The second given argument to the first given argument.
|
|
1321
2102
|
|
|
1322
2103
|
|
|
1323
2104
|
|
|
@@ -1326,8 +2107,9 @@ Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last
|
|
|
1326
2107
|
|
|
1327
2108
|
| Name | Type | Description | |
|
|
1328
2109
|
| ---- | ---- | ----------- | -------- |
|
|
1329
|
-
|
|
|
1330
|
-
|
|
|
2110
|
+
| obj1 | | The target object | |
|
|
2111
|
+
| obj2 | | The object to be merged | |
|
|
2112
|
+
| settings | | Object settings for this function | |
|
|
1331
2113
|
|
|
1332
2114
|
|
|
1333
2115
|
|
|
@@ -1335,17 +2117,13 @@ Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last
|
|
|
1335
2117
|
##### Returns
|
|
1336
2118
|
|
|
1337
2119
|
|
|
1338
|
-
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
2120
|
+
- a new merged object
|
|
1342
2121
|
|
|
1343
|
-
### dist/general/function/throttled.js
|
|
1344
2122
|
|
|
1345
2123
|
|
|
1346
|
-
####
|
|
2124
|
+
#### isValid(obj1, obj2)
|
|
1347
2125
|
|
|
1348
|
-
|
|
2126
|
+
Validates if the two arguments are objects
|
|
1349
2127
|
|
|
1350
2128
|
|
|
1351
2129
|
|
|
@@ -1354,8 +2132,8 @@ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
|
|
|
1354
2132
|
|
|
1355
2133
|
| Name | Type | Description | |
|
|
1356
2134
|
| ---- | ---- | ----------- | -------- |
|
|
1357
|
-
|
|
|
1358
|
-
|
|
|
2135
|
+
| obj1 | | The target object | |
|
|
2136
|
+
| obj2 | | The object to be merged | |
|
|
1359
2137
|
|
|
1360
2138
|
|
|
1361
2139
|
|
|
@@ -1363,17 +2141,13 @@ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
|
|
|
1363
2141
|
##### Returns
|
|
1364
2142
|
|
|
1365
2143
|
|
|
1366
|
-
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
2144
|
+
- true: they are valid; false: they are not
|
|
1370
2145
|
|
|
1371
|
-
### dist/general/array/delete.js
|
|
1372
2146
|
|
|
1373
2147
|
|
|
1374
|
-
####
|
|
2148
|
+
#### getParamsToMergeDeep(settings)
|
|
1375
2149
|
|
|
1376
|
-
|
|
2150
|
+
Validates and gets the settings with all set parameters.
|
|
1377
2151
|
|
|
1378
2152
|
|
|
1379
2153
|
|
|
@@ -1382,8 +2156,7 @@ Inmutable Array Item deletion
|
|
|
1382
2156
|
|
|
1383
2157
|
| Name | Type | Description | |
|
|
1384
2158
|
| ---- | ---- | ----------- | -------- |
|
|
1385
|
-
|
|
|
1386
|
-
| index | `Number` | the position of the item to delete | |
|
|
2159
|
+
| settings | | the settings object | |
|
|
1387
2160
|
|
|
1388
2161
|
|
|
1389
2162
|
|
|
@@ -1391,20 +2164,17 @@ Inmutable Array Item deletion
|
|
|
1391
2164
|
##### Returns
|
|
1392
2165
|
|
|
1393
2166
|
|
|
1394
|
-
- a new
|
|
2167
|
+
- a new settings object with all set parameters.
|
|
1395
2168
|
|
|
1396
2169
|
|
|
1397
2170
|
|
|
1398
2171
|
|
|
1399
|
-
### dist/general/
|
|
2172
|
+
### dist/general/object/objectCopy.js
|
|
1400
2173
|
|
|
1401
2174
|
|
|
1402
|
-
####
|
|
2175
|
+
#### objectCopy(entity, cache)
|
|
1403
2176
|
|
|
1404
|
-
|
|
1405
|
-
- If the given arguments are not valid, the function returns the first argument.
|
|
1406
|
-
- If the childArrKey is not matched in the object, the condition tries to resolve the filter anyway and returns an empty array.
|
|
1407
|
-
- If the condition is not fulfilled, the function returns a filtered array, probably a empty array inside of the child array
|
|
2177
|
+
Created a new reference of the given argument
|
|
1408
2178
|
|
|
1409
2179
|
|
|
1410
2180
|
|
|
@@ -1413,9 +2183,8 @@ Filters a nested tree array by a custom condition on the last child node
|
|
|
1413
2183
|
|
|
1414
2184
|
| Name | Type | Description | |
|
|
1415
2185
|
| ---- | ---- | ----------- | -------- |
|
|
1416
|
-
|
|
|
1417
|
-
|
|
|
1418
|
-
| condition | | function callback that determines if the filter is applied on the last child node of the nested tree | |
|
|
2186
|
+
| entity | | The variable to be copied | |
|
|
2187
|
+
| cache | | | |
|
|
1419
2188
|
|
|
1420
2189
|
|
|
1421
2190
|
|
|
@@ -1423,17 +2192,17 @@ Filters a nested tree array by a custom condition on the last child node
|
|
|
1423
2192
|
##### Returns
|
|
1424
2193
|
|
|
1425
2194
|
|
|
1426
|
-
-
|
|
2195
|
+
- A new reference of the given argument
|
|
1427
2196
|
|
|
1428
2197
|
|
|
1429
2198
|
|
|
1430
2199
|
|
|
1431
|
-
### dist/general/
|
|
2200
|
+
### dist/general/object/omit.js
|
|
1432
2201
|
|
|
1433
2202
|
|
|
1434
|
-
####
|
|
2203
|
+
#### omit(obj, props)
|
|
1435
2204
|
|
|
1436
|
-
|
|
2205
|
+
return a new Object excluding attributes in _props_ list
|
|
1437
2206
|
|
|
1438
2207
|
|
|
1439
2208
|
|
|
@@ -1442,7 +2211,8 @@ Flat deeply an array
|
|
|
1442
2211
|
|
|
1443
2212
|
| Name | Type | Description | |
|
|
1444
2213
|
| ---- | ---- | ----------- | -------- |
|
|
1445
|
-
|
|
|
2214
|
+
| obj | `Object` | base object | |
|
|
2215
|
+
| props | `Array.<String>` | list of attribute to exclude | |
|
|
1446
2216
|
|
|
1447
2217
|
|
|
1448
2218
|
|
|
@@ -1450,17 +2220,17 @@ Flat deeply an array
|
|
|
1450
2220
|
##### Returns
|
|
1451
2221
|
|
|
1452
2222
|
|
|
1453
|
-
-
|
|
2223
|
+
- `Object` clean object
|
|
1454
2224
|
|
|
1455
2225
|
|
|
1456
2226
|
|
|
1457
2227
|
|
|
1458
|
-
### dist/general/
|
|
2228
|
+
### dist/general/object/pick.js
|
|
1459
2229
|
|
|
1460
2230
|
|
|
1461
|
-
####
|
|
2231
|
+
#### pick(baseObject, keys)
|
|
1462
2232
|
|
|
1463
|
-
|
|
2233
|
+
return a new object just with attributes in _keys_ list
|
|
1464
2234
|
|
|
1465
2235
|
|
|
1466
2236
|
|
|
@@ -1469,8 +2239,8 @@ Gets the first index from the array by a callback condition
|
|
|
1469
2239
|
|
|
1470
2240
|
| Name | Type | Description | |
|
|
1471
2241
|
| ---- | ---- | ----------- | -------- |
|
|
1472
|
-
|
|
|
1473
|
-
|
|
|
2242
|
+
| baseObject | `Object` | base object | |
|
|
2243
|
+
| keys | `Array.<String>` | list of attributes to preserve | |
|
|
1474
2244
|
|
|
1475
2245
|
|
|
1476
2246
|
|
|
@@ -1478,17 +2248,17 @@ Gets the first index from the array by a callback condition
|
|
|
1478
2248
|
##### Returns
|
|
1479
2249
|
|
|
1480
2250
|
|
|
1481
|
-
-
|
|
2251
|
+
- `Object` new object just with desired attributes
|
|
1482
2252
|
|
|
1483
2253
|
|
|
1484
2254
|
|
|
1485
2255
|
|
|
1486
|
-
### dist/general/
|
|
2256
|
+
### dist/general/object/serialize.js
|
|
1487
2257
|
|
|
1488
2258
|
|
|
1489
|
-
####
|
|
2259
|
+
#### serialize(obj)
|
|
1490
2260
|
|
|
1491
|
-
|
|
2261
|
+
serialize object to url param
|
|
1492
2262
|
|
|
1493
2263
|
|
|
1494
2264
|
|
|
@@ -1497,8 +2267,7 @@ Gets the last index from the array by a callback condition
|
|
|
1497
2267
|
|
|
1498
2268
|
| Name | Type | Description | |
|
|
1499
2269
|
| ---- | ---- | ----------- | -------- |
|
|
1500
|
-
|
|
|
1501
|
-
| callback | | function callback | |
|
|
2270
|
+
| obj | | - Object to be serialized | |
|
|
1502
2271
|
|
|
1503
2272
|
|
|
1504
2273
|
|
|
@@ -1506,7 +2275,7 @@ Gets the last index from the array by a callback condition
|
|
|
1506
2275
|
##### Returns
|
|
1507
2276
|
|
|
1508
2277
|
|
|
1509
|
-
-
|
|
2278
|
+
- `Void`
|
|
1510
2279
|
|
|
1511
2280
|
|
|
1512
2281
|
|
|
@@ -1680,131 +2449,14 @@ Validates if the given argument is empty
|
|
|
1680
2449
|
|
|
1681
2450
|
|
|
1682
2451
|
|
|
1683
|
-
### dist/general/mix/
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
#### isNull(arg)
|
|
1687
|
-
|
|
1688
|
-
return if a given variable is either `null` or `undefined`
|
|
1689
|
-
useful to avoid falsify validating Number Zero (0)
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
##### Parameters
|
|
1695
|
-
|
|
1696
|
-
| Name | Type | Description | |
|
|
1697
|
-
| ---- | ---- | ----------- | -------- |
|
|
1698
|
-
| arg | `any` | | |
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
##### Returns
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
- `Boolean`
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
### dist/general/mix/randomId.js
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
#### randomId(length, exclude)
|
|
1715
|
-
|
|
1716
|
-
Creates a random string
|
|
1717
|
-
- If the first given argument is different than a length number, the variable is replaced by a default number
|
|
1718
|
-
- If the optional second given argument is passed the random string is permutated.
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
##### Parameters
|
|
1724
|
-
|
|
1725
|
-
| Name | Type | Description | |
|
|
1726
|
-
| ---- | ---- | ----------- | -------- |
|
|
1727
|
-
| length | `Number` | size of the generated string. Default 8 | |
|
|
1728
|
-
| exclude | `Array` | collection of strings that is going to be excluded of the random string. | |
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
##### Returns
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
- `String` Random string
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
### dist/general/mix/size.js
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
#### size(obj)
|
|
1745
|
-
|
|
1746
|
-
Gets the length of the given array.
|
|
1747
|
-
- Useful for Object, Array and string type.
|
|
1748
|
-
- For `null` or `undefined` or else argument the returned value will be 0.
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
##### Parameters
|
|
1754
|
-
|
|
1755
|
-
| Name | Type | Description | |
|
|
1756
|
-
| ---- | ---- | ----------- | -------- |
|
|
1757
|
-
| obj | `Any` | Any object-type variable | |
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
##### Returns
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
- `Number` the size of the given variable
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
2452
|
+
### dist/general/mix/isNaNV2.js
|
|
1769
2453
|
|
|
1770
|
-
### dist/general/object/cloneDeep.js
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
#### cloneDeep(obj)
|
|
1774
|
-
|
|
1775
|
-
A simple Deep Cloning function. Valid only for primivite values and object with primitive values.
|
|
1776
|
-
Not to use this function with inner objects and functions
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
##### Parameters
|
|
1782
|
-
|
|
1783
|
-
| Name | Type | Description | |
|
|
1784
|
-
| ---- | ---- | ----------- | -------- |
|
|
1785
|
-
| obj | | The object | |
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
##### Returns
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
- The new reference object or the given object if the parsing is incorrect or empty
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
### dist/general/object/get.js
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
#### _get(baseObject, path, defaultValue)
|
|
1802
2454
|
|
|
1803
|
-
|
|
1804
|
-
Gets the value at path of object. If the resolved value is undefined, the defaultValue is returned in its place.
|
|
2455
|
+
#### isNaNV2(variable)
|
|
1805
2456
|
|
|
1806
|
-
|
|
1807
|
-
|
|
2457
|
+
Validates if the recieved number is NaN type.
|
|
2458
|
+
This function recieves any variable but will return false.
|
|
2459
|
+
Validates if variable is null, undefined, or an empty string, also, the function uses isNaN native function.
|
|
1808
2460
|
|
|
1809
2461
|
|
|
1810
2462
|
|
|
@@ -1813,59 +2465,26 @@ Undefined and null values will return the defaultValue.
|
|
|
1813
2465
|
|
|
1814
2466
|
| Name | Type | Description | |
|
|
1815
2467
|
| ---- | ---- | ----------- | -------- |
|
|
1816
|
-
|
|
|
1817
|
-
|
|
1818
|
-
| defaultValue | | The value returned for undefined resolved values. | |
|
|
1819
|
-
|
|
2468
|
+
| variable | | the variable to validate | |
|
|
2469
|
+
|
|
1820
2470
|
|
|
1821
2471
|
|
|
1822
2472
|
|
|
1823
|
-
##### Examples
|
|
1824
|
-
|
|
1825
|
-
```javascript
|
|
1826
|
-
// returns 'Hello'
|
|
1827
|
-
_get({ item1: 'Hello', item2: 'World' }, 'item1')
|
|
1828
|
-
```
|
|
1829
|
-
```javascript
|
|
1830
|
-
// returns 'A simple Hello'
|
|
1831
|
-
_get({ item1: 'Hello', item2: 'World' }, 'item3', 'A simple Hello')
|
|
1832
|
-
```
|
|
1833
|
-
```javascript
|
|
1834
|
-
// returns 'Hello Again'
|
|
1835
|
-
_get({ item1: { item11: 'Hello Again' }, item2: {} }, 'item1.item11')
|
|
1836
|
-
```
|
|
1837
|
-
```javascript
|
|
1838
|
-
// returns 'Hello 2'
|
|
1839
|
-
_get({ item1: ['Hello 1', 'Hello 2' }, item2: [] }, 'item1[1]')
|
|
1840
|
-
```
|
|
1841
|
-
```javascript
|
|
1842
|
-
// returns 'Hello Again'
|
|
1843
|
-
_get({ item1: { item11: 'Hello Again' }, item2: {} }, ['item1', 'item11'])
|
|
1844
|
-
```
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
2473
|
##### Returns
|
|
1848
2474
|
|
|
1849
2475
|
|
|
1850
|
-
-
|
|
2476
|
+
- True if variable is a NaN or false otherwise
|
|
1851
2477
|
|
|
1852
2478
|
|
|
1853
2479
|
|
|
1854
2480
|
|
|
1855
|
-
### dist/general/
|
|
2481
|
+
### dist/general/mix/isNull.js
|
|
1856
2482
|
|
|
1857
2483
|
|
|
1858
|
-
####
|
|
2484
|
+
#### isNull(arg)
|
|
1859
2485
|
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
- List of cases that do not match
|
|
1863
|
-
-- From lower to snake case
|
|
1864
|
-
-- From upper to snake case
|
|
1865
|
-
-- From lower to camel case
|
|
1866
|
-
-- From upper to camel case
|
|
1867
|
-
-- From lower to pascal case
|
|
1868
|
-
-- From upper to pascal case
|
|
2486
|
+
return if a given variable is either `null` or `undefined`
|
|
2487
|
+
useful to avoid falsify validating Number Zero (0)
|
|
1869
2488
|
|
|
1870
2489
|
|
|
1871
2490
|
|
|
@@ -1874,33 +2493,27 @@ Searchs for properties in different case styles such as: lower, upper, camel and
|
|
|
1874
2493
|
|
|
1875
2494
|
| Name | Type | Description | |
|
|
1876
2495
|
| ---- | ---- | ----------- | -------- |
|
|
1877
|
-
|
|
|
1878
|
-
| key | `string` | String attribute in snake_case style | |
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
2496
|
+
| arg | `any` | | |
|
|
1882
2497
|
|
|
1883
|
-
##### Examples
|
|
1884
2498
|
|
|
1885
|
-
```javascript
|
|
1886
|
-
getAttribute(obj, 'snake_case') //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
|
|
1887
|
-
```
|
|
1888
2499
|
|
|
1889
2500
|
|
|
1890
2501
|
##### Returns
|
|
1891
2502
|
|
|
1892
2503
|
|
|
1893
|
-
- `
|
|
2504
|
+
- `Boolean`
|
|
1894
2505
|
|
|
1895
2506
|
|
|
1896
2507
|
|
|
1897
2508
|
|
|
1898
|
-
### dist/general/
|
|
2509
|
+
### dist/general/mix/randomId.js
|
|
1899
2510
|
|
|
1900
2511
|
|
|
1901
|
-
####
|
|
2512
|
+
#### randomId(length, exclude)
|
|
1902
2513
|
|
|
1903
|
-
|
|
2514
|
+
Creates a random string
|
|
2515
|
+
- If the first given argument is different than a length number, the variable is replaced by a default number
|
|
2516
|
+
- If the optional second given argument is passed the random string is permutated.
|
|
1904
2517
|
|
|
1905
2518
|
|
|
1906
2519
|
|
|
@@ -1909,38 +2522,28 @@ Use the hasOwnProperty in order to verify if the given property exists in the ob
|
|
|
1909
2522
|
|
|
1910
2523
|
| Name | Type | Description | |
|
|
1911
2524
|
| ---- | ---- | ----------- | -------- |
|
|
1912
|
-
|
|
|
1913
|
-
|
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
##### Examples
|
|
2525
|
+
| length | `Number` | size of the generated string. Default 8 | |
|
|
2526
|
+
| exclude | `Array` | collection of strings that is going to be excluded of the random string. | |
|
|
1919
2527
|
|
|
1920
|
-
```javascript
|
|
1921
|
-
const prop = 'prop2'
|
|
1922
|
-
const obj1 = { prop1: 'hello', prop2: 'world'}
|
|
1923
|
-
_hasProperty(ob1, prop1) // true
|
|
1924
2528
|
|
|
1925
|
-
const obj2 = { prop1: 'hello world' }
|
|
1926
|
-
_hasProperty(ob1, prop2) // false
|
|
1927
|
-
```
|
|
1928
2529
|
|
|
1929
2530
|
|
|
1930
2531
|
##### Returns
|
|
1931
2532
|
|
|
1932
2533
|
|
|
1933
|
-
-
|
|
2534
|
+
- `String` Random string
|
|
1934
2535
|
|
|
1935
2536
|
|
|
1936
2537
|
|
|
1937
2538
|
|
|
1938
|
-
### dist/general/
|
|
2539
|
+
### dist/general/mix/size.js
|
|
1939
2540
|
|
|
1940
2541
|
|
|
1941
|
-
####
|
|
2542
|
+
#### size(obj)
|
|
1942
2543
|
|
|
1943
|
-
|
|
2544
|
+
Gets the length of the given array.
|
|
2545
|
+
- Useful for Object, Array and string type.
|
|
2546
|
+
- For `null` or `undefined` or else argument the returned value will be 0.
|
|
1944
2547
|
|
|
1945
2548
|
|
|
1946
2549
|
|
|
@@ -1949,7 +2552,7 @@ Checks if the given argument is an object type
|
|
|
1949
2552
|
|
|
1950
2553
|
| Name | Type | Description | |
|
|
1951
2554
|
| ---- | ---- | ----------- | -------- |
|
|
1952
|
-
| obj | |
|
|
2555
|
+
| obj | `Any` | Any object-type variable | |
|
|
1953
2556
|
|
|
1954
2557
|
|
|
1955
2558
|
|
|
@@ -1957,18 +2560,17 @@ Checks if the given argument is an object type
|
|
|
1957
2560
|
##### Returns
|
|
1958
2561
|
|
|
1959
2562
|
|
|
1960
|
-
-
|
|
2563
|
+
- `Number` the size of the given variable
|
|
1961
2564
|
|
|
1962
2565
|
|
|
1963
2566
|
|
|
1964
2567
|
|
|
1965
|
-
### dist/general/
|
|
2568
|
+
### dist/general/string/capitalize.js
|
|
1966
2569
|
|
|
1967
2570
|
|
|
1968
|
-
####
|
|
2571
|
+
#### capitalize(text)
|
|
1969
2572
|
|
|
1970
|
-
|
|
1971
|
-
and return a mapped object
|
|
2573
|
+
Upper case the first letter of a given text
|
|
1972
2574
|
|
|
1973
2575
|
|
|
1974
2576
|
|
|
@@ -1977,8 +2579,7 @@ and return a mapped object
|
|
|
1977
2579
|
|
|
1978
2580
|
| Name | Type | Description | |
|
|
1979
2581
|
| ---- | ---- | ----------- | -------- |
|
|
1980
|
-
|
|
|
1981
|
-
| iteratee | `Function` | The executed per iteration. | |
|
|
2582
|
+
| text | `String` | | |
|
|
1982
2583
|
|
|
1983
2584
|
|
|
1984
2585
|
|
|
@@ -1986,18 +2587,17 @@ and return a mapped object
|
|
|
1986
2587
|
##### Returns
|
|
1987
2588
|
|
|
1988
2589
|
|
|
1989
|
-
- `
|
|
2590
|
+
- `String` a capitalized text
|
|
1990
2591
|
|
|
1991
2592
|
|
|
1992
2593
|
|
|
1993
2594
|
|
|
1994
|
-
### dist/
|
|
2595
|
+
### dist/qrvey/helpers/getColumnsLabel.js
|
|
1995
2596
|
|
|
1996
2597
|
|
|
1997
|
-
####
|
|
2598
|
+
#### getColumnLabels(column)
|
|
1998
2599
|
|
|
1999
|
-
|
|
2000
|
-
The second given argument to the first given argument.
|
|
2600
|
+
Get an string of the properties of the given column.
|
|
2001
2601
|
|
|
2002
2602
|
|
|
2003
2603
|
|
|
@@ -2006,9 +2606,7 @@ The second given argument to the first given argument.
|
|
|
2006
2606
|
|
|
2007
2607
|
| Name | Type | Description | |
|
|
2008
2608
|
| ---- | ---- | ----------- | -------- |
|
|
2009
|
-
|
|
|
2010
|
-
| obj2 | | The object to be merged | |
|
|
2011
|
-
| settings | | Object settings for this function | |
|
|
2609
|
+
| column | | The column | |
|
|
2012
2610
|
|
|
2013
2611
|
|
|
2014
2612
|
|
|
@@ -2016,13 +2614,17 @@ The second given argument to the first given argument.
|
|
|
2016
2614
|
##### Returns
|
|
2017
2615
|
|
|
2018
2616
|
|
|
2019
|
-
-
|
|
2617
|
+
- an string with the property, aggregate or calculation label.
|
|
2020
2618
|
|
|
2021
2619
|
|
|
2022
2620
|
|
|
2023
|
-
#### isValid(obj1, obj2)
|
|
2024
2621
|
|
|
2025
|
-
|
|
2622
|
+
### dist/services/api/getAllDatasets.api.js
|
|
2623
|
+
|
|
2624
|
+
|
|
2625
|
+
#### getAllDatasets(qrveyids)
|
|
2626
|
+
|
|
2627
|
+
Get a dataset list from a collection of Qrvey IDs
|
|
2026
2628
|
|
|
2027
2629
|
|
|
2028
2630
|
|
|
@@ -2031,8 +2633,7 @@ Validates if the two arguments are objects
|
|
|
2031
2633
|
|
|
2032
2634
|
| Name | Type | Description | |
|
|
2033
2635
|
| ---- | ---- | ----------- | -------- |
|
|
2034
|
-
|
|
|
2035
|
-
| obj2 | | The object to be merged | |
|
|
2636
|
+
| qrveyids | | Collection of Qrvey IDs | |
|
|
2036
2637
|
|
|
2037
2638
|
|
|
2038
2639
|
|
|
@@ -2040,13 +2641,17 @@ Validates if the two arguments are objects
|
|
|
2040
2641
|
##### Returns
|
|
2041
2642
|
|
|
2042
2643
|
|
|
2043
|
-
-
|
|
2644
|
+
- a promise
|
|
2044
2645
|
|
|
2045
2646
|
|
|
2046
2647
|
|
|
2047
|
-
#### getParamsToMergeDeep(settings)
|
|
2048
2648
|
|
|
2049
|
-
|
|
2649
|
+
### dist/services/api/getAllQrveys.api.js
|
|
2650
|
+
|
|
2651
|
+
|
|
2652
|
+
#### getAllQrveys(config, params)
|
|
2653
|
+
|
|
2654
|
+
POST Request for getting Qrveys such as Web Forms and Datasets. Use params for getting precise data
|
|
2050
2655
|
|
|
2051
2656
|
|
|
2052
2657
|
|
|
@@ -2055,7 +2660,8 @@ Validates and gets the settings with all set parameters.
|
|
|
2055
2660
|
|
|
2056
2661
|
| Name | Type | Description | |
|
|
2057
2662
|
| ---- | ---- | ----------- | -------- |
|
|
2058
|
-
|
|
|
2663
|
+
| config | | Configuration | |
|
|
2664
|
+
| params | | Object for getting precise data | |
|
|
2059
2665
|
|
|
2060
2666
|
|
|
2061
2667
|
|
|
@@ -2063,17 +2669,17 @@ Validates and gets the settings with all set parameters.
|
|
|
2063
2669
|
##### Returns
|
|
2064
2670
|
|
|
2065
2671
|
|
|
2066
|
-
-
|
|
2672
|
+
- `Void`
|
|
2067
2673
|
|
|
2068
2674
|
|
|
2069
2675
|
|
|
2070
2676
|
|
|
2071
|
-
### dist/
|
|
2677
|
+
### dist/services/api/getDatasetColumns.api.js
|
|
2072
2678
|
|
|
2073
2679
|
|
|
2074
|
-
####
|
|
2680
|
+
#### getDatasetColumns(qrveyid)
|
|
2075
2681
|
|
|
2076
|
-
|
|
2682
|
+
Get a dataset by Qrvey ID
|
|
2077
2683
|
|
|
2078
2684
|
|
|
2079
2685
|
|
|
@@ -2082,8 +2688,7 @@ Created a new reference of the given argument
|
|
|
2082
2688
|
|
|
2083
2689
|
| Name | Type | Description | |
|
|
2084
2690
|
| ---- | ---- | ----------- | -------- |
|
|
2085
|
-
|
|
|
2086
|
-
| cache | | | |
|
|
2691
|
+
| qrveyid | | The Qrvey ID | |
|
|
2087
2692
|
|
|
2088
2693
|
|
|
2089
2694
|
|
|
@@ -2091,45 +2696,50 @@ Created a new reference of the given argument
|
|
|
2091
2696
|
##### Returns
|
|
2092
2697
|
|
|
2093
2698
|
|
|
2094
|
-
-
|
|
2699
|
+
- a promise
|
|
2095
2700
|
|
|
2096
2701
|
|
|
2097
2702
|
|
|
2098
2703
|
|
|
2099
|
-
### dist/
|
|
2704
|
+
### dist/stencil/decorators/Config.js
|
|
2100
2705
|
|
|
2101
2706
|
|
|
2102
|
-
####
|
|
2707
|
+
#### Config()
|
|
2103
2708
|
|
|
2104
|
-
|
|
2709
|
+
Stencil.js - Prop Decorator
|
|
2710
|
+
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
|
|
2711
|
+
But for this, is required ask for a property in `snake_case` style
|
|
2105
2712
|
|
|
2106
2713
|
|
|
2107
2714
|
|
|
2108
2715
|
|
|
2109
|
-
##### Parameters
|
|
2110
2716
|
|
|
2111
|
-
| Name | Type | Description | |
|
|
2112
|
-
| ---- | ---- | ----------- | -------- |
|
|
2113
|
-
| obj | `Object` | base object | |
|
|
2114
|
-
| props | `Array.<String>` | list of attribute to exclude | |
|
|
2115
2717
|
|
|
2718
|
+
##### Examples
|
|
2719
|
+
|
|
2720
|
+
```javascript
|
|
2721
|
+
\ @Config() @Prop() settings;
|
|
2116
2722
|
|
|
2723
|
+
someMethod() {
|
|
2724
|
+
this.settings.snake_case //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
|
|
2725
|
+
}
|
|
2726
|
+
```
|
|
2117
2727
|
|
|
2118
2728
|
|
|
2119
2729
|
##### Returns
|
|
2120
2730
|
|
|
2121
2731
|
|
|
2122
|
-
- `
|
|
2732
|
+
- `Void`
|
|
2123
2733
|
|
|
2124
2734
|
|
|
2125
2735
|
|
|
2126
2736
|
|
|
2127
|
-
### dist/
|
|
2737
|
+
### dist/typescript/decorators/Debounce.js
|
|
2128
2738
|
|
|
2129
2739
|
|
|
2130
|
-
####
|
|
2740
|
+
#### Debounce(time)
|
|
2131
2741
|
|
|
2132
|
-
|
|
2742
|
+
(Method Decorator) Debounce Class Method
|
|
2133
2743
|
|
|
2134
2744
|
|
|
2135
2745
|
|
|
@@ -2138,8 +2748,7 @@ return a new object just with attributes in _keys_ list
|
|
|
2138
2748
|
|
|
2139
2749
|
| Name | Type | Description | |
|
|
2140
2750
|
| ---- | ---- | ----------- | -------- |
|
|
2141
|
-
|
|
|
2142
|
-
| keys | `Array.<String>` | list of attributes to preserve | |
|
|
2751
|
+
| time | | (optional) deafult 500 | |
|
|
2143
2752
|
|
|
2144
2753
|
|
|
2145
2754
|
|
|
@@ -2147,17 +2756,17 @@ return a new object just with attributes in _keys_ list
|
|
|
2147
2756
|
##### Returns
|
|
2148
2757
|
|
|
2149
2758
|
|
|
2150
|
-
- `
|
|
2759
|
+
- `Void`
|
|
2151
2760
|
|
|
2152
2761
|
|
|
2153
2762
|
|
|
2154
2763
|
|
|
2155
|
-
### dist/
|
|
2764
|
+
### dist/typescript/decorators/Throttled.js
|
|
2156
2765
|
|
|
2157
2766
|
|
|
2158
|
-
####
|
|
2767
|
+
#### Throttled(time)
|
|
2159
2768
|
|
|
2160
|
-
|
|
2769
|
+
(Method Decorator) Throttled Class Method
|
|
2161
2770
|
|
|
2162
2771
|
|
|
2163
2772
|
|
|
@@ -2166,7 +2775,7 @@ serialize object to url param
|
|
|
2166
2775
|
|
|
2167
2776
|
| Name | Type | Description | |
|
|
2168
2777
|
| ---- | ---- | ----------- | -------- |
|
|
2169
|
-
|
|
|
2778
|
+
| time | | (optional) deafult 500 | |
|
|
2170
2779
|
|
|
2171
2780
|
|
|
2172
2781
|
|
|
@@ -2179,12 +2788,36 @@ serialize object to url param
|
|
|
2179
2788
|
|
|
2180
2789
|
|
|
2181
2790
|
|
|
2182
|
-
### dist/
|
|
2791
|
+
### dist/stencil/util/createRef.js
|
|
2183
2792
|
|
|
2184
2793
|
|
|
2185
|
-
####
|
|
2794
|
+
#### createRef()
|
|
2186
2795
|
|
|
2187
|
-
|
|
2796
|
+
lit implementation of React createRef (https://reactjs.org/docs/refs-and-the-dom.html)
|
|
2797
|
+
|
|
2798
|
+
|
|
2799
|
+
|
|
2800
|
+
|
|
2801
|
+
|
|
2802
|
+
|
|
2803
|
+
##### Returns
|
|
2804
|
+
|
|
2805
|
+
|
|
2806
|
+
- function - Function to use in ref prop in html elements
|
|
2807
|
+
|
|
2808
|
+
|
|
2809
|
+
|
|
2810
|
+
|
|
2811
|
+
### dist/stencil/util/getConfig.js
|
|
2812
|
+
|
|
2813
|
+
|
|
2814
|
+
#### getConfig(cfg)
|
|
2815
|
+
|
|
2816
|
+
verify the Config object type and try to return a parsed Object
|
|
2817
|
+
- In case _cfg_ is a string, first try to make a JSON parse in other case
|
|
2818
|
+
try to find this string as a variable on Windows object
|
|
2819
|
+
- If _cfg_ is a fuction, tis is invoked and parsed
|
|
2820
|
+
- Finally, if is an object, _cfg_ is inmediatly returned
|
|
2188
2821
|
|
|
2189
2822
|
|
|
2190
2823
|
|
|
@@ -2193,7 +2826,7 @@ Upper case the first letter of a given text
|
|
|
2193
2826
|
|
|
2194
2827
|
| Name | Type | Description | |
|
|
2195
2828
|
| ---- | ---- | ----------- | -------- |
|
|
2196
|
-
|
|
|
2829
|
+
| cfg | | | |
|
|
2197
2830
|
|
|
2198
2831
|
|
|
2199
2832
|
|
|
@@ -2201,17 +2834,17 @@ Upper case the first letter of a given text
|
|
|
2201
2834
|
##### Returns
|
|
2202
2835
|
|
|
2203
2836
|
|
|
2204
|
-
- `
|
|
2837
|
+
- `Void`
|
|
2205
2838
|
|
|
2206
2839
|
|
|
2207
2840
|
|
|
2208
2841
|
|
|
2209
|
-
### dist/
|
|
2842
|
+
### dist/dates/relative/helpers/formatStatement.js
|
|
2210
2843
|
|
|
2211
2844
|
|
|
2212
|
-
####
|
|
2845
|
+
#### formatStatement(statement)
|
|
2213
2846
|
|
|
2214
|
-
|
|
2847
|
+
Build a proper relative date statement type
|
|
2215
2848
|
|
|
2216
2849
|
|
|
2217
2850
|
|
|
@@ -2220,7 +2853,7 @@ Get an string of the properties of the given column.
|
|
|
2220
2853
|
|
|
2221
2854
|
| Name | Type | Description | |
|
|
2222
2855
|
| ---- | ---- | ----------- | -------- |
|
|
2223
|
-
|
|
|
2856
|
+
| statement | `RelativeStatement` | | |
|
|
2224
2857
|
|
|
2225
2858
|
|
|
2226
2859
|
|
|
@@ -2228,17 +2861,17 @@ Get an string of the properties of the given column.
|
|
|
2228
2861
|
##### Returns
|
|
2229
2862
|
|
|
2230
2863
|
|
|
2231
|
-
-
|
|
2864
|
+
- `RelativeStatement`
|
|
2232
2865
|
|
|
2233
2866
|
|
|
2234
2867
|
|
|
2235
2868
|
|
|
2236
|
-
### dist/
|
|
2869
|
+
### dist/dates/relative/helpers/getStatementCase.js
|
|
2237
2870
|
|
|
2238
2871
|
|
|
2239
|
-
####
|
|
2872
|
+
#### getStatementCase(includeCurrent, isCalendarDate)
|
|
2240
2873
|
|
|
2241
|
-
|
|
2874
|
+
Returns a number/constant that identifies a relative date case
|
|
2242
2875
|
|
|
2243
2876
|
|
|
2244
2877
|
|
|
@@ -2247,7 +2880,8 @@ Get a dataset list from a collection of Qrvey IDs
|
|
|
2247
2880
|
|
|
2248
2881
|
| Name | Type | Description | |
|
|
2249
2882
|
| ---- | ---- | ----------- | -------- |
|
|
2250
|
-
|
|
|
2883
|
+
| includeCurrent | `boolean` | | |
|
|
2884
|
+
| isCalendarDate | `boolean` | | |
|
|
2251
2885
|
|
|
2252
2886
|
|
|
2253
2887
|
|
|
@@ -2255,17 +2889,17 @@ Get a dataset list from a collection of Qrvey IDs
|
|
|
2255
2889
|
##### Returns
|
|
2256
2890
|
|
|
2257
2891
|
|
|
2258
|
-
-
|
|
2892
|
+
- `number`
|
|
2259
2893
|
|
|
2260
2894
|
|
|
2261
2895
|
|
|
2262
2896
|
|
|
2263
|
-
### dist/
|
|
2897
|
+
### dist/dates/relative/helpers/parseDate.js
|
|
2264
2898
|
|
|
2265
2899
|
|
|
2266
|
-
####
|
|
2900
|
+
#### parseDate(date)
|
|
2267
2901
|
|
|
2268
|
-
|
|
2902
|
+
Parses a string date and returns a dayjs date
|
|
2269
2903
|
|
|
2270
2904
|
|
|
2271
2905
|
|
|
@@ -2274,8 +2908,7 @@ POST Request for getting Qrveys such as Web Forms and Datasets. Use params for g
|
|
|
2274
2908
|
|
|
2275
2909
|
| Name | Type | Description | |
|
|
2276
2910
|
| ---- | ---- | ----------- | -------- |
|
|
2277
|
-
|
|
|
2278
|
-
| params | | Object for getting precise data | |
|
|
2911
|
+
| date | `string` `Dayjs` `Date` | | |
|
|
2279
2912
|
|
|
2280
2913
|
|
|
2281
2914
|
|
|
@@ -2283,17 +2916,18 @@ POST Request for getting Qrveys such as Web Forms and Datasets. Use params for g
|
|
|
2283
2916
|
##### Returns
|
|
2284
2917
|
|
|
2285
2918
|
|
|
2286
|
-
- `
|
|
2919
|
+
- `Dayjs` A dayjs date
|
|
2287
2920
|
|
|
2288
2921
|
|
|
2289
2922
|
|
|
2290
2923
|
|
|
2291
|
-
### dist/
|
|
2924
|
+
### dist/filters/helpers/backend/buildExpression.js
|
|
2292
2925
|
|
|
2293
2926
|
|
|
2294
|
-
####
|
|
2927
|
+
#### buildExpression(filter)
|
|
2295
2928
|
|
|
2296
|
-
|
|
2929
|
+
Builds filter expression by the filter data.
|
|
2930
|
+
- If the resulting value array is empty the enabled property will be false.
|
|
2297
2931
|
|
|
2298
2932
|
|
|
2299
2933
|
|
|
@@ -2302,7 +2936,7 @@ Get a dataset by Qrvey ID
|
|
|
2302
2936
|
|
|
2303
2937
|
| Name | Type | Description | |
|
|
2304
2938
|
| ---- | ---- | ----------- | -------- |
|
|
2305
|
-
|
|
|
2939
|
+
| filter | | The filter to transform | |
|
|
2306
2940
|
|
|
2307
2941
|
|
|
2308
2942
|
|
|
@@ -2310,19 +2944,26 @@ Get a dataset by Qrvey ID
|
|
|
2310
2944
|
##### Returns
|
|
2311
2945
|
|
|
2312
2946
|
|
|
2313
|
-
- a
|
|
2947
|
+
- a filter expression
|
|
2314
2948
|
|
|
2315
2949
|
|
|
2316
2950
|
|
|
2317
2951
|
|
|
2318
|
-
### dist/
|
|
2952
|
+
### dist/filters/helpers/backend/buildUserFilters.js
|
|
2953
|
+
|
|
2954
|
+
|
|
2955
|
+
#### buildUserFilters(userFilters)
|
|
2956
|
+
|
|
2957
|
+
Transform user Filters array into Filter Logic structure
|
|
2319
2958
|
|
|
2320
2959
|
|
|
2321
|
-
#### createRef()
|
|
2322
2960
|
|
|
2323
|
-
lit implementation of React createRef (https://reactjs.org/docs/refs-and-the-dom.html)
|
|
2324
2961
|
|
|
2962
|
+
##### Parameters
|
|
2325
2963
|
|
|
2964
|
+
| Name | Type | Description | |
|
|
2965
|
+
| ---- | ---- | ----------- | -------- |
|
|
2966
|
+
| userFilters | | The filters that the user defined. | |
|
|
2326
2967
|
|
|
2327
2968
|
|
|
2328
2969
|
|
|
@@ -2330,21 +2971,17 @@ lit implementation of React createRef (https://reactjs.org/docs/refs-and-the-dom
|
|
|
2330
2971
|
##### Returns
|
|
2331
2972
|
|
|
2332
2973
|
|
|
2333
|
-
-
|
|
2974
|
+
- The filter logic for the given user filters. if No a given object is recieved, it will return an empty array.
|
|
2334
2975
|
|
|
2335
2976
|
|
|
2336
2977
|
|
|
2337
2978
|
|
|
2338
|
-
### dist/
|
|
2979
|
+
### dist/filters/helpers/backend/getAggFiltersBySummaryIndex.js
|
|
2339
2980
|
|
|
2340
2981
|
|
|
2341
|
-
####
|
|
2982
|
+
#### getAggFiltersBySummaryIndex(aggFilters, summaryIndex)
|
|
2983
|
+
|
|
2342
2984
|
|
|
2343
|
-
verify the Config object type and try to return a parsed Object
|
|
2344
|
-
- In case _cfg_ is a string, first try to make a JSON parse in other case
|
|
2345
|
-
try to find this string as a variable on Windows object
|
|
2346
|
-
- If _cfg_ is a fuction, tis is invoked and parsed
|
|
2347
|
-
- Finally, if is an object, _cfg_ is inmediatly returned
|
|
2348
2985
|
|
|
2349
2986
|
|
|
2350
2987
|
|
|
@@ -2353,7 +2990,8 @@ try to find this string as a variable on Windows object
|
|
|
2353
2990
|
|
|
2354
2991
|
| Name | Type | Description | |
|
|
2355
2992
|
| ---- | ---- | ----------- | -------- |
|
|
2356
|
-
|
|
|
2993
|
+
| aggFilters | | | |
|
|
2994
|
+
| summaryIndex | | | |
|
|
2357
2995
|
|
|
2358
2996
|
|
|
2359
2997
|
|
|
@@ -2361,50 +2999,44 @@ try to find this string as a variable on Windows object
|
|
|
2361
2999
|
##### Returns
|
|
2362
3000
|
|
|
2363
3001
|
|
|
2364
|
-
-
|
|
2365
|
-
|
|
3002
|
+
-
|
|
2366
3003
|
|
|
2367
3004
|
|
|
2368
3005
|
|
|
2369
|
-
### dist/stencil/decorators/Config.js
|
|
2370
3006
|
|
|
3007
|
+
### dist/filters/helpers/backend/getBackendGroupValue.js
|
|
2371
3008
|
|
|
2372
|
-
#### Config()
|
|
2373
3009
|
|
|
2374
|
-
|
|
2375
|
-
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
|
|
2376
|
-
But for this, is required ask for a property in `snake_case` style
|
|
3010
|
+
#### getBackendGroupValue(filter)
|
|
2377
3011
|
|
|
3012
|
+
Gets a group value for the backend logic structure
|
|
2378
3013
|
|
|
2379
3014
|
|
|
2380
3015
|
|
|
2381
3016
|
|
|
3017
|
+
##### Parameters
|
|
2382
3018
|
|
|
2383
|
-
|
|
3019
|
+
| Name | Type | Description | |
|
|
3020
|
+
| ---- | ---- | ----------- | -------- |
|
|
3021
|
+
| filter | | The filter | |
|
|
2384
3022
|
|
|
2385
|
-
```javascript
|
|
2386
|
-
\ @Config() @Prop() settings;
|
|
2387
3023
|
|
|
2388
|
-
someMethod() {
|
|
2389
|
-
this.settings.snake_case //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
|
|
2390
|
-
}
|
|
2391
|
-
```
|
|
2392
3024
|
|
|
2393
3025
|
|
|
2394
3026
|
##### Returns
|
|
2395
3027
|
|
|
2396
3028
|
|
|
2397
|
-
-
|
|
3029
|
+
- a property
|
|
2398
3030
|
|
|
2399
3031
|
|
|
2400
3032
|
|
|
2401
3033
|
|
|
2402
|
-
### dist/
|
|
3034
|
+
### dist/filters/helpers/backend/getBackendProperty.js
|
|
2403
3035
|
|
|
2404
3036
|
|
|
2405
|
-
####
|
|
3037
|
+
#### getBackendProperty(filter)
|
|
2406
3038
|
|
|
2407
|
-
|
|
3039
|
+
Gets a property for the logic structure
|
|
2408
3040
|
|
|
2409
3041
|
|
|
2410
3042
|
|
|
@@ -2413,7 +3045,7 @@ someMethod() {
|
|
|
2413
3045
|
|
|
2414
3046
|
| Name | Type | Description | |
|
|
2415
3047
|
| ---- | ---- | ----------- | -------- |
|
|
2416
|
-
|
|
|
3048
|
+
| filter | | The filter | |
|
|
2417
3049
|
|
|
2418
3050
|
|
|
2419
3051
|
|
|
@@ -2421,17 +3053,17 @@ someMethod() {
|
|
|
2421
3053
|
##### Returns
|
|
2422
3054
|
|
|
2423
3055
|
|
|
2424
|
-
-
|
|
3056
|
+
- a property
|
|
2425
3057
|
|
|
2426
3058
|
|
|
2427
3059
|
|
|
2428
3060
|
|
|
2429
|
-
### dist/
|
|
3061
|
+
### dist/filters/helpers/backend/getBackendValidator.js
|
|
2430
3062
|
|
|
2431
3063
|
|
|
2432
|
-
####
|
|
3064
|
+
#### getBackendValidator(validator)
|
|
2433
3065
|
|
|
2434
|
-
|
|
3066
|
+
Gets the Validator that is used in requests
|
|
2435
3067
|
|
|
2436
3068
|
|
|
2437
3069
|
|
|
@@ -2440,7 +3072,7 @@ someMethod() {
|
|
|
2440
3072
|
|
|
2441
3073
|
| Name | Type | Description | |
|
|
2442
3074
|
| ---- | ---- | ----------- | -------- |
|
|
2443
|
-
|
|
|
3075
|
+
| validator | | Filter Validator used in UI | |
|
|
2444
3076
|
|
|
2445
3077
|
|
|
2446
3078
|
|
|
@@ -2448,17 +3080,17 @@ someMethod() {
|
|
|
2448
3080
|
##### Returns
|
|
2449
3081
|
|
|
2450
3082
|
|
|
2451
|
-
-
|
|
3083
|
+
- Filter Validator used in Backend
|
|
2452
3084
|
|
|
2453
3085
|
|
|
2454
3086
|
|
|
2455
3087
|
|
|
2456
|
-
### dist/
|
|
3088
|
+
### dist/filters/helpers/backend/getBackendValues.js
|
|
2457
3089
|
|
|
2458
3090
|
|
|
2459
|
-
####
|
|
3091
|
+
#### getBackendValues(filter)
|
|
2460
3092
|
|
|
2461
|
-
|
|
3093
|
+
Gets the expresion values in the logic format
|
|
2462
3094
|
|
|
2463
3095
|
|
|
2464
3096
|
|
|
@@ -2467,7 +3099,7 @@ Build a proper relative date statement type
|
|
|
2467
3099
|
|
|
2468
3100
|
| Name | Type | Description | |
|
|
2469
3101
|
| ---- | ---- | ----------- | -------- |
|
|
2470
|
-
|
|
|
3102
|
+
| filter | | The filter structure | |
|
|
2471
3103
|
|
|
2472
3104
|
|
|
2473
3105
|
|
|
@@ -2475,17 +3107,13 @@ Build a proper relative date statement type
|
|
|
2475
3107
|
##### Returns
|
|
2476
3108
|
|
|
2477
3109
|
|
|
2478
|
-
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
3110
|
+
- A collection of backend expression value
|
|
2482
3111
|
|
|
2483
|
-
### dist/dates/relative/helpers/getStatementCase.js
|
|
2484
3112
|
|
|
2485
3113
|
|
|
2486
|
-
####
|
|
3114
|
+
#### getResultValues(values, filter)
|
|
2487
3115
|
|
|
2488
|
-
|
|
3116
|
+
Gets the expression values. Depending on the column type
|
|
2489
3117
|
|
|
2490
3118
|
|
|
2491
3119
|
|
|
@@ -2494,8 +3122,8 @@ Returns a number/constant that identifies a relative date case
|
|
|
2494
3122
|
|
|
2495
3123
|
| Name | Type | Description | |
|
|
2496
3124
|
| ---- | ---- | ----------- | -------- |
|
|
2497
|
-
|
|
|
2498
|
-
|
|
|
3125
|
+
| values | | a collection of filter values | |
|
|
3126
|
+
| filter | | The filter structure | |
|
|
2499
3127
|
|
|
2500
3128
|
|
|
2501
3129
|
|
|
@@ -2503,17 +3131,13 @@ Returns a number/constant that identifies a relative date case
|
|
|
2503
3131
|
##### Returns
|
|
2504
3132
|
|
|
2505
3133
|
|
|
2506
|
-
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
3134
|
+
-
|
|
2510
3135
|
|
|
2511
|
-
### dist/dates/relative/helpers/parseDate.js
|
|
2512
3136
|
|
|
2513
3137
|
|
|
2514
|
-
####
|
|
3138
|
+
#### getRankingValues(values, rankingGroupIndex)
|
|
2515
3139
|
|
|
2516
|
-
|
|
3140
|
+
Gets the Ranking values.
|
|
2517
3141
|
|
|
2518
3142
|
|
|
2519
3143
|
|
|
@@ -2522,7 +3146,8 @@ Parses a string date and returns a dayjs date
|
|
|
2522
3146
|
|
|
2523
3147
|
| Name | Type | Description | |
|
|
2524
3148
|
| ---- | ---- | ----------- | -------- |
|
|
2525
|
-
|
|
|
3149
|
+
| values | | a collection of filter values in the ranking structure | |
|
|
3150
|
+
| rankingGroupIndex | | determine the value by this index to build and return it | |
|
|
2526
3151
|
|
|
2527
3152
|
|
|
2528
3153
|
|
|
@@ -2530,17 +3155,17 @@ Parses a string date and returns a dayjs date
|
|
|
2530
3155
|
##### Returns
|
|
2531
3156
|
|
|
2532
3157
|
|
|
2533
|
-
-
|
|
3158
|
+
- Expression values for ranking
|
|
2534
3159
|
|
|
2535
3160
|
|
|
2536
3161
|
|
|
2537
3162
|
|
|
2538
|
-
### dist/filters/helpers/
|
|
3163
|
+
### dist/filters/helpers/backend/getLogicByScopes.js
|
|
2539
3164
|
|
|
2540
3165
|
|
|
2541
|
-
####
|
|
3166
|
+
#### getLogicByScopes(logics, scopes)
|
|
2542
3167
|
|
|
2543
|
-
|
|
3168
|
+
Gets the filters from logic data by Scopes/Scope IDs.
|
|
2544
3169
|
|
|
2545
3170
|
|
|
2546
3171
|
|
|
@@ -2549,7 +3174,8 @@ Returns a filter builder config object by a any given config
|
|
|
2549
3174
|
|
|
2550
3175
|
| Name | Type | Description | |
|
|
2551
3176
|
| ---- | ---- | ----------- | -------- |
|
|
2552
|
-
|
|
|
3177
|
+
| logics | | The logic array | |
|
|
3178
|
+
| scopes | | The collection of Scopes/Scope IDs | |
|
|
2553
3179
|
|
|
2554
3180
|
|
|
2555
3181
|
|
|
@@ -2557,18 +3183,17 @@ Returns a filter builder config object by a any given config
|
|
|
2557
3183
|
##### Returns
|
|
2558
3184
|
|
|
2559
3185
|
|
|
2560
|
-
-
|
|
3186
|
+
- a new Logic array
|
|
2561
3187
|
|
|
2562
3188
|
|
|
2563
3189
|
|
|
2564
3190
|
|
|
2565
|
-
### dist/filters/helpers/backend/
|
|
3191
|
+
### dist/filters/helpers/backend/getLogicByScopesHierarchy.js
|
|
2566
3192
|
|
|
2567
3193
|
|
|
2568
|
-
####
|
|
3194
|
+
#### getLogicByScopesHierarchy(filterData, scopes, currentScope)
|
|
2569
3195
|
|
|
2570
|
-
|
|
2571
|
-
- If the resulting value array is empty the enabled property will be false.
|
|
3196
|
+
Gets filters from the logic by the scopes hierarchy.
|
|
2572
3197
|
|
|
2573
3198
|
|
|
2574
3199
|
|
|
@@ -2577,7 +3202,9 @@ Builds filter expression by the filter data.
|
|
|
2577
3202
|
|
|
2578
3203
|
| Name | Type | Description | |
|
|
2579
3204
|
| ---- | ---- | ----------- | -------- |
|
|
2580
|
-
|
|
|
3205
|
+
| filterData | | | |
|
|
3206
|
+
| scopes | | | |
|
|
3207
|
+
| currentScope | | | |
|
|
2581
3208
|
|
|
2582
3209
|
|
|
2583
3210
|
|
|
@@ -2585,17 +3212,17 @@ Builds filter expression by the filter data.
|
|
|
2585
3212
|
##### Returns
|
|
2586
3213
|
|
|
2587
3214
|
|
|
2588
|
-
- a
|
|
3215
|
+
- a new array of Logic
|
|
2589
3216
|
|
|
2590
3217
|
|
|
2591
3218
|
|
|
2592
3219
|
|
|
2593
|
-
### dist/filters/helpers/
|
|
3220
|
+
### dist/filters/helpers/builder/getFilterBuilderGeneralConfig.js
|
|
2594
3221
|
|
|
2595
3222
|
|
|
2596
|
-
####
|
|
3223
|
+
#### getFilterBuilderGeneralConfig(config)
|
|
2597
3224
|
|
|
2598
|
-
|
|
3225
|
+
Returns a filter builder config object by a any given config
|
|
2599
3226
|
|
|
2600
3227
|
|
|
2601
3228
|
|
|
@@ -2604,7 +3231,7 @@ Transform user Filters array into Filter Logic structure
|
|
|
2604
3231
|
|
|
2605
3232
|
| Name | Type | Description | |
|
|
2606
3233
|
| ---- | ---- | ----------- | -------- |
|
|
2607
|
-
|
|
|
3234
|
+
| config | | any config object | |
|
|
2608
3235
|
|
|
2609
3236
|
|
|
2610
3237
|
|
|
@@ -2612,17 +3239,17 @@ Transform user Filters array into Filter Logic structure
|
|
|
2612
3239
|
##### Returns
|
|
2613
3240
|
|
|
2614
3241
|
|
|
2615
|
-
- The filter
|
|
2616
|
-
|
|
3242
|
+
- The filter builder config object
|
|
2617
3243
|
|
|
2618
3244
|
|
|
2619
3245
|
|
|
2620
|
-
### dist/filters/helpers/backend/getAggFiltersBySummaryIndex.js
|
|
2621
3246
|
|
|
3247
|
+
### dist/filters/helpers/ui/excludeUIFiltersByAggregate.js
|
|
2622
3248
|
|
|
2623
|
-
#### getAggFiltersBySummaryIndex(aggFilters, summaryIndex)
|
|
2624
3249
|
|
|
3250
|
+
#### excludeUIFiltersByAggregate(uFilters)
|
|
2625
3251
|
|
|
3252
|
+
Excludes Aggregate Filters in the Flattened UI Filters array
|
|
2626
3253
|
|
|
2627
3254
|
|
|
2628
3255
|
|
|
@@ -2631,8 +3258,7 @@ Transform user Filters array into Filter Logic structure
|
|
|
2631
3258
|
|
|
2632
3259
|
| Name | Type | Description | |
|
|
2633
3260
|
| ---- | ---- | ----------- | -------- |
|
|
2634
|
-
|
|
|
2635
|
-
| summaryIndex | | | |
|
|
3261
|
+
| uFilters | | Collection of Flat UI Filters | |
|
|
2636
3262
|
|
|
2637
3263
|
|
|
2638
3264
|
|
|
@@ -2640,17 +3266,17 @@ Transform user Filters array into Filter Logic structure
|
|
|
2640
3266
|
##### Returns
|
|
2641
3267
|
|
|
2642
3268
|
|
|
2643
|
-
-
|
|
3269
|
+
- a new Flat UI Filters that were excluded the aggregate filters
|
|
2644
3270
|
|
|
2645
3271
|
|
|
2646
3272
|
|
|
2647
3273
|
|
|
2648
|
-
### dist/filters/helpers/
|
|
3274
|
+
### dist/filters/helpers/ui/excludeUIFlatFiltersByScopes.js
|
|
2649
3275
|
|
|
2650
3276
|
|
|
2651
|
-
####
|
|
3277
|
+
#### excludeUIFlatFiltersByScopes(uFilters, scopes)
|
|
2652
3278
|
|
|
2653
|
-
|
|
3279
|
+
Excludes and returns a UI Flat Filters without filters by the given scopes
|
|
2654
3280
|
|
|
2655
3281
|
|
|
2656
3282
|
|
|
@@ -2659,7 +3285,8 @@ Gets a group value for the backend logic structure
|
|
|
2659
3285
|
|
|
2660
3286
|
| Name | Type | Description | |
|
|
2661
3287
|
| ---- | ---- | ----------- | -------- |
|
|
2662
|
-
|
|
|
3288
|
+
| uFilters | | The Flatten UI Filters | |
|
|
3289
|
+
| scopes | | collection of scopes types | |
|
|
2663
3290
|
|
|
2664
3291
|
|
|
2665
3292
|
|
|
@@ -2667,17 +3294,17 @@ Gets a group value for the backend logic structure
|
|
|
2667
3294
|
##### Returns
|
|
2668
3295
|
|
|
2669
3296
|
|
|
2670
|
-
-
|
|
3297
|
+
- The new array of UI Flattened filters
|
|
2671
3298
|
|
|
2672
3299
|
|
|
2673
3300
|
|
|
2674
3301
|
|
|
2675
|
-
### dist/filters/helpers/
|
|
3302
|
+
### dist/filters/helpers/ui/getFilterPropertyLabel.js
|
|
2676
3303
|
|
|
2677
3304
|
|
|
2678
|
-
####
|
|
3305
|
+
#### getFilterPropertyLabel(filter)
|
|
2679
3306
|
|
|
2680
|
-
Gets
|
|
3307
|
+
Gets the label of the filter property
|
|
2681
3308
|
|
|
2682
3309
|
|
|
2683
3310
|
|
|
@@ -2686,7 +3313,7 @@ Gets a property for the logic structure
|
|
|
2686
3313
|
|
|
2687
3314
|
| Name | Type | Description | |
|
|
2688
3315
|
| ---- | ---- | ----------- | -------- |
|
|
2689
|
-
| filter | | The
|
|
3316
|
+
| filter | | The UI Filter | |
|
|
2690
3317
|
|
|
2691
3318
|
|
|
2692
3319
|
|
|
@@ -2694,17 +3321,17 @@ Gets a property for the logic structure
|
|
|
2694
3321
|
##### Returns
|
|
2695
3322
|
|
|
2696
3323
|
|
|
2697
|
-
- a property
|
|
3324
|
+
- a string of the filter property label
|
|
2698
3325
|
|
|
2699
3326
|
|
|
2700
3327
|
|
|
2701
3328
|
|
|
2702
|
-
### dist/filters/helpers/
|
|
3329
|
+
### dist/filters/helpers/ui/getOutputFormatByColumn.js
|
|
2703
3330
|
|
|
2704
3331
|
|
|
2705
|
-
####
|
|
3332
|
+
#### getOutputFormatByColumn(column, datasets)
|
|
2706
3333
|
|
|
2707
|
-
Gets the
|
|
3334
|
+
Gets output format object from Datasets by the given column. Item of the datasets array must have outputformat item in order to be returned
|
|
2708
3335
|
|
|
2709
3336
|
|
|
2710
3337
|
|
|
@@ -2713,7 +3340,8 @@ Gets the Validator that is used in requests
|
|
|
2713
3340
|
|
|
2714
3341
|
| Name | Type | Description | |
|
|
2715
3342
|
| ---- | ---- | ----------- | -------- |
|
|
2716
|
-
|
|
|
3343
|
+
| column | | The column | |
|
|
3344
|
+
| datasets | | array of datasets | |
|
|
2717
3345
|
|
|
2718
3346
|
|
|
2719
3347
|
|
|
@@ -2721,64 +3349,74 @@ Gets the Validator that is used in requests
|
|
|
2721
3349
|
##### Returns
|
|
2722
3350
|
|
|
2723
3351
|
|
|
2724
|
-
-
|
|
3352
|
+
- The output format object
|
|
2725
3353
|
|
|
2726
3354
|
|
|
2727
3355
|
|
|
2728
3356
|
|
|
2729
|
-
### dist/filters/helpers/
|
|
3357
|
+
### dist/filters/helpers/ui/getUIFlatFilterByParams.js
|
|
2730
3358
|
|
|
2731
3359
|
|
|
2732
|
-
####
|
|
3360
|
+
#### getUIFlatFilterByParams()
|
|
2733
3361
|
|
|
2734
|
-
Gets the
|
|
3362
|
+
Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
|
|
3363
|
+
The validation to filter the stored filter is depending on:
|
|
3364
|
+
- Column
|
|
3365
|
+
- Qrvey ID,
|
|
3366
|
+
- Scope type
|
|
3367
|
+
- Scope ID
|
|
3368
|
+
- Panel ID
|
|
3369
|
+
- Validator type
|
|
3370
|
+
- Property type
|
|
2735
3371
|
|
|
2736
3372
|
|
|
2737
3373
|
|
|
2738
3374
|
|
|
2739
|
-
##### Parameters
|
|
2740
3375
|
|
|
2741
|
-
| Name | Type | Description | |
|
|
2742
|
-
| ---- | ---- | ----------- | -------- |
|
|
2743
|
-
| filter | | The filter structure | |
|
|
2744
3376
|
|
|
3377
|
+
##### Returns
|
|
2745
3378
|
|
|
2746
3379
|
|
|
3380
|
+
- The index of the uFilter array or the Filter object s
|
|
2747
3381
|
|
|
2748
|
-
##### Returns
|
|
2749
3382
|
|
|
2750
3383
|
|
|
2751
|
-
- A collection of backend expression value
|
|
2752
3384
|
|
|
3385
|
+
### dist/filters/helpers/ui/getUIFlatFiltersByParams.js
|
|
2753
3386
|
|
|
2754
3387
|
|
|
2755
|
-
####
|
|
3388
|
+
#### getUIFlatFiltersByParams()
|
|
2756
3389
|
|
|
2757
|
-
Gets the
|
|
3390
|
+
Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
|
|
3391
|
+
The validation to filter the stored filter is depending on:
|
|
3392
|
+
- Column
|
|
3393
|
+
- Qrvey ID,
|
|
3394
|
+
- Scope type
|
|
3395
|
+
- Scope ID
|
|
3396
|
+
- Panel ID
|
|
3397
|
+
- Validator type
|
|
3398
|
+
- Property type
|
|
3399
|
+
- Enabled flags
|
|
2758
3400
|
|
|
2759
3401
|
|
|
2760
3402
|
|
|
2761
3403
|
|
|
2762
|
-
##### Parameters
|
|
2763
3404
|
|
|
2764
|
-
| Name | Type | Description | |
|
|
2765
|
-
| ---- | ---- | ----------- | -------- |
|
|
2766
|
-
| values | | a collection of filter values | |
|
|
2767
|
-
| filter | | The filter structure | |
|
|
2768
3405
|
|
|
3406
|
+
##### Returns
|
|
2769
3407
|
|
|
2770
3408
|
|
|
3409
|
+
- The index of the uFilter array or the Filter object s
|
|
2771
3410
|
|
|
2772
|
-
##### Returns
|
|
2773
3411
|
|
|
2774
3412
|
|
|
2775
|
-
-
|
|
2776
3413
|
|
|
3414
|
+
### dist/filters/helpers/ui/getUIFlatFiltersByScopes.js
|
|
2777
3415
|
|
|
2778
3416
|
|
|
2779
|
-
####
|
|
3417
|
+
#### getUIFlatFiltersByScopes(uFilters, scopes)
|
|
2780
3418
|
|
|
2781
|
-
|
|
3419
|
+
Filters and gets a UI Flatten Filters by the given scopes
|
|
2782
3420
|
|
|
2783
3421
|
|
|
2784
3422
|
|
|
@@ -2787,8 +3425,8 @@ Gets the Ranking values.
|
|
|
2787
3425
|
|
|
2788
3426
|
| Name | Type | Description | |
|
|
2789
3427
|
| ---- | ---- | ----------- | -------- |
|
|
2790
|
-
|
|
|
2791
|
-
|
|
|
3428
|
+
| uFilters | | The Flatten UI Filters | |
|
|
3429
|
+
| scopes | | collection of scopes types | |
|
|
2792
3430
|
|
|
2793
3431
|
|
|
2794
3432
|
|
|
@@ -2796,17 +3434,17 @@ Gets the Ranking values.
|
|
|
2796
3434
|
##### Returns
|
|
2797
3435
|
|
|
2798
3436
|
|
|
2799
|
-
-
|
|
3437
|
+
- The new array of UI Flattened filters
|
|
2800
3438
|
|
|
2801
3439
|
|
|
2802
3440
|
|
|
2803
3441
|
|
|
2804
|
-
### dist/filters/helpers/
|
|
3442
|
+
### dist/filters/helpers/ui/getUIValues.js
|
|
2805
3443
|
|
|
2806
3444
|
|
|
2807
|
-
####
|
|
3445
|
+
#### getUIValues(filter, addEnableds, rankingGroupIndex)
|
|
3446
|
+
|
|
2808
3447
|
|
|
2809
|
-
Gets the filters from logic data by Scopes/Scope IDs.
|
|
2810
3448
|
|
|
2811
3449
|
|
|
2812
3450
|
|
|
@@ -2815,8 +3453,9 @@ Gets the filters from logic data by Scopes/Scope IDs.
|
|
|
2815
3453
|
|
|
2816
3454
|
| Name | Type | Description | |
|
|
2817
3455
|
| ---- | ---- | ----------- | -------- |
|
|
2818
|
-
|
|
|
2819
|
-
|
|
|
3456
|
+
| filter | | | |
|
|
3457
|
+
| addEnableds | | | |
|
|
3458
|
+
| rankingGroupIndex | | | |
|
|
2820
3459
|
|
|
2821
3460
|
|
|
2822
3461
|
|
|
@@ -2824,17 +3463,17 @@ Gets the filters from logic data by Scopes/Scope IDs.
|
|
|
2824
3463
|
##### Returns
|
|
2825
3464
|
|
|
2826
3465
|
|
|
2827
|
-
-
|
|
3466
|
+
-
|
|
2828
3467
|
|
|
2829
3468
|
|
|
2830
3469
|
|
|
2831
3470
|
|
|
2832
|
-
### dist/filters/helpers/
|
|
3471
|
+
### dist/filters/helpers/ui/resolveUIFlatFiltersByParams.js
|
|
2833
3472
|
|
|
2834
3473
|
|
|
2835
|
-
####
|
|
3474
|
+
#### resolveUIFlatFilterByParams(filter, params)
|
|
2836
3475
|
|
|
2837
|
-
|
|
3476
|
+
Resolves conditions between UI flattened filter and given parameters
|
|
2838
3477
|
|
|
2839
3478
|
|
|
2840
3479
|
|
|
@@ -2843,9 +3482,8 @@ Gets filters from the logic by the scopes hierarchy.
|
|
|
2843
3482
|
|
|
2844
3483
|
| Name | Type | Description | |
|
|
2845
3484
|
| ---- | ---- | ----------- | -------- |
|
|
2846
|
-
|
|
|
2847
|
-
|
|
|
2848
|
-
| currentScope | | | |
|
|
3485
|
+
| filter | | UI Flatten Filter | |
|
|
3486
|
+
| params | | Parameters to validate | |
|
|
2849
3487
|
|
|
2850
3488
|
|
|
2851
3489
|
|
|
@@ -2853,7 +3491,7 @@ Gets filters from the logic by the scopes hierarchy.
|
|
|
2853
3491
|
##### Returns
|
|
2854
3492
|
|
|
2855
3493
|
|
|
2856
|
-
-
|
|
3494
|
+
- true: the conditions are satisfied.
|
|
2857
3495
|
|
|
2858
3496
|
|
|
2859
3497
|
|
|
@@ -3682,256 +4320,4 @@ Resolves the conditions by given params
|
|
|
3682
4320
|
|
|
3683
4321
|
|
|
3684
4322
|
|
|
3685
|
-
### dist/filters/helpers/ui/excludeUIFiltersByAggregate.js
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
#### excludeUIFiltersByAggregate(uFilters)
|
|
3689
|
-
|
|
3690
|
-
Excludes Aggregate Filters in the Flattened UI Filters array
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
##### Parameters
|
|
3696
|
-
|
|
3697
|
-
| Name | Type | Description | |
|
|
3698
|
-
| ---- | ---- | ----------- | -------- |
|
|
3699
|
-
| uFilters | | Collection of Flat UI Filters | |
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
##### Returns
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
- a new Flat UI Filters that were excluded the aggregate filters
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
### dist/filters/helpers/ui/excludeUIFlatFiltersByScopes.js
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
#### excludeUIFlatFiltersByScopes(uFilters, scopes)
|
|
3716
|
-
|
|
3717
|
-
Excludes and returns a UI Flat Filters without filters by the given scopes
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
##### Parameters
|
|
3723
|
-
|
|
3724
|
-
| Name | Type | Description | |
|
|
3725
|
-
| ---- | ---- | ----------- | -------- |
|
|
3726
|
-
| uFilters | | The Flatten UI Filters | |
|
|
3727
|
-
| scopes | | collection of scopes types | |
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
##### Returns
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
- The new array of UI Flattened filters
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
### dist/filters/helpers/ui/getFilterPropertyLabel.js
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
#### getFilterPropertyLabel(filter)
|
|
3744
|
-
|
|
3745
|
-
Gets the label of the filter property
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
##### Parameters
|
|
3751
|
-
|
|
3752
|
-
| Name | Type | Description | |
|
|
3753
|
-
| ---- | ---- | ----------- | -------- |
|
|
3754
|
-
| filter | | The UI Filter | |
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
##### Returns
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
- a string of the filter property label
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
### dist/filters/helpers/ui/getOutputFormatByColumn.js
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
#### getOutputFormatByColumn(column, datasets)
|
|
3771
|
-
|
|
3772
|
-
Gets output format object from Datasets by the given column. Item of the datasets array must have outputformat item in order to be returned
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
##### Parameters
|
|
3778
|
-
|
|
3779
|
-
| Name | Type | Description | |
|
|
3780
|
-
| ---- | ---- | ----------- | -------- |
|
|
3781
|
-
| column | | The column | |
|
|
3782
|
-
| datasets | | array of datasets | |
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
##### Returns
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
- The output format object
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
### dist/filters/helpers/ui/getUIFlatFilterByParams.js
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
#### getUIFlatFilterByParams()
|
|
3799
|
-
|
|
3800
|
-
Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
|
|
3801
|
-
The validation to filter the stored filter is depending on:
|
|
3802
|
-
- Column
|
|
3803
|
-
- Qrvey ID,
|
|
3804
|
-
- Scope type
|
|
3805
|
-
- Scope ID
|
|
3806
|
-
- Panel ID
|
|
3807
|
-
- Validator type
|
|
3808
|
-
- Property type
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
##### Returns
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
- The index of the uFilter array or the Filter object s
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
### dist/filters/helpers/ui/getUIFlatFiltersByParams.js
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
#### getUIFlatFiltersByParams()
|
|
3827
|
-
|
|
3828
|
-
Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
|
|
3829
|
-
The validation to filter the stored filter is depending on:
|
|
3830
|
-
- Column
|
|
3831
|
-
- Qrvey ID,
|
|
3832
|
-
- Scope type
|
|
3833
|
-
- Scope ID
|
|
3834
|
-
- Panel ID
|
|
3835
|
-
- Validator type
|
|
3836
|
-
- Property type
|
|
3837
|
-
- Enabled flags
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
##### Returns
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
- The index of the uFilter array or the Filter object s
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
### dist/filters/helpers/ui/getUIFlatFiltersByScopes.js
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
#### getUIFlatFiltersByScopes(uFilters, scopes)
|
|
3856
|
-
|
|
3857
|
-
Filters and gets a UI Flatten Filters by the given scopes
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
##### Parameters
|
|
3863
|
-
|
|
3864
|
-
| Name | Type | Description | |
|
|
3865
|
-
| ---- | ---- | ----------- | -------- |
|
|
3866
|
-
| uFilters | | The Flatten UI Filters | |
|
|
3867
|
-
| scopes | | collection of scopes types | |
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
##### Returns
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
- The new array of UI Flattened filters
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
### dist/filters/helpers/ui/getUIValues.js
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
#### getUIValues(filter, addEnableds, rankingGroupIndex)
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
##### Parameters
|
|
3891
|
-
|
|
3892
|
-
| Name | Type | Description | |
|
|
3893
|
-
| ---- | ---- | ----------- | -------- |
|
|
3894
|
-
| filter | | | |
|
|
3895
|
-
| addEnableds | | | |
|
|
3896
|
-
| rankingGroupIndex | | | |
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
##### Returns
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
### dist/filters/helpers/ui/resolveUIFlatFiltersByParams.js
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
#### resolveUIFlatFilterByParams(filter, params)
|
|
3913
|
-
|
|
3914
|
-
Resolves conditions between UI flattened filter and given parameters
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
##### Parameters
|
|
3920
|
-
|
|
3921
|
-
| Name | Type | Description | |
|
|
3922
|
-
| ---- | ---- | ----------- | -------- |
|
|
3923
|
-
| filter | | UI Flatten Filter | |
|
|
3924
|
-
| params | | Parameters to validate | |
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
##### Returns
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
- true: the conditions are satisfied.
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
4323
|
*Documentation generated with [doxdox](https://github.com/neogeek/doxdox).*
|