@qrvey/utils 1.2.4-2 → 1.2.4-23
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 +1099 -713
- package/dist/{cjs/qrvey → charts}/constants/AGGREGATE.d.ts +0 -0
- package/dist/{qrvey → charts}/constants/AGGREGATE.js +0 -0
- package/dist/{cjs/qrvey → charts}/constants/AGGREGATE_ABBREVIATION.d.ts +0 -0
- package/dist/{qrvey → charts}/constants/AGGREGATE_ABBREVIATION.js +0 -0
- package/dist/charts/constants/AGGREGATE_INFO.d.ts +5 -0
- package/dist/{qrvey → charts}/constants/AGGREGATE_INFO.js +0 -0
- package/dist/charts/constants/AGGREGATE_INFO_LIST.d.ts +1 -0
- package/dist/{qrvey → charts}/constants/AGGREGATE_INFO_LIST.js +0 -0
- package/dist/charts/constants/AGGREGATE_LABEL.d.ts +11 -0
- package/dist/charts/constants/AGGREGATE_LABEL.js +12 -0
- package/dist/charts/constants/index.d.ts +5 -0
- package/dist/charts/constants/index.js +5 -0
- package/dist/charts/index.d.ts +2 -0
- package/dist/charts/index.js +2 -0
- package/dist/charts/interfaces/IAggregateAbbreviation.d.ts +2 -0
- package/dist/{columns/interfaces/IColumnAggregateType.js → charts/interfaces/IAggregateAbbreviation.js} +0 -0
- package/dist/charts/interfaces/IAggregateInfo.d.ts +9 -0
- package/dist/{qrvey → charts}/interfaces/IAggregateInfo.js +0 -0
- package/dist/charts/interfaces/IAggregateLabel.d.ts +2 -0
- package/dist/{columns/interfaces/IColumnCalculationType.js → charts/interfaces/IAggregateLabel.js} +0 -0
- package/dist/{cjs/qrvey/interfaces/IAggregate.d.ts → charts/interfaces/IAggregateType.d.ts} +1 -1
- package/dist/{globalization/interfaces/common/II18nCommonChartInfoMessagesCrosstab.js → charts/interfaces/IAggregateType.js} +0 -0
- package/dist/charts/interfaces/index.d.ts +4 -0
- package/dist/charts/interfaces/index.js +4 -0
- package/dist/{qrvey → cjs/charts}/constants/AGGREGATE.d.ts +0 -0
- package/dist/cjs/{qrvey → charts}/constants/AGGREGATE.js +0 -0
- package/dist/{qrvey → cjs/charts}/constants/AGGREGATE_ABBREVIATION.d.ts +0 -0
- package/dist/cjs/{qrvey → charts}/constants/AGGREGATE_ABBREVIATION.js +0 -0
- package/dist/cjs/charts/constants/AGGREGATE_INFO.d.ts +5 -0
- package/dist/cjs/{qrvey → charts}/constants/AGGREGATE_INFO.js +0 -0
- package/dist/cjs/charts/constants/AGGREGATE_INFO_LIST.d.ts +1 -0
- package/dist/cjs/{qrvey → charts}/constants/AGGREGATE_INFO_LIST.js +0 -0
- package/dist/cjs/charts/constants/AGGREGATE_LABEL.d.ts +11 -0
- package/dist/cjs/charts/constants/AGGREGATE_LABEL.js +15 -0
- package/dist/cjs/charts/constants/index.d.ts +5 -0
- package/dist/cjs/{globalization/interfaces/q → charts/constants}/index.js +5 -5
- package/dist/cjs/charts/index.d.ts +2 -0
- package/dist/cjs/{globalization/labels/q → charts}/index.js +2 -2
- package/dist/cjs/charts/interfaces/IAggregateAbbreviation.d.ts +2 -0
- package/dist/cjs/{columns/interfaces/IColumnAggregateType.js → charts/interfaces/IAggregateAbbreviation.js} +0 -0
- package/dist/cjs/charts/interfaces/IAggregateInfo.d.ts +9 -0
- package/dist/cjs/{qrvey → charts}/interfaces/IAggregateInfo.js +0 -0
- package/dist/cjs/charts/interfaces/IAggregateLabel.d.ts +2 -0
- package/dist/cjs/{columns/interfaces/IColumnCalculationType.js → charts/interfaces/IAggregateLabel.js} +0 -0
- package/dist/{qrvey/interfaces/IAggregate.d.ts → cjs/charts/interfaces/IAggregateType.d.ts} +1 -1
- package/dist/cjs/{globalization/interfaces/common/II18nCommonChartInfoMessagesCrosstab.js → charts/interfaces/IAggregateType.js} +0 -0
- package/dist/cjs/charts/interfaces/index.d.ts +4 -0
- package/dist/cjs/charts/interfaces/index.js +16 -0
- package/dist/cjs/columns/constants/COLUMN.d.ts +6 -6
- package/dist/cjs/columns/constants/COLUMN.js +8 -8
- package/dist/cjs/columns/constants/COLUMN_INFO.js +3 -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/IColumn.d.ts +3 -3
- 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/common/II18nCommonChartInfoMessagesDefault.js → columns/interfaces/INumericalColumnType.js} +0 -0
- package/dist/cjs/columns/interfaces/index.d.ts +3 -2
- package/dist/cjs/columns/interfaces/index.js +3 -2
- 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/common/II18nCommonChartInfoMessagesTableChart.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/helpers/common/getFilterColumnLabel.js +1 -1
- 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/general/object/mergeDeep.js +6 -7
- package/dist/cjs/globalization/interfaces/II18nServiceTranslateOption.d.ts +4 -0
- package/dist/cjs/globalization/interfaces/{filters/II18nFilterBuilderInfoContainerSelection.js → II18nServiceTranslateOption.js} +0 -0
- package/dist/cjs/globalization/interfaces/IResourceI18n.d.ts +18 -14
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilder.d.ts +24 -0
- package/dist/cjs/globalization/interfaces/{panel/II18nPanelSizeSubMenu.js → bucket_builder/II18nBucketBuilder.js} +0 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderBasicBucket.d.ts +15 -0
- package/dist/cjs/globalization/interfaces/{q/II18nSlidebar.js → bucket_builder/II18nBucketBuilderBasicBucket.js} +0 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderCreateBucket.d.ts +29 -0
- package/dist/cjs/globalization/interfaces/{q/II18nSlidebarValueContainer.js → bucket_builder/II18nBucketBuilderCreateBucket.js} +0 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderCustomBucket.d.ts +15 -0
- package/dist/cjs/globalization/interfaces/{q/II18nValueContainer.js → bucket_builder/II18nBucketBuilderCustomBucket.js} +0 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderDeleteDialog.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/{q/II18nValueContainerSearchInput.js → bucket_builder/II18nBucketBuilderDeleteDialog.js} +0 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderEditDialog.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/{q/II18nValueContainerSearchInputEnterValue.js → bucket_builder/II18nBucketBuilderEditDialog.js} +0 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderListBuckets.d.ts +6 -0
- package/dist/cjs/{qrvey/interfaces/IAggregate.js → globalization/interfaces/bucket_builder/II18nBucketBuilderListBuckets.js} +0 -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 +12 -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/II18nAgreggateLabels.d.ts +11 -0
- package/dist/cjs/globalization/interfaces/common/II18nAgreggateLabels.js +2 -0
- package/dist/cjs/globalization/interfaces/common/{II18nCommonChartInfoMessagesCrosstab.d.ts → II18nChartInfoMessagesCrosstab.d.ts} +1 -1
- package/dist/cjs/globalization/interfaces/common/II18nChartInfoMessagesCrosstab.js +2 -0
- package/dist/cjs/globalization/interfaces/common/{II18nCommonChartInfoMessagesDefault.d.ts → II18nChartInfoMessagesDefault.d.ts} +1 -1
- package/dist/cjs/globalization/interfaces/common/II18nChartInfoMessagesDefault.js +2 -0
- package/dist/{globalization/interfaces/common/II18nCommonChartInfoMessagesTableChart.d.ts → cjs/globalization/interfaces/common/II18nChartInfoMessagesTableChart.d.ts} +1 -1
- package/dist/cjs/globalization/interfaces/common/II18nChartInfoMessagesTableChart.js +2 -0
- package/dist/cjs/globalization/interfaces/common/II18nColumnProperties.d.ts +46 -0
- package/dist/cjs/globalization/interfaces/common/II18nColumnProperties.js +2 -0
- package/dist/cjs/globalization/interfaces/common/II18nColumnTypes.d.ts +38 -0
- package/dist/cjs/globalization/interfaces/common/II18nColumnTypes.js +2 -0
- package/dist/cjs/globalization/interfaces/common/II18nColumnTypesSuffixes.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/common/II18nColumnTypesSuffixes.js +2 -0
- package/dist/cjs/globalization/interfaces/common/II18nCommon.d.ts +14 -6
- package/dist/cjs/globalization/interfaces/common/index.d.ts +8 -0
- package/dist/cjs/globalization/interfaces/common/index.js +20 -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 +16 -4
- 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/II18nFilterPanelScopeTitle.d.ts +10 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterPanelScopeTitle.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/II18nFilterValidator.d.ts +23 -0
- package/dist/cjs/globalization/interfaces/filters/II18nFilterValidator.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/II18nSlidebar.d.ts +7 -0
- package/dist/cjs/globalization/interfaces/filters/II18nSlidebar.js +2 -0
- package/dist/{globalization/interfaces/q → cjs/globalization/interfaces/filters}/II18nValueContainer.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nValueContainer.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/II18nValueContainerSearchInput.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/filters/II18nValueContainerSearchInput.js +2 -0
- package/dist/cjs/globalization/interfaces/filters/index.d.ts +22 -2
- package/dist/cjs/globalization/interfaces/filters/index.js +22 -2
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilder.d.ts +12 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilder.js +2 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderCreateModal.d.ts +28 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderCreateModal.js +2 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderDeleteDialog.d.ts +7 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderDeleteDialog.js +2 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderFunctionsType.d.ts +7 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderFunctionsType.js +2 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.d.ts +5 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.js +2 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderListTable.d.ts +9 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderListTable.js +2 -0
- package/dist/cjs/globalization/interfaces/formula_builder/index.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/formula_builder/index.js +18 -0
- package/dist/cjs/globalization/interfaces/index.d.ts +6 -1
- package/dist/cjs/globalization/interfaces/index.js +6 -1
- package/dist/cjs/globalization/interfaces/panel/II18nPanel.d.ts +16 -2
- 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/II18nPanelErrors.d.ts +9 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanelErrors.js +2 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanelMenu.d.ts +7 -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/II18nPanelSummarySorting.d.ts +12 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanelSummarySorting.js +2 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanelSummaryViews.d.ts +19 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanelSummaryViews.js +2 -0
- package/dist/cjs/globalization/interfaces/panel/index.d.ts +7 -1
- package/dist/cjs/globalization/interfaces/panel/index.js +7 -1
- package/dist/cjs/globalization/interfaces/table_charts/II18nTableCharts.d.ts +6 -2
- package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsInnerCharts.d.ts +8 -0
- package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsInnerCharts.js +2 -0
- package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsPagination.d.ts +5 -0
- package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsPagination.js +2 -0
- package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsSort.d.ts +3 -0
- package/dist/cjs/globalization/interfaces/table_charts/II18nTableChartsSortTooltip.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/table_charts/index.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/table_charts/index.js +18 -0
- package/dist/cjs/globalization/labels/I18N_DEFAULT.js +12 -2
- 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 +117 -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_AGGREGATE_LABEL.d.ts +2 -0
- package/dist/cjs/globalization/labels/common/I18N_AGGREGATE_LABEL.js +15 -0
- package/dist/cjs/globalization/labels/common/I18N_COLUMN_LABEL.d.ts +38 -0
- package/dist/cjs/globalization/labels/common/I18N_COLUMN_LABEL.js +42 -0
- package/dist/cjs/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.d.ts +2 -0
- package/dist/cjs/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.js +50 -0
- package/dist/cjs/globalization/labels/common/I18N_COMMON.d.ts +2 -24
- package/dist/cjs/globalization/labels/common/I18N_COMMON.js +13 -1
- package/dist/cjs/globalization/labels/common/index.d.ts +2 -0
- package/dist/cjs/globalization/labels/common/index.js +2 -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 +24 -2
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_BUILDER.js +23 -12
- 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_FILTER_VALIDATOR.d.ts +2 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_VALIDATOR.js +27 -0
- package/dist/cjs/globalization/labels/filters/I18N_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_SLIDEBAR.d.ts +2 -0
- package/dist/cjs/globalization/labels/{q → filters}/I18N_SLIDEBAR.js +2 -3
- package/dist/cjs/globalization/labels/filters/I18N_VALUE_CONTAINER.d.ts +2 -0
- package/dist/cjs/globalization/labels/{q → filters}/I18N_VALUE_CONTAINER.js +5 -5
- package/dist/cjs/globalization/labels/filters/index.d.ts +9 -0
- package/dist/cjs/globalization/labels/filters/index.js +9 -0
- package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.d.ts +2 -0
- package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +61 -0
- package/dist/cjs/globalization/labels/formula_builder/index.d.ts +1 -0
- package/dist/cjs/globalization/labels/formula_builder/index.js +13 -0
- package/dist/cjs/globalization/labels/index.d.ts +8 -6
- package/dist/cjs/globalization/labels/index.js +8 -6
- package/dist/cjs/globalization/labels/panel/I18N_PANEL.js +72 -4
- package/dist/cjs/globalization/labels/table_charts/I18N_TABLE_CHARTS.d.ts +2 -18
- package/dist/cjs/globalization/labels/table_charts/I18N_TABLE_CHARTS.js +25 -8
- package/dist/cjs/globalization/service/i18nextBuilder.d.ts +2 -1
- package/dist/cjs/globalization/service/i18nextBuilder.js +4 -3
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/interfaces/Qrvey.Interface.d.ts +0 -10
- package/dist/cjs/interfaces/index.d.ts +1 -1
- package/dist/cjs/interfaces/index.js +1 -1
- package/dist/cjs/qrvey/constants/CALCULATION_INFO_LIST.d.ts +1 -1
- package/dist/cjs/qrvey/constants/CALCULATION_INFO_LIST.js +2 -2
- package/dist/cjs/qrvey/constants/index.d.ts +1 -4
- package/dist/cjs/qrvey/constants/index.js +1 -4
- package/dist/{columns/interfaces/IColumnCalculationType.d.ts → cjs/qrvey/interfaces/ICalculationType.d.ts} +1 -1
- package/dist/cjs/qrvey/interfaces/ICalculationType.js +2 -0
- package/dist/cjs/qrvey/interfaces/index.d.ts +4 -0
- package/dist/cjs/qrvey/interfaces/index.js +4 -0
- package/dist/cjs/services/helpers/Request.js +1 -1
- package/dist/columns/constants/COLUMN.d.ts +6 -6
- package/dist/columns/constants/COLUMN.js +8 -8
- package/dist/columns/constants/COLUMN_INFO.js +3 -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/IColumn.d.ts +3 -3
- package/dist/columns/interfaces/IColumnType.d.ts +2 -1
- package/dist/columns/interfaces/INumericalColumnType.d.ts +2 -0
- package/dist/{globalization/interfaces/common/II18nCommonChartInfoMessagesDefault.js → columns/interfaces/INumericalColumnType.js} +0 -0
- package/dist/columns/interfaces/index.d.ts +3 -2
- package/dist/columns/interfaces/index.js +3 -2
- 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/common/II18nCommonChartInfoMessagesTableChart.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/helpers/common/getFilterColumnLabel.js +1 -1
- 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/general/object/mergeDeep.js +6 -7
- package/dist/globalization/interfaces/II18nServiceTranslateOption.d.ts +4 -0
- package/dist/globalization/interfaces/{filters/II18nFilterBuilderInfoContainerSelection.js → II18nServiceTranslateOption.js} +0 -0
- package/dist/globalization/interfaces/IResourceI18n.d.ts +18 -14
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilder.d.ts +24 -0
- package/dist/globalization/interfaces/{panel/II18nPanelSizeSubMenu.js → bucket_builder/II18nBucketBuilder.js} +0 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderBasicBucket.d.ts +15 -0
- package/dist/globalization/interfaces/{q/II18nSlidebar.js → bucket_builder/II18nBucketBuilderBasicBucket.js} +0 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderCreateBucket.d.ts +29 -0
- package/dist/globalization/interfaces/{q/II18nSlidebarValueContainer.js → bucket_builder/II18nBucketBuilderCreateBucket.js} +0 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderCustomBucket.d.ts +15 -0
- package/dist/globalization/interfaces/{q/II18nValueContainer.js → bucket_builder/II18nBucketBuilderCustomBucket.js} +0 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderDeleteDialog.d.ts +6 -0
- package/dist/globalization/interfaces/{q/II18nValueContainerSearchInput.js → bucket_builder/II18nBucketBuilderDeleteDialog.js} +0 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderEditDialog.d.ts +6 -0
- package/dist/globalization/interfaces/{q/II18nValueContainerSearchInputEnterValue.js → bucket_builder/II18nBucketBuilderEditDialog.js} +0 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderListBuckets.d.ts +6 -0
- package/dist/{qrvey/interfaces/IAggregate.js → globalization/interfaces/bucket_builder/II18nBucketBuilderListBuckets.js} +0 -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 +12 -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/II18nAgreggateLabels.d.ts +11 -0
- package/dist/globalization/interfaces/common/II18nAgreggateLabels.js +1 -0
- package/dist/globalization/interfaces/common/{II18nCommonChartInfoMessagesCrosstab.d.ts → II18nChartInfoMessagesCrosstab.d.ts} +1 -1
- package/dist/globalization/interfaces/common/II18nChartInfoMessagesCrosstab.js +1 -0
- package/dist/globalization/interfaces/common/{II18nCommonChartInfoMessagesDefault.d.ts → II18nChartInfoMessagesDefault.d.ts} +1 -1
- package/dist/globalization/interfaces/common/II18nChartInfoMessagesDefault.js +1 -0
- package/dist/{cjs/globalization/interfaces/common/II18nCommonChartInfoMessagesTableChart.d.ts → globalization/interfaces/common/II18nChartInfoMessagesTableChart.d.ts} +1 -1
- package/dist/globalization/interfaces/common/II18nChartInfoMessagesTableChart.js +1 -0
- package/dist/globalization/interfaces/common/II18nColumnProperties.d.ts +46 -0
- package/dist/globalization/interfaces/common/II18nColumnProperties.js +1 -0
- package/dist/globalization/interfaces/common/II18nColumnTypes.d.ts +38 -0
- package/dist/globalization/interfaces/common/II18nColumnTypes.js +1 -0
- package/dist/globalization/interfaces/common/II18nColumnTypesSuffixes.d.ts +6 -0
- package/dist/globalization/interfaces/common/II18nColumnTypesSuffixes.js +1 -0
- package/dist/globalization/interfaces/common/II18nCommon.d.ts +14 -6
- package/dist/globalization/interfaces/common/index.d.ts +8 -0
- package/dist/globalization/interfaces/common/index.js +8 -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 +16 -4
- 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/II18nFilterPanelScopeTitle.d.ts +10 -0
- package/dist/globalization/interfaces/filters/II18nFilterPanelScopeTitle.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/II18nFilterValidator.d.ts +23 -0
- package/dist/globalization/interfaces/filters/II18nFilterValidator.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/II18nSlidebar.d.ts +7 -0
- package/dist/globalization/interfaces/filters/II18nSlidebar.js +1 -0
- package/dist/{cjs/globalization/interfaces/q → globalization/interfaces/filters}/II18nValueContainer.d.ts +2 -0
- package/dist/globalization/interfaces/filters/II18nValueContainer.js +1 -0
- package/dist/globalization/interfaces/filters/II18nValueContainerSearchInput.d.ts +6 -0
- package/dist/globalization/interfaces/filters/II18nValueContainerSearchInput.js +1 -0
- package/dist/globalization/interfaces/filters/index.d.ts +22 -2
- package/dist/globalization/interfaces/filters/index.js +22 -2
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilder.d.ts +12 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilder.js +1 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderCreateModal.d.ts +28 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderCreateModal.js +1 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderDeleteDialog.d.ts +7 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderDeleteDialog.js +1 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderFunctionsType.d.ts +7 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderFunctionsType.js +1 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.d.ts +5 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.js +1 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderListTable.d.ts +9 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderListTable.js +1 -0
- package/dist/globalization/interfaces/formula_builder/index.d.ts +6 -0
- package/dist/globalization/interfaces/formula_builder/index.js +6 -0
- package/dist/globalization/interfaces/index.d.ts +6 -1
- package/dist/globalization/interfaces/index.js +6 -1
- package/dist/globalization/interfaces/panel/II18nPanel.d.ts +16 -2
- package/dist/globalization/interfaces/panel/II18nPanelEmbed.d.ts +7 -0
- package/dist/globalization/interfaces/panel/II18nPanelEmbed.js +1 -0
- package/dist/globalization/interfaces/panel/II18nPanelErrors.d.ts +9 -0
- package/dist/globalization/interfaces/panel/II18nPanelErrors.js +1 -0
- package/dist/globalization/interfaces/panel/II18nPanelMenu.d.ts +7 -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/II18nPanelSummarySorting.d.ts +12 -0
- package/dist/globalization/interfaces/panel/II18nPanelSummarySorting.js +1 -0
- package/dist/globalization/interfaces/panel/II18nPanelSummaryViews.d.ts +19 -0
- package/dist/globalization/interfaces/panel/II18nPanelSummaryViews.js +1 -0
- package/dist/globalization/interfaces/panel/index.d.ts +7 -1
- package/dist/globalization/interfaces/panel/index.js +7 -1
- package/dist/globalization/interfaces/table_charts/II18nTableCharts.d.ts +6 -2
- package/dist/globalization/interfaces/table_charts/II18nTableChartsInnerCharts.d.ts +8 -0
- package/dist/globalization/interfaces/table_charts/II18nTableChartsInnerCharts.js +1 -0
- package/dist/globalization/interfaces/table_charts/II18nTableChartsPagination.d.ts +5 -0
- package/dist/globalization/interfaces/table_charts/II18nTableChartsPagination.js +1 -0
- package/dist/globalization/interfaces/table_charts/II18nTableChartsSort.d.ts +3 -0
- package/dist/globalization/interfaces/table_charts/II18nTableChartsSortTooltip.d.ts +1 -0
- package/dist/globalization/interfaces/table_charts/index.d.ts +6 -0
- package/dist/globalization/interfaces/table_charts/index.js +6 -0
- package/dist/globalization/labels/I18N_DEFAULT.js +12 -2
- package/dist/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.d.ts +2 -0
- package/dist/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.js +114 -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_AGGREGATE_LABEL.d.ts +2 -0
- package/dist/globalization/labels/common/I18N_AGGREGATE_LABEL.js +12 -0
- package/dist/globalization/labels/common/I18N_COLUMN_LABEL.d.ts +38 -0
- package/dist/globalization/labels/common/I18N_COLUMN_LABEL.js +39 -0
- package/dist/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.d.ts +2 -0
- package/dist/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.js +47 -0
- package/dist/globalization/labels/common/I18N_COMMON.d.ts +2 -24
- package/dist/globalization/labels/common/I18N_COMMON.js +13 -1
- package/dist/globalization/labels/common/index.d.ts +2 -0
- package/dist/globalization/labels/common/index.js +2 -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 +24 -2
- package/dist/globalization/labels/filters/I18N_FILTER_BUILDER.js +23 -12
- 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_FILTER_VALIDATOR.d.ts +2 -0
- package/dist/globalization/labels/filters/I18N_FILTER_VALIDATOR.js +24 -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_SLIDEBAR.d.ts +2 -0
- package/dist/globalization/labels/{q → filters}/I18N_SLIDEBAR.js +2 -3
- package/dist/globalization/labels/filters/I18N_VALUE_CONTAINER.d.ts +2 -0
- package/dist/globalization/labels/filters/I18N_VALUE_CONTAINER.js +10 -0
- package/dist/globalization/labels/filters/index.d.ts +9 -0
- package/dist/globalization/labels/filters/index.js +9 -0
- package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.d.ts +2 -0
- package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +58 -0
- package/dist/globalization/labels/formula_builder/index.d.ts +1 -0
- package/dist/globalization/labels/formula_builder/index.js +1 -0
- package/dist/globalization/labels/index.d.ts +8 -6
- package/dist/globalization/labels/index.js +8 -6
- package/dist/globalization/labels/panel/I18N_PANEL.js +72 -4
- package/dist/globalization/labels/table_charts/I18N_TABLE_CHARTS.d.ts +2 -18
- package/dist/globalization/labels/table_charts/I18N_TABLE_CHARTS.js +25 -8
- package/dist/globalization/service/i18nextBuilder.d.ts +2 -1
- package/dist/globalization/service/i18nextBuilder.js +4 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/interfaces/Qrvey.Interface.d.ts +0 -10
- package/dist/interfaces/index.d.ts +1 -1
- package/dist/interfaces/index.js +1 -1
- package/dist/qrvey/constants/CALCULATION_INFO_LIST.d.ts +1 -1
- package/dist/qrvey/constants/CALCULATION_INFO_LIST.js +1 -1
- package/dist/qrvey/constants/index.d.ts +1 -4
- package/dist/qrvey/constants/index.js +1 -4
- package/dist/{cjs/columns/interfaces/IColumnCalculationType.d.ts → qrvey/interfaces/ICalculationType.d.ts} +1 -1
- package/dist/qrvey/interfaces/ICalculationType.js +1 -0
- package/dist/qrvey/interfaces/index.d.ts +4 -0
- package/dist/qrvey/interfaces/index.js +4 -0
- package/dist/services/helpers/Request.js +1 -1
- package/package.json +5 -5
- package/src/{qrvey → charts}/constants/AGGREGATE.ts +0 -0
- package/src/{qrvey → charts}/constants/AGGREGATE_ABBREVIATION.ts +0 -0
- package/src/{qrvey → charts}/constants/AGGREGATE_INFO.ts +2 -2
- package/src/{qrvey → charts}/constants/AGGREGATE_INFO_LIST.ts +0 -0
- package/src/charts/constants/AGGREGATE_LABEL.ts +11 -0
- package/src/charts/constants/index.ts +5 -0
- package/src/charts/index.ts +2 -0
- package/src/charts/interfaces/IAggregateAbbreviation.ts +3 -0
- package/src/charts/interfaces/IAggregateInfo.ts +11 -0
- package/src/charts/interfaces/IAggregateLabel.ts +3 -0
- package/src/{qrvey/interfaces/IAggregate.ts → charts/interfaces/IAggregateType.ts} +1 -1
- package/src/charts/interfaces/index.ts +4 -0
- package/src/columns/constants/COLUMN.ts +9 -9
- package/src/columns/constants/COLUMN_INFO.ts +25 -28
- 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/IColumn.ts +3 -3
- package/src/columns/interfaces/IColumnType.ts +2 -1
- package/src/columns/interfaces/INumericalColumnType.ts +4 -0
- package/src/columns/interfaces/index.ts +4 -2
- 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/helpers/common/getFilterColumnLabel.ts +1 -1
- 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/general/object/mergeDeep.ts +7 -8
- package/src/globalization/interfaces/II18nServiceTranslateOption.ts +4 -0
- package/src/globalization/interfaces/IResourceI18n.ts +18 -15
- 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 +29 -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 +12 -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/II18nAgreggateLabels.ts +11 -0
- package/src/globalization/interfaces/common/{II18nCommonChartInfoMessagesCrosstab.ts → II18nChartInfoMessagesCrosstab.ts} +2 -2
- package/src/globalization/interfaces/common/{II18nCommonChartInfoMessagesDefault.ts → II18nChartInfoMessagesDefault.ts} +2 -2
- package/src/globalization/interfaces/common/{II18nCommonChartInfoMessagesTableChart.ts → II18nChartInfoMessagesTableChart.ts} +2 -2
- package/src/globalization/interfaces/common/II18nColumnProperties.ts +52 -0
- package/src/globalization/interfaces/common/II18nColumnTypes.ts +42 -0
- package/src/globalization/interfaces/common/II18nColumnTypesSuffixes.ts +6 -0
- package/src/globalization/interfaces/common/II18nCommon.ts +14 -6
- package/src/globalization/interfaces/common/index.ts +10 -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 +16 -2
- package/src/globalization/interfaces/filters/II18nFilterBuilder.ts +4 -6
- package/src/globalization/interfaces/filters/II18nFilterBuilderColumnSelector.ts +0 -1
- 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/II18nFilterPanelScopeTitle.ts +10 -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/II18nFilterValidator.ts +23 -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/II18nSlidebar.ts +7 -0
- package/src/globalization/interfaces/{q → filters}/II18nValueContainer.ts +2 -0
- package/src/globalization/interfaces/filters/II18nValueContainerSearchInput.ts +6 -0
- package/src/globalization/interfaces/filters/index.ts +25 -2
- package/src/globalization/interfaces/formula_builder/II18nFormulaBuilder.ts +13 -0
- package/src/globalization/interfaces/formula_builder/II18nFormulaBuilderCreateModal.ts +28 -0
- package/src/globalization/interfaces/formula_builder/II18nFormulaBuilderDeleteDialog.ts +7 -0
- package/src/globalization/interfaces/formula_builder/II18nFormulaBuilderFunctionsType.ts +7 -0
- package/src/globalization/interfaces/formula_builder/II18nFormulaBuilderListModal.ts +5 -0
- package/src/globalization/interfaces/formula_builder/II18nFormulaBuilderListTable.ts +9 -0
- package/src/globalization/interfaces/formula_builder/index.ts +6 -0
- package/src/globalization/interfaces/index.ts +6 -1
- package/src/globalization/interfaces/panel/II18nPanel.ts +16 -3
- package/src/globalization/interfaces/panel/II18nPanelEmbed.ts +7 -0
- package/src/globalization/interfaces/panel/II18nPanelErrors.ts +9 -0
- package/src/globalization/interfaces/panel/II18nPanelMenu.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/II18nPanelSummarySorting.ts +12 -0
- package/src/globalization/interfaces/panel/II18nPanelSummaryViews.ts +19 -0
- package/src/globalization/interfaces/panel/index.ts +7 -1
- package/src/globalization/interfaces/table_charts/II18nTableCharts.ts +7 -3
- package/src/globalization/interfaces/table_charts/II18nTableChartsInnerCharts.ts +8 -0
- package/src/globalization/interfaces/table_charts/II18nTableChartsPagination.ts +5 -0
- package/src/globalization/interfaces/table_charts/II18nTableChartsSort.ts +3 -0
- package/src/globalization/interfaces/table_charts/II18nTableChartsSortTooltip.ts +1 -0
- package/src/globalization/interfaces/table_charts/index.ts +6 -0
- package/src/globalization/labels/I18N_DEFAULT.ts +12 -2
- package/src/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.ts +116 -0
- package/src/globalization/labels/bucket_builder/index.ts +1 -0
- package/src/globalization/labels/columns/I18N_COLUMN.ts +1 -1
- package/src/globalization/labels/common/I18N_AGGREGATE_LABEL.ts +14 -0
- package/src/globalization/labels/common/I18N_COLUMN_LABEL.ts +43 -0
- package/src/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.ts +57 -0
- package/src/globalization/labels/common/I18N_COMMON.ts +16 -2
- package/src/globalization/labels/common/index.ts +4 -0
- package/src/globalization/labels/cross_tabs/I18N_CROSS_TABS.ts +13 -0
- package/src/globalization/labels/cross_tabs/index.ts +1 -0
- package/src/globalization/labels/filters/I18N_FILTER.ts +25 -3
- package/src/globalization/labels/filters/I18N_FILTER_BUILDER.ts +23 -12
- 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_FILTER_VALIDATOR.ts +27 -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_SLIDEBAR.ts +9 -0
- package/src/globalization/labels/filters/I18N_VALUE_CONTAINER.ts +12 -0
- package/src/globalization/labels/filters/index.ts +10 -0
- package/src/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.ts +60 -0
- package/src/globalization/labels/formula_builder/index.ts +1 -0
- package/src/globalization/labels/index.ts +8 -7
- package/src/globalization/labels/panel/I18N_PANEL.ts +72 -4
- package/src/globalization/labels/table_charts/I18N_TABLE_CHARTS.ts +28 -9
- package/src/globalization/service/i18nextBuilder.ts +6 -4
- package/src/index.ts +1 -0
- package/src/interfaces/Qrvey.Interface.ts +0 -11
- package/src/interfaces/index.ts +1 -1
- package/src/qrvey/constants/CALCULATION_INFO_LIST.ts +1 -1
- package/src/qrvey/constants/index.ts +1 -4
- package/src/{columns/interfaces/IColumnCalculationType.ts → qrvey/interfaces/ICalculationType.ts} +1 -1
- package/src/qrvey/interfaces/index.ts +5 -1
- package/src/services/helpers/Request.ts +1 -1
- package/dist/cjs/columns/interfaces/IColumnAggregateType.d.ts +0 -2
- package/dist/cjs/globalization/interfaces/filters/II18nFilterBuilderInfoContainerSelection.d.ts +0 -4
- package/dist/cjs/globalization/interfaces/panel/II18nPanelSizeSubMenu.d.ts +0 -5
- package/dist/cjs/globalization/interfaces/q/II18nSlidebar.d.ts +0 -7
- package/dist/cjs/globalization/interfaces/q/II18nSlidebarValueContainer.d.ts +0 -3
- package/dist/cjs/globalization/interfaces/q/II18nValueContainerSearchInput.d.ts +0 -5
- package/dist/cjs/globalization/interfaces/q/II18nValueContainerSearchInputEnterValue.d.ts +0 -5
- package/dist/cjs/globalization/interfaces/q/index.d.ts +0 -5
- package/dist/cjs/globalization/labels/q/I18N_SLIDEBAR.d.ts +0 -2
- package/dist/cjs/globalization/labels/q/I18N_VALUE_CONTAINER.d.ts +0 -2
- package/dist/cjs/globalization/labels/q/index.d.ts +0 -2
- package/dist/cjs/qrvey/constants/AGGREGATE_INFO.d.ts +0 -5
- package/dist/cjs/qrvey/constants/AGGREGATE_INFO_LIST.d.ts +0 -1
- package/dist/cjs/qrvey/constants/AGGREGATE_LABEL.d.ts +0 -11
- package/dist/cjs/qrvey/constants/AGGREGATE_LABEL.js +0 -15
- package/dist/cjs/qrvey/interfaces/IAggregateInfo.d.ts +0 -5
- package/dist/columns/interfaces/IColumnAggregateType.d.ts +0 -2
- package/dist/globalization/interfaces/filters/II18nFilterBuilderInfoContainerSelection.d.ts +0 -4
- package/dist/globalization/interfaces/panel/II18nPanelSizeSubMenu.d.ts +0 -5
- package/dist/globalization/interfaces/q/II18nSlidebar.d.ts +0 -7
- package/dist/globalization/interfaces/q/II18nSlidebarValueContainer.d.ts +0 -3
- package/dist/globalization/interfaces/q/II18nValueContainerSearchInput.d.ts +0 -5
- package/dist/globalization/interfaces/q/II18nValueContainerSearchInputEnterValue.d.ts +0 -5
- package/dist/globalization/interfaces/q/index.d.ts +0 -5
- package/dist/globalization/interfaces/q/index.js +0 -5
- package/dist/globalization/labels/q/I18N_SLIDEBAR.d.ts +0 -2
- package/dist/globalization/labels/q/I18N_VALUE_CONTAINER.d.ts +0 -2
- package/dist/globalization/labels/q/I18N_VALUE_CONTAINER.js +0 -10
- package/dist/globalization/labels/q/index.d.ts +0 -2
- package/dist/globalization/labels/q/index.js +0 -2
- package/dist/qrvey/constants/AGGREGATE_INFO.d.ts +0 -5
- package/dist/qrvey/constants/AGGREGATE_INFO_LIST.d.ts +0 -1
- package/dist/qrvey/constants/AGGREGATE_LABEL.d.ts +0 -11
- package/dist/qrvey/constants/AGGREGATE_LABEL.js +0 -12
- package/dist/qrvey/interfaces/IAggregateInfo.d.ts +0 -5
- package/src/columns/interfaces/IColumnAggregateType.ts +0 -3
- package/src/globalization/interfaces/filters/II18nFilterBuilderInfoContainerSelection.ts +0 -4
- package/src/globalization/interfaces/panel/II18nPanelSizeSubMenu.ts +0 -5
- package/src/globalization/interfaces/q/II18nSlidebar.ts +0 -8
- package/src/globalization/interfaces/q/II18nSlidebarValueContainer.ts +0 -3
- package/src/globalization/interfaces/q/II18nValueContainerSearchInput.ts +0 -6
- package/src/globalization/interfaces/q/II18nValueContainerSearchInputEnterValue.ts +0 -5
- package/src/globalization/interfaces/q/index.ts +0 -5
- package/src/globalization/labels/q/I18N_SLIDEBAR.ts +0 -10
- package/src/globalization/labels/q/I18N_VALUE_CONTAINER.ts +0 -12
- package/src/globalization/labels/q/index.ts +0 -2
- package/src/qrvey/constants/AGGREGATE_LABEL.ts +0 -11
- package/src/qrvey/interfaces/IAggregateInfo.ts +0 -7
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-23*
|
|
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/getDateFormatRegularExpressionInArray.js
|
|
267
253
|
|
|
268
254
|
|
|
255
|
+
#### getDateFormatRegularExpressionInArray(dateFormat)
|
|
269
256
|
|
|
257
|
+
Gets an array of regular expressions by the given date format
|
|
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
|
+
| dateFormat | | the date format | |
|
|
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
|
+
- an array of regular expressions
|
|
304
275
|
|
|
305
276
|
|
|
306
277
|
|
|
307
278
|
|
|
308
|
-
### dist/dates/
|
|
279
|
+
### dist/dates/helpers/getSeparatorByDateFormat.js
|
|
309
280
|
|
|
310
281
|
|
|
311
|
-
####
|
|
282
|
+
#### getSeparatorByDateFormat(format)
|
|
312
283
|
|
|
313
|
-
|
|
284
|
+
Gets the separator of the 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
|
+
| format | | 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
|
+
- a separator string
|
|
350
302
|
|
|
351
303
|
|
|
352
304
|
|
|
353
305
|
|
|
354
|
-
### dist/
|
|
306
|
+
### dist/dates/helpers/getDateFormatByProperty.js
|
|
355
307
|
|
|
356
308
|
|
|
357
|
-
####
|
|
309
|
+
#### getDateFormatByProperty(property)
|
|
358
310
|
|
|
359
|
-
|
|
311
|
+
Gets the date format by the given property
|
|
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
|
+
| property | | The Column Property | |
|
|
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
|
-
-
|
|
328
|
+
- The date format
|
|
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,18 +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/adaptFilterValues.js
|
|
641
599
|
|
|
642
600
|
|
|
643
|
-
####
|
|
601
|
+
#### convertRelativeToAbsolute(args)
|
|
644
602
|
|
|
645
|
-
|
|
646
|
-
Gets an adapted filter value array. Validates the enabled property and sets
|
|
603
|
+
Returns a range object (date) from a group of statement params
|
|
647
604
|
|
|
648
605
|
|
|
649
606
|
|
|
@@ -652,25 +609,45 @@ Gets an adapted filter value array. Validates the enabled property and sets
|
|
|
652
609
|
|
|
653
610
|
| Name | Type | Description | |
|
|
654
611
|
| ---- | ---- | ----------- | -------- |
|
|
655
|
-
|
|
|
612
|
+
| args | `RelativeToAbsoluteStruct` | | |
|
|
613
|
+
|
|
614
|
+
|
|
656
615
|
|
|
657
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
|
+
```
|
|
658
635
|
|
|
659
636
|
|
|
660
637
|
##### Returns
|
|
661
638
|
|
|
662
639
|
|
|
663
|
-
-
|
|
640
|
+
- `string`
|
|
664
641
|
|
|
665
642
|
|
|
666
643
|
|
|
667
644
|
|
|
668
|
-
### dist/
|
|
645
|
+
### dist/dates/relative/relative.js
|
|
669
646
|
|
|
670
647
|
|
|
671
|
-
####
|
|
648
|
+
#### resolveRelative(statements, clock)
|
|
672
649
|
|
|
673
|
-
|
|
650
|
+
Resolve a list of relative statements according to operator
|
|
674
651
|
|
|
675
652
|
|
|
676
653
|
|
|
@@ -679,27 +656,44 @@ Checks and adapts the v2.0 Filter Data Structure to the v2.1
|
|
|
679
656
|
|
|
680
657
|
| Name | Type | Description | |
|
|
681
658
|
| ---- | ---- | ----------- | -------- |
|
|
682
|
-
|
|
|
683
|
-
|
|
|
684
|
-
|
|
659
|
+
| statements | `Array.<RelativeStatement>` `Array.<string>` | - Raw statements/values | |
|
|
660
|
+
| clock | `Date` | - Clock/time reference for relative date resolution | |
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
##### Examples
|
|
685
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
|
+
}
|
|
686
677
|
|
|
678
|
+
Output:
|
|
679
|
+
{ gte: "03/06/2021 00:00:00", lte: "03/05/2022 23:59:59" }
|
|
680
|
+
```
|
|
687
681
|
|
|
688
682
|
|
|
689
683
|
##### Returns
|
|
690
684
|
|
|
691
685
|
|
|
692
|
-
-
|
|
686
|
+
- `Array.<AbsoluteRange>` `Array.<string>`
|
|
693
687
|
|
|
694
688
|
|
|
695
689
|
|
|
696
690
|
|
|
697
|
-
### dist/filters/adapters/
|
|
691
|
+
### dist/filters/adapters/FDToFlatUI.js
|
|
698
692
|
|
|
699
693
|
|
|
700
|
-
####
|
|
694
|
+
#### FDToFlatUI(filterData, datasetsInfo)
|
|
701
695
|
|
|
702
|
-
Generates a filter
|
|
696
|
+
Generates a Flattened UI filter structure from Filter Data structure.
|
|
703
697
|
|
|
704
698
|
|
|
705
699
|
|
|
@@ -708,8 +702,8 @@ Generates a filter data structure from the flatttened UI filters.
|
|
|
708
702
|
|
|
709
703
|
| Name | Type | Description | |
|
|
710
704
|
| ---- | ---- | ----------- | -------- |
|
|
711
|
-
|
|
|
712
|
-
|
|
|
705
|
+
| filterData | | The filter data object. | |
|
|
706
|
+
| datasetsInfo | | Collection of datasets information | |
|
|
713
707
|
|
|
714
708
|
|
|
715
709
|
|
|
@@ -717,14 +711,13 @@ Generates a filter data structure from the flatttened UI filters.
|
|
|
717
711
|
##### Returns
|
|
718
712
|
|
|
719
713
|
|
|
720
|
-
- a
|
|
714
|
+
- a flattened UI filters array
|
|
721
715
|
|
|
722
716
|
|
|
723
717
|
|
|
724
|
-
####
|
|
718
|
+
#### FD21ToFlatUI(scopes, datasetsInfo)
|
|
725
719
|
|
|
726
|
-
|
|
727
|
-
Also, adds and organizes filters by datasets
|
|
720
|
+
Generates a Filter Builder Structure from the Filter Data structure v2.1
|
|
728
721
|
|
|
729
722
|
|
|
730
723
|
|
|
@@ -733,7 +726,8 @@ Also, adds and organizes filters by datasets
|
|
|
733
726
|
|
|
734
727
|
| Name | Type | Description | |
|
|
735
728
|
| ---- | ---- | ----------- | -------- |
|
|
736
|
-
|
|
|
729
|
+
| scopes | | The filter scope section | |
|
|
730
|
+
| datasetsInfo | | Collection of datasets information | |
|
|
737
731
|
|
|
738
732
|
|
|
739
733
|
|
|
@@ -741,13 +735,17 @@ Also, adds and organizes filters by datasets
|
|
|
741
735
|
##### Returns
|
|
742
736
|
|
|
743
737
|
|
|
744
|
-
-
|
|
738
|
+
- a flattened UI filters array
|
|
745
739
|
|
|
746
740
|
|
|
747
741
|
|
|
748
|
-
#### buildScope(uFilter)
|
|
749
742
|
|
|
750
|
-
|
|
743
|
+
### dist/filters/adapters/FDToLogic.js
|
|
744
|
+
|
|
745
|
+
|
|
746
|
+
#### FDToLogic(filterData)
|
|
747
|
+
|
|
748
|
+
Generates a Filter Logic structure from Filter Data structure.
|
|
751
749
|
|
|
752
750
|
|
|
753
751
|
|
|
@@ -756,7 +754,7 @@ Gets an scope structure for the filter data
|
|
|
756
754
|
|
|
757
755
|
| Name | Type | Description | |
|
|
758
756
|
| ---- | ---- | ----------- | -------- |
|
|
759
|
-
|
|
|
757
|
+
| filterData | | The filter data object. | |
|
|
760
758
|
|
|
761
759
|
|
|
762
760
|
|
|
@@ -764,13 +762,13 @@ Gets an scope structure for the filter data
|
|
|
764
762
|
##### Returns
|
|
765
763
|
|
|
766
764
|
|
|
767
|
-
-
|
|
765
|
+
- a filter logic array
|
|
768
766
|
|
|
769
767
|
|
|
770
768
|
|
|
771
|
-
####
|
|
769
|
+
#### getLogicBodyFromFD21(filterData)
|
|
772
770
|
|
|
773
|
-
Gets
|
|
771
|
+
Gets the logic body
|
|
774
772
|
|
|
775
773
|
|
|
776
774
|
|
|
@@ -779,7 +777,7 @@ Gets an dataset structure for the filter data
|
|
|
779
777
|
|
|
780
778
|
| Name | Type | Description | |
|
|
781
779
|
| ---- | ---- | ----------- | -------- |
|
|
782
|
-
|
|
|
780
|
+
| filterData | | The filter data object | |
|
|
783
781
|
|
|
784
782
|
|
|
785
783
|
|
|
@@ -787,13 +785,17 @@ Gets an dataset structure for the filter data
|
|
|
787
785
|
##### Returns
|
|
788
786
|
|
|
789
787
|
|
|
790
|
-
-
|
|
788
|
+
- a filter logic array
|
|
791
789
|
|
|
792
790
|
|
|
793
791
|
|
|
794
|
-
#### buildFilter(uFilter)
|
|
795
792
|
|
|
796
|
-
|
|
793
|
+
### dist/filters/adapters/FDToUI.js
|
|
794
|
+
|
|
795
|
+
|
|
796
|
+
#### FDToUI(filterData, datasetsInfo)
|
|
797
|
+
|
|
798
|
+
Generates a UI filter structure from Filter Data structure.
|
|
797
799
|
|
|
798
800
|
|
|
799
801
|
|
|
@@ -802,7 +804,8 @@ Gets an filter structure for the filter data
|
|
|
802
804
|
|
|
803
805
|
| Name | Type | Description | |
|
|
804
806
|
| ---- | ---- | ----------- | -------- |
|
|
805
|
-
|
|
|
807
|
+
| filterData | | The filter data object. | |
|
|
808
|
+
| datasetsInfo | | Collection of datasets information | |
|
|
806
809
|
|
|
807
810
|
|
|
808
811
|
|
|
@@ -810,17 +813,13 @@ Gets an filter structure for the filter data
|
|
|
810
813
|
##### Returns
|
|
811
814
|
|
|
812
815
|
|
|
813
|
-
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
816
|
+
- a UI Filters structure
|
|
817
817
|
|
|
818
|
-
### dist/filters/adapters/flatUIToLogic.js
|
|
819
818
|
|
|
820
819
|
|
|
821
|
-
####
|
|
820
|
+
#### FD21ToUI(scopes, section, version, datasetsInfo)
|
|
822
821
|
|
|
823
|
-
Generates a
|
|
822
|
+
Generates a UI filter Structure from the Filter Data structure v2.1
|
|
824
823
|
|
|
825
824
|
|
|
826
825
|
|
|
@@ -829,7 +828,10 @@ Generates a Logic structure from flattened UI filters
|
|
|
829
828
|
|
|
830
829
|
| Name | Type | Description | |
|
|
831
830
|
| ---- | ---- | ----------- | -------- |
|
|
832
|
-
|
|
|
831
|
+
| scopes | | The filter scope section | |
|
|
832
|
+
| section | | The filter section. | |
|
|
833
|
+
| version | | The version of the filter structure | |
|
|
834
|
+
| datasetsInfo | | Collection of datasets information | |
|
|
833
835
|
|
|
834
836
|
|
|
835
837
|
|
|
@@ -837,17 +839,17 @@ Generates a Logic structure from flattened UI filters
|
|
|
837
839
|
##### Returns
|
|
838
840
|
|
|
839
841
|
|
|
840
|
-
-
|
|
842
|
+
- a UI filter Structure
|
|
841
843
|
|
|
842
844
|
|
|
843
845
|
|
|
844
846
|
|
|
845
|
-
### dist/filters/adapters/
|
|
847
|
+
### dist/filters/adapters/UIToFD.js
|
|
846
848
|
|
|
847
849
|
|
|
848
|
-
####
|
|
850
|
+
#### UIToFD(filterData)
|
|
849
851
|
|
|
850
|
-
Generates a
|
|
852
|
+
Generates a Filter Data Structure structure from UI Filter Data structure.
|
|
851
853
|
|
|
852
854
|
|
|
853
855
|
|
|
@@ -856,7 +858,7 @@ Generates a Logic structure from flattened UI filters
|
|
|
856
858
|
|
|
857
859
|
| Name | Type | Description | |
|
|
858
860
|
| ---- | ---- | ----------- | -------- |
|
|
859
|
-
|
|
|
861
|
+
| filterData | | The UI filter data object. | |
|
|
860
862
|
|
|
861
863
|
|
|
862
864
|
|
|
@@ -864,17 +866,13 @@ Generates a Logic structure from flattened UI filters
|
|
|
864
866
|
##### Returns
|
|
865
867
|
|
|
866
868
|
|
|
867
|
-
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
869
|
+
- a Filter Data structure
|
|
871
870
|
|
|
872
|
-
### dist/filters/adapters/flatUIToUI.js
|
|
873
871
|
|
|
874
872
|
|
|
875
|
-
####
|
|
873
|
+
#### UI21ToFD(uFilterData, version)
|
|
876
874
|
|
|
877
|
-
|
|
875
|
+
Builds the Fitler Data structure from UI filter data
|
|
878
876
|
|
|
879
877
|
|
|
880
878
|
|
|
@@ -883,8 +881,8 @@ Generates a UI filter data structure from the flatttened UI filters.
|
|
|
883
881
|
|
|
884
882
|
| Name | Type | Description | |
|
|
885
883
|
| ---- | ---- | ----------- | -------- |
|
|
886
|
-
|
|
|
887
|
-
| version | |
|
|
884
|
+
| uFilterData | | The UI filter Data object | |
|
|
885
|
+
| version | | the version of the structure | |
|
|
888
886
|
|
|
889
887
|
|
|
890
888
|
|
|
@@ -892,14 +890,17 @@ Generates a UI filter data structure from the flatttened UI filters.
|
|
|
892
890
|
##### Returns
|
|
893
891
|
|
|
894
892
|
|
|
895
|
-
-
|
|
893
|
+
-
|
|
896
894
|
|
|
897
895
|
|
|
898
896
|
|
|
899
|
-
#### buildScopes(fbFilters)
|
|
900
897
|
|
|
901
|
-
|
|
902
|
-
|
|
898
|
+
### dist/filters/adapters/UIToFlatUI.js
|
|
899
|
+
|
|
900
|
+
|
|
901
|
+
#### UIToFlatUI(filterData, datasetsInfo)
|
|
902
|
+
|
|
903
|
+
Generates a Flattened UI filter structure from UI Filter Data structure.
|
|
903
904
|
|
|
904
905
|
|
|
905
906
|
|
|
@@ -908,7 +909,8 @@ Also, adds and organizes filters by datasets
|
|
|
908
909
|
|
|
909
910
|
| Name | Type | Description | |
|
|
910
911
|
| ---- | ---- | ----------- | -------- |
|
|
911
|
-
|
|
|
912
|
+
| filterData | | The UI filter data object. | |
|
|
913
|
+
| datasetsInfo | | Collection of datasets information. Optional for updating the datasets info | |
|
|
912
914
|
|
|
913
915
|
|
|
914
916
|
|
|
@@ -916,13 +918,13 @@ Also, adds and organizes filters by datasets
|
|
|
916
918
|
##### Returns
|
|
917
919
|
|
|
918
920
|
|
|
919
|
-
-
|
|
921
|
+
- a flattened UI filters array
|
|
920
922
|
|
|
921
923
|
|
|
922
924
|
|
|
923
|
-
####
|
|
925
|
+
#### UI21ToFlatUI(scopes)
|
|
924
926
|
|
|
925
|
-
|
|
927
|
+
Generates a Flattened UI Filter Structure from the UI Filter Data structure v2.1
|
|
926
928
|
|
|
927
929
|
|
|
928
930
|
|
|
@@ -931,7 +933,7 @@ Gets an scope structure for the UI filter data
|
|
|
931
933
|
|
|
932
934
|
| Name | Type | Description | |
|
|
933
935
|
| ---- | ---- | ----------- | -------- |
|
|
934
|
-
|
|
|
936
|
+
| scopes | | The filter scope section | |
|
|
935
937
|
|
|
936
938
|
|
|
937
939
|
|
|
@@ -939,13 +941,18 @@ Gets an scope structure for the UI filter data
|
|
|
939
941
|
##### Returns
|
|
940
942
|
|
|
941
943
|
|
|
942
|
-
-
|
|
944
|
+
- a flattened UI filters array
|
|
943
945
|
|
|
944
946
|
|
|
945
947
|
|
|
946
|
-
#### buildDataset(uFilter)
|
|
947
948
|
|
|
948
|
-
|
|
949
|
+
### dist/filters/adapters/adaptDateGroupingProperty.js
|
|
950
|
+
|
|
951
|
+
|
|
952
|
+
#### adaptDateGroupingProperty(property)
|
|
953
|
+
|
|
954
|
+
[TODO: For 2022, eliminate this adapter]
|
|
955
|
+
Get the new property base on the old date grouping properties
|
|
949
956
|
|
|
950
957
|
|
|
951
958
|
|
|
@@ -954,7 +961,7 @@ Gets an dataset structure for the UI filter data
|
|
|
954
961
|
|
|
955
962
|
| Name | Type | Description | |
|
|
956
963
|
| ---- | ---- | ----------- | -------- |
|
|
957
|
-
|
|
|
964
|
+
| property | | | |
|
|
958
965
|
|
|
959
966
|
|
|
960
967
|
|
|
@@ -962,13 +969,17 @@ Gets an dataset structure for the UI filter data
|
|
|
962
969
|
##### Returns
|
|
963
970
|
|
|
964
971
|
|
|
965
|
-
-
|
|
972
|
+
-
|
|
966
973
|
|
|
967
974
|
|
|
968
975
|
|
|
969
|
-
#### buildFilter(uFilter)
|
|
970
976
|
|
|
971
|
-
|
|
977
|
+
### dist/filters/adapters/adaptFilterData.js
|
|
978
|
+
|
|
979
|
+
|
|
980
|
+
#### adaptFilterData(filterData, getUIFilterData, datasetsInfo)
|
|
981
|
+
|
|
982
|
+
Checks and adapts the v2.0 Filter Data Structure to the v2.1
|
|
972
983
|
|
|
973
984
|
|
|
974
985
|
|
|
@@ -977,7 +988,9 @@ Gets an filter structure for the UI filter data
|
|
|
977
988
|
|
|
978
989
|
| Name | Type | Description | |
|
|
979
990
|
| ---- | ---- | ----------- | -------- |
|
|
980
|
-
|
|
|
991
|
+
| filterData | | The filter data structure. Accepts both v2.1 or v2.0 | |
|
|
992
|
+
| getUIFilterData | | Flag to get a Filter Data (False) or the UI Filter Data (True) | |
|
|
993
|
+
| datasetsInfo | | Collection of datasets information. If getUIFilterData is true, the datasetsInfo should be mandatory | |
|
|
981
994
|
|
|
982
995
|
|
|
983
996
|
|
|
@@ -985,17 +998,17 @@ Gets an filter structure for the UI filter data
|
|
|
985
998
|
##### Returns
|
|
986
999
|
|
|
987
1000
|
|
|
988
|
-
-
|
|
1001
|
+
- A new filter data structure v2.1
|
|
989
1002
|
|
|
990
1003
|
|
|
991
1004
|
|
|
992
1005
|
|
|
993
|
-
### dist/filters/adapters/
|
|
1006
|
+
### dist/filters/adapters/flatUIToFD.js
|
|
994
1007
|
|
|
995
1008
|
|
|
996
|
-
####
|
|
1009
|
+
#### flatUIToFD(uFilters, version)
|
|
997
1010
|
|
|
998
|
-
Generates a filter data structure from the
|
|
1011
|
+
Generates a filter data structure from the flatttened UI filters.
|
|
999
1012
|
|
|
1000
1013
|
|
|
1001
1014
|
|
|
@@ -1004,7 +1017,7 @@ Generates a filter data structure from the old logic structure (v2.0).
|
|
|
1004
1017
|
|
|
1005
1018
|
| Name | Type | Description | |
|
|
1006
1019
|
| ---- | ---- | ----------- | -------- |
|
|
1007
|
-
|
|
|
1020
|
+
| uFilters | | Array of flattened filters from UI | |
|
|
1008
1021
|
| version | | Tag for the version of the filter data structure | |
|
|
1009
1022
|
|
|
1010
1023
|
|
|
@@ -1017,13 +1030,10 @@ Generates a filter data structure from the old logic structure (v2.0).
|
|
|
1017
1030
|
|
|
1018
1031
|
|
|
1019
1032
|
|
|
1033
|
+
#### buildScopes(fbFilters)
|
|
1020
1034
|
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
#### logicToFlatUI(logics)
|
|
1025
|
-
|
|
1026
|
-
Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
|
|
1035
|
+
Gets an array of scopes structure for the filter data. The scopes is organized by scope types and scope IDs
|
|
1036
|
+
Also, adds and organizes filters by datasets
|
|
1027
1037
|
|
|
1028
1038
|
|
|
1029
1039
|
|
|
@@ -1032,7 +1042,7 @@ Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
|
|
|
1032
1042
|
|
|
1033
1043
|
| Name | Type | Description | |
|
|
1034
1044
|
| ---- | ---- | ----------- | -------- |
|
|
1035
|
-
|
|
|
1045
|
+
| fbFilters | | Array of flat filters from UI | |
|
|
1036
1046
|
|
|
1037
1047
|
|
|
1038
1048
|
|
|
@@ -1040,13 +1050,13 @@ Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
|
|
|
1040
1050
|
##### Returns
|
|
1041
1051
|
|
|
1042
1052
|
|
|
1043
|
-
-
|
|
1053
|
+
- an array of scopes structure.
|
|
1044
1054
|
|
|
1045
1055
|
|
|
1046
1056
|
|
|
1047
|
-
####
|
|
1057
|
+
#### buildScope(uFilter)
|
|
1048
1058
|
|
|
1049
|
-
|
|
1059
|
+
Gets an scope structure for the filter data
|
|
1050
1060
|
|
|
1051
1061
|
|
|
1052
1062
|
|
|
@@ -1055,9 +1065,7 @@ 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
|
-
| filter | | The old logic structure filter | |
|
|
1060
|
-
| getIndex | | Determines if the index or returns the UI filter object | |
|
|
1068
|
+
| uFilter | | UI structure filter | |
|
|
1061
1069
|
|
|
1062
1070
|
|
|
1063
1071
|
|
|
@@ -1065,13 +1073,13 @@ Get the filter or the index of the given array, validating an old filter structu
|
|
|
1065
1073
|
##### Returns
|
|
1066
1074
|
|
|
1067
1075
|
|
|
1068
|
-
-
|
|
1076
|
+
- an scope structure
|
|
1069
1077
|
|
|
1070
1078
|
|
|
1071
1079
|
|
|
1072
|
-
####
|
|
1080
|
+
#### buildDataset(uFilter)
|
|
1073
1081
|
|
|
1074
|
-
|
|
1082
|
+
Gets an dataset structure for the filter data
|
|
1075
1083
|
|
|
1076
1084
|
|
|
1077
1085
|
|
|
@@ -1080,8 +1088,7 @@ Refines the values of the Ranking column type.
|
|
|
1080
1088
|
|
|
1081
1089
|
| Name | Type | Description | |
|
|
1082
1090
|
| ---- | ---- | ----------- | -------- |
|
|
1083
|
-
|
|
|
1084
|
-
| uiValues | | Object with additional info about the values of the filter. | |
|
|
1091
|
+
| uFilter | | a UI structure filter | |
|
|
1085
1092
|
|
|
1086
1093
|
|
|
1087
1094
|
|
|
@@ -1089,17 +1096,13 @@ Refines the values of the Ranking column type.
|
|
|
1089
1096
|
##### Returns
|
|
1090
1097
|
|
|
1091
1098
|
|
|
1092
|
-
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1099
|
+
- an dataset structure
|
|
1096
1100
|
|
|
1097
|
-
### dist/filters/adapters/logicToUI.js
|
|
1098
1101
|
|
|
1099
1102
|
|
|
1100
|
-
####
|
|
1103
|
+
#### buildFilter(uFilter)
|
|
1101
1104
|
|
|
1102
|
-
|
|
1105
|
+
Gets an filter structure for the filter data
|
|
1103
1106
|
|
|
1104
1107
|
|
|
1105
1108
|
|
|
@@ -1108,8 +1111,7 @@ Generates a UI filter structure from the old logic structure (v2.0).
|
|
|
1108
1111
|
|
|
1109
1112
|
| Name | Type | Description | |
|
|
1110
1113
|
| ---- | ---- | ----------- | -------- |
|
|
1111
|
-
|
|
|
1112
|
-
| datasetsInfo | | Collection of datasets information | |
|
|
1114
|
+
| uFilter | | a UI structure filter | |
|
|
1113
1115
|
|
|
1114
1116
|
|
|
1115
1117
|
|
|
@@ -1117,17 +1119,18 @@ Generates a UI filter structure from the old logic structure (v2.0).
|
|
|
1117
1119
|
##### Returns
|
|
1118
1120
|
|
|
1119
1121
|
|
|
1120
|
-
-
|
|
1122
|
+
- an filter structure
|
|
1121
1123
|
|
|
1122
1124
|
|
|
1123
1125
|
|
|
1124
1126
|
|
|
1125
|
-
### dist/filters/adapters/
|
|
1127
|
+
### dist/filters/adapters/adaptFilterValues.js
|
|
1126
1128
|
|
|
1127
1129
|
|
|
1128
|
-
####
|
|
1130
|
+
#### adaptFilterValues(filter)
|
|
1129
1131
|
|
|
1130
|
-
|
|
1132
|
+
[TODO: For 2022, eliminate this adapter]
|
|
1133
|
+
Gets an adapted filter value array. Validates the enabled property and sets
|
|
1131
1134
|
|
|
1132
1135
|
|
|
1133
1136
|
|
|
@@ -1136,77 +1139,25 @@ Transform the old filters structure into the new one
|
|
|
1136
1139
|
|
|
1137
1140
|
| Name | Type | Description | |
|
|
1138
1141
|
| ---- | ---- | ----------- | -------- |
|
|
1139
|
-
|
|
|
1140
|
-
| section | `String` | could be 'ANALYZE', 'PB', 'UM' or any other value. Deafult is 'ANYWHERE' | |
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
##### Examples
|
|
1146
|
-
|
|
1147
|
-
```javascript
|
|
1142
|
+
| filter | | The filter | |
|
|
1148
1143
|
|
|
1149
|
-
const oldPreferenceFilters = {
|
|
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
|
-
};
|
|
1191
1144
|
|
|
1192
|
-
const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
|
|
1193
|
-
```
|
|
1194
1145
|
|
|
1195
1146
|
|
|
1196
1147
|
##### Returns
|
|
1197
1148
|
|
|
1198
1149
|
|
|
1199
|
-
-
|
|
1150
|
+
- A new value array with the filled properties.
|
|
1200
1151
|
|
|
1201
1152
|
|
|
1202
1153
|
|
|
1203
1154
|
|
|
1204
|
-
### dist/filters/
|
|
1155
|
+
### dist/filters/adapters/flatUIToLogic.js
|
|
1205
1156
|
|
|
1206
1157
|
|
|
1207
|
-
####
|
|
1158
|
+
#### flatUIToLogic(uFilter)
|
|
1208
1159
|
|
|
1209
|
-
|
|
1160
|
+
Generates a Logic structure from flattened UI filters
|
|
1210
1161
|
|
|
1211
1162
|
|
|
1212
1163
|
|
|
@@ -1215,9 +1166,7 @@ const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
|
|
|
1215
1166
|
|
|
1216
1167
|
| Name | Type | Description | |
|
|
1217
1168
|
| ---- | ---- | ----------- | -------- |
|
|
1218
|
-
|
|
|
1219
|
-
| scopes | | | |
|
|
1220
|
-
| currentScope | | | |
|
|
1169
|
+
| uFilter | | Array of flat filters from UI | |
|
|
1221
1170
|
|
|
1222
1171
|
|
|
1223
1172
|
|
|
@@ -1225,17 +1174,17 @@ const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
|
|
|
1225
1174
|
##### Returns
|
|
1226
1175
|
|
|
1227
1176
|
|
|
1228
|
-
-
|
|
1177
|
+
- The logic structure
|
|
1229
1178
|
|
|
1230
1179
|
|
|
1231
1180
|
|
|
1232
1181
|
|
|
1233
|
-
### dist/filters/
|
|
1182
|
+
### dist/filters/adapters/flatUIToOldLogic.js
|
|
1234
1183
|
|
|
1235
1184
|
|
|
1236
|
-
####
|
|
1185
|
+
#### flatUIToOldLogic(uFilters)
|
|
1237
1186
|
|
|
1238
|
-
|
|
1187
|
+
Generates a Logic structure from flattened UI filters
|
|
1239
1188
|
|
|
1240
1189
|
|
|
1241
1190
|
|
|
@@ -1244,7 +1193,7 @@ Gets Scopes/Scope IDs by given IDs
|
|
|
1244
1193
|
|
|
1245
1194
|
| Name | Type | Description | |
|
|
1246
1195
|
| ---- | ---- | ----------- | -------- |
|
|
1247
|
-
|
|
|
1196
|
+
| uFilters | | Array of flat filters from UI | |
|
|
1248
1197
|
|
|
1249
1198
|
|
|
1250
1199
|
|
|
@@ -1252,17 +1201,17 @@ Gets Scopes/Scope IDs by given IDs
|
|
|
1252
1201
|
##### Returns
|
|
1253
1202
|
|
|
1254
1203
|
|
|
1255
|
-
-
|
|
1204
|
+
- The logic structure
|
|
1256
1205
|
|
|
1257
1206
|
|
|
1258
1207
|
|
|
1259
1208
|
|
|
1260
|
-
### dist/filters/
|
|
1209
|
+
### dist/filters/adapters/flatUIToUI.js
|
|
1261
1210
|
|
|
1262
1211
|
|
|
1263
|
-
####
|
|
1212
|
+
#### flatUIToUI(uFilters, version)
|
|
1264
1213
|
|
|
1265
|
-
|
|
1214
|
+
Generates a UI filter data structure from the flatttened UI filters.
|
|
1266
1215
|
|
|
1267
1216
|
|
|
1268
1217
|
|
|
@@ -1271,7 +1220,8 @@ Gets the Scopes IDS for the Available Scope function by any config
|
|
|
1271
1220
|
|
|
1272
1221
|
| Name | Type | Description | |
|
|
1273
1222
|
| ---- | ---- | ----------- | -------- |
|
|
1274
|
-
|
|
|
1223
|
+
| uFilters | | Array of flattened filters from UI | |
|
|
1224
|
+
| version | | Tag for the version of the filter data structure | |
|
|
1275
1225
|
|
|
1276
1226
|
|
|
1277
1227
|
|
|
@@ -1279,17 +1229,14 @@ Gets the Scopes IDS for the Available Scope function by any config
|
|
|
1279
1229
|
##### Returns
|
|
1280
1230
|
|
|
1281
1231
|
|
|
1282
|
-
- a
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1232
|
+
- a UI Filter Data.
|
|
1286
1233
|
|
|
1287
|
-
### dist/filters/helpers/getScopesByHierarchy.js
|
|
1288
1234
|
|
|
1289
1235
|
|
|
1290
|
-
####
|
|
1236
|
+
#### buildScopes(fbFilters)
|
|
1291
1237
|
|
|
1292
|
-
|
|
1238
|
+
Gets an array of scopes structure for the UI filter data. The scopes is organized by scope types and scope IDs
|
|
1239
|
+
Also, adds and organizes filters by datasets
|
|
1293
1240
|
|
|
1294
1241
|
|
|
1295
1242
|
|
|
@@ -1298,8 +1245,7 @@ Gets the Scopes IDS for the Available Scope function by any config
|
|
|
1298
1245
|
|
|
1299
1246
|
| Name | Type | Description | |
|
|
1300
1247
|
| ---- | ---- | ----------- | -------- |
|
|
1301
|
-
|
|
|
1302
|
-
| currentScope | | Current scope type | |
|
|
1248
|
+
| fbFilters | | Array of flat filters from UI | |
|
|
1303
1249
|
|
|
1304
1250
|
|
|
1305
1251
|
|
|
@@ -1307,17 +1253,13 @@ Gets the Scopes IDS for the Available Scope function by any config
|
|
|
1307
1253
|
##### Returns
|
|
1308
1254
|
|
|
1309
1255
|
|
|
1310
|
-
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1256
|
+
- an array of scopes structure.
|
|
1314
1257
|
|
|
1315
|
-
### dist/general/array/delete.js
|
|
1316
1258
|
|
|
1317
1259
|
|
|
1318
|
-
####
|
|
1260
|
+
#### buildScope(uFilter)
|
|
1319
1261
|
|
|
1320
|
-
|
|
1262
|
+
Gets an scope structure for the UI filter data
|
|
1321
1263
|
|
|
1322
1264
|
|
|
1323
1265
|
|
|
@@ -1326,8 +1268,7 @@ Inmutable Array Item deletion
|
|
|
1326
1268
|
|
|
1327
1269
|
| Name | Type | Description | |
|
|
1328
1270
|
| ---- | ---- | ----------- | -------- |
|
|
1329
|
-
|
|
|
1330
|
-
| index | `Number` | the position of the item to delete | |
|
|
1271
|
+
| uFilter | | UI structure filter | |
|
|
1331
1272
|
|
|
1332
1273
|
|
|
1333
1274
|
|
|
@@ -1335,20 +1276,13 @@ Inmutable Array Item deletion
|
|
|
1335
1276
|
##### Returns
|
|
1336
1277
|
|
|
1337
1278
|
|
|
1338
|
-
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1279
|
+
- an scope structure
|
|
1342
1280
|
|
|
1343
|
-
### dist/general/array/filterNestedTree.js
|
|
1344
1281
|
|
|
1345
1282
|
|
|
1346
|
-
####
|
|
1283
|
+
#### buildDataset(uFilter)
|
|
1347
1284
|
|
|
1348
|
-
|
|
1349
|
-
- If the given arguments are not valid, the function returns the first argument.
|
|
1350
|
-
- If the childArrKey is not matched in the object, the condition tries to resolve the filter anyway and returns an empty array.
|
|
1351
|
-
- If the condition is not fulfilled, the function returns a filtered array, probably a empty array inside of the child array
|
|
1285
|
+
Gets an dataset structure for the UI filter data
|
|
1352
1286
|
|
|
1353
1287
|
|
|
1354
1288
|
|
|
@@ -1357,9 +1291,7 @@ Filters a nested tree array by a custom condition on the last child node
|
|
|
1357
1291
|
|
|
1358
1292
|
| Name | Type | Description | |
|
|
1359
1293
|
| ---- | ---- | ----------- | -------- |
|
|
1360
|
-
|
|
|
1361
|
-
| childArrKey | | property representing the children array on the nested tree | |
|
|
1362
|
-
| condition | | function callback that determines if the filter is applied on the last child node of the nested tree | |
|
|
1294
|
+
| uFilter | | a UI structure filter | |
|
|
1363
1295
|
|
|
1364
1296
|
|
|
1365
1297
|
|
|
@@ -1367,17 +1299,13 @@ Filters a nested tree array by a custom condition on the last child node
|
|
|
1367
1299
|
##### Returns
|
|
1368
1300
|
|
|
1369
1301
|
|
|
1370
|
-
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1302
|
+
- an dataset structure
|
|
1374
1303
|
|
|
1375
|
-
### dist/general/array/flattenDeep.js
|
|
1376
1304
|
|
|
1377
1305
|
|
|
1378
|
-
####
|
|
1306
|
+
#### buildFilter(uFilter)
|
|
1379
1307
|
|
|
1380
|
-
|
|
1308
|
+
Gets an filter structure for the UI filter data
|
|
1381
1309
|
|
|
1382
1310
|
|
|
1383
1311
|
|
|
@@ -1386,7 +1314,7 @@ Flat deeply an array
|
|
|
1386
1314
|
|
|
1387
1315
|
| Name | Type | Description | |
|
|
1388
1316
|
| ---- | ---- | ----------- | -------- |
|
|
1389
|
-
|
|
|
1317
|
+
| uFilter | | a UI structure filter | |
|
|
1390
1318
|
|
|
1391
1319
|
|
|
1392
1320
|
|
|
@@ -1394,17 +1322,17 @@ Flat deeply an array
|
|
|
1394
1322
|
##### Returns
|
|
1395
1323
|
|
|
1396
1324
|
|
|
1397
|
-
-
|
|
1325
|
+
- an filter structure
|
|
1398
1326
|
|
|
1399
1327
|
|
|
1400
1328
|
|
|
1401
1329
|
|
|
1402
|
-
### dist/
|
|
1330
|
+
### dist/filters/adapters/logicToFD.js
|
|
1403
1331
|
|
|
1404
1332
|
|
|
1405
|
-
####
|
|
1333
|
+
#### logicToFD(filterData, version)
|
|
1406
1334
|
|
|
1407
|
-
|
|
1335
|
+
Generates a filter data structure from the old logic structure (v2.0).
|
|
1408
1336
|
|
|
1409
1337
|
|
|
1410
1338
|
|
|
@@ -1413,8 +1341,8 @@ Gets the first index from the array by a callback condition
|
|
|
1413
1341
|
|
|
1414
1342
|
| Name | Type | Description | |
|
|
1415
1343
|
| ---- | ---- | ----------- | -------- |
|
|
1416
|
-
|
|
|
1417
|
-
|
|
|
1344
|
+
| filterData | | The old filter data structure with logic (v2.0) | |
|
|
1345
|
+
| version | | Tag for the version of the filter data structure | |
|
|
1418
1346
|
|
|
1419
1347
|
|
|
1420
1348
|
|
|
@@ -1422,17 +1350,17 @@ Gets the first index from the array by a callback condition
|
|
|
1422
1350
|
##### Returns
|
|
1423
1351
|
|
|
1424
1352
|
|
|
1425
|
-
-
|
|
1353
|
+
- a Filter Data.
|
|
1426
1354
|
|
|
1427
1355
|
|
|
1428
1356
|
|
|
1429
1357
|
|
|
1430
|
-
### dist/
|
|
1358
|
+
### dist/filters/adapters/logicToFlatUI.js
|
|
1431
1359
|
|
|
1432
1360
|
|
|
1433
|
-
####
|
|
1361
|
+
#### logicToFlatUI(logics)
|
|
1434
1362
|
|
|
1435
|
-
|
|
1363
|
+
Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
|
|
1436
1364
|
|
|
1437
1365
|
|
|
1438
1366
|
|
|
@@ -1441,8 +1369,7 @@ Gets the last index from the array by a callback condition
|
|
|
1441
1369
|
|
|
1442
1370
|
| Name | Type | Description | |
|
|
1443
1371
|
| ---- | ---- | ----------- | -------- |
|
|
1444
|
-
|
|
|
1445
|
-
| callback | | function callback | |
|
|
1372
|
+
| logics | | The old logic structure (v2.0) | |
|
|
1446
1373
|
|
|
1447
1374
|
|
|
1448
1375
|
|
|
@@ -1450,17 +1377,13 @@ Gets the last index from the array by a callback condition
|
|
|
1450
1377
|
##### Returns
|
|
1451
1378
|
|
|
1452
1379
|
|
|
1453
|
-
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1380
|
+
- The Flattened UI Filters array
|
|
1457
1381
|
|
|
1458
|
-
### dist/general/function/debounce.js
|
|
1459
1382
|
|
|
1460
1383
|
|
|
1461
|
-
####
|
|
1384
|
+
#### getFilter(filters, filter, getIndex)
|
|
1462
1385
|
|
|
1463
|
-
|
|
1386
|
+
Get the filter or the index of the given array, validating an old filter structure.
|
|
1464
1387
|
|
|
1465
1388
|
|
|
1466
1389
|
|
|
@@ -1469,8 +1392,9 @@ Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last
|
|
|
1469
1392
|
|
|
1470
1393
|
| Name | Type | Description | |
|
|
1471
1394
|
| ---- | ---- | ----------- | -------- |
|
|
1472
|
-
|
|
|
1473
|
-
|
|
|
1395
|
+
| filters | | The array of UI filters | |
|
|
1396
|
+
| filter | | The old logic structure filter | |
|
|
1397
|
+
| getIndex | | Determines if the index or returns the UI filter object | |
|
|
1474
1398
|
|
|
1475
1399
|
|
|
1476
1400
|
|
|
@@ -1478,17 +1402,13 @@ Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last
|
|
|
1478
1402
|
##### Returns
|
|
1479
1403
|
|
|
1480
1404
|
|
|
1481
|
-
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1405
|
+
- the index or the UI filter object
|
|
1485
1406
|
|
|
1486
|
-
### dist/general/function/throttled.js
|
|
1487
1407
|
|
|
1488
1408
|
|
|
1489
|
-
####
|
|
1409
|
+
#### refineRankingValues(values, uiValues)
|
|
1490
1410
|
|
|
1491
|
-
|
|
1411
|
+
Refines the values of the Ranking column type.
|
|
1492
1412
|
|
|
1493
1413
|
|
|
1494
1414
|
|
|
@@ -1497,8 +1417,8 @@ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
|
|
|
1497
1417
|
|
|
1498
1418
|
| Name | Type | Description | |
|
|
1499
1419
|
| ---- | ---- | ----------- | -------- |
|
|
1500
|
-
|
|
|
1501
|
-
|
|
|
1420
|
+
| values | | the Array of Ranking values | |
|
|
1421
|
+
| uiValues | | Object with additional info about the values of the filter. | |
|
|
1502
1422
|
|
|
1503
1423
|
|
|
1504
1424
|
|
|
@@ -1506,18 +1426,17 @@ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
|
|
|
1506
1426
|
##### Returns
|
|
1507
1427
|
|
|
1508
1428
|
|
|
1509
|
-
-
|
|
1429
|
+
- the array of Ranking values
|
|
1510
1430
|
|
|
1511
1431
|
|
|
1512
1432
|
|
|
1513
1433
|
|
|
1514
|
-
### dist/
|
|
1434
|
+
### dist/filters/adapters/logicToUI.js
|
|
1515
1435
|
|
|
1516
1436
|
|
|
1517
|
-
####
|
|
1437
|
+
#### logicToUI(uFilters, datasetsInfo)
|
|
1518
1438
|
|
|
1519
|
-
|
|
1520
|
-
Not to use this function with inner objects and functions
|
|
1439
|
+
Generates a UI filter structure from the old logic structure (v2.0).
|
|
1521
1440
|
|
|
1522
1441
|
|
|
1523
1442
|
|
|
@@ -1526,7 +1445,8 @@ Not to use this function with inner objects and functions
|
|
|
1526
1445
|
|
|
1527
1446
|
| Name | Type | Description | |
|
|
1528
1447
|
| ---- | ---- | ----------- | -------- |
|
|
1529
|
-
|
|
|
1448
|
+
| uFilters | | Array of filters from old logic structure | |
|
|
1449
|
+
| datasetsInfo | | Collection of datasets information | |
|
|
1530
1450
|
|
|
1531
1451
|
|
|
1532
1452
|
|
|
@@ -1534,21 +1454,17 @@ Not to use this function with inner objects and functions
|
|
|
1534
1454
|
##### Returns
|
|
1535
1455
|
|
|
1536
1456
|
|
|
1537
|
-
-
|
|
1538
|
-
|
|
1457
|
+
- a UI Filter Data.
|
|
1539
1458
|
|
|
1540
1459
|
|
|
1541
1460
|
|
|
1542
|
-
### dist/general/object/get.js
|
|
1543
1461
|
|
|
1462
|
+
### dist/filters/adapters/transformFilters.js
|
|
1544
1463
|
|
|
1545
|
-
#### _get(baseObject, path, defaultValue)
|
|
1546
1464
|
|
|
1547
|
-
|
|
1548
|
-
Gets the value at path of object. If the resolved value is undefined, the defaultValue is returned in its place.
|
|
1465
|
+
#### transformFilters(oldFiltersObj, section)
|
|
1549
1466
|
|
|
1550
|
-
|
|
1551
|
-
Undefined and null values will return the defaultValue.
|
|
1467
|
+
Transform the old filters structure into the new one
|
|
1552
1468
|
|
|
1553
1469
|
|
|
1554
1470
|
|
|
@@ -1557,9 +1473,8 @@ Undefined and null values will return the defaultValue.
|
|
|
1557
1473
|
|
|
1558
1474
|
| Name | Type | Description | |
|
|
1559
1475
|
| ---- | ---- | ----------- | -------- |
|
|
1560
|
-
|
|
|
1561
|
-
|
|
|
1562
|
-
| defaultValue | | The value returned for undefined resolved values. | |
|
|
1476
|
+
| oldFiltersObj | `Object` | an object with the old filters structure | |
|
|
1477
|
+
| section | `String` | could be 'ANALYZE', 'PB', 'UM' or any other value. Deafult is 'ANYWHERE' | |
|
|
1563
1478
|
|
|
1564
1479
|
|
|
1565
1480
|
|
|
@@ -1567,84 +1482,117 @@ Undefined and null values will return the defaultValue.
|
|
|
1567
1482
|
##### Examples
|
|
1568
1483
|
|
|
1569
1484
|
```javascript
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1485
|
+
|
|
1486
|
+
const oldPreferenceFilters = {
|
|
1487
|
+
"WWXHAULtR-_-xYOQAdpqT__ENABLED": true,
|
|
1488
|
+
"WWXHAULtR-_-xYOQAdpqT__ALL--ENABLED": true,
|
|
1489
|
+
"WWXHAULtR-_-xYOQAdpqT__COLLAPSED": false,
|
|
1490
|
+
"WWXHAULtR-_-xYOQAdpqT__LABEL": "GLOBAL",
|
|
1491
|
+
"WWXHAULtR-_-xYOQAdpqT-_-AK4M8UV2": {
|
|
1492
|
+
"formulaId": null,
|
|
1493
|
+
"panelId": null,
|
|
1494
|
+
"values": [
|
|
1495
|
+
{
|
|
1496
|
+
"EQUALS": [
|
|
1497
|
+
{
|
|
1498
|
+
"id": "AK4M8UV2a0",
|
|
1499
|
+
"value": "A",
|
|
1500
|
+
"enabled": true,
|
|
1501
|
+
"imageUrl": null
|
|
1502
|
+
},
|
|
1503
|
+
{
|
|
1504
|
+
"id": "AK4M8UV2a1",
|
|
1505
|
+
"value": "B",
|
|
1506
|
+
"enabled": true,
|
|
1507
|
+
"imageUrl": null
|
|
1508
|
+
}
|
|
1509
|
+
]
|
|
1510
|
+
}
|
|
1511
|
+
],
|
|
1512
|
+
"bucketId": null,
|
|
1513
|
+
"text": "MC",
|
|
1514
|
+
"title": "MC",
|
|
1515
|
+
"type": "SINGLE_CHOICE",
|
|
1516
|
+
"qid": "AK4M8UV2",
|
|
1517
|
+
"dataset": {
|
|
1518
|
+
"sourceid": "xYOQAdpqT",
|
|
1519
|
+
"name": "Form All Questions",
|
|
1520
|
+
"qrveyid": "xYOQAdpqT",
|
|
1521
|
+
"text": "Form All Questions",
|
|
1522
|
+
"linkid": 0
|
|
1523
|
+
},
|
|
1524
|
+
"enabled": true,
|
|
1525
|
+
"linked": null
|
|
1526
|
+
}
|
|
1527
|
+
};
|
|
1528
|
+
|
|
1529
|
+
const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
|
|
1588
1530
|
```
|
|
1589
1531
|
|
|
1590
1532
|
|
|
1591
1533
|
##### Returns
|
|
1592
1534
|
|
|
1593
1535
|
|
|
1594
|
-
- the
|
|
1536
|
+
- `Object` an object with the new filters structure
|
|
1595
1537
|
|
|
1596
1538
|
|
|
1597
1539
|
|
|
1598
1540
|
|
|
1599
|
-
### dist/
|
|
1541
|
+
### dist/filters/classes/FilterInputErrorHandler.js
|
|
1600
1542
|
|
|
1601
1543
|
|
|
1602
|
-
####
|
|
1544
|
+
#### new FilterInputErrorHandler()
|
|
1603
1545
|
|
|
1604
|
-
Searchs for properties in different case styles such as: lower, upper, camel and pascal
|
|
1605
|
-
- To optimize the searching, it is required a key in a snake_case style
|
|
1606
|
-
- List of cases that do not match
|
|
1607
|
-
-- From lower to snake case
|
|
1608
|
-
-- From upper to snake case
|
|
1609
|
-
-- From lower to camel case
|
|
1610
|
-
-- From upper to camel case
|
|
1611
|
-
-- From lower to pascal case
|
|
1612
|
-
-- From upper to pascal case
|
|
1613
1546
|
|
|
1614
1547
|
|
|
1615
1548
|
|
|
1616
1549
|
|
|
1617
|
-
##### Parameters
|
|
1618
1550
|
|
|
1619
|
-
| Name | Type | Description | |
|
|
1620
|
-
| ---- | ---- | ----------- | -------- |
|
|
1621
|
-
| obj | `object` | object to look for | |
|
|
1622
|
-
| key | `string` | String attribute in snake_case style | |
|
|
1623
1551
|
|
|
1624
1552
|
|
|
1553
|
+
##### Returns
|
|
1625
1554
|
|
|
1626
1555
|
|
|
1627
|
-
|
|
1556
|
+
- `Void`
|
|
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
|
+
|
|
1628
1579
|
|
|
1629
|
-
```javascript
|
|
1630
|
-
getAttribute(obj, 'snake_case') //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
|
|
1631
|
-
```
|
|
1632
1580
|
|
|
1633
1581
|
|
|
1634
1582
|
##### Returns
|
|
1635
1583
|
|
|
1636
1584
|
|
|
1637
|
-
-
|
|
1585
|
+
-
|
|
1638
1586
|
|
|
1639
1587
|
|
|
1640
1588
|
|
|
1641
1589
|
|
|
1642
|
-
### dist/
|
|
1590
|
+
### dist/filters/helpers/getAvailableScopes.js
|
|
1643
1591
|
|
|
1644
1592
|
|
|
1645
|
-
####
|
|
1593
|
+
#### getAvailableScopes(config)
|
|
1646
1594
|
|
|
1647
|
-
|
|
1595
|
+
Gets Scopes/Scope IDs by given IDs
|
|
1648
1596
|
|
|
1649
1597
|
|
|
1650
1598
|
|
|
@@ -1653,38 +1601,52 @@ Use the hasOwnProperty in order to verify if the given property exists in the ob
|
|
|
1653
1601
|
|
|
1654
1602
|
| Name | Type | Description | |
|
|
1655
1603
|
| ---- | ---- | ----------- | -------- |
|
|
1656
|
-
|
|
|
1657
|
-
| property | `string` | String to verify if exists in the object as property | |
|
|
1604
|
+
| config | | given Differnts IDs in order set a available scope | |
|
|
1658
1605
|
|
|
1659
1606
|
|
|
1660
1607
|
|
|
1661
1608
|
|
|
1662
|
-
#####
|
|
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 | |
|
|
1663
1632
|
|
|
1664
|
-
```javascript
|
|
1665
|
-
const prop = 'prop2'
|
|
1666
|
-
const obj1 = { prop1: 'hello', prop2: 'world'}
|
|
1667
|
-
_hasProperty(ob1, prop1) // true
|
|
1668
1633
|
|
|
1669
|
-
const obj2 = { prop1: 'hello world' }
|
|
1670
|
-
_hasProperty(ob1, prop2) // false
|
|
1671
|
-
```
|
|
1672
1634
|
|
|
1673
1635
|
|
|
1674
1636
|
##### Returns
|
|
1675
1637
|
|
|
1676
1638
|
|
|
1677
|
-
-
|
|
1639
|
+
- a Available Scope IDS config
|
|
1678
1640
|
|
|
1679
1641
|
|
|
1680
1642
|
|
|
1681
1643
|
|
|
1682
|
-
### dist/
|
|
1644
|
+
### dist/filters/helpers/getScopesByHierarchy.js
|
|
1683
1645
|
|
|
1684
1646
|
|
|
1685
|
-
####
|
|
1647
|
+
#### getScopesByHierarchy(scopes, currentScope)
|
|
1686
1648
|
|
|
1687
|
-
|
|
1649
|
+
[TODO: Make a description for this]
|
|
1688
1650
|
|
|
1689
1651
|
|
|
1690
1652
|
|
|
@@ -1693,7 +1655,8 @@ Checks if the given argument is an object type
|
|
|
1693
1655
|
|
|
1694
1656
|
| Name | Type | Description | |
|
|
1695
1657
|
| ---- | ---- | ----------- | -------- |
|
|
1696
|
-
|
|
|
1658
|
+
| scopes | | the collection of Scopes/Scope IDs | |
|
|
1659
|
+
| currentScope | | Current scope type | |
|
|
1697
1660
|
|
|
1698
1661
|
|
|
1699
1662
|
|
|
@@ -1701,18 +1664,17 @@ Checks if the given argument is an object type
|
|
|
1701
1664
|
##### Returns
|
|
1702
1665
|
|
|
1703
1666
|
|
|
1704
|
-
-
|
|
1667
|
+
- A new array of Scopes/Scope IDs
|
|
1705
1668
|
|
|
1706
1669
|
|
|
1707
1670
|
|
|
1708
1671
|
|
|
1709
|
-
### dist/general/
|
|
1672
|
+
### dist/general/array/delete.js
|
|
1710
1673
|
|
|
1711
1674
|
|
|
1712
|
-
####
|
|
1675
|
+
#### ArrayDelete(array, index)
|
|
1713
1676
|
|
|
1714
|
-
|
|
1715
|
-
and return a mapped object
|
|
1677
|
+
Inmutable Array Item deletion
|
|
1716
1678
|
|
|
1717
1679
|
|
|
1718
1680
|
|
|
@@ -1721,8 +1683,8 @@ and return a mapped object
|
|
|
1721
1683
|
|
|
1722
1684
|
| Name | Type | Description | |
|
|
1723
1685
|
| ---- | ---- | ----------- | -------- |
|
|
1724
|
-
|
|
|
1725
|
-
|
|
|
1686
|
+
| array | `Array` | a collection of items to delete | |
|
|
1687
|
+
| index | `Number` | the position of the item to delete | |
|
|
1726
1688
|
|
|
1727
1689
|
|
|
1728
1690
|
|
|
@@ -1730,18 +1692,20 @@ and return a mapped object
|
|
|
1730
1692
|
##### Returns
|
|
1731
1693
|
|
|
1732
1694
|
|
|
1733
|
-
-
|
|
1695
|
+
- a new Array or the given parameter when is empty or not an array
|
|
1734
1696
|
|
|
1735
1697
|
|
|
1736
1698
|
|
|
1737
1699
|
|
|
1738
|
-
### dist/general/
|
|
1700
|
+
### dist/general/array/filterNestedTree.js
|
|
1739
1701
|
|
|
1740
1702
|
|
|
1741
|
-
####
|
|
1703
|
+
#### filterNestedTree(arr, childArrKey, condition)
|
|
1742
1704
|
|
|
1743
|
-
|
|
1744
|
-
|
|
1705
|
+
Filters a nested tree array by a custom condition on the last child node
|
|
1706
|
+
- If the given arguments are not valid, the function returns the first argument.
|
|
1707
|
+
- If the childArrKey is not matched in the object, the condition tries to resolve the filter anyway and returns an empty array.
|
|
1708
|
+
- If the condition is not fulfilled, the function returns a filtered array, probably a empty array inside of the child array
|
|
1745
1709
|
|
|
1746
1710
|
|
|
1747
1711
|
|
|
@@ -1750,9 +1714,9 @@ The second given argument to the first given argument.
|
|
|
1750
1714
|
|
|
1751
1715
|
| Name | Type | Description | |
|
|
1752
1716
|
| ---- | ---- | ----------- | -------- |
|
|
1753
|
-
|
|
|
1754
|
-
|
|
|
1755
|
-
|
|
|
1717
|
+
| arr | | nested tree array | |
|
|
1718
|
+
| childArrKey | | property representing the children array on the nested tree | |
|
|
1719
|
+
| condition | | function callback that determines if the filter is applied on the last child node of the nested tree | |
|
|
1756
1720
|
|
|
1757
1721
|
|
|
1758
1722
|
|
|
@@ -1760,13 +1724,17 @@ The second given argument to the first given argument.
|
|
|
1760
1724
|
##### Returns
|
|
1761
1725
|
|
|
1762
1726
|
|
|
1763
|
-
-
|
|
1727
|
+
- array filtered
|
|
1764
1728
|
|
|
1765
1729
|
|
|
1766
1730
|
|
|
1767
|
-
#### isValid(obj1, obj2)
|
|
1768
1731
|
|
|
1769
|
-
|
|
1732
|
+
### dist/general/array/flattenDeep.js
|
|
1733
|
+
|
|
1734
|
+
|
|
1735
|
+
#### flattenDeep(arr)
|
|
1736
|
+
|
|
1737
|
+
Flat deeply an array
|
|
1770
1738
|
|
|
1771
1739
|
|
|
1772
1740
|
|
|
@@ -1775,8 +1743,7 @@ Validates if the two arguments are objects
|
|
|
1775
1743
|
|
|
1776
1744
|
| Name | Type | Description | |
|
|
1777
1745
|
| ---- | ---- | ----------- | -------- |
|
|
1778
|
-
|
|
|
1779
|
-
| obj2 | | The object to be merged | |
|
|
1746
|
+
| arr | | Array to flat deeply | |
|
|
1780
1747
|
|
|
1781
1748
|
|
|
1782
1749
|
|
|
@@ -1784,13 +1751,17 @@ Validates if the two arguments are objects
|
|
|
1784
1751
|
##### Returns
|
|
1785
1752
|
|
|
1786
1753
|
|
|
1787
|
-
-
|
|
1754
|
+
- flatten array
|
|
1788
1755
|
|
|
1789
1756
|
|
|
1790
1757
|
|
|
1791
|
-
#### getParamsToMergeDeep(settings)
|
|
1792
1758
|
|
|
1793
|
-
|
|
1759
|
+
### dist/general/array/getFirstIndexFromArray.js
|
|
1760
|
+
|
|
1761
|
+
|
|
1762
|
+
#### getFirstIndexFromArray(array, callback)
|
|
1763
|
+
|
|
1764
|
+
Gets the first index from the array by a callback condition
|
|
1794
1765
|
|
|
1795
1766
|
|
|
1796
1767
|
|
|
@@ -1799,7 +1770,8 @@ Validates and gets the settings with all set parameters.
|
|
|
1799
1770
|
|
|
1800
1771
|
| Name | Type | Description | |
|
|
1801
1772
|
| ---- | ---- | ----------- | -------- |
|
|
1802
|
-
|
|
|
1773
|
+
| array | | | |
|
|
1774
|
+
| callback | | function callback | |
|
|
1803
1775
|
|
|
1804
1776
|
|
|
1805
1777
|
|
|
@@ -1807,17 +1779,17 @@ Validates and gets the settings with all set parameters.
|
|
|
1807
1779
|
##### Returns
|
|
1808
1780
|
|
|
1809
1781
|
|
|
1810
|
-
-
|
|
1782
|
+
- the first index of the array. -1 when the condition is not satisfied
|
|
1811
1783
|
|
|
1812
1784
|
|
|
1813
1785
|
|
|
1814
1786
|
|
|
1815
|
-
### dist/general/
|
|
1787
|
+
### dist/general/array/getLastIndexFromArray.js
|
|
1816
1788
|
|
|
1817
1789
|
|
|
1818
|
-
####
|
|
1790
|
+
#### getLastIndexFromArray(array, callback)
|
|
1819
1791
|
|
|
1820
|
-
|
|
1792
|
+
Gets the last index from the array by a callback condition
|
|
1821
1793
|
|
|
1822
1794
|
|
|
1823
1795
|
|
|
@@ -1826,8 +1798,8 @@ Created a new reference of the given argument
|
|
|
1826
1798
|
|
|
1827
1799
|
| Name | Type | Description | |
|
|
1828
1800
|
| ---- | ---- | ----------- | -------- |
|
|
1829
|
-
|
|
|
1830
|
-
|
|
|
1801
|
+
| array | | | |
|
|
1802
|
+
| callback | | function callback | |
|
|
1831
1803
|
|
|
1832
1804
|
|
|
1833
1805
|
|
|
@@ -1835,17 +1807,17 @@ Created a new reference of the given argument
|
|
|
1835
1807
|
##### Returns
|
|
1836
1808
|
|
|
1837
1809
|
|
|
1838
|
-
-
|
|
1810
|
+
- the last index of the array. -1 when the condition is not satisfied
|
|
1839
1811
|
|
|
1840
1812
|
|
|
1841
1813
|
|
|
1842
1814
|
|
|
1843
|
-
### dist/general/
|
|
1815
|
+
### dist/general/function/debounce.js
|
|
1844
1816
|
|
|
1845
1817
|
|
|
1846
|
-
####
|
|
1818
|
+
#### debounce(fn, time)
|
|
1847
1819
|
|
|
1848
|
-
|
|
1820
|
+
Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last time the debounced function was invoked.
|
|
1849
1821
|
|
|
1850
1822
|
|
|
1851
1823
|
|
|
@@ -1854,8 +1826,8 @@ return a new Object excluding attributes in _props_ list
|
|
|
1854
1826
|
|
|
1855
1827
|
| Name | Type | Description | |
|
|
1856
1828
|
| ---- | ---- | ----------- | -------- |
|
|
1857
|
-
|
|
|
1858
|
-
|
|
|
1829
|
+
| fn | `Function` | original Function | |
|
|
1830
|
+
| time | `Number` | default 500ms | |
|
|
1859
1831
|
|
|
1860
1832
|
|
|
1861
1833
|
|
|
@@ -1863,17 +1835,17 @@ return a new Object excluding attributes in _props_ list
|
|
|
1863
1835
|
##### Returns
|
|
1864
1836
|
|
|
1865
1837
|
|
|
1866
|
-
- `
|
|
1838
|
+
- `Function` debounced functions
|
|
1867
1839
|
|
|
1868
1840
|
|
|
1869
1841
|
|
|
1870
1842
|
|
|
1871
|
-
### dist/general/
|
|
1843
|
+
### dist/general/function/throttled.js
|
|
1872
1844
|
|
|
1873
1845
|
|
|
1874
|
-
####
|
|
1846
|
+
#### throttled(fn, time)
|
|
1875
1847
|
|
|
1876
|
-
|
|
1848
|
+
Make sure to only invokes _fn_ at most once per every _time_ milliseconds
|
|
1877
1849
|
|
|
1878
1850
|
|
|
1879
1851
|
|
|
@@ -1882,26 +1854,479 @@ return a new object just with attributes in _keys_ list
|
|
|
1882
1854
|
|
|
1883
1855
|
| Name | Type | Description | |
|
|
1884
1856
|
| ---- | ---- | ----------- | -------- |
|
|
1885
|
-
|
|
|
1886
|
-
|
|
|
1887
|
-
|
|
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/mix/compareDeep.js
|
|
1872
|
+
|
|
1873
|
+
|
|
1874
|
+
#### compareDeep(object1, object2)
|
|
1875
|
+
|
|
1876
|
+
Compares two objects to know if they are equals. Go across nested objects.
|
|
1877
|
+
Includes arrays in the comparison.
|
|
1878
|
+
|
|
1879
|
+
|
|
1880
|
+
|
|
1881
|
+
|
|
1882
|
+
##### Parameters
|
|
1883
|
+
|
|
1884
|
+
| Name | Type | Description | |
|
|
1885
|
+
| ---- | ---- | ----------- | -------- |
|
|
1886
|
+
| object1 | | First Object to compare | |
|
|
1887
|
+
| object2 | | Second Object to compare | |
|
|
1888
|
+
|
|
1889
|
+
|
|
1890
|
+
|
|
1891
|
+
|
|
1892
|
+
##### Returns
|
|
1893
|
+
|
|
1894
|
+
|
|
1895
|
+
- True: objects are equal. False: Objects are not equal. Undefined: invalid
|
|
1896
|
+
|
|
1897
|
+
|
|
1898
|
+
|
|
1899
|
+
|
|
1900
|
+
### dist/general/mix/getTag.js
|
|
1901
|
+
|
|
1902
|
+
|
|
1903
|
+
#### getTag(value)
|
|
1904
|
+
|
|
1905
|
+
Gets the `toStringTag` of `value`.
|
|
1906
|
+
|
|
1907
|
+
|
|
1908
|
+
|
|
1909
|
+
|
|
1910
|
+
##### Parameters
|
|
1911
|
+
|
|
1912
|
+
| Name | Type | Description | |
|
|
1913
|
+
| ---- | ---- | ----------- | -------- |
|
|
1914
|
+
| value | | The value to query. | |
|
|
1915
|
+
|
|
1916
|
+
|
|
1917
|
+
|
|
1918
|
+
|
|
1919
|
+
##### Returns
|
|
1920
|
+
|
|
1921
|
+
|
|
1922
|
+
- `string` Returns the `toStringTag`.
|
|
1923
|
+
|
|
1924
|
+
|
|
1925
|
+
|
|
1926
|
+
|
|
1927
|
+
### dist/general/mix/importScripts.js
|
|
1928
|
+
|
|
1929
|
+
|
|
1930
|
+
#### importScripts(scripts)
|
|
1931
|
+
|
|
1932
|
+
Import a set of external Scripts given the URL in both serie and cascade way
|
|
1933
|
+
|
|
1934
|
+
|
|
1935
|
+
|
|
1936
|
+
|
|
1937
|
+
##### Parameters
|
|
1938
|
+
|
|
1939
|
+
| Name | Type | Description | |
|
|
1940
|
+
| ---- | ---- | ----------- | -------- |
|
|
1941
|
+
| scripts | `Array.<String>` `Array.<Object>` | can be an array of string or an array of object with the follow structure: | |
|
|
1942
|
+
| scripts.url | `String` | CDN URL | |
|
|
1943
|
+
| scripts.namespace | `String` `Function` | (Optional) if is a String, that name is evaluated on Window[namespace] object otherwise the Function is invoked expecting a Thrutly value | |
|
|
1944
|
+
| scripts.type | `String` | (Optional) it could be `module` of `text/javascript`. Default `text/javascript` | |
|
|
1945
|
+
| scripts.noModule | `Boolean` | (Optional) add `momodule` attribute to script tag. Default `false` | |
|
|
1946
|
+
| scripts.dependencies | `Array.<Object>` | an array with the same structure to load in cascade mode | |
|
|
1947
|
+
|
|
1948
|
+
|
|
1949
|
+
|
|
1950
|
+
|
|
1951
|
+
##### Examples
|
|
1952
|
+
|
|
1953
|
+
```javascript
|
|
1954
|
+
// 1) Simple script (paralell loading)
|
|
1955
|
+
importScripts(['http://myscript.js', 'http://another.js']);
|
|
1956
|
+
|
|
1957
|
+
// 2) Loading `.js` and `.esm.js` script (parallel loading)
|
|
1958
|
+
importScripts([
|
|
1959
|
+
{ url: 'http://myscript.esm.js', type: 'module' },
|
|
1960
|
+
{ url: 'http://myscript.js', noModule: true }
|
|
1961
|
+
]);
|
|
1962
|
+
|
|
1963
|
+
// 3) import dependent scripts (cascade)
|
|
1964
|
+
importScripts([
|
|
1965
|
+
{ url: 'http://myscript.js', dependencies: ['http://myscript.plugin.js'] }
|
|
1966
|
+
]);
|
|
1967
|
+
|
|
1968
|
+
// 4) mix
|
|
1969
|
+
importScripts([
|
|
1970
|
+
{ url: 'http://myscript.js', dependencies: ['http://myscript.plugin.js'] },
|
|
1971
|
+
{ url: 'http://another.esm.js', type: 'module' },
|
|
1972
|
+
{ url: 'http://another.js', noModule: true },
|
|
1973
|
+
'http://simplescript.js'
|
|
1974
|
+
]);
|
|
1975
|
+
```
|
|
1976
|
+
|
|
1977
|
+
|
|
1978
|
+
##### Returns
|
|
1979
|
+
|
|
1980
|
+
|
|
1981
|
+
- `Promise` Promise when all script have been loaded
|
|
1982
|
+
|
|
1983
|
+
|
|
1984
|
+
|
|
1985
|
+
#### loadScript(url, type, noModule)
|
|
1986
|
+
|
|
1987
|
+
Creates the script element and appends to document.head
|
|
1988
|
+
return a Promise that is resolved when the script is loaded
|
|
1989
|
+
|
|
1990
|
+
|
|
1991
|
+
|
|
1992
|
+
|
|
1993
|
+
##### Parameters
|
|
1994
|
+
|
|
1995
|
+
| Name | Type | Description | |
|
|
1996
|
+
| ---- | ---- | ----------- | -------- |
|
|
1997
|
+
| url | `String` | Cdn Url | |
|
|
1998
|
+
| type | `String` | (Optional) it could be `module` of `text/javascript`. Default `text/javascript` | |
|
|
1999
|
+
| noModule | `boolean` | (Optional) add `momodule` attribute to script tag. Default `false` | |
|
|
2000
|
+
|
|
2001
|
+
|
|
2002
|
+
|
|
2003
|
+
|
|
2004
|
+
##### Returns
|
|
2005
|
+
|
|
2006
|
+
|
|
2007
|
+
- `Void`
|
|
2008
|
+
|
|
2009
|
+
|
|
2010
|
+
|
|
2011
|
+
|
|
2012
|
+
### dist/general/mix/isEmpty.js
|
|
2013
|
+
|
|
2014
|
+
|
|
2015
|
+
#### isEmpty(variable, includeFalsy)
|
|
2016
|
+
|
|
2017
|
+
Validates if the given argument is empty
|
|
2018
|
+
|
|
2019
|
+
|
|
2020
|
+
|
|
2021
|
+
|
|
2022
|
+
##### Parameters
|
|
2023
|
+
|
|
2024
|
+
| Name | Type | Description | |
|
|
2025
|
+
| ---- | ---- | ----------- | -------- |
|
|
2026
|
+
| variable | | the given variable | |
|
|
2027
|
+
| includeFalsy | | flag to determine include the falsy variables into the validation | |
|
|
2028
|
+
|
|
2029
|
+
|
|
2030
|
+
|
|
2031
|
+
|
|
2032
|
+
##### Returns
|
|
2033
|
+
|
|
2034
|
+
|
|
2035
|
+
- true: the given argument is empty; false: is not.
|
|
2036
|
+
|
|
2037
|
+
|
|
2038
|
+
|
|
2039
|
+
|
|
2040
|
+
### dist/general/mix/isNaNV2.js
|
|
2041
|
+
|
|
2042
|
+
|
|
2043
|
+
#### isNaNV2(variable)
|
|
2044
|
+
|
|
2045
|
+
Validates if the recieved number is NaN type.
|
|
2046
|
+
This function recieves any variable but will return false.
|
|
2047
|
+
Validates if variable is null, undefined, or an empty string, also, the function uses isNaN native function.
|
|
2048
|
+
|
|
2049
|
+
|
|
2050
|
+
|
|
2051
|
+
|
|
2052
|
+
##### Parameters
|
|
2053
|
+
|
|
2054
|
+
| Name | Type | Description | |
|
|
2055
|
+
| ---- | ---- | ----------- | -------- |
|
|
2056
|
+
| variable | | the variable to validate | |
|
|
2057
|
+
|
|
2058
|
+
|
|
2059
|
+
|
|
2060
|
+
|
|
2061
|
+
##### Returns
|
|
2062
|
+
|
|
2063
|
+
|
|
2064
|
+
- True if variable is a NaN or false otherwise
|
|
2065
|
+
|
|
2066
|
+
|
|
2067
|
+
|
|
2068
|
+
|
|
2069
|
+
### dist/general/mix/isNull.js
|
|
2070
|
+
|
|
2071
|
+
|
|
2072
|
+
#### isNull(arg)
|
|
2073
|
+
|
|
2074
|
+
return if a given variable is either `null` or `undefined`
|
|
2075
|
+
useful to avoid falsify validating Number Zero (0)
|
|
2076
|
+
|
|
2077
|
+
|
|
2078
|
+
|
|
2079
|
+
|
|
2080
|
+
##### Parameters
|
|
2081
|
+
|
|
2082
|
+
| Name | Type | Description | |
|
|
2083
|
+
| ---- | ---- | ----------- | -------- |
|
|
2084
|
+
| arg | `any` | | |
|
|
2085
|
+
|
|
2086
|
+
|
|
2087
|
+
|
|
1888
2088
|
|
|
2089
|
+
##### Returns
|
|
2090
|
+
|
|
2091
|
+
|
|
2092
|
+
- `Boolean`
|
|
2093
|
+
|
|
2094
|
+
|
|
2095
|
+
|
|
2096
|
+
|
|
2097
|
+
### dist/general/mix/randomId.js
|
|
2098
|
+
|
|
2099
|
+
|
|
2100
|
+
#### randomId(length, exclude)
|
|
2101
|
+
|
|
2102
|
+
Creates a random string
|
|
2103
|
+
- If the first given argument is different than a length number, the variable is replaced by a default number
|
|
2104
|
+
- If the optional second given argument is passed the random string is permutated.
|
|
2105
|
+
|
|
2106
|
+
|
|
2107
|
+
|
|
2108
|
+
|
|
2109
|
+
##### Parameters
|
|
2110
|
+
|
|
2111
|
+
| Name | Type | Description | |
|
|
2112
|
+
| ---- | ---- | ----------- | -------- |
|
|
2113
|
+
| length | `Number` | size of the generated string. Default 8 | |
|
|
2114
|
+
| exclude | `Array` | collection of strings that is going to be excluded of the random string. | |
|
|
2115
|
+
|
|
2116
|
+
|
|
2117
|
+
|
|
2118
|
+
|
|
2119
|
+
##### Returns
|
|
2120
|
+
|
|
2121
|
+
|
|
2122
|
+
- `String` Random string
|
|
2123
|
+
|
|
2124
|
+
|
|
2125
|
+
|
|
2126
|
+
|
|
2127
|
+
### dist/general/mix/size.js
|
|
2128
|
+
|
|
2129
|
+
|
|
2130
|
+
#### size(obj)
|
|
2131
|
+
|
|
2132
|
+
Gets the length of the given array.
|
|
2133
|
+
- Useful for Object, Array and string type.
|
|
2134
|
+
- For `null` or `undefined` or else argument the returned value will be 0.
|
|
2135
|
+
|
|
2136
|
+
|
|
2137
|
+
|
|
2138
|
+
|
|
2139
|
+
##### Parameters
|
|
2140
|
+
|
|
2141
|
+
| Name | Type | Description | |
|
|
2142
|
+
| ---- | ---- | ----------- | -------- |
|
|
2143
|
+
| obj | `Any` | Any object-type variable | |
|
|
2144
|
+
|
|
2145
|
+
|
|
2146
|
+
|
|
2147
|
+
|
|
2148
|
+
##### Returns
|
|
2149
|
+
|
|
2150
|
+
|
|
2151
|
+
- `Number` the size of the given variable
|
|
2152
|
+
|
|
2153
|
+
|
|
2154
|
+
|
|
2155
|
+
|
|
2156
|
+
### dist/general/object/cloneDeep.js
|
|
2157
|
+
|
|
2158
|
+
|
|
2159
|
+
#### cloneDeep(obj)
|
|
2160
|
+
|
|
2161
|
+
A simple Deep Cloning function. Valid only for primivite values and object with primitive values.
|
|
2162
|
+
Not to use this function with inner objects and functions
|
|
2163
|
+
|
|
2164
|
+
|
|
2165
|
+
|
|
2166
|
+
|
|
2167
|
+
##### Parameters
|
|
2168
|
+
|
|
2169
|
+
| Name | Type | Description | |
|
|
2170
|
+
| ---- | ---- | ----------- | -------- |
|
|
2171
|
+
| obj | | The object | |
|
|
2172
|
+
|
|
2173
|
+
|
|
2174
|
+
|
|
2175
|
+
|
|
2176
|
+
##### Returns
|
|
2177
|
+
|
|
2178
|
+
|
|
2179
|
+
- The new reference object or the given object if the parsing is incorrect or empty
|
|
2180
|
+
|
|
2181
|
+
|
|
2182
|
+
|
|
2183
|
+
|
|
2184
|
+
### dist/general/object/get.js
|
|
2185
|
+
|
|
2186
|
+
|
|
2187
|
+
#### _get(baseObject, path, defaultValue)
|
|
2188
|
+
|
|
2189
|
+
Like lodash _.get.
|
|
2190
|
+
Gets the value at path of object. If the resolved value is undefined, the defaultValue is returned in its place.
|
|
2191
|
+
|
|
2192
|
+
Empty arrays and empty objects are returned but the defaultValue is not
|
|
2193
|
+
Undefined and null values will return the defaultValue.
|
|
2194
|
+
|
|
2195
|
+
|
|
2196
|
+
|
|
2197
|
+
|
|
2198
|
+
##### Parameters
|
|
2199
|
+
|
|
2200
|
+
| Name | Type | Description | |
|
|
2201
|
+
| ---- | ---- | ----------- | -------- |
|
|
2202
|
+
| baseObject | | The object to query | |
|
|
2203
|
+
| path | | The string path or collection of string paths of the property to get. | |
|
|
2204
|
+
| defaultValue | | The value returned for undefined resolved values. | |
|
|
2205
|
+
|
|
2206
|
+
|
|
2207
|
+
|
|
2208
|
+
|
|
2209
|
+
##### Examples
|
|
2210
|
+
|
|
2211
|
+
```javascript
|
|
2212
|
+
// returns 'Hello'
|
|
2213
|
+
_get({ item1: 'Hello', item2: 'World' }, 'item1')
|
|
2214
|
+
```
|
|
2215
|
+
```javascript
|
|
2216
|
+
// returns 'A simple Hello'
|
|
2217
|
+
_get({ item1: 'Hello', item2: 'World' }, 'item3', 'A simple Hello')
|
|
2218
|
+
```
|
|
2219
|
+
```javascript
|
|
2220
|
+
// returns 'Hello Again'
|
|
2221
|
+
_get({ item1: { item11: 'Hello Again' }, item2: {} }, 'item1.item11')
|
|
2222
|
+
```
|
|
2223
|
+
```javascript
|
|
2224
|
+
// returns 'Hello 2'
|
|
2225
|
+
_get({ item1: ['Hello 1', 'Hello 2' }, item2: [] }, 'item1[1]')
|
|
2226
|
+
```
|
|
2227
|
+
```javascript
|
|
2228
|
+
// returns 'Hello Again'
|
|
2229
|
+
_get({ item1: { item11: 'Hello Again' }, item2: {} }, ['item1', 'item11'])
|
|
2230
|
+
```
|
|
2231
|
+
|
|
2232
|
+
|
|
2233
|
+
##### Returns
|
|
2234
|
+
|
|
2235
|
+
|
|
2236
|
+
- the resolved value.
|
|
2237
|
+
|
|
2238
|
+
|
|
2239
|
+
|
|
2240
|
+
|
|
2241
|
+
### dist/general/object/getAttribute.js
|
|
2242
|
+
|
|
2243
|
+
|
|
2244
|
+
#### getAttribute(obj, key)
|
|
2245
|
+
|
|
2246
|
+
Searchs for properties in different case styles such as: lower, upper, camel and pascal
|
|
2247
|
+
- To optimize the searching, it is required a key in a snake_case style
|
|
2248
|
+
- List of cases that do not match
|
|
2249
|
+
-- From lower to snake case
|
|
2250
|
+
-- From upper to snake case
|
|
2251
|
+
-- From lower to camel case
|
|
2252
|
+
-- From upper to camel case
|
|
2253
|
+
-- From lower to pascal case
|
|
2254
|
+
-- From upper to pascal case
|
|
2255
|
+
|
|
2256
|
+
|
|
2257
|
+
|
|
2258
|
+
|
|
2259
|
+
##### Parameters
|
|
2260
|
+
|
|
2261
|
+
| Name | Type | Description | |
|
|
2262
|
+
| ---- | ---- | ----------- | -------- |
|
|
2263
|
+
| obj | `object` | object to look for | |
|
|
2264
|
+
| key | `string` | String attribute in snake_case style | |
|
|
2265
|
+
|
|
2266
|
+
|
|
2267
|
+
|
|
2268
|
+
|
|
2269
|
+
##### Examples
|
|
2270
|
+
|
|
2271
|
+
```javascript
|
|
2272
|
+
getAttribute(obj, 'snake_case') //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
|
|
2273
|
+
```
|
|
2274
|
+
|
|
2275
|
+
|
|
2276
|
+
##### Returns
|
|
2277
|
+
|
|
2278
|
+
|
|
2279
|
+
- `Void`
|
|
2280
|
+
|
|
2281
|
+
|
|
2282
|
+
|
|
2283
|
+
|
|
2284
|
+
### dist/general/object/hasProperty.js
|
|
2285
|
+
|
|
2286
|
+
|
|
2287
|
+
#### _hasProperty(obj, property)
|
|
2288
|
+
|
|
2289
|
+
Use the hasOwnProperty in order to verify if the given property exists in the object.
|
|
2290
|
+
|
|
2291
|
+
|
|
2292
|
+
|
|
2293
|
+
|
|
2294
|
+
##### Parameters
|
|
2295
|
+
|
|
2296
|
+
| Name | Type | Description | |
|
|
2297
|
+
| ---- | ---- | ----------- | -------- |
|
|
2298
|
+
| obj | `object` | an object | |
|
|
2299
|
+
| property | `string` | String to verify if exists in the object as property | |
|
|
2300
|
+
|
|
2301
|
+
|
|
2302
|
+
|
|
2303
|
+
|
|
2304
|
+
##### Examples
|
|
2305
|
+
|
|
2306
|
+
```javascript
|
|
2307
|
+
const prop = 'prop2'
|
|
2308
|
+
const obj1 = { prop1: 'hello', prop2: 'world'}
|
|
2309
|
+
_hasProperty(ob1, prop1) // true
|
|
2310
|
+
|
|
2311
|
+
const obj2 = { prop1: 'hello world' }
|
|
2312
|
+
_hasProperty(ob1, prop2) // false
|
|
2313
|
+
```
|
|
1889
2314
|
|
|
1890
2315
|
|
|
1891
2316
|
##### Returns
|
|
1892
2317
|
|
|
1893
2318
|
|
|
1894
|
-
-
|
|
2319
|
+
- True if the object has the given property; otherwise, false.
|
|
1895
2320
|
|
|
1896
2321
|
|
|
1897
2322
|
|
|
1898
2323
|
|
|
1899
|
-
### dist/general/object/
|
|
2324
|
+
### dist/general/object/isObject.js
|
|
1900
2325
|
|
|
1901
2326
|
|
|
1902
|
-
####
|
|
2327
|
+
#### isObject(obj)
|
|
1903
2328
|
|
|
1904
|
-
|
|
2329
|
+
Checks if the given argument is an object type
|
|
1905
2330
|
|
|
1906
2331
|
|
|
1907
2332
|
|
|
@@ -1910,7 +2335,7 @@ serialize object to url param
|
|
|
1910
2335
|
|
|
1911
2336
|
| Name | Type | Description | |
|
|
1912
2337
|
| ---- | ---- | ----------- | -------- |
|
|
1913
|
-
| obj | |
|
|
2338
|
+
| obj | | the variable to check | |
|
|
1914
2339
|
|
|
1915
2340
|
|
|
1916
2341
|
|
|
@@ -1918,18 +2343,18 @@ serialize object to url param
|
|
|
1918
2343
|
##### Returns
|
|
1919
2344
|
|
|
1920
2345
|
|
|
1921
|
-
-
|
|
2346
|
+
- True: It is an object; False: It is not.
|
|
1922
2347
|
|
|
1923
2348
|
|
|
1924
2349
|
|
|
1925
2350
|
|
|
1926
|
-
### dist/general/
|
|
2351
|
+
### dist/general/object/mapValues.js
|
|
1927
2352
|
|
|
1928
2353
|
|
|
1929
|
-
####
|
|
2354
|
+
#### mapValues(baseObject, iteratee)
|
|
1930
2355
|
|
|
1931
|
-
|
|
1932
|
-
|
|
2356
|
+
Invoke iteratee (function) for each object key-value pair
|
|
2357
|
+
and return a mapped object
|
|
1933
2358
|
|
|
1934
2359
|
|
|
1935
2360
|
|
|
@@ -1938,8 +2363,8 @@ Includes arrays in the comparison.
|
|
|
1938
2363
|
|
|
1939
2364
|
| Name | Type | Description | |
|
|
1940
2365
|
| ---- | ---- | ----------- | -------- |
|
|
1941
|
-
|
|
|
1942
|
-
|
|
|
2366
|
+
| baseObject | `Object` | Base object. | |
|
|
2367
|
+
| iteratee | `Function` | The executed per iteration. | |
|
|
1943
2368
|
|
|
1944
2369
|
|
|
1945
2370
|
|
|
@@ -1947,17 +2372,18 @@ Includes arrays in the comparison.
|
|
|
1947
2372
|
##### Returns
|
|
1948
2373
|
|
|
1949
2374
|
|
|
1950
|
-
-
|
|
2375
|
+
- `Object` New mapped object.
|
|
1951
2376
|
|
|
1952
2377
|
|
|
1953
2378
|
|
|
1954
2379
|
|
|
1955
|
-
### dist/general/
|
|
2380
|
+
### dist/general/object/mergeDeep.js
|
|
1956
2381
|
|
|
1957
2382
|
|
|
1958
|
-
####
|
|
2383
|
+
#### mergeDeep(obj1, obj2, settings)
|
|
1959
2384
|
|
|
1960
|
-
|
|
2385
|
+
Merges two objects into a new one.
|
|
2386
|
+
The second given argument to the first given argument.
|
|
1961
2387
|
|
|
1962
2388
|
|
|
1963
2389
|
|
|
@@ -1966,7 +2392,9 @@ Gets the `toStringTag` of `value`.
|
|
|
1966
2392
|
|
|
1967
2393
|
| Name | Type | Description | |
|
|
1968
2394
|
| ---- | ---- | ----------- | -------- |
|
|
1969
|
-
|
|
|
2395
|
+
| obj1 | | The target object | |
|
|
2396
|
+
| obj2 | | The object to be merged | |
|
|
2397
|
+
| settings | | Object settings for this function | |
|
|
1970
2398
|
|
|
1971
2399
|
|
|
1972
2400
|
|
|
@@ -1974,17 +2402,13 @@ Gets the `toStringTag` of `value`.
|
|
|
1974
2402
|
##### Returns
|
|
1975
2403
|
|
|
1976
2404
|
|
|
1977
|
-
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
2405
|
+
- a new merged object
|
|
1981
2406
|
|
|
1982
|
-
### dist/general/mix/importScripts.js
|
|
1983
2407
|
|
|
1984
2408
|
|
|
1985
|
-
####
|
|
2409
|
+
#### isValid(obj1, obj2)
|
|
1986
2410
|
|
|
1987
|
-
|
|
2411
|
+
Validates if the two arguments are objects
|
|
1988
2412
|
|
|
1989
2413
|
|
|
1990
2414
|
|
|
@@ -1993,54 +2417,22 @@ Import a set of external Scripts given the URL in both serie and cascade way
|
|
|
1993
2417
|
|
|
1994
2418
|
| Name | Type | Description | |
|
|
1995
2419
|
| ---- | ---- | ----------- | -------- |
|
|
1996
|
-
|
|
|
1997
|
-
|
|
|
1998
|
-
| scripts.namespace | `String` `Function` | (Optional) if is a String, that name is evaluated on Window[namespace] object otherwise the Function is invoked expecting a Thrutly value | |
|
|
1999
|
-
| scripts.type | `String` | (Optional) it could be `module` of `text/javascript`. Default `text/javascript` | |
|
|
2000
|
-
| scripts.noModule | `Boolean` | (Optional) add `momodule` attribute to script tag. Default `false` | |
|
|
2001
|
-
| scripts.dependencies | `Array.<Object>` | an array with the same structure to load in cascade mode | |
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
##### Examples
|
|
2007
|
-
|
|
2008
|
-
```javascript
|
|
2009
|
-
// 1) Simple script (paralell loading)
|
|
2010
|
-
importScripts(['http://myscript.js', 'http://another.js']);
|
|
2011
|
-
|
|
2012
|
-
// 2) Loading `.js` and `.esm.js` script (parallel loading)
|
|
2013
|
-
importScripts([
|
|
2014
|
-
{ url: 'http://myscript.esm.js', type: 'module' },
|
|
2015
|
-
{ url: 'http://myscript.js', noModule: true }
|
|
2016
|
-
]);
|
|
2420
|
+
| obj1 | | The target object | |
|
|
2421
|
+
| obj2 | | The object to be merged | |
|
|
2017
2422
|
|
|
2018
|
-
// 3) import dependent scripts (cascade)
|
|
2019
|
-
importScripts([
|
|
2020
|
-
{ url: 'http://myscript.js', dependencies: ['http://myscript.plugin.js'] }
|
|
2021
|
-
]);
|
|
2022
2423
|
|
|
2023
|
-
// 4) mix
|
|
2024
|
-
importScripts([
|
|
2025
|
-
{ url: 'http://myscript.js', dependencies: ['http://myscript.plugin.js'] },
|
|
2026
|
-
{ url: 'http://another.esm.js', type: 'module' },
|
|
2027
|
-
{ url: 'http://another.js', noModule: true },
|
|
2028
|
-
'http://simplescript.js'
|
|
2029
|
-
]);
|
|
2030
|
-
```
|
|
2031
2424
|
|
|
2032
2425
|
|
|
2033
2426
|
##### Returns
|
|
2034
2427
|
|
|
2035
2428
|
|
|
2036
|
-
-
|
|
2429
|
+
- true: they are valid; false: they are not
|
|
2037
2430
|
|
|
2038
2431
|
|
|
2039
2432
|
|
|
2040
|
-
####
|
|
2433
|
+
#### getParamsToMergeDeep(settings)
|
|
2041
2434
|
|
|
2042
|
-
|
|
2043
|
-
return a Promise that is resolved when the script is loaded
|
|
2435
|
+
Validates and gets the settings with all set parameters.
|
|
2044
2436
|
|
|
2045
2437
|
|
|
2046
2438
|
|
|
@@ -2049,9 +2441,7 @@ return a Promise that is resolved when the script is loaded
|
|
|
2049
2441
|
|
|
2050
2442
|
| Name | Type | Description | |
|
|
2051
2443
|
| ---- | ---- | ----------- | -------- |
|
|
2052
|
-
|
|
|
2053
|
-
| type | `String` | (Optional) it could be `module` of `text/javascript`. Default `text/javascript` | |
|
|
2054
|
-
| noModule | `boolean` | (Optional) add `momodule` attribute to script tag. Default `false` | |
|
|
2444
|
+
| settings | | the settings object | |
|
|
2055
2445
|
|
|
2056
2446
|
|
|
2057
2447
|
|
|
@@ -2059,17 +2449,17 @@ return a Promise that is resolved when the script is loaded
|
|
|
2059
2449
|
##### Returns
|
|
2060
2450
|
|
|
2061
2451
|
|
|
2062
|
-
-
|
|
2452
|
+
- a new settings object with all set parameters.
|
|
2063
2453
|
|
|
2064
2454
|
|
|
2065
2455
|
|
|
2066
2456
|
|
|
2067
|
-
### dist/general/
|
|
2457
|
+
### dist/general/object/objectCopy.js
|
|
2068
2458
|
|
|
2069
2459
|
|
|
2070
|
-
####
|
|
2460
|
+
#### objectCopy(entity, cache)
|
|
2071
2461
|
|
|
2072
|
-
|
|
2462
|
+
Created a new reference of the given argument
|
|
2073
2463
|
|
|
2074
2464
|
|
|
2075
2465
|
|
|
@@ -2078,8 +2468,8 @@ Validates if the given argument is empty
|
|
|
2078
2468
|
|
|
2079
2469
|
| Name | Type | Description | |
|
|
2080
2470
|
| ---- | ---- | ----------- | -------- |
|
|
2081
|
-
|
|
|
2082
|
-
|
|
|
2471
|
+
| entity | | The variable to be copied | |
|
|
2472
|
+
| cache | | | |
|
|
2083
2473
|
|
|
2084
2474
|
|
|
2085
2475
|
|
|
@@ -2087,18 +2477,17 @@ Validates if the given argument is empty
|
|
|
2087
2477
|
##### Returns
|
|
2088
2478
|
|
|
2089
2479
|
|
|
2090
|
-
-
|
|
2480
|
+
- A new reference of the given argument
|
|
2091
2481
|
|
|
2092
2482
|
|
|
2093
2483
|
|
|
2094
2484
|
|
|
2095
|
-
### dist/general/
|
|
2485
|
+
### dist/general/object/omit.js
|
|
2096
2486
|
|
|
2097
2487
|
|
|
2098
|
-
####
|
|
2488
|
+
#### omit(obj, props)
|
|
2099
2489
|
|
|
2100
|
-
return
|
|
2101
|
-
useful to avoid falsify validating Number Zero (0)
|
|
2490
|
+
return a new Object excluding attributes in _props_ list
|
|
2102
2491
|
|
|
2103
2492
|
|
|
2104
2493
|
|
|
@@ -2107,7 +2496,8 @@ useful to avoid falsify validating Number Zero (0)
|
|
|
2107
2496
|
|
|
2108
2497
|
| Name | Type | Description | |
|
|
2109
2498
|
| ---- | ---- | ----------- | -------- |
|
|
2110
|
-
|
|
|
2499
|
+
| obj | `Object` | base object | |
|
|
2500
|
+
| props | `Array.<String>` | list of attribute to exclude | |
|
|
2111
2501
|
|
|
2112
2502
|
|
|
2113
2503
|
|
|
@@ -2115,19 +2505,17 @@ useful to avoid falsify validating Number Zero (0)
|
|
|
2115
2505
|
##### Returns
|
|
2116
2506
|
|
|
2117
2507
|
|
|
2118
|
-
- `
|
|
2508
|
+
- `Object` clean object
|
|
2119
2509
|
|
|
2120
2510
|
|
|
2121
2511
|
|
|
2122
2512
|
|
|
2123
|
-
### dist/general/
|
|
2513
|
+
### dist/general/object/pick.js
|
|
2124
2514
|
|
|
2125
2515
|
|
|
2126
|
-
####
|
|
2516
|
+
#### pick(baseObject, keys)
|
|
2127
2517
|
|
|
2128
|
-
|
|
2129
|
-
- If the first given argument is different than a length number, the variable is replaced by a default number
|
|
2130
|
-
- If the optional second given argument is passed the random string is permutated.
|
|
2518
|
+
return a new object just with attributes in _keys_ list
|
|
2131
2519
|
|
|
2132
2520
|
|
|
2133
2521
|
|
|
@@ -2136,8 +2524,8 @@ Creates a random string
|
|
|
2136
2524
|
|
|
2137
2525
|
| Name | Type | Description | |
|
|
2138
2526
|
| ---- | ---- | ----------- | -------- |
|
|
2139
|
-
|
|
|
2140
|
-
|
|
|
2527
|
+
| baseObject | `Object` | base object | |
|
|
2528
|
+
| keys | `Array.<String>` | list of attributes to preserve | |
|
|
2141
2529
|
|
|
2142
2530
|
|
|
2143
2531
|
|
|
@@ -2145,19 +2533,17 @@ Creates a random string
|
|
|
2145
2533
|
##### Returns
|
|
2146
2534
|
|
|
2147
2535
|
|
|
2148
|
-
- `
|
|
2536
|
+
- `Object` new object just with desired attributes
|
|
2149
2537
|
|
|
2150
2538
|
|
|
2151
2539
|
|
|
2152
2540
|
|
|
2153
|
-
### dist/general/
|
|
2541
|
+
### dist/general/object/serialize.js
|
|
2154
2542
|
|
|
2155
2543
|
|
|
2156
|
-
####
|
|
2544
|
+
#### serialize(obj)
|
|
2157
2545
|
|
|
2158
|
-
|
|
2159
|
-
- Useful for Object, Array and string type.
|
|
2160
|
-
- For `null` or `undefined` or else argument the returned value will be 0.
|
|
2546
|
+
serialize object to url param
|
|
2161
2547
|
|
|
2162
2548
|
|
|
2163
2549
|
|
|
@@ -2166,7 +2552,7 @@ Gets the length of the given array.
|
|
|
2166
2552
|
|
|
2167
2553
|
| Name | Type | Description | |
|
|
2168
2554
|
| ---- | ---- | ----------- | -------- |
|
|
2169
|
-
| obj |
|
|
2555
|
+
| obj | | - Object to be serialized | |
|
|
2170
2556
|
|
|
2171
2557
|
|
|
2172
2558
|
|
|
@@ -2174,7 +2560,7 @@ Gets the length of the given array.
|
|
|
2174
2560
|
##### Returns
|
|
2175
2561
|
|
|
2176
2562
|
|
|
2177
|
-
- `
|
|
2563
|
+
- `Void`
|
|
2178
2564
|
|
|
2179
2565
|
|
|
2180
2566
|
|
|
@@ -2453,12 +2839,12 @@ try to find this string as a variable on Windows object
|
|
|
2453
2839
|
|
|
2454
2840
|
|
|
2455
2841
|
|
|
2456
|
-
### dist/dates/relative/helpers/
|
|
2842
|
+
### dist/dates/relative/helpers/getStatementCase.js
|
|
2457
2843
|
|
|
2458
2844
|
|
|
2459
|
-
####
|
|
2845
|
+
#### getStatementCase(includeCurrent, isCalendarDate)
|
|
2460
2846
|
|
|
2461
|
-
|
|
2847
|
+
Returns a number/constant that identifies a relative date case
|
|
2462
2848
|
|
|
2463
2849
|
|
|
2464
2850
|
|
|
@@ -2467,7 +2853,8 @@ Build a proper relative date statement type
|
|
|
2467
2853
|
|
|
2468
2854
|
| Name | Type | Description | |
|
|
2469
2855
|
| ---- | ---- | ----------- | -------- |
|
|
2470
|
-
|
|
|
2856
|
+
| includeCurrent | `boolean` | | |
|
|
2857
|
+
| isCalendarDate | `boolean` | | |
|
|
2471
2858
|
|
|
2472
2859
|
|
|
2473
2860
|
|
|
@@ -2475,17 +2862,17 @@ Build a proper relative date statement type
|
|
|
2475
2862
|
##### Returns
|
|
2476
2863
|
|
|
2477
2864
|
|
|
2478
|
-
- `
|
|
2865
|
+
- `number`
|
|
2479
2866
|
|
|
2480
2867
|
|
|
2481
2868
|
|
|
2482
2869
|
|
|
2483
|
-
### dist/dates/relative/helpers/
|
|
2870
|
+
### dist/dates/relative/helpers/formatStatement.js
|
|
2484
2871
|
|
|
2485
2872
|
|
|
2486
|
-
####
|
|
2873
|
+
#### formatStatement(statement)
|
|
2487
2874
|
|
|
2488
|
-
|
|
2875
|
+
Build a proper relative date statement type
|
|
2489
2876
|
|
|
2490
2877
|
|
|
2491
2878
|
|
|
@@ -2494,8 +2881,7 @@ Returns a number/constant that identifies a relative date case
|
|
|
2494
2881
|
|
|
2495
2882
|
| Name | Type | Description | |
|
|
2496
2883
|
| ---- | ---- | ----------- | -------- |
|
|
2497
|
-
|
|
|
2498
|
-
| isCalendarDate | `boolean` | | |
|
|
2884
|
+
| statement | `RelativeStatement` | | |
|
|
2499
2885
|
|
|
2500
2886
|
|
|
2501
2887
|
|
|
@@ -2503,7 +2889,7 @@ Returns a number/constant that identifies a relative date case
|
|
|
2503
2889
|
##### Returns
|
|
2504
2890
|
|
|
2505
2891
|
|
|
2506
|
-
- `
|
|
2892
|
+
- `RelativeStatement`
|
|
2507
2893
|
|
|
2508
2894
|
|
|
2509
2895
|
|
|
@@ -2858,12 +3244,12 @@ Returns a filter builder config object by a any given config
|
|
|
2858
3244
|
|
|
2859
3245
|
|
|
2860
3246
|
|
|
2861
|
-
### dist/filters/helpers/common/
|
|
3247
|
+
### dist/filters/helpers/common/areFiltersEquals.js
|
|
2862
3248
|
|
|
2863
3249
|
|
|
2864
|
-
####
|
|
3250
|
+
#### areFiltersEquals(filter1, filter2)
|
|
2865
3251
|
|
|
2866
|
-
|
|
3252
|
+
Validates if both filters are the same
|
|
2867
3253
|
|
|
2868
3254
|
|
|
2869
3255
|
|
|
@@ -2872,7 +3258,8 @@ Excludes Aggregate Filters in the Filter Data. Excluding filters when the column
|
|
|
2872
3258
|
|
|
2873
3259
|
| Name | Type | Description | |
|
|
2874
3260
|
| ---- | ---- | ----------- | -------- |
|
|
2875
|
-
|
|
|
3261
|
+
| filter1 | | filter 1 | |
|
|
3262
|
+
| filter2 | | filter 2 | |
|
|
2876
3263
|
|
|
2877
3264
|
|
|
2878
3265
|
|
|
@@ -2880,17 +3267,17 @@ Excludes Aggregate Filters in the Filter Data. Excluding filters when the column
|
|
|
2880
3267
|
##### Returns
|
|
2881
3268
|
|
|
2882
3269
|
|
|
2883
|
-
-
|
|
3270
|
+
- true: the filters are equal; false: the filters are NOT equal
|
|
2884
3271
|
|
|
2885
3272
|
|
|
2886
3273
|
|
|
2887
3274
|
|
|
2888
|
-
### dist/filters/helpers/common/
|
|
3275
|
+
### dist/filters/helpers/common/excludeFiltersByAggregateColumn.js
|
|
2889
3276
|
|
|
2890
3277
|
|
|
2891
|
-
####
|
|
3278
|
+
#### excludeFiltersByAggregateColumn(filterData)
|
|
2892
3279
|
|
|
2893
|
-
|
|
3280
|
+
Excludes Aggregate Filters in the Filter Data. Excluding filters when the column.aggregate is included.
|
|
2894
3281
|
|
|
2895
3282
|
|
|
2896
3283
|
|
|
@@ -2899,8 +3286,7 @@ Validates if both filters are the same
|
|
|
2899
3286
|
|
|
2900
3287
|
| Name | Type | Description | |
|
|
2901
3288
|
| ---- | ---- | ----------- | -------- |
|
|
2902
|
-
|
|
|
2903
|
-
| filter2 | | filter 2 | |
|
|
3289
|
+
| filterData | | The filter data object | |
|
|
2904
3290
|
|
|
2905
3291
|
|
|
2906
3292
|
|
|
@@ -2908,7 +3294,7 @@ Validates if both filters are the same
|
|
|
2908
3294
|
##### Returns
|
|
2909
3295
|
|
|
2910
3296
|
|
|
2911
|
-
-
|
|
3297
|
+
- The new filter data object that were excluded the aggregate filters
|
|
2912
3298
|
|
|
2913
3299
|
|
|
2914
3300
|
|
|
@@ -3218,12 +3604,12 @@ Get a new Filter Data by filtering scopes/scope IDs and enabled flags
|
|
|
3218
3604
|
|
|
3219
3605
|
|
|
3220
3606
|
|
|
3221
|
-
### dist/filters/helpers/common/
|
|
3607
|
+
### dist/filters/helpers/common/getMergeFiltersSettings.js
|
|
3222
3608
|
|
|
3223
3609
|
|
|
3224
|
-
####
|
|
3610
|
+
#### getMergeFiltersSettings(settings)
|
|
3225
3611
|
|
|
3226
|
-
Transforms the given
|
|
3612
|
+
Transforms the given MergeFilters settings object. Adds the missing properties if they do not exist.
|
|
3227
3613
|
|
|
3228
3614
|
|
|
3229
3615
|
|
|
@@ -3232,7 +3618,7 @@ Transforms the given ParamsToGetFilter settings object. Adds the missing propert
|
|
|
3232
3618
|
|
|
3233
3619
|
| Name | Type | Description | |
|
|
3234
3620
|
| ---- | ---- | ----------- | -------- |
|
|
3235
|
-
| settings | | an object to the
|
|
3621
|
+
| settings | | an object to the MergeFilters settings | |
|
|
3236
3622
|
|
|
3237
3623
|
|
|
3238
3624
|
|
|
@@ -3240,17 +3626,17 @@ Transforms the given ParamsToGetFilter settings object. Adds the missing propert
|
|
|
3240
3626
|
##### Returns
|
|
3241
3627
|
|
|
3242
3628
|
|
|
3243
|
-
- a new
|
|
3629
|
+
- a new MergeFilters settings object.
|
|
3244
3630
|
|
|
3245
3631
|
|
|
3246
3632
|
|
|
3247
3633
|
|
|
3248
|
-
### dist/filters/helpers/common/
|
|
3634
|
+
### dist/filters/helpers/common/getParamsToGetFilterSettings.js
|
|
3249
3635
|
|
|
3250
3636
|
|
|
3251
|
-
####
|
|
3637
|
+
#### getParamsToGetFilterSettings(settings)
|
|
3252
3638
|
|
|
3253
|
-
Transforms the given
|
|
3639
|
+
Transforms the given ParamsToGetFilter settings object. Adds the missing properties if they do not exist.
|
|
3254
3640
|
|
|
3255
3641
|
|
|
3256
3642
|
|
|
@@ -3259,7 +3645,7 @@ Transforms the given MergeFilters settings object. Adds the missing properties i
|
|
|
3259
3645
|
|
|
3260
3646
|
| Name | Type | Description | |
|
|
3261
3647
|
| ---- | ---- | ----------- | -------- |
|
|
3262
|
-
| settings | | an object to the
|
|
3648
|
+
| settings | | an object to the ParamsToGetFilter settings | |
|
|
3263
3649
|
|
|
3264
3650
|
|
|
3265
3651
|
|
|
@@ -3267,7 +3653,7 @@ Transforms the given MergeFilters settings object. Adds the missing properties i
|
|
|
3267
3653
|
##### Returns
|
|
3268
3654
|
|
|
3269
3655
|
|
|
3270
|
-
- a new
|
|
3656
|
+
- a new ParamsToGetFilter settings object.
|
|
3271
3657
|
|
|
3272
3658
|
|
|
3273
3659
|
|
|
@@ -3820,51 +4206,51 @@ The validation to filter the stored filter is depending on:
|
|
|
3820
4206
|
|
|
3821
4207
|
|
|
3822
4208
|
|
|
3823
|
-
### dist/filters/helpers/ui/
|
|
4209
|
+
### dist/filters/helpers/ui/getUIFlatFiltersByParams.js
|
|
3824
4210
|
|
|
3825
4211
|
|
|
3826
|
-
####
|
|
4212
|
+
#### getUIFlatFiltersByParams()
|
|
3827
4213
|
|
|
3828
|
-
|
|
4214
|
+
Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
|
|
4215
|
+
The validation to filter the stored filter is depending on:
|
|
4216
|
+
- Column
|
|
4217
|
+
- Qrvey ID,
|
|
4218
|
+
- Scope type
|
|
4219
|
+
- Scope ID
|
|
4220
|
+
- Panel ID
|
|
4221
|
+
- Validator type
|
|
4222
|
+
- Property type
|
|
4223
|
+
- Enabled flags
|
|
3829
4224
|
|
|
3830
4225
|
|
|
3831
4226
|
|
|
3832
4227
|
|
|
3833
|
-
##### Parameters
|
|
3834
4228
|
|
|
3835
|
-
| Name | Type | Description | |
|
|
3836
|
-
| ---- | ---- | ----------- | -------- |
|
|
3837
|
-
| uFilters | | The Flatten UI Filters | |
|
|
3838
|
-
| scopes | | collection of scopes types | |
|
|
3839
4229
|
|
|
4230
|
+
##### Returns
|
|
3840
4231
|
|
|
3841
4232
|
|
|
4233
|
+
- The index of the uFilter array or the Filter object s
|
|
3842
4234
|
|
|
3843
|
-
##### Returns
|
|
3844
4235
|
|
|
3845
4236
|
|
|
3846
|
-
- The new array of UI Flattened filters
|
|
3847
4237
|
|
|
4238
|
+
### dist/filters/helpers/ui/getUIFlatFiltersByScopes.js
|
|
3848
4239
|
|
|
3849
4240
|
|
|
4241
|
+
#### getUIFlatFiltersByScopes(uFilters, scopes)
|
|
3850
4242
|
|
|
3851
|
-
|
|
4243
|
+
Filters and gets a UI Flatten Filters by the given scopes
|
|
3852
4244
|
|
|
3853
4245
|
|
|
3854
|
-
#### getUIFlatFiltersByParams()
|
|
3855
4246
|
|
|
3856
|
-
Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
|
|
3857
|
-
The validation to filter the stored filter is depending on:
|
|
3858
|
-
- Column
|
|
3859
|
-
- Qrvey ID,
|
|
3860
|
-
- Scope type
|
|
3861
|
-
- Scope ID
|
|
3862
|
-
- Panel ID
|
|
3863
|
-
- Validator type
|
|
3864
|
-
- Property type
|
|
3865
|
-
- Enabled flags
|
|
3866
4247
|
|
|
4248
|
+
##### Parameters
|
|
3867
4249
|
|
|
4250
|
+
| Name | Type | Description | |
|
|
4251
|
+
| ---- | ---- | ----------- | -------- |
|
|
4252
|
+
| uFilters | | The Flatten UI Filters | |
|
|
4253
|
+
| scopes | | collection of scopes types | |
|
|
3868
4254
|
|
|
3869
4255
|
|
|
3870
4256
|
|
|
@@ -3872,7 +4258,7 @@ The validation to filter the stored filter is depending on:
|
|
|
3872
4258
|
##### Returns
|
|
3873
4259
|
|
|
3874
4260
|
|
|
3875
|
-
- The
|
|
4261
|
+
- The new array of UI Flattened filters
|
|
3876
4262
|
|
|
3877
4263
|
|
|
3878
4264
|
|