@qrvey/utils 1.2.4-2 → 1.2.4-20
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 +1159 -773
- 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 +33 -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 +11 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderOperator.js +2 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderSentimentBucket.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/II18nBucketBuilderSentimentBucket.js +2 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/index.d.ts +12 -0
- package/dist/cjs/globalization/interfaces/bucket_builder/index.js +24 -0
- package/dist/cjs/globalization/interfaces/common/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 +14 -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 +19 -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 +120 -0
- package/dist/cjs/globalization/labels/bucket_builder/index.d.ts +1 -0
- package/dist/cjs/globalization/labels/bucket_builder/index.js +13 -0
- package/dist/cjs/globalization/labels/common/I18N_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 +14 -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 +60 -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 +33 -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 +11 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderOperator.js +1 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderSentimentBucket.d.ts +6 -0
- package/dist/globalization/interfaces/bucket_builder/II18nBucketBuilderSentimentBucket.js +1 -0
- package/dist/globalization/interfaces/bucket_builder/index.d.ts +12 -0
- package/dist/globalization/interfaces/bucket_builder/index.js +12 -0
- package/dist/globalization/interfaces/common/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 +14 -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 +19 -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 +117 -0
- package/dist/globalization/labels/bucket_builder/index.d.ts +1 -0
- package/dist/globalization/labels/bucket_builder/index.js +1 -0
- package/dist/globalization/labels/common/I18N_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 +14 -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 +57 -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 +33 -0
- package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderCustomBucket.ts +15 -0
- package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderDeleteDialog.ts +6 -0
- package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderEditDialog.ts +6 -0
- package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderListBuckets.ts +6 -0
- package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderMenuBucket.ts +5 -0
- package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderMessages.ts +7 -0
- package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderModalBucket.ts +5 -0
- package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderOperator.ts +11 -0
- package/src/globalization/interfaces/bucket_builder/II18nBucketBuilderSentimentBucket.ts +6 -0
- package/src/globalization/interfaces/bucket_builder/index.ts +12 -0
- package/src/globalization/interfaces/common/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 +14 -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 +20 -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 +119 -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 +14 -0
- package/src/globalization/labels/cross_tabs/index.ts +1 -0
- package/src/globalization/labels/filters/I18N_FILTER.ts +15 -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 +59 -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-20*
|
|
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/getDateFormatByProperty.js
|
|
238
224
|
|
|
239
225
|
|
|
240
|
-
####
|
|
226
|
+
#### getDateFormatByProperty(property)
|
|
241
227
|
|
|
242
|
-
|
|
228
|
+
Gets the date format by the given property
|
|
243
229
|
|
|
244
230
|
|
|
245
231
|
|
|
@@ -248,8 +234,7 @@ Replace '@now' token inside a string
|
|
|
248
234
|
|
|
249
235
|
| Name | Type | Description | |
|
|
250
236
|
| ---- | ---- | ----------- | -------- |
|
|
251
|
-
|
|
|
252
|
-
| now | `Date` | | |
|
|
237
|
+
| property | | The Column Property | |
|
|
253
238
|
|
|
254
239
|
|
|
255
240
|
|
|
@@ -257,60 +242,46 @@ Replace '@now' token inside a string
|
|
|
257
242
|
##### Returns
|
|
258
243
|
|
|
259
244
|
|
|
260
|
-
-
|
|
245
|
+
- The date format
|
|
261
246
|
|
|
262
247
|
|
|
263
248
|
|
|
264
|
-
#### convertRelativeToAbsolute(args)
|
|
265
249
|
|
|
266
|
-
|
|
250
|
+
### dist/dates/helpers/getDateByDateFormat.js
|
|
267
251
|
|
|
268
252
|
|
|
253
|
+
#### getDateByDateFormat(date, format, time)
|
|
269
254
|
|
|
255
|
+
Gets a Date Object instance by a Date format
|
|
270
256
|
|
|
271
|
-
##### Parameters
|
|
272
257
|
|
|
273
|
-
| Name | Type | Description | |
|
|
274
|
-
| ---- | ---- | ----------- | -------- |
|
|
275
|
-
| args | `RelativeToAbsoluteStruct` | | |
|
|
276
258
|
|
|
277
259
|
|
|
260
|
+
##### Parameters
|
|
278
261
|
|
|
262
|
+
| Name | Type | Description | |
|
|
263
|
+
| ---- | ---- | ----------- | -------- |
|
|
264
|
+
| date | | String with a formatted date | |
|
|
265
|
+
| format | | The date format | |
|
|
266
|
+
| time | | flag to convert the formatted date to miliseconds | |
|
|
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
|
+
- a Date object, milisecond time or the same value if date format does not match.
|
|
304
275
|
|
|
305
276
|
|
|
306
277
|
|
|
307
278
|
|
|
308
|
-
### dist/dates/
|
|
279
|
+
### dist/dates/helpers/getDateFormatRegularExpressionInArray.js
|
|
309
280
|
|
|
310
281
|
|
|
311
|
-
####
|
|
282
|
+
#### getDateFormatRegularExpressionInArray(dateFormat)
|
|
312
283
|
|
|
313
|
-
|
|
284
|
+
Gets an array of regular expressions by the given date format
|
|
314
285
|
|
|
315
286
|
|
|
316
287
|
|
|
@@ -319,44 +290,25 @@ Resolve a list of relative statements according to operator
|
|
|
319
290
|
|
|
320
291
|
| Name | Type | Description | |
|
|
321
292
|
| ---- | ---- | ----------- | -------- |
|
|
322
|
-
|
|
|
323
|
-
| clock | `Date` | - Clock/time reference for relative date resolution | |
|
|
293
|
+
| dateFormat | | the date format | |
|
|
324
294
|
|
|
325
295
|
|
|
326
296
|
|
|
327
297
|
|
|
328
|
-
##### Examples
|
|
329
|
-
|
|
330
|
-
```javascript
|
|
331
|
-
Input:
|
|
332
|
-
{
|
|
333
|
-
"cursor": "the_next",
|
|
334
|
-
"unit": "year",
|
|
335
|
-
"number": 1,
|
|
336
|
-
"includeCurrent": false,
|
|
337
|
-
"isCalendarDate": false,
|
|
338
|
-
"anchor": "03/05/2021"
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
Output:
|
|
342
|
-
{ gte: "03/06/2021 00:00:00", lte: "03/05/2022 23:59:59" }
|
|
343
|
-
```
|
|
344
|
-
|
|
345
|
-
|
|
346
298
|
##### Returns
|
|
347
299
|
|
|
348
300
|
|
|
349
|
-
-
|
|
301
|
+
- an array of regular expressions
|
|
350
302
|
|
|
351
303
|
|
|
352
304
|
|
|
353
305
|
|
|
354
|
-
### dist/
|
|
306
|
+
### dist/dates/helpers/getSeparatorByDateFormat.js
|
|
355
307
|
|
|
356
308
|
|
|
357
|
-
####
|
|
309
|
+
#### getSeparatorByDateFormat(format)
|
|
358
310
|
|
|
359
|
-
|
|
311
|
+
Gets the separator of the date format
|
|
360
312
|
|
|
361
313
|
|
|
362
314
|
|
|
@@ -365,8 +317,7 @@ Generates a Flattened UI filter structure from Filter Data structure.
|
|
|
365
317
|
|
|
366
318
|
| Name | Type | Description | |
|
|
367
319
|
| ---- | ---- | ----------- | -------- |
|
|
368
|
-
|
|
|
369
|
-
| datasetsInfo | | Collection of datasets information | |
|
|
320
|
+
| format | | the date format | |
|
|
370
321
|
|
|
371
322
|
|
|
372
323
|
|
|
@@ -374,13 +325,18 @@ Generates a Flattened UI filter structure from Filter Data structure.
|
|
|
374
325
|
##### Returns
|
|
375
326
|
|
|
376
327
|
|
|
377
|
-
- a
|
|
328
|
+
- a separator string
|
|
378
329
|
|
|
379
330
|
|
|
380
331
|
|
|
381
|
-
#### FD21ToFlatUI(scopes, datasetsInfo)
|
|
382
332
|
|
|
383
|
-
|
|
333
|
+
### dist/dates/helpers/getWeek.js
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
#### getWeek(date)
|
|
337
|
+
|
|
338
|
+
Gets the week number of the year
|
|
339
|
+
Additionally, the month and the year
|
|
384
340
|
|
|
385
341
|
|
|
386
342
|
|
|
@@ -389,8 +345,7 @@ Generates a Filter Builder Structure from the Filter Data structure v2.1
|
|
|
389
345
|
|
|
390
346
|
| Name | Type | Description | |
|
|
391
347
|
| ---- | ---- | ----------- | -------- |
|
|
392
|
-
|
|
|
393
|
-
| datasetsInfo | | Collection of datasets information | |
|
|
348
|
+
| date | | the date object | |
|
|
394
349
|
|
|
395
350
|
|
|
396
351
|
|
|
@@ -398,17 +353,20 @@ Generates a Filter Builder Structure from the Filter Data structure v2.1
|
|
|
398
353
|
##### Returns
|
|
399
354
|
|
|
400
355
|
|
|
401
|
-
-
|
|
356
|
+
- an object with the week, month and year.
|
|
402
357
|
|
|
403
358
|
|
|
404
359
|
|
|
405
360
|
|
|
406
|
-
### dist/
|
|
361
|
+
### dist/dates/helpers/validateDate.js
|
|
407
362
|
|
|
408
363
|
|
|
409
|
-
####
|
|
364
|
+
#### validateDate(date, format)
|
|
410
365
|
|
|
411
|
-
|
|
366
|
+
Validate a string date depending on giving format
|
|
367
|
+
- If the string is a token label, the function lets it pass.
|
|
368
|
+
- Otherwise depends of the format
|
|
369
|
+
- Some escenarios the string is a mix of token labels and dates
|
|
412
370
|
|
|
413
371
|
|
|
414
372
|
|
|
@@ -417,7 +375,8 @@ Generates a Filter Logic structure from Filter Data structure.
|
|
|
417
375
|
|
|
418
376
|
| Name | Type | Description | |
|
|
419
377
|
| ---- | ---- | ----------- | -------- |
|
|
420
|
-
|
|
|
378
|
+
| date | | String of date | |
|
|
379
|
+
| format | | String of the format to validate | |
|
|
421
380
|
|
|
422
381
|
|
|
423
382
|
|
|
@@ -425,13 +384,17 @@ Generates a Filter Logic structure from Filter Data structure.
|
|
|
425
384
|
##### Returns
|
|
426
385
|
|
|
427
386
|
|
|
428
|
-
-
|
|
387
|
+
- True if it is valid or not. Undefined if date is undefined
|
|
429
388
|
|
|
430
389
|
|
|
431
390
|
|
|
432
|
-
#### getLogicBodyFromFD21(filterData)
|
|
433
391
|
|
|
434
|
-
|
|
392
|
+
### dist/dates/helpers/validateDateByDateFormat.js
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
#### validateDateByDateFormat(date, dateForma)
|
|
396
|
+
|
|
397
|
+
Validates the given string as Date by its date format.
|
|
435
398
|
|
|
436
399
|
|
|
437
400
|
|
|
@@ -440,7 +403,8 @@ Gets the logic body
|
|
|
440
403
|
|
|
441
404
|
| Name | Type | Description | |
|
|
442
405
|
| ---- | ---- | ----------- | -------- |
|
|
443
|
-
|
|
|
406
|
+
| date | | a string to validate as date form | |
|
|
407
|
+
| dateForma | | the format of the date to validate the string | |
|
|
444
408
|
|
|
445
409
|
|
|
446
410
|
|
|
@@ -448,17 +412,17 @@ Gets the logic body
|
|
|
448
412
|
##### Returns
|
|
449
413
|
|
|
450
414
|
|
|
451
|
-
- a
|
|
415
|
+
- true: the string is a valida date
|
|
452
416
|
|
|
453
417
|
|
|
454
418
|
|
|
455
419
|
|
|
456
|
-
### dist/
|
|
420
|
+
### dist/dates/range/getDateRange.js
|
|
457
421
|
|
|
458
422
|
|
|
459
|
-
####
|
|
423
|
+
#### getDateRange(value, dateGroupLabel, withTime)
|
|
460
424
|
|
|
461
|
-
|
|
425
|
+
Get date range object from a string date value
|
|
462
426
|
|
|
463
427
|
|
|
464
428
|
|
|
@@ -467,61 +431,74 @@ Generates a UI filter structure from Filter Data structure.
|
|
|
467
431
|
|
|
468
432
|
| Name | Type | Description | |
|
|
469
433
|
| ---- | ---- | ----------- | -------- |
|
|
470
|
-
|
|
|
471
|
-
|
|
|
472
|
-
|
|
434
|
+
| value | `String` | string date value | |
|
|
435
|
+
| dateGroupLabel | `String` | could be 'YEAR', 'QUARTER', 'MONTH' or 'DAY'. Deafult is 'DAY' | |
|
|
436
|
+
| withTime | `Boolean` | determines if the date range will include time. Default is true | |
|
|
473
437
|
|
|
474
438
|
|
|
475
439
|
|
|
476
|
-
##### Returns
|
|
477
440
|
|
|
441
|
+
##### Examples
|
|
478
442
|
|
|
479
|
-
|
|
443
|
+
```javascript
|
|
444
|
+
// 1) Year:
|
|
445
|
+
getDateRange('2020', 'YEAR');
|
|
446
|
+
// Will return:
|
|
447
|
+
{
|
|
448
|
+
from: '01/01/2020 00:00:00',
|
|
449
|
+
to: '12/31/2020 23:59:59'
|
|
450
|
+
}
|
|
480
451
|
|
|
452
|
+
// 2) Quarter:
|
|
453
|
+
getDateRange('Q3 2020', 'QUARTER');
|
|
454
|
+
// Will return:
|
|
455
|
+
{
|
|
456
|
+
from: '07/01/2020 00:00:00',
|
|
457
|
+
to: '09/30/2020 23:59:59'
|
|
458
|
+
}
|
|
481
459
|
|
|
460
|
+
// 3) Month:
|
|
461
|
+
getDateRange('Oct 2020', 'MONTH');
|
|
462
|
+
// Will return:
|
|
463
|
+
{
|
|
464
|
+
from: '10/01/2020 00:00:00',
|
|
465
|
+
to: '10/31/2020 23:59:59'
|
|
466
|
+
}
|
|
467
|
+
```
|
|
482
468
|
|
|
483
|
-
#### FD21ToUI(scopes, section, version, datasetsInfo)
|
|
484
469
|
|
|
485
|
-
|
|
470
|
+
##### Returns
|
|
486
471
|
|
|
487
472
|
|
|
473
|
+
- `Object` an object with the date range with two string date properties: from and to
|
|
488
474
|
|
|
489
475
|
|
|
490
|
-
##### Parameters
|
|
491
476
|
|
|
492
|
-
| Name | Type | Description | |
|
|
493
|
-
| ---- | ---- | ----------- | -------- |
|
|
494
|
-
| scopes | | The filter scope section | |
|
|
495
|
-
| section | | The filter section. | |
|
|
496
|
-
| version | | The version of the filter structure | |
|
|
497
|
-
| datasetsInfo | | Collection of datasets information | |
|
|
498
477
|
|
|
478
|
+
### dist/dates/relative/Adapter.js
|
|
499
479
|
|
|
500
480
|
|
|
481
|
+
#### value()
|
|
501
482
|
|
|
502
|
-
|
|
483
|
+
Resolves statement and returns statement value
|
|
503
484
|
|
|
504
485
|
|
|
505
|
-
- a UI filter Structure
|
|
506
486
|
|
|
507
487
|
|
|
508
488
|
|
|
509
489
|
|
|
510
|
-
|
|
490
|
+
##### Returns
|
|
511
491
|
|
|
512
492
|
|
|
513
|
-
|
|
493
|
+
- `AbsoluteRange` `string`
|
|
514
494
|
|
|
515
|
-
Generates a Filter Data Structure structure from UI Filter Data structure.
|
|
516
495
|
|
|
517
496
|
|
|
497
|
+
#### valueAsAnchor()
|
|
518
498
|
|
|
499
|
+
Resolves statement as an anchor
|
|
519
500
|
|
|
520
|
-
##### Parameters
|
|
521
501
|
|
|
522
|
-
| Name | Type | Description | |
|
|
523
|
-
| ---- | ---- | ----------- | -------- |
|
|
524
|
-
| filterData | | The UI filter data object. | |
|
|
525
502
|
|
|
526
503
|
|
|
527
504
|
|
|
@@ -529,74 +506,63 @@ Generates a Filter Data Structure structure from UI Filter Data structure.
|
|
|
529
506
|
##### Returns
|
|
530
507
|
|
|
531
508
|
|
|
532
|
-
-
|
|
509
|
+
- `string`
|
|
533
510
|
|
|
534
511
|
|
|
535
512
|
|
|
536
|
-
####
|
|
513
|
+
#### _statementToRange() *private method*
|
|
537
514
|
|
|
538
|
-
|
|
515
|
+
Convert verbal statement to range value
|
|
539
516
|
|
|
540
517
|
|
|
541
518
|
|
|
542
519
|
|
|
543
|
-
##### Parameters
|
|
544
520
|
|
|
545
|
-
| Name | Type | Description | |
|
|
546
|
-
| ---- | ---- | ----------- | -------- |
|
|
547
|
-
| uFilterData | | The UI filter Data object | |
|
|
548
|
-
| version | | the version of the structure | |
|
|
549
521
|
|
|
522
|
+
##### Returns
|
|
550
523
|
|
|
551
524
|
|
|
525
|
+
- `AbsoluteRange`
|
|
552
526
|
|
|
553
|
-
##### Returns
|
|
554
527
|
|
|
555
528
|
|
|
556
|
-
|
|
529
|
+
#### _resolveAsThis() *private method*
|
|
557
530
|
|
|
531
|
+
Apply 'this' cursor logic to statement
|
|
558
532
|
|
|
559
533
|
|
|
560
534
|
|
|
561
|
-
### dist/filters/adapters/UIToFlatUI.js
|
|
562
535
|
|
|
563
536
|
|
|
564
|
-
#### UIToFlatUI(filterData, datasetsInfo)
|
|
565
537
|
|
|
566
|
-
|
|
538
|
+
##### Returns
|
|
567
539
|
|
|
568
540
|
|
|
541
|
+
- `AbsoluteStatement`
|
|
569
542
|
|
|
570
543
|
|
|
571
|
-
##### Parameters
|
|
572
544
|
|
|
573
|
-
|
|
574
|
-
| ---- | ---- | ----------- | -------- |
|
|
575
|
-
| filterData | | The UI filter data object. | |
|
|
576
|
-
| datasetsInfo | | Collection of datasets information. Optional for updating the datasets info | |
|
|
545
|
+
#### _resolveAsTheLast() *private method*
|
|
577
546
|
|
|
547
|
+
Apply 'the last' cursor logic to statement
|
|
578
548
|
|
|
579
549
|
|
|
580
550
|
|
|
581
|
-
##### Returns
|
|
582
551
|
|
|
583
552
|
|
|
584
|
-
- a flattened UI filters array
|
|
585
553
|
|
|
554
|
+
##### Returns
|
|
586
555
|
|
|
587
556
|
|
|
588
|
-
|
|
557
|
+
- `AbsoluteStatement`
|
|
589
558
|
|
|
590
|
-
Generates a Flattened UI Filter Structure from the UI Filter Data structure v2.1
|
|
591
559
|
|
|
592
560
|
|
|
561
|
+
#### _resolveAsTheNext() *private method*
|
|
593
562
|
|
|
563
|
+
Apply 'the next' cursor logic to statement
|
|
594
564
|
|
|
595
|
-
##### Parameters
|
|
596
565
|
|
|
597
|
-
| Name | Type | Description | |
|
|
598
|
-
| ---- | ---- | ----------- | -------- |
|
|
599
|
-
| scopes | | The filter scope section | |
|
|
600
566
|
|
|
601
567
|
|
|
602
568
|
|
|
@@ -604,18 +570,13 @@ Generates a Flattened UI Filter Structure from the UI Filter Data structure v2.1
|
|
|
604
570
|
##### Returns
|
|
605
571
|
|
|
606
572
|
|
|
607
|
-
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
573
|
+
- `AbsoluteStatement`
|
|
611
574
|
|
|
612
|
-
### dist/filters/adapters/adaptDateGroupingProperty.js
|
|
613
575
|
|
|
614
576
|
|
|
615
|
-
####
|
|
577
|
+
#### replaceNowToken(value, now)
|
|
616
578
|
|
|
617
|
-
|
|
618
|
-
Get the new property base on the old date grouping properties
|
|
579
|
+
Replace '@now' token inside a string
|
|
619
580
|
|
|
620
581
|
|
|
621
582
|
|
|
@@ -624,7 +585,8 @@ Get the new property base on the old date grouping properties
|
|
|
624
585
|
|
|
625
586
|
| Name | Type | Description | |
|
|
626
587
|
| ---- | ---- | ----------- | -------- |
|
|
627
|
-
|
|
|
588
|
+
| value | `string` | | |
|
|
589
|
+
| now | `Date` | | |
|
|
628
590
|
|
|
629
591
|
|
|
630
592
|
|
|
@@ -632,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,18 @@ 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/adaptFilterValues.js
|
|
994
1007
|
|
|
995
1008
|
|
|
996
|
-
####
|
|
1009
|
+
#### adaptFilterValues(filter)
|
|
997
1010
|
|
|
998
|
-
|
|
1011
|
+
[TODO: For 2022, eliminate this adapter]
|
|
1012
|
+
Gets an adapted filter value array. Validates the enabled property and sets
|
|
999
1013
|
|
|
1000
1014
|
|
|
1001
1015
|
|
|
@@ -1004,8 +1018,7 @@ Generates a filter data structure from the old logic structure (v2.0).
|
|
|
1004
1018
|
|
|
1005
1019
|
| Name | Type | Description | |
|
|
1006
1020
|
| ---- | ---- | ----------- | -------- |
|
|
1007
|
-
|
|
|
1008
|
-
| version | | Tag for the version of the filter data structure | |
|
|
1021
|
+
| filter | | The filter | |
|
|
1009
1022
|
|
|
1010
1023
|
|
|
1011
1024
|
|
|
@@ -1013,17 +1026,17 @@ Generates a filter data structure from the old logic structure (v2.0).
|
|
|
1013
1026
|
##### Returns
|
|
1014
1027
|
|
|
1015
1028
|
|
|
1016
|
-
-
|
|
1029
|
+
- A new value array with the filled properties.
|
|
1017
1030
|
|
|
1018
1031
|
|
|
1019
1032
|
|
|
1020
1033
|
|
|
1021
|
-
### dist/filters/adapters/
|
|
1034
|
+
### dist/filters/adapters/flatUIToFD.js
|
|
1022
1035
|
|
|
1023
1036
|
|
|
1024
|
-
####
|
|
1037
|
+
#### flatUIToFD(uFilters, version)
|
|
1025
1038
|
|
|
1026
|
-
|
|
1039
|
+
Generates a filter data structure from the flatttened UI filters.
|
|
1027
1040
|
|
|
1028
1041
|
|
|
1029
1042
|
|
|
@@ -1032,7 +1045,8 @@ Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
|
|
|
1032
1045
|
|
|
1033
1046
|
| Name | Type | Description | |
|
|
1034
1047
|
| ---- | ---- | ----------- | -------- |
|
|
1035
|
-
|
|
|
1048
|
+
| uFilters | | Array of flattened filters from UI | |
|
|
1049
|
+
| version | | Tag for the version of the filter data structure | |
|
|
1036
1050
|
|
|
1037
1051
|
|
|
1038
1052
|
|
|
@@ -1040,13 +1054,599 @@ Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
|
|
|
1040
1054
|
##### Returns
|
|
1041
1055
|
|
|
1042
1056
|
|
|
1043
|
-
-
|
|
1057
|
+
- a Filter Data.
|
|
1044
1058
|
|
|
1045
1059
|
|
|
1046
1060
|
|
|
1047
|
-
####
|
|
1061
|
+
#### buildScopes(fbFilters)
|
|
1062
|
+
|
|
1063
|
+
Gets an array of scopes structure for the filter data. The scopes is organized by scope types and scope IDs
|
|
1064
|
+
Also, adds and organizes filters by datasets
|
|
1065
|
+
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
##### Parameters
|
|
1070
|
+
|
|
1071
|
+
| Name | Type | Description | |
|
|
1072
|
+
| ---- | ---- | ----------- | -------- |
|
|
1073
|
+
| fbFilters | | Array of flat filters from UI | |
|
|
1074
|
+
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
##### Returns
|
|
1079
|
+
|
|
1080
|
+
|
|
1081
|
+
- an array of scopes structure.
|
|
1082
|
+
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
#### buildScope(uFilter)
|
|
1086
|
+
|
|
1087
|
+
Gets an scope structure for the filter data
|
|
1088
|
+
|
|
1089
|
+
|
|
1090
|
+
|
|
1091
|
+
|
|
1092
|
+
##### Parameters
|
|
1093
|
+
|
|
1094
|
+
| Name | Type | Description | |
|
|
1095
|
+
| ---- | ---- | ----------- | -------- |
|
|
1096
|
+
| uFilter | | UI structure filter | |
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
|
|
1101
|
+
##### Returns
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
- an scope structure
|
|
1105
|
+
|
|
1106
|
+
|
|
1107
|
+
|
|
1108
|
+
#### buildDataset(uFilter)
|
|
1109
|
+
|
|
1110
|
+
Gets an dataset structure for the filter data
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
|
|
1114
|
+
|
|
1115
|
+
##### Parameters
|
|
1116
|
+
|
|
1117
|
+
| Name | Type | Description | |
|
|
1118
|
+
| ---- | ---- | ----------- | -------- |
|
|
1119
|
+
| uFilter | | a UI structure filter | |
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
##### Returns
|
|
1125
|
+
|
|
1126
|
+
|
|
1127
|
+
- an dataset structure
|
|
1128
|
+
|
|
1129
|
+
|
|
1130
|
+
|
|
1131
|
+
#### buildFilter(uFilter)
|
|
1132
|
+
|
|
1133
|
+
Gets an filter structure for the filter data
|
|
1134
|
+
|
|
1135
|
+
|
|
1136
|
+
|
|
1137
|
+
|
|
1138
|
+
##### Parameters
|
|
1139
|
+
|
|
1140
|
+
| Name | Type | Description | |
|
|
1141
|
+
| ---- | ---- | ----------- | -------- |
|
|
1142
|
+
| uFilter | | a UI structure filter | |
|
|
1143
|
+
|
|
1144
|
+
|
|
1145
|
+
|
|
1146
|
+
|
|
1147
|
+
##### Returns
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
|
+
- an filter structure
|
|
1151
|
+
|
|
1152
|
+
|
|
1153
|
+
|
|
1154
|
+
|
|
1155
|
+
### dist/filters/adapters/flatUIToLogic.js
|
|
1156
|
+
|
|
1157
|
+
|
|
1158
|
+
#### flatUIToLogic(uFilter)
|
|
1159
|
+
|
|
1160
|
+
Generates a Logic structure from flattened UI filters
|
|
1161
|
+
|
|
1162
|
+
|
|
1163
|
+
|
|
1164
|
+
|
|
1165
|
+
##### Parameters
|
|
1166
|
+
|
|
1167
|
+
| Name | Type | Description | |
|
|
1168
|
+
| ---- | ---- | ----------- | -------- |
|
|
1169
|
+
| uFilter | | Array of flat filters from UI | |
|
|
1170
|
+
|
|
1171
|
+
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
##### Returns
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
- The logic structure
|
|
1178
|
+
|
|
1179
|
+
|
|
1180
|
+
|
|
1181
|
+
|
|
1182
|
+
### dist/filters/adapters/flatUIToOldLogic.js
|
|
1183
|
+
|
|
1184
|
+
|
|
1185
|
+
#### flatUIToOldLogic(uFilters)
|
|
1186
|
+
|
|
1187
|
+
Generates a Logic structure from flattened UI filters
|
|
1188
|
+
|
|
1189
|
+
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
##### Parameters
|
|
1193
|
+
|
|
1194
|
+
| Name | Type | Description | |
|
|
1195
|
+
| ---- | ---- | ----------- | -------- |
|
|
1196
|
+
| uFilters | | Array of flat filters from UI | |
|
|
1197
|
+
|
|
1198
|
+
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
##### Returns
|
|
1202
|
+
|
|
1203
|
+
|
|
1204
|
+
- The logic structure
|
|
1205
|
+
|
|
1206
|
+
|
|
1207
|
+
|
|
1208
|
+
|
|
1209
|
+
### dist/filters/adapters/flatUIToUI.js
|
|
1210
|
+
|
|
1211
|
+
|
|
1212
|
+
#### flatUIToUI(uFilters, version)
|
|
1213
|
+
|
|
1214
|
+
Generates a UI filter data structure from the flatttened UI filters.
|
|
1215
|
+
|
|
1216
|
+
|
|
1217
|
+
|
|
1218
|
+
|
|
1219
|
+
##### Parameters
|
|
1220
|
+
|
|
1221
|
+
| Name | Type | Description | |
|
|
1222
|
+
| ---- | ---- | ----------- | -------- |
|
|
1223
|
+
| uFilters | | Array of flattened filters from UI | |
|
|
1224
|
+
| version | | Tag for the version of the filter data structure | |
|
|
1225
|
+
|
|
1226
|
+
|
|
1227
|
+
|
|
1228
|
+
|
|
1229
|
+
##### Returns
|
|
1230
|
+
|
|
1231
|
+
|
|
1232
|
+
- a UI Filter Data.
|
|
1233
|
+
|
|
1234
|
+
|
|
1235
|
+
|
|
1236
|
+
#### buildScopes(fbFilters)
|
|
1237
|
+
|
|
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
|
|
1240
|
+
|
|
1241
|
+
|
|
1242
|
+
|
|
1243
|
+
|
|
1244
|
+
##### Parameters
|
|
1245
|
+
|
|
1246
|
+
| Name | Type | Description | |
|
|
1247
|
+
| ---- | ---- | ----------- | -------- |
|
|
1248
|
+
| fbFilters | | Array of flat filters from UI | |
|
|
1249
|
+
|
|
1250
|
+
|
|
1251
|
+
|
|
1252
|
+
|
|
1253
|
+
##### Returns
|
|
1254
|
+
|
|
1255
|
+
|
|
1256
|
+
- an array of scopes structure.
|
|
1257
|
+
|
|
1258
|
+
|
|
1259
|
+
|
|
1260
|
+
#### buildScope(uFilter)
|
|
1261
|
+
|
|
1262
|
+
Gets an scope structure for the UI filter data
|
|
1263
|
+
|
|
1264
|
+
|
|
1265
|
+
|
|
1266
|
+
|
|
1267
|
+
##### Parameters
|
|
1268
|
+
|
|
1269
|
+
| Name | Type | Description | |
|
|
1270
|
+
| ---- | ---- | ----------- | -------- |
|
|
1271
|
+
| uFilter | | UI structure filter | |
|
|
1272
|
+
|
|
1273
|
+
|
|
1274
|
+
|
|
1275
|
+
|
|
1276
|
+
##### Returns
|
|
1277
|
+
|
|
1278
|
+
|
|
1279
|
+
- an scope structure
|
|
1280
|
+
|
|
1281
|
+
|
|
1282
|
+
|
|
1283
|
+
#### buildDataset(uFilter)
|
|
1284
|
+
|
|
1285
|
+
Gets an dataset structure for the UI filter data
|
|
1286
|
+
|
|
1287
|
+
|
|
1288
|
+
|
|
1289
|
+
|
|
1290
|
+
##### Parameters
|
|
1291
|
+
|
|
1292
|
+
| Name | Type | Description | |
|
|
1293
|
+
| ---- | ---- | ----------- | -------- |
|
|
1294
|
+
| uFilter | | a UI structure filter | |
|
|
1295
|
+
|
|
1296
|
+
|
|
1297
|
+
|
|
1298
|
+
|
|
1299
|
+
##### Returns
|
|
1300
|
+
|
|
1301
|
+
|
|
1302
|
+
- an dataset structure
|
|
1303
|
+
|
|
1304
|
+
|
|
1305
|
+
|
|
1306
|
+
#### buildFilter(uFilter)
|
|
1307
|
+
|
|
1308
|
+
Gets an filter structure for the UI filter data
|
|
1309
|
+
|
|
1310
|
+
|
|
1311
|
+
|
|
1312
|
+
|
|
1313
|
+
##### Parameters
|
|
1314
|
+
|
|
1315
|
+
| Name | Type | Description | |
|
|
1316
|
+
| ---- | ---- | ----------- | -------- |
|
|
1317
|
+
| uFilter | | a UI structure filter | |
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
|
|
1321
|
+
|
|
1322
|
+
##### Returns
|
|
1323
|
+
|
|
1324
|
+
|
|
1325
|
+
- an filter structure
|
|
1326
|
+
|
|
1327
|
+
|
|
1328
|
+
|
|
1329
|
+
|
|
1330
|
+
### dist/filters/adapters/logicToFD.js
|
|
1331
|
+
|
|
1332
|
+
|
|
1333
|
+
#### logicToFD(filterData, version)
|
|
1334
|
+
|
|
1335
|
+
Generates a filter data structure from the old logic structure (v2.0).
|
|
1336
|
+
|
|
1337
|
+
|
|
1338
|
+
|
|
1339
|
+
|
|
1340
|
+
##### Parameters
|
|
1341
|
+
|
|
1342
|
+
| Name | Type | Description | |
|
|
1343
|
+
| ---- | ---- | ----------- | -------- |
|
|
1344
|
+
| filterData | | The old filter data structure with logic (v2.0) | |
|
|
1345
|
+
| version | | Tag for the version of the filter data structure | |
|
|
1346
|
+
|
|
1347
|
+
|
|
1348
|
+
|
|
1349
|
+
|
|
1350
|
+
##### Returns
|
|
1351
|
+
|
|
1352
|
+
|
|
1353
|
+
- a Filter Data.
|
|
1354
|
+
|
|
1355
|
+
|
|
1356
|
+
|
|
1357
|
+
|
|
1358
|
+
### dist/filters/adapters/logicToFlatUI.js
|
|
1359
|
+
|
|
1360
|
+
|
|
1361
|
+
#### logicToFlatUI(logics)
|
|
1362
|
+
|
|
1363
|
+
Adapts the Old logic structure (v2.0) to the flattened UI filter Structure.
|
|
1364
|
+
|
|
1365
|
+
|
|
1366
|
+
|
|
1367
|
+
|
|
1368
|
+
##### Parameters
|
|
1369
|
+
|
|
1370
|
+
| Name | Type | Description | |
|
|
1371
|
+
| ---- | ---- | ----------- | -------- |
|
|
1372
|
+
| logics | | The old logic structure (v2.0) | |
|
|
1373
|
+
|
|
1374
|
+
|
|
1375
|
+
|
|
1376
|
+
|
|
1377
|
+
##### Returns
|
|
1378
|
+
|
|
1379
|
+
|
|
1380
|
+
- The Flattened UI Filters array
|
|
1381
|
+
|
|
1382
|
+
|
|
1383
|
+
|
|
1384
|
+
#### getFilter(filters, filter, getIndex)
|
|
1385
|
+
|
|
1386
|
+
Get the filter or the index of the given array, validating an old filter structure.
|
|
1387
|
+
|
|
1388
|
+
|
|
1389
|
+
|
|
1390
|
+
|
|
1391
|
+
##### Parameters
|
|
1392
|
+
|
|
1393
|
+
| Name | Type | Description | |
|
|
1394
|
+
| ---- | ---- | ----------- | -------- |
|
|
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 | |
|
|
1398
|
+
|
|
1399
|
+
|
|
1400
|
+
|
|
1401
|
+
|
|
1402
|
+
##### Returns
|
|
1403
|
+
|
|
1404
|
+
|
|
1405
|
+
- the index or the UI filter object
|
|
1406
|
+
|
|
1407
|
+
|
|
1408
|
+
|
|
1409
|
+
#### refineRankingValues(values, uiValues)
|
|
1410
|
+
|
|
1411
|
+
Refines the values of the Ranking column type.
|
|
1412
|
+
|
|
1413
|
+
|
|
1414
|
+
|
|
1415
|
+
|
|
1416
|
+
##### Parameters
|
|
1417
|
+
|
|
1418
|
+
| Name | Type | Description | |
|
|
1419
|
+
| ---- | ---- | ----------- | -------- |
|
|
1420
|
+
| values | | the Array of Ranking values | |
|
|
1421
|
+
| uiValues | | Object with additional info about the values of the filter. | |
|
|
1422
|
+
|
|
1423
|
+
|
|
1424
|
+
|
|
1425
|
+
|
|
1426
|
+
##### Returns
|
|
1427
|
+
|
|
1428
|
+
|
|
1429
|
+
- the array of Ranking values
|
|
1430
|
+
|
|
1431
|
+
|
|
1432
|
+
|
|
1433
|
+
|
|
1434
|
+
### dist/filters/adapters/logicToUI.js
|
|
1435
|
+
|
|
1436
|
+
|
|
1437
|
+
#### logicToUI(uFilters, datasetsInfo)
|
|
1438
|
+
|
|
1439
|
+
Generates a UI filter structure from the old logic structure (v2.0).
|
|
1440
|
+
|
|
1441
|
+
|
|
1442
|
+
|
|
1443
|
+
|
|
1444
|
+
##### Parameters
|
|
1445
|
+
|
|
1446
|
+
| Name | Type | Description | |
|
|
1447
|
+
| ---- | ---- | ----------- | -------- |
|
|
1448
|
+
| uFilters | | Array of filters from old logic structure | |
|
|
1449
|
+
| datasetsInfo | | Collection of datasets information | |
|
|
1450
|
+
|
|
1451
|
+
|
|
1452
|
+
|
|
1453
|
+
|
|
1454
|
+
##### Returns
|
|
1455
|
+
|
|
1456
|
+
|
|
1457
|
+
- a UI Filter Data.
|
|
1458
|
+
|
|
1459
|
+
|
|
1460
|
+
|
|
1461
|
+
|
|
1462
|
+
### dist/filters/adapters/transformFilters.js
|
|
1463
|
+
|
|
1464
|
+
|
|
1465
|
+
#### transformFilters(oldFiltersObj, section)
|
|
1466
|
+
|
|
1467
|
+
Transform the old filters structure into the new one
|
|
1468
|
+
|
|
1469
|
+
|
|
1470
|
+
|
|
1471
|
+
|
|
1472
|
+
##### Parameters
|
|
1473
|
+
|
|
1474
|
+
| Name | Type | Description | |
|
|
1475
|
+
| ---- | ---- | ----------- | -------- |
|
|
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' | |
|
|
1478
|
+
|
|
1479
|
+
|
|
1480
|
+
|
|
1481
|
+
|
|
1482
|
+
##### Examples
|
|
1483
|
+
|
|
1484
|
+
```javascript
|
|
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');
|
|
1530
|
+
```
|
|
1531
|
+
|
|
1532
|
+
|
|
1533
|
+
##### Returns
|
|
1534
|
+
|
|
1535
|
+
|
|
1536
|
+
- `Object` an object with the new filters structure
|
|
1537
|
+
|
|
1538
|
+
|
|
1539
|
+
|
|
1540
|
+
|
|
1541
|
+
### dist/filters/classes/FilterInputErrorHandler.js
|
|
1542
|
+
|
|
1543
|
+
|
|
1544
|
+
#### new FilterInputErrorHandler()
|
|
1545
|
+
|
|
1546
|
+
|
|
1547
|
+
|
|
1548
|
+
|
|
1549
|
+
|
|
1550
|
+
|
|
1551
|
+
|
|
1552
|
+
|
|
1553
|
+
##### Returns
|
|
1554
|
+
|
|
1555
|
+
|
|
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
|
+
|
|
1579
|
+
|
|
1580
|
+
|
|
1581
|
+
|
|
1582
|
+
##### Returns
|
|
1583
|
+
|
|
1584
|
+
|
|
1585
|
+
-
|
|
1586
|
+
|
|
1587
|
+
|
|
1588
|
+
|
|
1589
|
+
|
|
1590
|
+
### dist/filters/helpers/getAvailableScopes.js
|
|
1591
|
+
|
|
1592
|
+
|
|
1593
|
+
#### getAvailableScopes(config)
|
|
1594
|
+
|
|
1595
|
+
Gets Scopes/Scope IDs by given IDs
|
|
1596
|
+
|
|
1597
|
+
|
|
1598
|
+
|
|
1599
|
+
|
|
1600
|
+
##### Parameters
|
|
1601
|
+
|
|
1602
|
+
| Name | Type | Description | |
|
|
1603
|
+
| ---- | ---- | ----------- | -------- |
|
|
1604
|
+
| config | | given Differnts IDs in order set a available scope | |
|
|
1605
|
+
|
|
1606
|
+
|
|
1607
|
+
|
|
1608
|
+
|
|
1609
|
+
##### Returns
|
|
1610
|
+
|
|
1611
|
+
|
|
1612
|
+
- a Scopes/Scope IDs array
|
|
1613
|
+
|
|
1614
|
+
|
|
1615
|
+
|
|
1616
|
+
|
|
1617
|
+
### dist/filters/helpers/getAvailableScopesIDsByConfig.js
|
|
1618
|
+
|
|
1619
|
+
|
|
1620
|
+
#### getAvailableScopesIDsByConfig(config)
|
|
1621
|
+
|
|
1622
|
+
Gets the Scopes IDS for the Available Scope function by any config
|
|
1623
|
+
|
|
1624
|
+
|
|
1625
|
+
|
|
1626
|
+
|
|
1627
|
+
##### Parameters
|
|
1628
|
+
|
|
1629
|
+
| Name | Type | Description | |
|
|
1630
|
+
| ---- | ---- | ----------- | -------- |
|
|
1631
|
+
| config | | any config | |
|
|
1048
1632
|
|
|
1049
|
-
|
|
1633
|
+
|
|
1634
|
+
|
|
1635
|
+
|
|
1636
|
+
##### Returns
|
|
1637
|
+
|
|
1638
|
+
|
|
1639
|
+
- a Available Scope IDS config
|
|
1640
|
+
|
|
1641
|
+
|
|
1642
|
+
|
|
1643
|
+
|
|
1644
|
+
### dist/filters/helpers/getScopesByHierarchy.js
|
|
1645
|
+
|
|
1646
|
+
|
|
1647
|
+
#### getScopesByHierarchy(scopes, currentScope)
|
|
1648
|
+
|
|
1649
|
+
[TODO: Make a description for this]
|
|
1050
1650
|
|
|
1051
1651
|
|
|
1052
1652
|
|
|
@@ -1055,9 +1655,8 @@ Get the filter or the index of the given array, validating an old filter structu
|
|
|
1055
1655
|
|
|
1056
1656
|
| Name | Type | Description | |
|
|
1057
1657
|
| ---- | ---- | ----------- | -------- |
|
|
1058
|
-
|
|
|
1059
|
-
|
|
|
1060
|
-
| getIndex | | Determines if the index or returns the UI filter object | |
|
|
1658
|
+
| scopes | | the collection of Scopes/Scope IDs | |
|
|
1659
|
+
| currentScope | | Current scope type | |
|
|
1061
1660
|
|
|
1062
1661
|
|
|
1063
1662
|
|
|
@@ -1065,13 +1664,17 @@ Get the filter or the index of the given array, validating an old filter structu
|
|
|
1065
1664
|
##### Returns
|
|
1066
1665
|
|
|
1067
1666
|
|
|
1068
|
-
-
|
|
1667
|
+
- A new array of Scopes/Scope IDs
|
|
1069
1668
|
|
|
1070
1669
|
|
|
1071
1670
|
|
|
1072
|
-
#### refineRankingValues(values, uiValues)
|
|
1073
1671
|
|
|
1074
|
-
|
|
1672
|
+
### dist/general/array/delete.js
|
|
1673
|
+
|
|
1674
|
+
|
|
1675
|
+
#### ArrayDelete(array, index)
|
|
1676
|
+
|
|
1677
|
+
Inmutable Array Item deletion
|
|
1075
1678
|
|
|
1076
1679
|
|
|
1077
1680
|
|
|
@@ -1080,8 +1683,8 @@ Refines the values of the Ranking column type.
|
|
|
1080
1683
|
|
|
1081
1684
|
| Name | Type | Description | |
|
|
1082
1685
|
| ---- | ---- | ----------- | -------- |
|
|
1083
|
-
|
|
|
1084
|
-
|
|
|
1686
|
+
| array | `Array` | a collection of items to delete | |
|
|
1687
|
+
| index | `Number` | the position of the item to delete | |
|
|
1085
1688
|
|
|
1086
1689
|
|
|
1087
1690
|
|
|
@@ -1089,17 +1692,20 @@ Refines the values of the Ranking column type.
|
|
|
1089
1692
|
##### Returns
|
|
1090
1693
|
|
|
1091
1694
|
|
|
1092
|
-
- the
|
|
1695
|
+
- a new Array or the given parameter when is empty or not an array
|
|
1093
1696
|
|
|
1094
1697
|
|
|
1095
1698
|
|
|
1096
1699
|
|
|
1097
|
-
### dist/
|
|
1700
|
+
### dist/general/array/filterNestedTree.js
|
|
1098
1701
|
|
|
1099
1702
|
|
|
1100
|
-
####
|
|
1703
|
+
#### filterNestedTree(arr, childArrKey, condition)
|
|
1101
1704
|
|
|
1102
|
-
|
|
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
|
|
1103
1709
|
|
|
1104
1710
|
|
|
1105
1711
|
|
|
@@ -1108,8 +1714,9 @@ Generates a UI filter structure from the old logic structure (v2.0).
|
|
|
1108
1714
|
|
|
1109
1715
|
| Name | Type | Description | |
|
|
1110
1716
|
| ---- | ---- | ----------- | -------- |
|
|
1111
|
-
|
|
|
1112
|
-
|
|
|
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 | |
|
|
1113
1720
|
|
|
1114
1721
|
|
|
1115
1722
|
|
|
@@ -1117,17 +1724,17 @@ Generates a UI filter structure from the old logic structure (v2.0).
|
|
|
1117
1724
|
##### Returns
|
|
1118
1725
|
|
|
1119
1726
|
|
|
1120
|
-
-
|
|
1727
|
+
- array filtered
|
|
1121
1728
|
|
|
1122
1729
|
|
|
1123
1730
|
|
|
1124
1731
|
|
|
1125
|
-
### dist/
|
|
1732
|
+
### dist/general/array/flattenDeep.js
|
|
1126
1733
|
|
|
1127
1734
|
|
|
1128
|
-
####
|
|
1735
|
+
#### flattenDeep(arr)
|
|
1129
1736
|
|
|
1130
|
-
|
|
1737
|
+
Flat deeply an array
|
|
1131
1738
|
|
|
1132
1739
|
|
|
1133
1740
|
|
|
@@ -1136,77 +1743,53 @@ Transform the old filters structure into the new one
|
|
|
1136
1743
|
|
|
1137
1744
|
| Name | Type | Description | |
|
|
1138
1745
|
| ---- | ---- | ----------- | -------- |
|
|
1139
|
-
|
|
|
1140
|
-
| section | `String` | could be 'ANALYZE', 'PB', 'UM' or any other value. Deafult is 'ANYWHERE' | |
|
|
1746
|
+
| arr | | Array to flat deeply | |
|
|
1141
1747
|
|
|
1142
1748
|
|
|
1143
1749
|
|
|
1144
1750
|
|
|
1145
|
-
#####
|
|
1751
|
+
##### Returns
|
|
1146
1752
|
|
|
1147
|
-
```javascript
|
|
1148
1753
|
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
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
|
-
};
|
|
1754
|
+
- flatten array
|
|
1755
|
+
|
|
1756
|
+
|
|
1757
|
+
|
|
1758
|
+
|
|
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
|
|
1765
|
+
|
|
1766
|
+
|
|
1767
|
+
|
|
1768
|
+
|
|
1769
|
+
##### Parameters
|
|
1770
|
+
|
|
1771
|
+
| Name | Type | Description | |
|
|
1772
|
+
| ---- | ---- | ----------- | -------- |
|
|
1773
|
+
| array | | | |
|
|
1774
|
+
| callback | | function callback | |
|
|
1775
|
+
|
|
1191
1776
|
|
|
1192
|
-
const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
|
|
1193
|
-
```
|
|
1194
1777
|
|
|
1195
1778
|
|
|
1196
1779
|
##### Returns
|
|
1197
1780
|
|
|
1198
1781
|
|
|
1199
|
-
-
|
|
1782
|
+
- the first index of the array. -1 when the condition is not satisfied
|
|
1200
1783
|
|
|
1201
1784
|
|
|
1202
1785
|
|
|
1203
1786
|
|
|
1204
|
-
### dist/
|
|
1787
|
+
### dist/general/array/getLastIndexFromArray.js
|
|
1205
1788
|
|
|
1206
1789
|
|
|
1207
|
-
####
|
|
1790
|
+
#### getLastIndexFromArray(array, callback)
|
|
1208
1791
|
|
|
1209
|
-
|
|
1792
|
+
Gets the last index from the array by a callback condition
|
|
1210
1793
|
|
|
1211
1794
|
|
|
1212
1795
|
|
|
@@ -1215,9 +1798,8 @@ const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
|
|
|
1215
1798
|
|
|
1216
1799
|
| Name | Type | Description | |
|
|
1217
1800
|
| ---- | ---- | ----------- | -------- |
|
|
1218
|
-
|
|
|
1219
|
-
|
|
|
1220
|
-
| currentScope | | | |
|
|
1801
|
+
| array | | | |
|
|
1802
|
+
| callback | | function callback | |
|
|
1221
1803
|
|
|
1222
1804
|
|
|
1223
1805
|
|
|
@@ -1225,17 +1807,17 @@ const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
|
|
|
1225
1807
|
##### Returns
|
|
1226
1808
|
|
|
1227
1809
|
|
|
1228
|
-
-
|
|
1810
|
+
- the last index of the array. -1 when the condition is not satisfied
|
|
1229
1811
|
|
|
1230
1812
|
|
|
1231
1813
|
|
|
1232
1814
|
|
|
1233
|
-
### dist/
|
|
1815
|
+
### dist/general/function/debounce.js
|
|
1234
1816
|
|
|
1235
1817
|
|
|
1236
|
-
####
|
|
1818
|
+
#### debounce(fn, time)
|
|
1237
1819
|
|
|
1238
|
-
|
|
1820
|
+
Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last time the debounced function was invoked.
|
|
1239
1821
|
|
|
1240
1822
|
|
|
1241
1823
|
|
|
@@ -1244,7 +1826,8 @@ Gets Scopes/Scope IDs by given IDs
|
|
|
1244
1826
|
|
|
1245
1827
|
| Name | Type | Description | |
|
|
1246
1828
|
| ---- | ---- | ----------- | -------- |
|
|
1247
|
-
|
|
|
1829
|
+
| fn | `Function` | original Function | |
|
|
1830
|
+
| time | `Number` | default 500ms | |
|
|
1248
1831
|
|
|
1249
1832
|
|
|
1250
1833
|
|
|
@@ -1252,17 +1835,17 @@ Gets Scopes/Scope IDs by given IDs
|
|
|
1252
1835
|
##### Returns
|
|
1253
1836
|
|
|
1254
1837
|
|
|
1255
|
-
-
|
|
1838
|
+
- `Function` debounced functions
|
|
1256
1839
|
|
|
1257
1840
|
|
|
1258
1841
|
|
|
1259
1842
|
|
|
1260
|
-
### dist/
|
|
1843
|
+
### dist/general/function/throttled.js
|
|
1261
1844
|
|
|
1262
1845
|
|
|
1263
|
-
####
|
|
1846
|
+
#### throttled(fn, time)
|
|
1264
1847
|
|
|
1265
|
-
|
|
1848
|
+
Make sure to only invokes _fn_ at most once per every _time_ milliseconds
|
|
1266
1849
|
|
|
1267
1850
|
|
|
1268
1851
|
|
|
@@ -1271,7 +1854,8 @@ Gets the Scopes IDS for the Available Scope function by any config
|
|
|
1271
1854
|
|
|
1272
1855
|
| Name | Type | Description | |
|
|
1273
1856
|
| ---- | ---- | ----------- | -------- |
|
|
1274
|
-
|
|
|
1857
|
+
| fn | `Function` | original Function | |
|
|
1858
|
+
| time | `Number` | default 500ms | |
|
|
1275
1859
|
|
|
1276
1860
|
|
|
1277
1861
|
|
|
@@ -1279,17 +1863,18 @@ Gets the Scopes IDS for the Available Scope function by any config
|
|
|
1279
1863
|
##### Returns
|
|
1280
1864
|
|
|
1281
1865
|
|
|
1282
|
-
-
|
|
1866
|
+
- `Function` throttled function
|
|
1283
1867
|
|
|
1284
1868
|
|
|
1285
1869
|
|
|
1286
1870
|
|
|
1287
|
-
### dist/
|
|
1871
|
+
### dist/general/mix/compareDeep.js
|
|
1288
1872
|
|
|
1289
1873
|
|
|
1290
|
-
####
|
|
1874
|
+
#### compareDeep(object1, object2)
|
|
1291
1875
|
|
|
1292
|
-
|
|
1876
|
+
Compares two objects to know if they are equals. Go across nested objects.
|
|
1877
|
+
Includes arrays in the comparison.
|
|
1293
1878
|
|
|
1294
1879
|
|
|
1295
1880
|
|
|
@@ -1298,8 +1883,8 @@ Gets the Scopes IDS for the Available Scope function by any config
|
|
|
1298
1883
|
|
|
1299
1884
|
| Name | Type | Description | |
|
|
1300
1885
|
| ---- | ---- | ----------- | -------- |
|
|
1301
|
-
|
|
|
1302
|
-
|
|
|
1886
|
+
| object1 | | First Object to compare | |
|
|
1887
|
+
| object2 | | Second Object to compare | |
|
|
1303
1888
|
|
|
1304
1889
|
|
|
1305
1890
|
|
|
@@ -1307,17 +1892,17 @@ Gets the Scopes IDS for the Available Scope function by any config
|
|
|
1307
1892
|
##### Returns
|
|
1308
1893
|
|
|
1309
1894
|
|
|
1310
|
-
-
|
|
1895
|
+
- True: objects are equal. False: Objects are not equal. Undefined: invalid
|
|
1311
1896
|
|
|
1312
1897
|
|
|
1313
1898
|
|
|
1314
1899
|
|
|
1315
|
-
### dist/general/
|
|
1900
|
+
### dist/general/mix/getTag.js
|
|
1316
1901
|
|
|
1317
1902
|
|
|
1318
|
-
####
|
|
1903
|
+
#### getTag(value)
|
|
1319
1904
|
|
|
1320
|
-
|
|
1905
|
+
Gets the `toStringTag` of `value`.
|
|
1321
1906
|
|
|
1322
1907
|
|
|
1323
1908
|
|
|
@@ -1326,8 +1911,7 @@ Inmutable Array Item deletion
|
|
|
1326
1911
|
|
|
1327
1912
|
| Name | Type | Description | |
|
|
1328
1913
|
| ---- | ---- | ----------- | -------- |
|
|
1329
|
-
|
|
|
1330
|
-
| index | `Number` | the position of the item to delete | |
|
|
1914
|
+
| value | | The value to query. | |
|
|
1331
1915
|
|
|
1332
1916
|
|
|
1333
1917
|
|
|
@@ -1335,20 +1919,73 @@ Inmutable Array Item deletion
|
|
|
1335
1919
|
##### Returns
|
|
1336
1920
|
|
|
1337
1921
|
|
|
1338
|
-
-
|
|
1922
|
+
- `string` Returns the `toStringTag`.
|
|
1339
1923
|
|
|
1340
1924
|
|
|
1341
1925
|
|
|
1342
1926
|
|
|
1343
|
-
### dist/general/
|
|
1927
|
+
### dist/general/mix/importScripts.js
|
|
1344
1928
|
|
|
1345
1929
|
|
|
1346
|
-
####
|
|
1930
|
+
#### importScripts(scripts)
|
|
1347
1931
|
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
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
|
|
1352
1989
|
|
|
1353
1990
|
|
|
1354
1991
|
|
|
@@ -1357,9 +1994,9 @@ Filters a nested tree array by a custom condition on the last child node
|
|
|
1357
1994
|
|
|
1358
1995
|
| Name | Type | Description | |
|
|
1359
1996
|
| ---- | ---- | ----------- | -------- |
|
|
1360
|
-
|
|
|
1361
|
-
|
|
|
1362
|
-
|
|
|
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` | |
|
|
1363
2000
|
|
|
1364
2001
|
|
|
1365
2002
|
|
|
@@ -1367,17 +2004,17 @@ Filters a nested tree array by a custom condition on the last child node
|
|
|
1367
2004
|
##### Returns
|
|
1368
2005
|
|
|
1369
2006
|
|
|
1370
|
-
-
|
|
2007
|
+
- `Void`
|
|
1371
2008
|
|
|
1372
2009
|
|
|
1373
2010
|
|
|
1374
2011
|
|
|
1375
|
-
### dist/general/
|
|
2012
|
+
### dist/general/mix/isEmpty.js
|
|
1376
2013
|
|
|
1377
2014
|
|
|
1378
|
-
####
|
|
2015
|
+
#### isEmpty(variable, includeFalsy)
|
|
1379
2016
|
|
|
1380
|
-
|
|
2017
|
+
Validates if the given argument is empty
|
|
1381
2018
|
|
|
1382
2019
|
|
|
1383
2020
|
|
|
@@ -1386,7 +2023,8 @@ Flat deeply an array
|
|
|
1386
2023
|
|
|
1387
2024
|
| Name | Type | Description | |
|
|
1388
2025
|
| ---- | ---- | ----------- | -------- |
|
|
1389
|
-
|
|
|
2026
|
+
| variable | | the given variable | |
|
|
2027
|
+
| includeFalsy | | flag to determine include the falsy variables into the validation | |
|
|
1390
2028
|
|
|
1391
2029
|
|
|
1392
2030
|
|
|
@@ -1394,17 +2032,19 @@ Flat deeply an array
|
|
|
1394
2032
|
##### Returns
|
|
1395
2033
|
|
|
1396
2034
|
|
|
1397
|
-
-
|
|
2035
|
+
- true: the given argument is empty; false: is not.
|
|
1398
2036
|
|
|
1399
2037
|
|
|
1400
2038
|
|
|
1401
2039
|
|
|
1402
|
-
### dist/general/
|
|
2040
|
+
### dist/general/mix/isNaNV2.js
|
|
1403
2041
|
|
|
1404
2042
|
|
|
1405
|
-
####
|
|
2043
|
+
#### isNaNV2(variable)
|
|
1406
2044
|
|
|
1407
|
-
|
|
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.
|
|
1408
2048
|
|
|
1409
2049
|
|
|
1410
2050
|
|
|
@@ -1413,8 +2053,7 @@ Gets the first index from the array by a callback condition
|
|
|
1413
2053
|
|
|
1414
2054
|
| Name | Type | Description | |
|
|
1415
2055
|
| ---- | ---- | ----------- | -------- |
|
|
1416
|
-
|
|
|
1417
|
-
| callback | | function callback | |
|
|
2056
|
+
| variable | | the variable to validate | |
|
|
1418
2057
|
|
|
1419
2058
|
|
|
1420
2059
|
|
|
@@ -1422,17 +2061,18 @@ Gets the first index from the array by a callback condition
|
|
|
1422
2061
|
##### Returns
|
|
1423
2062
|
|
|
1424
2063
|
|
|
1425
|
-
-
|
|
2064
|
+
- True if variable is a NaN or false otherwise
|
|
1426
2065
|
|
|
1427
2066
|
|
|
1428
2067
|
|
|
1429
2068
|
|
|
1430
|
-
### dist/general/
|
|
2069
|
+
### dist/general/mix/isNull.js
|
|
1431
2070
|
|
|
1432
2071
|
|
|
1433
|
-
####
|
|
2072
|
+
#### isNull(arg)
|
|
1434
2073
|
|
|
1435
|
-
|
|
2074
|
+
return if a given variable is either `null` or `undefined`
|
|
2075
|
+
useful to avoid falsify validating Number Zero (0)
|
|
1436
2076
|
|
|
1437
2077
|
|
|
1438
2078
|
|
|
@@ -1441,8 +2081,7 @@ Gets the last index from the array by a callback condition
|
|
|
1441
2081
|
|
|
1442
2082
|
| Name | Type | Description | |
|
|
1443
2083
|
| ---- | ---- | ----------- | -------- |
|
|
1444
|
-
|
|
|
1445
|
-
| callback | | function callback | |
|
|
2084
|
+
| arg | `any` | | |
|
|
1446
2085
|
|
|
1447
2086
|
|
|
1448
2087
|
|
|
@@ -1450,17 +2089,19 @@ Gets the last index from the array by a callback condition
|
|
|
1450
2089
|
##### Returns
|
|
1451
2090
|
|
|
1452
2091
|
|
|
1453
|
-
-
|
|
2092
|
+
- `Boolean`
|
|
1454
2093
|
|
|
1455
2094
|
|
|
1456
2095
|
|
|
1457
2096
|
|
|
1458
|
-
### dist/general/
|
|
2097
|
+
### dist/general/mix/randomId.js
|
|
1459
2098
|
|
|
1460
2099
|
|
|
1461
|
-
####
|
|
2100
|
+
#### randomId(length, exclude)
|
|
1462
2101
|
|
|
1463
|
-
|
|
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.
|
|
1464
2105
|
|
|
1465
2106
|
|
|
1466
2107
|
|
|
@@ -1469,8 +2110,8 @@ Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last
|
|
|
1469
2110
|
|
|
1470
2111
|
| Name | Type | Description | |
|
|
1471
2112
|
| ---- | ---- | ----------- | -------- |
|
|
1472
|
-
|
|
|
1473
|
-
|
|
|
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. | |
|
|
1474
2115
|
|
|
1475
2116
|
|
|
1476
2117
|
|
|
@@ -1478,17 +2119,19 @@ Delays invoking _fn_ until after _time_ milliseconds have elapsed since the last
|
|
|
1478
2119
|
##### Returns
|
|
1479
2120
|
|
|
1480
2121
|
|
|
1481
|
-
- `
|
|
2122
|
+
- `String` Random string
|
|
1482
2123
|
|
|
1483
2124
|
|
|
1484
2125
|
|
|
1485
2126
|
|
|
1486
|
-
### dist/general/
|
|
2127
|
+
### dist/general/mix/size.js
|
|
1487
2128
|
|
|
1488
2129
|
|
|
1489
|
-
####
|
|
2130
|
+
#### size(obj)
|
|
1490
2131
|
|
|
1491
|
-
|
|
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.
|
|
1492
2135
|
|
|
1493
2136
|
|
|
1494
2137
|
|
|
@@ -1497,8 +2140,7 @@ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
|
|
|
1497
2140
|
|
|
1498
2141
|
| Name | Type | Description | |
|
|
1499
2142
|
| ---- | ---- | ----------- | -------- |
|
|
1500
|
-
|
|
|
1501
|
-
| time | `Number` | default 500ms | |
|
|
2143
|
+
| obj | `Any` | Any object-type variable | |
|
|
1502
2144
|
|
|
1503
2145
|
|
|
1504
2146
|
|
|
@@ -1506,7 +2148,7 @@ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
|
|
|
1506
2148
|
##### Returns
|
|
1507
2149
|
|
|
1508
2150
|
|
|
1509
|
-
- `
|
|
2151
|
+
- `Number` the size of the given variable
|
|
1510
2152
|
|
|
1511
2153
|
|
|
1512
2154
|
|
|
@@ -1757,207 +2399,16 @@ The second given argument to the first given argument.
|
|
|
1757
2399
|
|
|
1758
2400
|
|
|
1759
2401
|
|
|
1760
|
-
##### Returns
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
- a new merged object
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
#### isValid(obj1, obj2)
|
|
1768
|
-
|
|
1769
|
-
Validates if the two arguments are objects
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
##### Parameters
|
|
1775
|
-
|
|
1776
|
-
| Name | Type | Description | |
|
|
1777
|
-
| ---- | ---- | ----------- | -------- |
|
|
1778
|
-
| obj1 | | The target object | |
|
|
1779
|
-
| obj2 | | The object to be merged | |
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
##### Returns
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
- true: they are valid; false: they are not
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
#### getParamsToMergeDeep(settings)
|
|
1792
|
-
|
|
1793
|
-
Validates and gets the settings with all set parameters.
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
##### Parameters
|
|
1799
|
-
|
|
1800
|
-
| Name | Type | Description | |
|
|
1801
|
-
| ---- | ---- | ----------- | -------- |
|
|
1802
|
-
| settings | | the settings object | |
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
##### Returns
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
- a new settings object with all set parameters.
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
### dist/general/object/objectCopy.js
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
#### objectCopy(entity, cache)
|
|
1819
|
-
|
|
1820
|
-
Created a new reference of the given argument
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
##### Parameters
|
|
1826
|
-
|
|
1827
|
-
| Name | Type | Description | |
|
|
1828
|
-
| ---- | ---- | ----------- | -------- |
|
|
1829
|
-
| entity | | The variable to be copied | |
|
|
1830
|
-
| cache | | | |
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
##### Returns
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
- A new reference of the given argument
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
### dist/general/object/omit.js
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
#### omit(obj, props)
|
|
1847
|
-
|
|
1848
|
-
return a new Object excluding attributes in _props_ list
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
##### Parameters
|
|
1854
|
-
|
|
1855
|
-
| Name | Type | Description | |
|
|
1856
|
-
| ---- | ---- | ----------- | -------- |
|
|
1857
|
-
| obj | `Object` | base object | |
|
|
1858
|
-
| props | `Array.<String>` | list of attribute to exclude | |
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
##### Returns
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
- `Object` clean object
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
### dist/general/object/pick.js
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
#### pick(baseObject, keys)
|
|
1875
|
-
|
|
1876
|
-
return a new object just with attributes in _keys_ list
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
##### Parameters
|
|
1882
|
-
|
|
1883
|
-
| Name | Type | Description | |
|
|
1884
|
-
| ---- | ---- | ----------- | -------- |
|
|
1885
|
-
| baseObject | `Object` | base object | |
|
|
1886
|
-
| keys | `Array.<String>` | list of attributes to preserve | |
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
##### Returns
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
- `Object` new object just with desired attributes
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
### dist/general/object/serialize.js
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
#### serialize(obj)
|
|
1903
|
-
|
|
1904
|
-
serialize object to url param
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
##### Parameters
|
|
1910
|
-
|
|
1911
|
-
| Name | Type | Description | |
|
|
1912
|
-
| ---- | ---- | ----------- | -------- |
|
|
1913
|
-
| obj | | - Object to be serialized | |
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
##### Returns
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
- `Void`
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
### dist/general/mix/compareDeep.js
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
#### compareDeep(object1, object2)
|
|
1930
|
-
|
|
1931
|
-
Compares two objects to know if they are equals. Go across nested objects.
|
|
1932
|
-
Includes arrays in the comparison.
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
##### Parameters
|
|
1938
|
-
|
|
1939
|
-
| Name | Type | Description | |
|
|
1940
|
-
| ---- | ---- | ----------- | -------- |
|
|
1941
|
-
| object1 | | First Object to compare | |
|
|
1942
|
-
| object2 | | Second Object to compare | |
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
##### Returns
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
- True: objects are equal. False: Objects are not equal. Undefined: invalid
|
|
1951
|
-
|
|
2402
|
+
##### Returns
|
|
1952
2403
|
|
|
1953
2404
|
|
|
2405
|
+
- a new merged object
|
|
1954
2406
|
|
|
1955
|
-
### dist/general/mix/getTag.js
|
|
1956
2407
|
|
|
1957
2408
|
|
|
1958
|
-
####
|
|
2409
|
+
#### isValid(obj1, obj2)
|
|
1959
2410
|
|
|
1960
|
-
|
|
2411
|
+
Validates if the two arguments are objects
|
|
1961
2412
|
|
|
1962
2413
|
|
|
1963
2414
|
|
|
@@ -1966,7 +2417,8 @@ Gets the `toStringTag` of `value`.
|
|
|
1966
2417
|
|
|
1967
2418
|
| Name | Type | Description | |
|
|
1968
2419
|
| ---- | ---- | ----------- | -------- |
|
|
1969
|
-
|
|
|
2420
|
+
| obj1 | | The target object | |
|
|
2421
|
+
| obj2 | | The object to be merged | |
|
|
1970
2422
|
|
|
1971
2423
|
|
|
1972
2424
|
|
|
@@ -1974,17 +2426,13 @@ Gets the `toStringTag` of `value`.
|
|
|
1974
2426
|
##### Returns
|
|
1975
2427
|
|
|
1976
2428
|
|
|
1977
|
-
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
2429
|
+
- true: they are valid; false: they are not
|
|
1981
2430
|
|
|
1982
|
-
### dist/general/mix/importScripts.js
|
|
1983
2431
|
|
|
1984
2432
|
|
|
1985
|
-
####
|
|
2433
|
+
#### getParamsToMergeDeep(settings)
|
|
1986
2434
|
|
|
1987
|
-
|
|
2435
|
+
Validates and gets the settings with all set parameters.
|
|
1988
2436
|
|
|
1989
2437
|
|
|
1990
2438
|
|
|
@@ -1993,54 +2441,25 @@ Import a set of external Scripts given the URL in both serie and cascade way
|
|
|
1993
2441
|
|
|
1994
2442
|
| Name | Type | Description | |
|
|
1995
2443
|
| ---- | ---- | ----------- | -------- |
|
|
1996
|
-
|
|
|
1997
|
-
| scripts.url | `String` | CDN URL | |
|
|
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
|
-
|
|
2444
|
+
| settings | | the settings object | |
|
|
2005
2445
|
|
|
2006
|
-
##### Examples
|
|
2007
2446
|
|
|
2008
|
-
```javascript
|
|
2009
|
-
// 1) Simple script (paralell loading)
|
|
2010
|
-
importScripts(['http://myscript.js', 'http://another.js']);
|
|
2011
2447
|
|
|
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
|
-
]);
|
|
2017
2448
|
|
|
2018
|
-
|
|
2019
|
-
importScripts([
|
|
2020
|
-
{ url: 'http://myscript.js', dependencies: ['http://myscript.plugin.js'] }
|
|
2021
|
-
]);
|
|
2449
|
+
##### Returns
|
|
2022
2450
|
|
|
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
2451
|
|
|
2452
|
+
- a new settings object with all set parameters.
|
|
2032
2453
|
|
|
2033
|
-
##### Returns
|
|
2034
2454
|
|
|
2035
2455
|
|
|
2036
|
-
- `Promise` Promise when all script have been loaded
|
|
2037
2456
|
|
|
2457
|
+
### dist/general/object/objectCopy.js
|
|
2038
2458
|
|
|
2039
2459
|
|
|
2040
|
-
####
|
|
2460
|
+
#### objectCopy(entity, cache)
|
|
2041
2461
|
|
|
2042
|
-
|
|
2043
|
-
return a Promise that is resolved when the script is loaded
|
|
2462
|
+
Created a new reference of the given argument
|
|
2044
2463
|
|
|
2045
2464
|
|
|
2046
2465
|
|
|
@@ -2049,9 +2468,8 @@ return a Promise that is resolved when the script is loaded
|
|
|
2049
2468
|
|
|
2050
2469
|
| Name | Type | Description | |
|
|
2051
2470
|
| ---- | ---- | ----------- | -------- |
|
|
2052
|
-
|
|
|
2053
|
-
|
|
|
2054
|
-
| noModule | `boolean` | (Optional) add `momodule` attribute to script tag. Default `false` | |
|
|
2471
|
+
| entity | | The variable to be copied | |
|
|
2472
|
+
| cache | | | |
|
|
2055
2473
|
|
|
2056
2474
|
|
|
2057
2475
|
|
|
@@ -2059,17 +2477,17 @@ return a Promise that is resolved when the script is loaded
|
|
|
2059
2477
|
##### Returns
|
|
2060
2478
|
|
|
2061
2479
|
|
|
2062
|
-
-
|
|
2480
|
+
- A new reference of the given argument
|
|
2063
2481
|
|
|
2064
2482
|
|
|
2065
2483
|
|
|
2066
2484
|
|
|
2067
|
-
### dist/general/
|
|
2485
|
+
### dist/general/object/omit.js
|
|
2068
2486
|
|
|
2069
2487
|
|
|
2070
|
-
####
|
|
2488
|
+
#### omit(obj, props)
|
|
2071
2489
|
|
|
2072
|
-
|
|
2490
|
+
return a new Object excluding attributes in _props_ list
|
|
2073
2491
|
|
|
2074
2492
|
|
|
2075
2493
|
|
|
@@ -2078,8 +2496,8 @@ Validates if the given argument is empty
|
|
|
2078
2496
|
|
|
2079
2497
|
| Name | Type | Description | |
|
|
2080
2498
|
| ---- | ---- | ----------- | -------- |
|
|
2081
|
-
|
|
|
2082
|
-
|
|
|
2499
|
+
| obj | `Object` | base object | |
|
|
2500
|
+
| props | `Array.<String>` | list of attribute to exclude | |
|
|
2083
2501
|
|
|
2084
2502
|
|
|
2085
2503
|
|
|
@@ -2087,18 +2505,17 @@ Validates if the given argument is empty
|
|
|
2087
2505
|
##### Returns
|
|
2088
2506
|
|
|
2089
2507
|
|
|
2090
|
-
-
|
|
2508
|
+
- `Object` clean object
|
|
2091
2509
|
|
|
2092
2510
|
|
|
2093
2511
|
|
|
2094
2512
|
|
|
2095
|
-
### dist/general/
|
|
2513
|
+
### dist/general/object/pick.js
|
|
2096
2514
|
|
|
2097
2515
|
|
|
2098
|
-
####
|
|
2516
|
+
#### pick(baseObject, keys)
|
|
2099
2517
|
|
|
2100
|
-
return
|
|
2101
|
-
useful to avoid falsify validating Number Zero (0)
|
|
2518
|
+
return a new object just with attributes in _keys_ list
|
|
2102
2519
|
|
|
2103
2520
|
|
|
2104
2521
|
|
|
@@ -2107,7 +2524,8 @@ useful to avoid falsify validating Number Zero (0)
|
|
|
2107
2524
|
|
|
2108
2525
|
| Name | Type | Description | |
|
|
2109
2526
|
| ---- | ---- | ----------- | -------- |
|
|
2110
|
-
|
|
|
2527
|
+
| baseObject | `Object` | base object | |
|
|
2528
|
+
| keys | `Array.<String>` | list of attributes to preserve | |
|
|
2111
2529
|
|
|
2112
2530
|
|
|
2113
2531
|
|
|
@@ -2115,19 +2533,17 @@ useful to avoid falsify validating Number Zero (0)
|
|
|
2115
2533
|
##### Returns
|
|
2116
2534
|
|
|
2117
2535
|
|
|
2118
|
-
- `
|
|
2536
|
+
- `Object` new object just with desired attributes
|
|
2119
2537
|
|
|
2120
2538
|
|
|
2121
2539
|
|
|
2122
2540
|
|
|
2123
|
-
### dist/general/
|
|
2541
|
+
### dist/general/object/serialize.js
|
|
2124
2542
|
|
|
2125
2543
|
|
|
2126
|
-
####
|
|
2544
|
+
#### serialize(obj)
|
|
2127
2545
|
|
|
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.
|
|
2546
|
+
serialize object to url param
|
|
2131
2547
|
|
|
2132
2548
|
|
|
2133
2549
|
|
|
@@ -2136,8 +2552,7 @@ Creates a random string
|
|
|
2136
2552
|
|
|
2137
2553
|
| Name | Type | Description | |
|
|
2138
2554
|
| ---- | ---- | ----------- | -------- |
|
|
2139
|
-
|
|
|
2140
|
-
| exclude | `Array` | collection of strings that is going to be excluded of the random string. | |
|
|
2555
|
+
| obj | | - Object to be serialized | |
|
|
2141
2556
|
|
|
2142
2557
|
|
|
2143
2558
|
|
|
@@ -2145,19 +2560,17 @@ Creates a random string
|
|
|
2145
2560
|
##### Returns
|
|
2146
2561
|
|
|
2147
2562
|
|
|
2148
|
-
- `
|
|
2563
|
+
- `Void`
|
|
2149
2564
|
|
|
2150
2565
|
|
|
2151
2566
|
|
|
2152
2567
|
|
|
2153
|
-
### dist/general/
|
|
2568
|
+
### dist/general/string/capitalize.js
|
|
2154
2569
|
|
|
2155
2570
|
|
|
2156
|
-
####
|
|
2571
|
+
#### capitalize(text)
|
|
2157
2572
|
|
|
2158
|
-
|
|
2159
|
-
- Useful for Object, Array and string type.
|
|
2160
|
-
- For `null` or `undefined` or else argument the returned value will be 0.
|
|
2573
|
+
Upper case the first letter of a given text
|
|
2161
2574
|
|
|
2162
2575
|
|
|
2163
2576
|
|
|
@@ -2166,7 +2579,7 @@ Gets the length of the given array.
|
|
|
2166
2579
|
|
|
2167
2580
|
| Name | Type | Description | |
|
|
2168
2581
|
| ---- | ---- | ----------- | -------- |
|
|
2169
|
-
|
|
|
2582
|
+
| text | `String` | | |
|
|
2170
2583
|
|
|
2171
2584
|
|
|
2172
2585
|
|
|
@@ -2174,17 +2587,17 @@ Gets the length of the given array.
|
|
|
2174
2587
|
##### Returns
|
|
2175
2588
|
|
|
2176
2589
|
|
|
2177
|
-
- `
|
|
2590
|
+
- `String` a capitalized text
|
|
2178
2591
|
|
|
2179
2592
|
|
|
2180
2593
|
|
|
2181
2594
|
|
|
2182
|
-
### dist/
|
|
2595
|
+
### dist/qrvey/helpers/getColumnsLabel.js
|
|
2183
2596
|
|
|
2184
2597
|
|
|
2185
|
-
####
|
|
2598
|
+
#### getColumnLabels(column)
|
|
2186
2599
|
|
|
2187
|
-
|
|
2600
|
+
Get an string of the properties of the given column.
|
|
2188
2601
|
|
|
2189
2602
|
|
|
2190
2603
|
|
|
@@ -2193,7 +2606,7 @@ Upper case the first letter of a given text
|
|
|
2193
2606
|
|
|
2194
2607
|
| Name | Type | Description | |
|
|
2195
2608
|
| ---- | ---- | ----------- | -------- |
|
|
2196
|
-
|
|
|
2609
|
+
| column | | The column | |
|
|
2197
2610
|
|
|
2198
2611
|
|
|
2199
2612
|
|
|
@@ -2201,7 +2614,7 @@ Upper case the first letter of a given text
|
|
|
2201
2614
|
##### Returns
|
|
2202
2615
|
|
|
2203
2616
|
|
|
2204
|
-
-
|
|
2617
|
+
- an string with the property, aggregate or calculation label.
|
|
2205
2618
|
|
|
2206
2619
|
|
|
2207
2620
|
|
|
@@ -2288,33 +2701,6 @@ Get a dataset by Qrvey ID
|
|
|
2288
2701
|
|
|
2289
2702
|
|
|
2290
2703
|
|
|
2291
|
-
### dist/qrvey/helpers/getColumnsLabel.js
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
#### getColumnLabels(column)
|
|
2295
|
-
|
|
2296
|
-
Get an string of the properties of the given column.
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
##### Parameters
|
|
2302
|
-
|
|
2303
|
-
| Name | Type | Description | |
|
|
2304
|
-
| ---- | ---- | ----------- | -------- |
|
|
2305
|
-
| column | | The column | |
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
##### Returns
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
- an string with the property, aggregate or calculation label.
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
2704
|
### dist/stencil/decorators/Config.js
|
|
2319
2705
|
|
|
2320
2706
|
|
|
@@ -2618,12 +3004,12 @@ Transform user Filters array into Filter Logic structure
|
|
|
2618
3004
|
|
|
2619
3005
|
|
|
2620
3006
|
|
|
2621
|
-
### dist/filters/helpers/backend/
|
|
3007
|
+
### dist/filters/helpers/backend/getBackendProperty.js
|
|
2622
3008
|
|
|
2623
3009
|
|
|
2624
|
-
####
|
|
3010
|
+
#### getBackendProperty(filter)
|
|
2625
3011
|
|
|
2626
|
-
Gets a
|
|
3012
|
+
Gets a property for the logic structure
|
|
2627
3013
|
|
|
2628
3014
|
|
|
2629
3015
|
|
|
@@ -2645,12 +3031,12 @@ Gets a group value for the backend logic structure
|
|
|
2645
3031
|
|
|
2646
3032
|
|
|
2647
3033
|
|
|
2648
|
-
### dist/filters/helpers/backend/
|
|
3034
|
+
### dist/filters/helpers/backend/getBackendGroupValue.js
|
|
2649
3035
|
|
|
2650
3036
|
|
|
2651
|
-
####
|
|
3037
|
+
#### getBackendGroupValue(filter)
|
|
2652
3038
|
|
|
2653
|
-
Gets a
|
|
3039
|
+
Gets a group value for the backend logic structure
|
|
2654
3040
|
|
|
2655
3041
|
|
|
2656
3042
|
|
|
@@ -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
|
|