@qrvey/utils 1.12.0-9 → 1.13.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2606 -2130
- package/dist/charts/adapters/endpointData.js +4 -5
- package/dist/charts/adapters/endpointDataGet.js +3 -3
- package/dist/cjs/charts/adapters/endpointData.js +3 -4
- package/dist/cjs/charts/adapters/endpointDataGet.js +2 -2
- package/dist/cjs/constants/Charts.Const.d.ts +4 -1
- package/dist/cjs/constants/Charts.Const.js +3 -0
- package/dist/cjs/dates/relative/RelativeStatementAdapter.d.ts +1 -1
- package/dist/cjs/dates/relative/RelativeStatementAdapter.js +2 -1
- package/dist/cjs/dates/relative/relative.d.ts +3 -4
- package/dist/cjs/dates/relative/relative.js +5 -9
- package/dist/cjs/filters/adapters/FDToFlatUI.js +2 -2
- package/dist/cjs/filters/adapters/FDToUI.js +2 -2
- package/dist/cjs/filters/adapters/UIToFD.js +2 -2
- package/dist/cjs/filters/adapters/UIToFlatUI.js +2 -2
- package/dist/cjs/filters/adapters/UIToOldLogic.js +2 -2
- package/dist/cjs/filters/adapters/adaptFilterData.js +2 -2
- package/dist/cjs/filters/adapters/flatUIToFD.js +2 -2
- package/dist/cjs/filters/adapters/flatUIToOldLogic.js +2 -2
- package/dist/cjs/filters/adapters/flatUIToUI.js +2 -2
- package/dist/cjs/filters/constants/common/FILTER_SCOPE.d.ts +7 -7
- package/dist/cjs/filters/helpers/OLD_getAggFilters.js +2 -2
- package/dist/cjs/filters/helpers/backend/getLogicByScopes.js +2 -2
- package/dist/cjs/filters/helpers/common/excludeFiltersByAggregateColumn.js +2 -2
- package/dist/cjs/filters/helpers/common/excludeFiltersByParams.js +2 -2
- package/dist/cjs/filters/helpers/common/excludeFiltersByScopes.js +2 -2
- package/dist/cjs/filters/helpers/common/getFiltersByAggregateColumn.js +2 -2
- package/dist/cjs/filters/helpers/common/getFiltersByParams.js +2 -2
- package/dist/cjs/filters/helpers/common/getFiltersByScopes.js +2 -2
- package/dist/cjs/filters/helpers/common/getFiltersByScopesIds.js +2 -2
- package/dist/cjs/filters/helpers/common/getFiltersByVisibility.js +2 -2
- package/dist/cjs/filters/helpers/settings/getFilterSettings.js +4 -4
- package/dist/cjs/filters/helpers/ui/excludeUIFiltersByAggregate.js +2 -2
- package/dist/cjs/filters/helpers/ui/excludeUIFlatFiltersByScopes.js +2 -2
- package/dist/cjs/filters/helpers/ui/getUIFlatFilterByParams.js +2 -2
- package/dist/cjs/filters/helpers/ui/getUIFlatFiltersByParams.js +2 -2
- package/dist/cjs/filters/helpers/ui/getUIFlatFiltersByScopes.js +2 -2
- package/dist/cjs/filters/services/Filters.api.js +4 -7
- package/dist/cjs/filters/services/UChartApi.d.ts +1 -1
- package/dist/cjs/filters/services/UChartApi.js +4 -3
- package/dist/cjs/filters/services/UChartPaginationApi.d.ts +1 -1
- package/dist/cjs/filters/services/UChartPaginationApi.js +5 -4
- package/dist/cjs/format/format.js +2 -2
- package/dist/cjs/general/array/filterNestedTree.js +2 -2
- package/dist/cjs/general/object/objectCopy.js +8 -7
- package/dist/cjs/globalization/interfaces/II18nResource.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilder.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderAxisStyle.d.ts +9 -0
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderChartLabels.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderChartNames.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderMenuActions.d.ts +5 -0
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderRadarType.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderRadarType.js +2 -0
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderStyleOptions.d.ts +9 -0
- package/dist/cjs/globalization/interfaces/dashboard/II18nDashboard.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/dashboard/II18nDashboardToast.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/export/II18nExportingModal.d.ts +67 -0
- package/dist/cjs/globalization/interfaces/export/II18nExportingModal.js +2 -0
- package/dist/cjs/globalization/interfaces/export/II18nExportingModalApplyButtonLabel.d.ts +3 -0
- package/dist/cjs/globalization/interfaces/export/II18nExportingModalApplyButtonLabel.js +2 -0
- package/dist/cjs/globalization/interfaces/export/II18nExportingModalErrorMessages.d.ts +3 -0
- package/dist/cjs/globalization/interfaces/export/II18nExportingModalErrorMessages.js +2 -0
- package/dist/cjs/globalization/interfaces/export/II18nExportingModalRecurrence.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/export/II18nExportingModalRecurrence.js +2 -0
- package/dist/cjs/globalization/interfaces/export/II18nExportingModalTimeStamp.d.ts +7 -0
- package/dist/cjs/globalization/interfaces/export/II18nExportingModalTimeStamp.js +2 -0
- package/dist/cjs/globalization/interfaces/export/index.d.ts +5 -0
- package/dist/cjs/globalization/interfaces/export/index.js +21 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionHour.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionMillisecond.d.ts +5 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionMillisecond.js +2 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionText.d.ts +5 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionText.js +2 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2Functions.d.ts +4 -0
- package/dist/cjs/globalization/interfaces/panel/I18nPanelColumnInteractive.d.ts +5 -0
- package/dist/cjs/globalization/interfaces/panel/I18nPanelColumnInteractive.js +2 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanel.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanelErrors.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanelTooltips.d.ts +3 -0
- package/dist/cjs/globalization/interfaces/panel/index.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/panel/index.js +1 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTheme.d.ts +4 -1
- package/dist/cjs/globalization/labels/I18N_DEFAULT.d.ts +1 -1
- package/dist/cjs/globalization/labels/I18N_DEFAULT.js +3 -1
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER.js +7 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +1 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.js +7 -2
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +18 -0
- package/dist/cjs/globalization/labels/dashboard/I18N_DASHBOARD.js +2 -0
- package/dist/cjs/globalization/labels/export/I18N_EXPORT_MODAL.d.ts +5 -0
- package/dist/cjs/globalization/labels/export/I18N_EXPORT_MODAL.js +78 -0
- package/dist/cjs/globalization/labels/export/index.d.ts +1 -0
- package/dist/cjs/globalization/labels/export/index.js +17 -0
- package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +20 -5
- package/dist/cjs/globalization/labels/panel/I18N_PANEL.js +9 -0
- package/dist/cjs/globalization/labels/style_themes/I18N_STYLE_THEMES.js +4 -1
- package/dist/cjs/globalization/service/i18nextBuilder.js +2 -3
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/services/api/getAllQrveys.api.d.ts +1 -1
- package/dist/cjs/services/helpers/Request.js +5 -2
- package/dist/cjs/services/helpers/getDefaultQuestionListOptionsAttributes.js +7 -7
- package/dist/cjs/services/interfaces/IPayloadQrveyAll.d.ts +1 -1
- package/dist/cjs/themes/constants/AUTOMATIC_CANVAS_CSS_VARIABLES_FOR_DARK.d.ts +6 -0
- package/dist/cjs/themes/constants/AUTOMATIC_CANVAS_CSS_VARIABLES_FOR_DARK.js +10 -0
- package/dist/cjs/themes/constants/AUTOMATIC_CANVAS_CSS_VARIABLES_FOR_LIGHT.d.ts +6 -0
- package/dist/cjs/themes/constants/AUTOMATIC_CANVAS_CSS_VARIABLES_FOR_LIGHT.js +10 -0
- package/dist/cjs/themes/constants/AUTOMATIC_CSS_VARIABLES.d.ts +39 -0
- package/dist/cjs/themes/constants/AUTOMATIC_CSS_VARIABLES.js +22 -0
- package/dist/cjs/themes/constants/AUTOMATIC_GLOBAL_CSS_VARIABLES_FOR_DARK.d.ts +15 -0
- package/dist/cjs/themes/constants/AUTOMATIC_GLOBAL_CSS_VARIABLES_FOR_DARK.js +19 -0
- package/dist/cjs/themes/constants/AUTOMATIC_GLOBAL_CSS_VARIABLES_FOR_LIGHT.d.ts +15 -0
- package/dist/cjs/themes/constants/AUTOMATIC_GLOBAL_CSS_VARIABLES_FOR_LIGHT.js +19 -0
- package/dist/cjs/themes/constants/CANVAS_CSS_VARIABLES.d.ts +6 -0
- package/dist/cjs/themes/constants/CANVAS_CSS_VARIABLES.js +10 -0
- package/dist/cjs/themes/constants/CHANNEL_BLACK_COLOR.d.ts +5 -0
- package/dist/cjs/themes/constants/CHANNEL_BLACK_COLOR.js +12 -0
- package/dist/cjs/themes/constants/CHANNEL_WHITE_COLOR.d.ts +5 -0
- package/dist/cjs/themes/constants/CHANNEL_WHITE_COLOR.js +12 -0
- package/dist/cjs/themes/constants/COLOR_NAME.d.ts +154 -0
- package/dist/cjs/themes/constants/COLOR_NAME.js +157 -0
- package/dist/cjs/themes/constants/COLOR_TYPE.d.ts +7 -0
- package/dist/cjs/themes/constants/COLOR_TYPE.js +11 -0
- package/dist/cjs/themes/constants/CSS_VARIABLE_DESTINATION.d.ts +7 -0
- package/dist/cjs/themes/constants/CSS_VARIABLE_DESTINATION.js +11 -0
- package/dist/cjs/themes/constants/GLOBAL_CSS_VARIABLES.d.ts +15 -0
- package/dist/cjs/themes/constants/GLOBAL_CSS_VARIABLES.js +19 -0
- package/dist/cjs/themes/constants/HEXADECIMAL_REGULAR_EXPRESSION.d.ts +4 -0
- package/dist/cjs/themes/constants/HEXADECIMAL_REGULAR_EXPRESSION.js +7 -0
- package/dist/cjs/themes/constants/RGBA_REGULAR_EXPRESION.d.ts +4 -0
- package/dist/cjs/themes/constants/RGBA_REGULAR_EXPRESION.js +7 -0
- package/dist/cjs/themes/constants/index.d.ts +14 -0
- package/dist/cjs/themes/constants/index.js +30 -0
- package/dist/cjs/themes/helpers/calculateHSP.d.ts +8 -0
- package/dist/cjs/themes/helpers/calculateHSP.js +20 -0
- package/dist/cjs/themes/helpers/getCSSVariablesByDestination.d.ts +40 -0
- package/dist/cjs/themes/helpers/getCSSVariablesByDestination.js +18 -0
- package/dist/cjs/themes/helpers/getChannelsByHexadecimalColor.d.ts +8 -0
- package/dist/cjs/themes/helpers/getChannelsByHexadecimalColor.js +26 -0
- package/dist/cjs/themes/helpers/getChannelsByNameColor.d.ts +8 -0
- package/dist/cjs/themes/helpers/getChannelsByNameColor.js +26 -0
- package/dist/cjs/themes/helpers/getChannelsByRgbaColor.d.ts +8 -0
- package/dist/cjs/themes/helpers/getChannelsByRgbaColor.js +25 -0
- package/dist/cjs/themes/helpers/getHexadecimalOpacity.d.ts +7 -0
- package/dist/cjs/themes/helpers/getHexadecimalOpacity.js +19 -0
- package/dist/cjs/themes/helpers/getRgbaOpacity.d.ts +7 -0
- package/dist/cjs/themes/helpers/getRgbaOpacity.js +21 -0
- package/dist/cjs/themes/helpers/index.d.ts +12 -0
- package/dist/cjs/themes/helpers/index.js +28 -0
- package/dist/cjs/themes/helpers/isDarkColor.d.ts +7 -0
- package/dist/cjs/themes/helpers/isDarkColor.js +15 -0
- package/dist/cjs/themes/helpers/isHexadecimalColor.d.ts +6 -0
- package/dist/cjs/themes/helpers/isHexadecimalColor.js +15 -0
- package/dist/cjs/themes/helpers/isRGBAColor.d.ts +6 -0
- package/dist/cjs/themes/helpers/isRGBAColor.js +15 -0
- package/dist/cjs/themes/helpers/lightOrDark.d.ts +9 -0
- package/dist/cjs/themes/helpers/lightOrDark.js +40 -0
- package/dist/cjs/themes/helpers/setAutomaticCSSVariablesForDark.d.ts +9 -0
- package/dist/cjs/themes/helpers/setAutomaticCSSVariablesForDark.js +43 -0
- package/dist/cjs/themes/index.d.ts +3 -0
- package/dist/cjs/themes/index.js +19 -0
- package/dist/cjs/themes/interfaces/IColorCSSVariableDestination.d.ts +5 -0
- package/dist/cjs/themes/interfaces/IColorCSSVariableDestination.js +2 -0
- package/dist/cjs/themes/interfaces/IColorChannel.d.ts +9 -0
- package/dist/cjs/themes/interfaces/IColorChannel.js +2 -0
- package/dist/cjs/themes/interfaces/IColorType.d.ts +5 -0
- package/dist/cjs/themes/interfaces/IColorType.js +2 -0
- package/dist/cjs/themes/interfaces/index.d.ts +3 -0
- package/dist/cjs/themes/interfaces/index.js +19 -0
- package/dist/cjs/tokens/getCleanCustomTokens.d.ts +9 -0
- package/dist/cjs/tokens/getCleanCustomTokens.js +22 -0
- package/dist/cjs/tokens/getCustomtonTokens.d.ts +3 -3
- package/dist/cjs/tokens/getCustomtonTokens.js +7 -4
- package/dist/cjs/tokens/getCustomtonTokensWithKeys.js +1 -1
- package/dist/cjs/tokens/index.d.ts +1 -0
- package/dist/cjs/tokens/index.js +1 -0
- package/dist/constants/Charts.Const.d.ts +4 -1
- package/dist/constants/Charts.Const.js +3 -0
- package/dist/dates/relative/RelativeStatementAdapter.d.ts +1 -1
- package/dist/dates/relative/RelativeStatementAdapter.js +1 -1
- package/dist/dates/relative/relative.d.ts +3 -4
- package/dist/dates/relative/relative.js +4 -5
- package/dist/filters/adapters/FDToFlatUI.js +2 -2
- package/dist/filters/adapters/FDToUI.js +2 -2
- package/dist/filters/adapters/UIToFD.js +2 -2
- package/dist/filters/adapters/UIToFlatUI.js +2 -2
- package/dist/filters/adapters/UIToOldLogic.js +2 -2
- package/dist/filters/adapters/adaptFilterData.js +2 -2
- package/dist/filters/adapters/flatUIToFD.js +2 -2
- package/dist/filters/adapters/flatUIToOldLogic.js +2 -2
- package/dist/filters/adapters/flatUIToUI.js +2 -2
- package/dist/filters/constants/common/FILTER_SCOPE.d.ts +7 -7
- package/dist/filters/helpers/OLD_getAggFilters.js +2 -2
- package/dist/filters/helpers/backend/getLogicByScopes.js +2 -2
- package/dist/filters/helpers/common/excludeFiltersByAggregateColumn.js +2 -2
- package/dist/filters/helpers/common/excludeFiltersByParams.js +2 -2
- package/dist/filters/helpers/common/excludeFiltersByScopes.js +2 -2
- package/dist/filters/helpers/common/getFiltersByAggregateColumn.js +2 -2
- package/dist/filters/helpers/common/getFiltersByParams.js +2 -2
- package/dist/filters/helpers/common/getFiltersByScopes.js +2 -2
- package/dist/filters/helpers/common/getFiltersByScopesIds.js +2 -2
- package/dist/filters/helpers/common/getFiltersByVisibility.js +2 -2
- package/dist/filters/helpers/settings/getFilterSettings.js +4 -4
- package/dist/filters/helpers/ui/excludeUIFiltersByAggregate.js +2 -2
- package/dist/filters/helpers/ui/excludeUIFlatFiltersByScopes.js +2 -2
- package/dist/filters/helpers/ui/getUIFlatFilterByParams.js +2 -2
- package/dist/filters/helpers/ui/getUIFlatFiltersByParams.js +2 -2
- package/dist/filters/helpers/ui/getUIFlatFiltersByScopes.js +2 -2
- package/dist/filters/services/Filters.api.js +2 -2
- package/dist/filters/services/UChartApi.d.ts +1 -1
- package/dist/filters/services/UChartApi.js +3 -4
- package/dist/filters/services/UChartPaginationApi.d.ts +1 -1
- package/dist/filters/services/UChartPaginationApi.js +4 -5
- package/dist/format/format.js +2 -2
- package/dist/general/array/filterNestedTree.js +2 -2
- package/dist/general/object/objectCopy.js +8 -7
- package/dist/globalization/interfaces/II18nResource.d.ts +2 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilder.d.ts +2 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderAxisStyle.d.ts +9 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderChartLabels.d.ts +1 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderChartNames.d.ts +2 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderMenuActions.d.ts +5 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderRadarType.d.ts +6 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderStyleOptions.d.ts +9 -0
- package/dist/globalization/interfaces/dashboard/II18nDashboard.d.ts +1 -0
- package/dist/globalization/interfaces/dashboard/II18nDashboardToast.d.ts +1 -0
- package/dist/globalization/interfaces/export/II18nExportingModal.d.ts +67 -0
- package/dist/globalization/interfaces/export/II18nExportingModalApplyButtonLabel.d.ts +3 -0
- package/dist/globalization/interfaces/export/II18nExportingModalApplyButtonLabel.js +1 -0
- package/dist/globalization/interfaces/export/II18nExportingModalErrorMessages.d.ts +3 -0
- package/dist/globalization/interfaces/export/II18nExportingModalErrorMessages.js +1 -0
- package/dist/globalization/interfaces/export/II18nExportingModalRecurrence.d.ts +6 -0
- package/dist/globalization/interfaces/export/II18nExportingModalRecurrence.js +1 -0
- package/dist/globalization/interfaces/export/II18nExportingModalTimeStamp.d.ts +7 -0
- package/dist/globalization/interfaces/export/II18nExportingModalTimeStamp.js +1 -0
- package/dist/globalization/interfaces/export/index.d.ts +5 -0
- package/dist/globalization/interfaces/export/index.js +5 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionHour.d.ts +2 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionMillisecond.d.ts +5 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionMillisecond.js +1 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionText.d.ts +5 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionText.js +1 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2Functions.d.ts +4 -0
- package/dist/globalization/interfaces/panel/I18nPanelColumnInteractive.d.ts +5 -0
- package/dist/globalization/interfaces/panel/I18nPanelColumnInteractive.js +1 -0
- package/dist/globalization/interfaces/panel/II18nPanel.d.ts +2 -0
- package/dist/globalization/interfaces/panel/II18nPanelErrors.d.ts +1 -0
- package/dist/globalization/interfaces/panel/II18nPanelTooltips.d.ts +3 -0
- package/dist/globalization/interfaces/panel/index.d.ts +1 -0
- package/dist/globalization/interfaces/panel/index.js +1 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesTheme.d.ts +4 -1
- package/dist/globalization/labels/I18N_DEFAULT.d.ts +1 -1
- package/dist/globalization/labels/I18N_DEFAULT.js +3 -1
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER.js +7 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +1 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.js +7 -2
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +18 -0
- package/dist/globalization/labels/dashboard/I18N_DASHBOARD.js +2 -0
- package/dist/globalization/labels/export/I18N_EXPORT_MODAL.d.ts +5 -0
- package/dist/globalization/labels/export/I18N_EXPORT_MODAL.js +75 -0
- package/dist/globalization/labels/export/index.d.ts +1 -0
- package/dist/globalization/labels/export/index.js +1 -0
- package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +20 -5
- package/dist/globalization/labels/panel/I18N_PANEL.js +9 -0
- package/dist/globalization/labels/style_themes/I18N_STYLE_THEMES.js +4 -1
- package/dist/globalization/service/i18nextBuilder.js +3 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/services/api/getAllQrveys.api.d.ts +1 -1
- package/dist/services/helpers/Request.js +5 -2
- package/dist/services/helpers/getDefaultQuestionListOptionsAttributes.js +7 -7
- package/dist/services/interfaces/IPayloadQrveyAll.d.ts +1 -1
- package/dist/themes/constants/AUTOMATIC_CANVAS_CSS_VARIABLES_FOR_DARK.d.ts +6 -0
- package/dist/themes/constants/AUTOMATIC_CANVAS_CSS_VARIABLES_FOR_DARK.js +7 -0
- package/dist/themes/constants/AUTOMATIC_CANVAS_CSS_VARIABLES_FOR_LIGHT.d.ts +6 -0
- package/dist/themes/constants/AUTOMATIC_CANVAS_CSS_VARIABLES_FOR_LIGHT.js +7 -0
- package/dist/themes/constants/AUTOMATIC_CSS_VARIABLES.d.ts +39 -0
- package/dist/themes/constants/AUTOMATIC_CSS_VARIABLES.js +19 -0
- package/dist/themes/constants/AUTOMATIC_GLOBAL_CSS_VARIABLES_FOR_DARK.d.ts +15 -0
- package/dist/themes/constants/AUTOMATIC_GLOBAL_CSS_VARIABLES_FOR_DARK.js +16 -0
- package/dist/themes/constants/AUTOMATIC_GLOBAL_CSS_VARIABLES_FOR_LIGHT.d.ts +15 -0
- package/dist/themes/constants/AUTOMATIC_GLOBAL_CSS_VARIABLES_FOR_LIGHT.js +16 -0
- package/dist/themes/constants/CANVAS_CSS_VARIABLES.d.ts +6 -0
- package/dist/themes/constants/CANVAS_CSS_VARIABLES.js +7 -0
- package/dist/themes/constants/CHANNEL_BLACK_COLOR.d.ts +5 -0
- package/dist/themes/constants/CHANNEL_BLACK_COLOR.js +9 -0
- package/dist/themes/constants/CHANNEL_WHITE_COLOR.d.ts +5 -0
- package/dist/themes/constants/CHANNEL_WHITE_COLOR.js +9 -0
- package/dist/themes/constants/COLOR_NAME.d.ts +154 -0
- package/dist/themes/constants/COLOR_NAME.js +154 -0
- package/dist/themes/constants/COLOR_TYPE.d.ts +7 -0
- package/dist/themes/constants/COLOR_TYPE.js +8 -0
- package/dist/themes/constants/CSS_VARIABLE_DESTINATION.d.ts +7 -0
- package/dist/themes/constants/CSS_VARIABLE_DESTINATION.js +8 -0
- package/dist/themes/constants/GLOBAL_CSS_VARIABLES.d.ts +15 -0
- package/dist/themes/constants/GLOBAL_CSS_VARIABLES.js +16 -0
- package/dist/themes/constants/HEXADECIMAL_REGULAR_EXPRESSION.d.ts +4 -0
- package/dist/themes/constants/HEXADECIMAL_REGULAR_EXPRESSION.js +4 -0
- package/dist/themes/constants/RGBA_REGULAR_EXPRESION.d.ts +4 -0
- package/dist/themes/constants/RGBA_REGULAR_EXPRESION.js +4 -0
- package/dist/themes/constants/index.d.ts +14 -0
- package/dist/themes/constants/index.js +14 -0
- package/dist/themes/helpers/calculateHSP.d.ts +8 -0
- package/dist/themes/helpers/calculateHSP.js +16 -0
- package/dist/themes/helpers/getCSSVariablesByDestination.d.ts +40 -0
- package/dist/themes/helpers/getCSSVariablesByDestination.js +14 -0
- package/dist/themes/helpers/getChannelsByHexadecimalColor.d.ts +8 -0
- package/dist/themes/helpers/getChannelsByHexadecimalColor.js +22 -0
- package/dist/themes/helpers/getChannelsByNameColor.d.ts +8 -0
- package/dist/themes/helpers/getChannelsByNameColor.js +22 -0
- package/dist/themes/helpers/getChannelsByRgbaColor.d.ts +8 -0
- package/dist/themes/helpers/getChannelsByRgbaColor.js +21 -0
- package/dist/themes/helpers/getHexadecimalOpacity.d.ts +7 -0
- package/dist/themes/helpers/getHexadecimalOpacity.js +15 -0
- package/dist/themes/helpers/getRgbaOpacity.d.ts +7 -0
- package/dist/themes/helpers/getRgbaOpacity.js +17 -0
- package/dist/themes/helpers/index.d.ts +12 -0
- package/dist/themes/helpers/index.js +12 -0
- package/dist/themes/helpers/isDarkColor.d.ts +7 -0
- package/dist/themes/helpers/isDarkColor.js +11 -0
- package/dist/themes/helpers/isHexadecimalColor.d.ts +6 -0
- package/dist/themes/helpers/isHexadecimalColor.js +11 -0
- package/dist/themes/helpers/isRGBAColor.d.ts +6 -0
- package/dist/themes/helpers/isRGBAColor.js +11 -0
- package/dist/themes/helpers/lightOrDark.d.ts +9 -0
- package/dist/themes/helpers/lightOrDark.js +36 -0
- package/dist/themes/helpers/setAutomaticCSSVariablesForDark.d.ts +9 -0
- package/dist/themes/helpers/setAutomaticCSSVariablesForDark.js +39 -0
- package/dist/themes/index.d.ts +3 -0
- package/dist/themes/index.js +3 -0
- package/dist/themes/interfaces/IColorCSSVariableDestination.d.ts +5 -0
- package/dist/themes/interfaces/IColorCSSVariableDestination.js +1 -0
- package/dist/themes/interfaces/IColorChannel.d.ts +9 -0
- package/dist/themes/interfaces/IColorChannel.js +1 -0
- package/dist/themes/interfaces/IColorType.d.ts +5 -0
- package/dist/themes/interfaces/IColorType.js +1 -0
- package/dist/themes/interfaces/index.d.ts +3 -0
- package/dist/themes/interfaces/index.js +3 -0
- package/dist/tokens/getCleanCustomTokens.d.ts +9 -0
- package/dist/tokens/getCleanCustomTokens.js +18 -0
- package/dist/tokens/getCustomtonTokens.d.ts +3 -3
- package/dist/tokens/getCustomtonTokens.js +8 -5
- package/dist/tokens/getCustomtonTokensWithKeys.js +1 -1
- package/dist/tokens/index.d.ts +1 -0
- package/dist/tokens/index.js +1 -0
- package/package.json +20 -17
- package/dist/cjs/tokens/getCustomtonTokensWithKeys.test.js +0 -23
- package/dist/tokens/getCustomtonTokensWithKeys.test.js +0 -21
- /package/dist/{cjs/tokens/getCustomtonTokensWithKeys.test.d.ts → globalization/interfaces/chart_builder/II18nChartBuilderRadarType.js} +0 -0
- /package/dist/{tokens/getCustomtonTokensWithKeys.test.d.ts → globalization/interfaces/export/II18nExportingModal.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AbsoluteStatement } from "./interfaces/AbsoluteStatement";
|
|
2
2
|
import { RelativeInput } from "./interfaces/RelativeInput";
|
|
3
3
|
import { RelativeToAbsoluteStruct } from "./interfaces/RelativeToAbsoluteStruct";
|
|
4
|
-
export
|
|
4
|
+
export declare class RelativeStatementAdapter {
|
|
5
5
|
statement: RelativeInput;
|
|
6
6
|
now: Date;
|
|
7
7
|
constructor(statement: RelativeInput, now?: Date);
|
|
@@ -6,7 +6,7 @@ import { getStatementCase } from "./helpers/getStatementCase";
|
|
|
6
6
|
import { DATE_GROUPING_PROPERTY } from "../constants/DATE_GROUPING_PROPERTY";
|
|
7
7
|
import { parseDate } from "./helpers/parseDate";
|
|
8
8
|
import { DATETIME_FORMAT } from "./constants/DATE_FORMATS";
|
|
9
|
-
export
|
|
9
|
+
export class RelativeStatementAdapter {
|
|
10
10
|
constructor(statement, now = new Date()) {
|
|
11
11
|
this.statement =
|
|
12
12
|
typeof statement === "string" ? statement : formatStatement(statement);
|
|
@@ -14,9 +14,8 @@ import { RelativeStatement } from "./interfaces/RelativeStatement";
|
|
|
14
14
|
*
|
|
15
15
|
* Output:
|
|
16
16
|
* { gte: "03/06/2021 00:00:00", lte: "03/05/2022 23:59:59" }
|
|
17
|
-
*
|
|
18
|
-
* @param
|
|
19
|
-
* @
|
|
20
|
-
* @returns {AbsoluteRange[]|string[]}
|
|
17
|
+
* @param statements - Raw statements/values
|
|
18
|
+
* @param clock - Clock/time reference for relative date resolution
|
|
19
|
+
* @returns
|
|
21
20
|
*/
|
|
22
21
|
export declare function resolveRelative(statements: RelativeStatement[], clock?: Date): (string | import("./interfaces").AbsoluteStatement)[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import RelativeStatementAdapter from "./RelativeStatementAdapter";
|
|
1
|
+
import { RelativeStatementAdapter } from "./RelativeStatementAdapter";
|
|
2
2
|
/**
|
|
3
3
|
* Resolve a list of relative statements according to operator
|
|
4
4
|
* @example
|
|
@@ -14,10 +14,9 @@ import RelativeStatementAdapter from "./RelativeStatementAdapter";
|
|
|
14
14
|
*
|
|
15
15
|
* Output:
|
|
16
16
|
* { gte: "03/06/2021 00:00:00", lte: "03/05/2022 23:59:59" }
|
|
17
|
-
*
|
|
18
|
-
* @param
|
|
19
|
-
* @
|
|
20
|
-
* @returns {AbsoluteRange[]|string[]}
|
|
17
|
+
* @param statements - Raw statements/values
|
|
18
|
+
* @param clock - Clock/time reference for relative date resolution
|
|
19
|
+
* @returns
|
|
21
20
|
*/
|
|
22
21
|
export function resolveRelative(statements, clock = new Date()) {
|
|
23
22
|
return statements.map((s) => new RelativeStatementAdapter(s, clock).value());
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { adaptFilterValues } from "./adaptFilterValues";
|
|
2
2
|
import { isEmpty } from "../../general/mix/isEmpty";
|
|
3
|
-
import {
|
|
3
|
+
import { objectCopy } from "../../general/object/objectCopy";
|
|
4
4
|
import { adaptDateGroupingProperty } from "./adaptDateGroupingProperty";
|
|
5
5
|
import { _get } from "../../general/object/get";
|
|
6
6
|
/**
|
|
@@ -15,7 +15,7 @@ export function FDToFlatUI(filterData, datasetsInfo = []) {
|
|
|
15
15
|
isEmpty(filterData.scopes) ||
|
|
16
16
|
filterData.scopes.length === 0)
|
|
17
17
|
return uFilters;
|
|
18
|
-
const _filterData =
|
|
18
|
+
const _filterData = objectCopy(filterData);
|
|
19
19
|
if (_filterData.version === "2.1") {
|
|
20
20
|
uFilters = FD21ToFlatUI(_filterData.scopes, datasetsInfo);
|
|
21
21
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { adaptDateGroupingProperty } from "./adaptDateGroupingProperty";
|
|
2
2
|
import { adaptFilterValues } from "./adaptFilterValues";
|
|
3
3
|
import { isEmpty } from "../../general/mix/isEmpty";
|
|
4
|
-
import {
|
|
4
|
+
import { objectCopy } from "../../general/object/objectCopy";
|
|
5
5
|
import { FILTER_SECTION } from "../constants/common/FILTER_SECTION";
|
|
6
6
|
import { FILTER_STRUCTURE_VERSION } from "../constants/common/FILTER_STRUCTURE_VERSION";
|
|
7
7
|
/**
|
|
@@ -14,7 +14,7 @@ export function FDToUI(filterData, datasetsInfo = []) {
|
|
|
14
14
|
let ufData;
|
|
15
15
|
if (isEmpty(filterData) || isEmpty(filterData.scopes))
|
|
16
16
|
return ufData;
|
|
17
|
-
const _filterData =
|
|
17
|
+
const _filterData = objectCopy(filterData);
|
|
18
18
|
if (_filterData.version === "2.1") {
|
|
19
19
|
ufData = FD21ToUI(_filterData.scopes, _filterData.section, _filterData.enabled, datasetsInfo, _filterData.version);
|
|
20
20
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { objectCopy } from "../../general/object/objectCopy";
|
|
2
2
|
import { isEmpty } from "../../general/mix/isEmpty";
|
|
3
3
|
/**
|
|
4
4
|
* Generates a Filter Data Structure structure from UI Filter Data structure.
|
|
@@ -11,7 +11,7 @@ export function UIToFD(uFilterData) {
|
|
|
11
11
|
isEmpty(uFilterData.scopes) ||
|
|
12
12
|
!Array.isArray(uFilterData.scopes))
|
|
13
13
|
return sData;
|
|
14
|
-
const _uFilterData =
|
|
14
|
+
const _uFilterData = objectCopy(uFilterData);
|
|
15
15
|
if (_uFilterData.version === "2.1") {
|
|
16
16
|
sData = UI21ToFD(_uFilterData, _uFilterData.version);
|
|
17
17
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { adaptDateGroupingProperty } from "./adaptDateGroupingProperty";
|
|
2
2
|
import { adaptFilterValues } from "./adaptFilterValues";
|
|
3
3
|
import { isEmpty } from "../../general/mix/isEmpty";
|
|
4
|
-
import {
|
|
4
|
+
import { objectCopy } from "../../general/object/objectCopy";
|
|
5
5
|
/**
|
|
6
6
|
* Generates a Flattened UI filter structure from UI Filter Data structure.
|
|
7
7
|
* @param filterData The UI filter data object.
|
|
@@ -14,7 +14,7 @@ export function UIToFlatUI(filterData, datasetsInfo = []) {
|
|
|
14
14
|
isEmpty(filterData.scopes) ||
|
|
15
15
|
filterData.scopes.length === 0)
|
|
16
16
|
return uFilters;
|
|
17
|
-
const _filterData =
|
|
17
|
+
const _filterData = objectCopy(filterData);
|
|
18
18
|
if (_filterData.version === "2.1") {
|
|
19
19
|
uFilters = UI21ToFlatUI(_filterData.scopes, datasetsInfo);
|
|
20
20
|
}
|
|
@@ -4,7 +4,7 @@ import { adaptFilterValues } from "./adaptFilterValues";
|
|
|
4
4
|
import { flatUIToOldLogic } from "./flatUIToOldLogic";
|
|
5
5
|
import { UIToFlatUI } from "./UIToFlatUI";
|
|
6
6
|
import { isEmpty } from "../../general/mix/isEmpty";
|
|
7
|
-
import {
|
|
7
|
+
import { objectCopy } from "../../general/object/objectCopy";
|
|
8
8
|
import { getBackendGroupValue } from "../helpers/backend/getBackendGroupValue";
|
|
9
9
|
import { getBackendProperty } from "../helpers/backend/getBackendProperty";
|
|
10
10
|
import { getBackendValidator } from "../helpers/backend/getBackendValidator";
|
|
@@ -14,7 +14,7 @@ export function UIToOldLogic(uFilterData, flattedMethod = true) {
|
|
|
14
14
|
let oldFilterData;
|
|
15
15
|
if (isEmpty(uFilterData) || isEmpty(uFilterData.scopes))
|
|
16
16
|
return oldFilterData;
|
|
17
|
-
const _uFilterData =
|
|
17
|
+
const _uFilterData = objectCopy(uFilterData);
|
|
18
18
|
if (_uFilterData.version === "2.1") {
|
|
19
19
|
oldFilterData = flattedMethod
|
|
20
20
|
? flatUIToOldLogic(UIToFlatUI(_uFilterData), _uFilterData.section)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isEmpty } from "../../general/mix/isEmpty";
|
|
2
|
-
import {
|
|
2
|
+
import { objectCopy } from "../../general/object/objectCopy";
|
|
3
3
|
import { _get } from "../../general/object/get";
|
|
4
4
|
import { logicToUI } from "./logicToUI";
|
|
5
5
|
import { FDToUI } from "./FDToUI";
|
|
@@ -15,7 +15,7 @@ import { logicToFD } from "./logicToFD";
|
|
|
15
15
|
export function adaptFilterData(filterData, getUIFilterData = true, datasetsInfo = []) {
|
|
16
16
|
if (isEmpty(filterData))
|
|
17
17
|
return;
|
|
18
|
-
const _filterData =
|
|
18
|
+
const _filterData = objectCopy(filterData);
|
|
19
19
|
if (!isEmpty(_get(_filterData, "logic"))) {
|
|
20
20
|
return getUIFilterData
|
|
21
21
|
? logicToUI(_get(_filterData, "logic"), _get(_filterData, "section"), _get(_filterData, "enabled"))
|
|
@@ -3,7 +3,7 @@ import { isEmpty } from "../../general/mix/isEmpty";
|
|
|
3
3
|
import { adaptFilterValues } from "./adaptFilterValues";
|
|
4
4
|
import { FILTER_SECTION } from "../constants/common/FILTER_SECTION";
|
|
5
5
|
import { FILTER_STRUCTURE_VERSION } from "../constants/common/FILTER_STRUCTURE_VERSION";
|
|
6
|
-
import {
|
|
6
|
+
import { objectCopy } from "../../general/object/objectCopy";
|
|
7
7
|
/**
|
|
8
8
|
* Generates a filter data structure from the flatttened UI filters.
|
|
9
9
|
* @param uFilters Array of flattened filters from UI
|
|
@@ -81,7 +81,7 @@ function buildDataset(uFilter) {
|
|
|
81
81
|
* @returns an filter structure
|
|
82
82
|
*/
|
|
83
83
|
function buildFilter(uFilter) {
|
|
84
|
-
const _uFilter =
|
|
84
|
+
const _uFilter = objectCopy(uFilter);
|
|
85
85
|
const info = !isEmpty(_uFilter.extras.info)
|
|
86
86
|
? { icon: _uFilter.extras.info.icon, label: _uFilter.extras.info.label }
|
|
87
87
|
: undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FILTER_SECTION } from "../constants/common/FILTER_SECTION";
|
|
2
2
|
import { isEmpty } from "../../general/mix/isEmpty";
|
|
3
|
-
import {
|
|
3
|
+
import { objectCopy } from "../../general/object/objectCopy";
|
|
4
4
|
import { getUIValues } from "../helpers/ui/getUIValues";
|
|
5
5
|
import { FILTER_OPERATOR } from "../constants/common/FILTER_OPERATOR";
|
|
6
6
|
import { _get } from "../../general/object/get";
|
|
@@ -24,7 +24,7 @@ export function flatUIToOldLogic(uFilters, section = FILTER_SECTION.ANYWHERE) {
|
|
|
24
24
|
let oldFilterData;
|
|
25
25
|
if (isEmpty(uFilters))
|
|
26
26
|
return oldFilterData;
|
|
27
|
-
const uFilterss =
|
|
27
|
+
const uFilterss = objectCopy(uFilters);
|
|
28
28
|
const filterDetails = flatUIToOldFilterDetail(uFilterss);
|
|
29
29
|
return {
|
|
30
30
|
collapsed: false,
|
|
@@ -4,7 +4,7 @@ import { FILTER_SECTION } from "../constants/common/FILTER_SECTION";
|
|
|
4
4
|
import { FILTER_STRUCTURE_VERSION } from "../constants/common/FILTER_STRUCTURE_VERSION";
|
|
5
5
|
import { getLastIndexFromArray } from "../../general/array/getLastIndexFromArray";
|
|
6
6
|
import { isEmpty } from "../../general/mix/isEmpty";
|
|
7
|
-
import {
|
|
7
|
+
import { objectCopy } from "../../general/object/objectCopy";
|
|
8
8
|
/**
|
|
9
9
|
* Generates a UI filter data structure from the flatttened UI filters.
|
|
10
10
|
* @param uFilters Array of flattened filters from UI
|
|
@@ -91,7 +91,7 @@ function buildDataset(uFilter) {
|
|
|
91
91
|
* @returns an filter structure
|
|
92
92
|
*/
|
|
93
93
|
function buildFilter(uFilter) {
|
|
94
|
-
const _uFilter =
|
|
94
|
+
const _uFilter = objectCopy(uFilter);
|
|
95
95
|
const info = !isEmpty(_uFilter.extras.info)
|
|
96
96
|
? { icon: _uFilter.extras.info.icon, label: _uFilter.extras.info.label }
|
|
97
97
|
: undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare enum FILTER_SCOPE {
|
|
2
|
-
ADMIN = "ADMIN"
|
|
3
|
-
DATA = "DATA"
|
|
4
|
-
GLOBAL = "GLOBAL"
|
|
5
|
-
PAGE = "PAGE"
|
|
6
|
-
TAB = "TAB"
|
|
7
|
-
DEFAULT = "DEFAULT"
|
|
8
|
-
CHART = "CHART"
|
|
2
|
+
ADMIN = "ADMIN",// Admin filters (TBD)
|
|
3
|
+
DATA = "DATA",// User Management Filters a.k.a. Super Filters
|
|
4
|
+
GLOBAL = "GLOBAL",// Analyze Filters | Filters for all pages on PB/EU
|
|
5
|
+
PAGE = "PAGE",// PB/EU Filters for a single page
|
|
6
|
+
TAB = "TAB",// PB/EU Filters for a single tab
|
|
7
|
+
DEFAULT = "DEFAULT",// Filters created on Chart Builder
|
|
8
|
+
CHART = "CHART",// PB/EU Filters for panels inside a page/tab
|
|
9
9
|
ACTION = "ACTION"
|
|
10
10
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { COLUMN } from "../../columns/constants/COLUMN";
|
|
2
2
|
import { isEmpty } from "../../general/mix/isEmpty";
|
|
3
|
-
import {
|
|
3
|
+
import { objectCopy } from "../../general/object/objectCopy";
|
|
4
4
|
import { _get } from "../../general/object/get";
|
|
5
5
|
import { FILTER_OPERATOR } from "../constants/common/FILTER_OPERATOR";
|
|
6
6
|
/**
|
|
@@ -46,7 +46,7 @@ export function getAggFilters(logics = [], summaries = []) {
|
|
|
46
46
|
* @returns the aggregate filters in the IFilterFilters way or as logic structure.
|
|
47
47
|
*/
|
|
48
48
|
function getAggregateFilters(logics = []) {
|
|
49
|
-
const _logics =
|
|
49
|
+
const _logics = objectCopy(logics);
|
|
50
50
|
return _logics.reduce((newLogics, logic) => {
|
|
51
51
|
if (!logic)
|
|
52
52
|
return newLogics;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { objectCopy } from "../../../general/object/objectCopy";
|
|
2
2
|
import { FILTER_SCOPE } from "../../constants/common/FILTER_SCOPE";
|
|
3
3
|
/**
|
|
4
4
|
* Gets the filters from logic data by Scopes/Scope IDs.
|
|
@@ -7,7 +7,7 @@ import { FILTER_SCOPE } from "../../constants/common/FILTER_SCOPE";
|
|
|
7
7
|
* @returns a new Logic array
|
|
8
8
|
*/
|
|
9
9
|
export function getLogicByScopes(logics = [], scopes = []) {
|
|
10
|
-
const _logics =
|
|
10
|
+
const _logics = objectCopy(logics);
|
|
11
11
|
return scopes.reduce((newScopes, scope) => {
|
|
12
12
|
const filteredScopes = _logics.filter((logic) => scope.label === logic.scope &&
|
|
13
13
|
(scope.id === logic.scopeid ||
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isEmpty } from "../../../general/mix/isEmpty";
|
|
2
|
-
import {
|
|
2
|
+
import { objectCopy } from "../../../general/object/objectCopy";
|
|
3
3
|
/**
|
|
4
4
|
* Excludes Aggregate Filters in the Filter Data. Excluding filters when the column.aggregate is included.
|
|
5
5
|
* @param filterData The filter data object
|
|
@@ -8,7 +8,7 @@ import { cloneDeep } from "../../../general/object/cloneDeep";
|
|
|
8
8
|
export function excludeFiltersByAggregateColumn(filterData) {
|
|
9
9
|
if (isEmpty(filterData) || isEmpty(filterData.scopes))
|
|
10
10
|
return;
|
|
11
|
-
const _filterData =
|
|
11
|
+
const _filterData = objectCopy(filterData);
|
|
12
12
|
_filterData.scopes = _filterData.scopes.reduce((scopes, scope) => {
|
|
13
13
|
if (isEmpty(scope))
|
|
14
14
|
return scopes;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isEmpty } from "../../../general/mix/isEmpty";
|
|
2
|
-
import {
|
|
2
|
+
import { objectCopy } from "../../../general/object/objectCopy";
|
|
3
3
|
/**
|
|
4
4
|
* Excludes filters from the given Filters.
|
|
5
5
|
* The validation to filter the stored filter is depending on:
|
|
@@ -20,7 +20,7 @@ export function excludeFiltersByParams(filterData, params) {
|
|
|
20
20
|
return;
|
|
21
21
|
if (isEmpty(params))
|
|
22
22
|
return filterData;
|
|
23
|
-
const _filterData =
|
|
23
|
+
const _filterData = objectCopy(filterData);
|
|
24
24
|
_filterData.scopes = _filterData.scopes
|
|
25
25
|
.map((scope) => {
|
|
26
26
|
if (resolveScopeConditions(scope, params)) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isEmpty } from "../../../general/mix/isEmpty";
|
|
2
|
-
import {
|
|
2
|
+
import { objectCopy } from "../../../general/object/objectCopy";
|
|
3
3
|
/**
|
|
4
4
|
* Excludes and returns a filter data without filters by the given scopes
|
|
5
5
|
* @param filterData The Filter Data
|
|
@@ -9,7 +9,7 @@ import { cloneDeep } from "../../../general/object/cloneDeep";
|
|
|
9
9
|
export function excludeFiltersByScopes(filterData, scopes) {
|
|
10
10
|
if (isEmpty(filterData) || isEmpty(filterData.scopes))
|
|
11
11
|
return;
|
|
12
|
-
const _filterData =
|
|
12
|
+
const _filterData = objectCopy(filterData);
|
|
13
13
|
_filterData.scopes = _filterData.scopes.filter((scope) => !scopes.includes(scope.scope));
|
|
14
14
|
return _filterData.scopes.length > 0 ? _filterData : undefined;
|
|
15
15
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isEmpty } from "../../../general/mix/isEmpty";
|
|
2
|
-
import {
|
|
2
|
+
import { objectCopy } from "../../../general/object/objectCopy";
|
|
3
3
|
/**
|
|
4
4
|
* Gets Aggregate Filters in the Filter Data. Gets the filters when the column.aggregate is included.
|
|
5
5
|
* @param filterData The filter data object
|
|
@@ -8,7 +8,7 @@ import { cloneDeep } from "../../../general/object/cloneDeep";
|
|
|
8
8
|
export function getFiltersByAggregateColumn(filterData) {
|
|
9
9
|
if (isEmpty(filterData) || isEmpty(filterData.scopes))
|
|
10
10
|
return;
|
|
11
|
-
const _filterData =
|
|
11
|
+
const _filterData = objectCopy(filterData);
|
|
12
12
|
_filterData.scopes = _filterData.scopes.reduce((scopes, scope) => {
|
|
13
13
|
if (isEmpty(scope))
|
|
14
14
|
return scopes;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isEmpty } from "../../../general/mix/isEmpty";
|
|
2
|
-
import {
|
|
2
|
+
import { objectCopy } from "../../../general/object/objectCopy";
|
|
3
3
|
import { _hasProperty } from "../../../general/object/hasProperty";
|
|
4
4
|
import { getParamsToGetFilterSettings } from "./getParamsToGetFilterSettings";
|
|
5
5
|
import { resolveDatasetConditions } from "./resolveDatasetConditions";
|
|
@@ -25,7 +25,7 @@ export function getFiltersByParams(filterData, params, settings) {
|
|
|
25
25
|
return;
|
|
26
26
|
if (isEmpty(params))
|
|
27
27
|
return filterData;
|
|
28
|
-
const _filterData =
|
|
28
|
+
const _filterData = objectCopy(filterData);
|
|
29
29
|
const defaultSettings = getParamsToGetFilterSettings(settings);
|
|
30
30
|
_filterData.scopes = _filterData.scopes
|
|
31
31
|
.map((scope) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isEmpty } from "../../../general/mix/isEmpty";
|
|
2
|
-
import {
|
|
2
|
+
import { objectCopy } from "../../../general/object/objectCopy";
|
|
3
3
|
/**
|
|
4
4
|
* Filters and gets a Filter Data by the given scopes
|
|
5
5
|
* @param filterData The Filter Data
|
|
@@ -9,7 +9,7 @@ import { cloneDeep } from "../../../general/object/cloneDeep";
|
|
|
9
9
|
export function getFiltersByScopes(filterData, scopes) {
|
|
10
10
|
if (isEmpty(filterData) || isEmpty(filterData.scopes))
|
|
11
11
|
return;
|
|
12
|
-
const _filterData =
|
|
12
|
+
const _filterData = objectCopy(filterData);
|
|
13
13
|
_filterData.scopes = _filterData.scopes.filter((scope) => scopes.includes(scope.scope));
|
|
14
14
|
return _filterData.scopes.length > 0 ? _filterData : undefined;
|
|
15
15
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isEmpty } from "../../../general/mix/isEmpty";
|
|
2
|
-
import {
|
|
2
|
+
import { objectCopy } from "../../../general/object/objectCopy";
|
|
3
3
|
import { FILTER_SCOPE } from "../../constants/common/FILTER_SCOPE";
|
|
4
4
|
/**
|
|
5
5
|
* Gets filters from Filter Data by Scopes/Scope IDs.
|
|
@@ -10,7 +10,7 @@ import { FILTER_SCOPE } from "../../constants/common/FILTER_SCOPE";
|
|
|
10
10
|
export function getFiltersByScopesIds(filterData, scopes = []) {
|
|
11
11
|
if (isEmpty(filterData) || isEmpty(filterData.scopes))
|
|
12
12
|
return;
|
|
13
|
-
const _filterData =
|
|
13
|
+
const _filterData = objectCopy(filterData);
|
|
14
14
|
_filterData.scopes = scopes.reduce((newScopes, scope) => {
|
|
15
15
|
const filteredScopes = _filterData.scopes.filter((fScope) => scope.label === fScope.scope &&
|
|
16
16
|
(scope.id === fScope.scopeid ||
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getFiltersByScopesIds } from "./getFiltersByScopesIds";
|
|
2
2
|
import { getFiltersByParams } from "./getFiltersByParams";
|
|
3
3
|
import { isEmpty } from "../../../general/mix/isEmpty";
|
|
4
|
-
import {
|
|
4
|
+
import { objectCopy } from "../../../general/object/objectCopy";
|
|
5
5
|
/**
|
|
6
6
|
* Get a new Filter Data by filtering scopes/scope IDs and enabled flags
|
|
7
7
|
* @param filterData a Filter Data or UI Filter Data
|
|
@@ -11,7 +11,7 @@ import { cloneDeep } from "../../../general/object/cloneDeep";
|
|
|
11
11
|
export function getFiltersByVisibility(filterData, scopes) {
|
|
12
12
|
if (isEmpty(filterData) || isEmpty(filterData.scopes))
|
|
13
13
|
return;
|
|
14
|
-
let _filterData =
|
|
14
|
+
let _filterData = objectCopy(filterData);
|
|
15
15
|
_filterData = getFiltersByScopesIds(_filterData, scopes);
|
|
16
16
|
_filterData = getFiltersByParams(_filterData, { enableds: { datasets: true, scopes: true, values: true } }, { filterEmptyArrays: { filter: false } });
|
|
17
17
|
return _filterData;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isEmpty } from "../../../general/mix/isEmpty";
|
|
2
|
-
import {
|
|
2
|
+
import { objectCopy } from "../../../general/object/objectCopy";
|
|
3
3
|
import { mergeDeep } from "../../../general/object/mergeDeep";
|
|
4
4
|
import { FILTER_SCOPE } from "../../constants/common/FILTER_SCOPE";
|
|
5
5
|
import { FILTER_SETTINGS_DEFAULT } from "../../constants/settings/FILTER_SETTINGS_DEFAULT";
|
|
@@ -15,7 +15,7 @@ import { getScopesToDisplay } from "./getScopesToDisplay";
|
|
|
15
15
|
* @returns a new filter settings object
|
|
16
16
|
*/
|
|
17
17
|
export function getFilterSettings(filterSettings, allowedScopes = [], otherSettings) {
|
|
18
|
-
let settings = mergeDeep(FILTER_SETTINGS_DEFAULT,
|
|
18
|
+
let settings = mergeDeep(FILTER_SETTINGS_DEFAULT, objectCopy(filterSettings));
|
|
19
19
|
settings = mergeDeep(settings, otherSettings);
|
|
20
20
|
const scopesSettings = getScopesToDisplay(settings).filter((scope) => allowedScopes.includes(scope.id));
|
|
21
21
|
if (scopesSettings.length > 1) {
|
|
@@ -118,7 +118,7 @@ function getFilterSettingsByNoScopes(settings) {
|
|
|
118
118
|
},
|
|
119
119
|
},
|
|
120
120
|
colorized: false,
|
|
121
|
-
displayed:
|
|
121
|
+
displayed: true,
|
|
122
122
|
header: {
|
|
123
123
|
filterButtonDisplayed: false,
|
|
124
124
|
menu: {
|
|
@@ -212,7 +212,7 @@ function getFilterSettingsByOnlyDefaultScope(settings) {
|
|
|
212
212
|
readonly: true,
|
|
213
213
|
},
|
|
214
214
|
},
|
|
215
|
-
displayed:
|
|
215
|
+
displayed: true,
|
|
216
216
|
header: {
|
|
217
217
|
displayed: false,
|
|
218
218
|
filterButtonDisplayed: false,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { objectCopy } from "../../../general/object/objectCopy";
|
|
2
2
|
/**
|
|
3
3
|
* Excludes Aggregate Filters in the Flattened UI Filters array
|
|
4
4
|
* @param uFilters Collection of Flat UI Filters
|
|
5
5
|
* @returns a new Flat UI Filters that were excluded the aggregate filters
|
|
6
6
|
*/
|
|
7
7
|
export function excludeUIFiltersByAggregate(uFilters = []) {
|
|
8
|
-
const _uFilters =
|
|
8
|
+
const _uFilters = objectCopy(uFilters);
|
|
9
9
|
return _uFilters.filter((uFilter) => uFilter.column.aggregate == null);
|
|
10
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isEmpty } from "../../../general/mix/isEmpty";
|
|
2
|
-
import {
|
|
2
|
+
import { objectCopy } from "../../../general/object/objectCopy";
|
|
3
3
|
/**
|
|
4
4
|
* Excludes and returns a UI Flat Filters without filters by the given scopes
|
|
5
5
|
* @param uFilters The Flatten UI Filters
|
|
@@ -9,6 +9,6 @@ import { cloneDeep } from "../../../general/object/cloneDeep";
|
|
|
9
9
|
export function excludeUIFlatFiltersByScopes(uFilters = [], scopes = []) {
|
|
10
10
|
if (isEmpty(uFilters))
|
|
11
11
|
return [];
|
|
12
|
-
const _uFilters =
|
|
12
|
+
const _uFilters = objectCopy(uFilters);
|
|
13
13
|
return _uFilters.filter((uFilter) => !scopes.includes(uFilter.extras.scope));
|
|
14
14
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isEmpty } from "../../../general/mix/isEmpty";
|
|
2
|
-
import {
|
|
2
|
+
import { objectCopy } from "../../../general/object/objectCopy";
|
|
3
3
|
import { resolveUIFlatFilterByParams } from "./resolveUIFlatFilterByParams";
|
|
4
4
|
/**
|
|
5
5
|
* Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
|
|
@@ -16,7 +16,7 @@ import { resolveUIFlatFilterByParams } from "./resolveUIFlatFilterByParams";
|
|
|
16
16
|
export function getUIFlatFilterByParams(uFilters = [], params = {}, getIndex = false) {
|
|
17
17
|
if (isEmpty(params))
|
|
18
18
|
return;
|
|
19
|
-
const _uFilters =
|
|
19
|
+
const _uFilters = objectCopy(uFilters);
|
|
20
20
|
return getIndex
|
|
21
21
|
? _uFilters.findIndex((filter) => resolveUIFlatFilterByParams(filter, params))
|
|
22
22
|
: _uFilters.find((filter) => resolveUIFlatFilterByParams(filter, params));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isEmpty } from "../../../general/mix/isEmpty";
|
|
2
|
-
import {
|
|
2
|
+
import { objectCopy } from "../../../general/object/objectCopy";
|
|
3
3
|
import { resolveUIFlatFilterByParams } from "./resolveUIFlatFilterByParams";
|
|
4
4
|
/**
|
|
5
5
|
* Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
|
|
@@ -17,6 +17,6 @@ import { resolveUIFlatFilterByParams } from "./resolveUIFlatFilterByParams";
|
|
|
17
17
|
export function getUIFlatFiltersByParams(uFilters = [], params = {}) {
|
|
18
18
|
if (isEmpty(params))
|
|
19
19
|
return;
|
|
20
|
-
const _uFilters =
|
|
20
|
+
const _uFilters = objectCopy(uFilters);
|
|
21
21
|
return _uFilters.filter((filter) => resolveUIFlatFilterByParams(filter, params));
|
|
22
22
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isEmpty } from "../../../general/mix/isEmpty";
|
|
2
|
-
import {
|
|
2
|
+
import { objectCopy } from "../../../general/object/objectCopy";
|
|
3
3
|
/**
|
|
4
4
|
* Filters and gets a UI Flatten Filters by the given scopes
|
|
5
5
|
* @param uFilters The Flatten UI Filters
|
|
@@ -9,6 +9,6 @@ import { cloneDeep } from "../../../general/object/cloneDeep";
|
|
|
9
9
|
export function getUIFlatFiltersByScopes(uFilters = [], scopes = []) {
|
|
10
10
|
if (isEmpty(uFilters))
|
|
11
11
|
return [];
|
|
12
|
-
const _uFilters =
|
|
12
|
+
const _uFilters = objectCopy(uFilters);
|
|
13
13
|
return _uFilters.filter((uFilter) => scopes.includes(uFilter.extras.scope));
|
|
14
14
|
}
|
|
@@ -7,8 +7,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import UChartPaginationApi from "./UChartPaginationApi";
|
|
11
|
-
import UChartApi from "./UChartApi";
|
|
10
|
+
import { UChartPaginationApi } from "./UChartPaginationApi";
|
|
11
|
+
import { UChartApi } from "./UChartApi";
|
|
12
12
|
import { isRangeValidator } from "../helpers/common/isRangeValidator";
|
|
13
13
|
import { getFiltersByVisibility } from "../helpers/common/getFiltersByVisibility";
|
|
14
14
|
import { excludeFiltersByAggregateColumn } from "../helpers/common/excludeFiltersByAggregateColumn";
|
|
@@ -3,7 +3,7 @@ import { IFilterConfig } from "../interfaces/common/IFilterConfig";
|
|
|
3
3
|
import { IFUFlattenedFilter } from "../interfaces/ui/IFUFlattenedFilter";
|
|
4
4
|
import { IFBLogic } from "../interfaces/backend/IFBLogic";
|
|
5
5
|
import { IFUChartSettings } from "../interfaces/ui/IFUChartSettings";
|
|
6
|
-
export
|
|
6
|
+
export declare class UChartApi {
|
|
7
7
|
/**
|
|
8
8
|
* Gets a promise with a resulting data
|
|
9
9
|
* @param config the config
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isDateColumn } from "../../columns/helpers/isDateColumn";
|
|
2
2
|
import { isNumericalColumn } from "../../columns/helpers/isNumericalColumn";
|
|
3
3
|
import { isRangeValidator } from "../helpers/common/isRangeValidator";
|
|
4
|
-
import {
|
|
4
|
+
import { objectCopy } from "../../general/object/objectCopy";
|
|
5
5
|
import { isEmpty } from "../../general/mix/isEmpty";
|
|
6
6
|
import { COLUMN } from "../../columns/constants/COLUMN";
|
|
7
7
|
import { getAggFiltersBySummaryIndex } from "../helpers/backend/getAggFiltersBySummaryIndex";
|
|
@@ -11,7 +11,7 @@ import { FILTER_VALIDATOR } from "../constants/common/FILTER_VALIDATOR";
|
|
|
11
11
|
import { flatUIToOldLogic } from "../adapters/flatUIToOldLogic";
|
|
12
12
|
import ChartsApi from "../../services/api/Charts.api";
|
|
13
13
|
import { getAggFilters } from "../helpers/OLD_getAggFilters";
|
|
14
|
-
class UChartApi {
|
|
14
|
+
export class UChartApi {
|
|
15
15
|
constructor() {
|
|
16
16
|
/**
|
|
17
17
|
* Gets a promise with a resulting data
|
|
@@ -243,7 +243,7 @@ UChartApi._getSummariesBody = (uFilter) => {
|
|
|
243
243
|
* @returns the body structure
|
|
244
244
|
*/
|
|
245
245
|
UChartApi._refineBodies = (bodies, uFilter) => {
|
|
246
|
-
const _bodies =
|
|
246
|
+
const _bodies = objectCopy(bodies);
|
|
247
247
|
if (uFilter.property != null) {
|
|
248
248
|
_bodies.forEach((body) => {
|
|
249
249
|
if (isDateColumn(uFilter.column) ||
|
|
@@ -294,4 +294,3 @@ UChartApi.isResultEmpty = (resultObject, validateNesteddata = false) => {
|
|
|
294
294
|
}
|
|
295
295
|
return validation;
|
|
296
296
|
};
|
|
297
|
-
export default UChartApi;
|
|
@@ -4,7 +4,7 @@ import { IFUFlattenedFilter } from "../interfaces/ui/IFUFlattenedFilter";
|
|
|
4
4
|
import { IFBLogic } from "../interfaces/backend/IFBLogic";
|
|
5
5
|
import { IFUChartSettings } from "../interfaces/ui/IFUChartSettings";
|
|
6
6
|
import { IFUColumn } from "../interfaces/ui/IFUColumn";
|
|
7
|
-
export
|
|
7
|
+
export declare class UChartPaginationApi {
|
|
8
8
|
afterKey: any;
|
|
9
9
|
uFilter: IFUFlattenedFilter;
|
|
10
10
|
/**
|
|
@@ -9,10 +9,10 @@ import { getAggFiltersBySummaryIndex } from "../helpers/backend/getAggFiltersByS
|
|
|
9
9
|
import { COLUMN } from "../../columns/constants/COLUMN";
|
|
10
10
|
import { _get } from "../../general/object/get";
|
|
11
11
|
import { AGGREGATE } from "../../charts/constants/AGGREGATE";
|
|
12
|
-
import {
|
|
12
|
+
import { objectCopy } from "../../general/object/objectCopy";
|
|
13
13
|
import { FILTER_VALIDATOR } from "../constants/common/FILTER_VALIDATOR";
|
|
14
14
|
import { flatUIToOldLogic } from "../adapters/flatUIToOldLogic";
|
|
15
|
-
class UChartPaginationApi {
|
|
15
|
+
export class UChartPaginationApi {
|
|
16
16
|
constructor() {
|
|
17
17
|
/**
|
|
18
18
|
* Gets afterKey object
|
|
@@ -85,7 +85,7 @@ class UChartPaginationApi {
|
|
|
85
85
|
* @param uFilter
|
|
86
86
|
*/
|
|
87
87
|
this.setProps = (uFilter) => {
|
|
88
|
-
this.uFilter =
|
|
88
|
+
this.uFilter = objectCopy(uFilter);
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
@@ -253,7 +253,7 @@ UChartPaginationApi._getSummariesBody = (uFilter) => {
|
|
|
253
253
|
* @returns the body structure
|
|
254
254
|
*/
|
|
255
255
|
UChartPaginationApi._refineBodies = (bodies, uFilter) => {
|
|
256
|
-
const _bodies =
|
|
256
|
+
const _bodies = objectCopy(bodies);
|
|
257
257
|
if (uFilter.property != null) {
|
|
258
258
|
_bodies.forEach((body) => {
|
|
259
259
|
if (isDateColumn(uFilter.column) ||
|
|
@@ -326,4 +326,3 @@ UChartPaginationApi.isResultPaginationEmpty = (resultObject) => {
|
|
|
326
326
|
const result = _get(resultObject, "data");
|
|
327
327
|
return isEmpty(result);
|
|
328
328
|
};
|
|
329
|
-
export default UChartPaginationApi;
|