@qrvey/utils 1.12.0-2 → 1.12.0-21
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/dist/charts/adapters/endpointData.js +3 -4
- package/dist/charts/adapters/endpointDataGet.js +2 -2
- package/dist/cjs/charts/adapters/endpointData.js +2 -3
- package/dist/cjs/charts/adapters/endpointDataGet.js +1 -1
- package/dist/cjs/constants/Charts.Const.d.ts +4 -1
- package/dist/cjs/constants/Charts.Const.js +3 -0
- package/dist/cjs/constants/Tokens.Const.d.ts +1 -0
- package/dist/cjs/constants/Tokens.Const.js +4 -0
- package/dist/cjs/constants/index.d.ts +1 -0
- package/dist/cjs/constants/index.js +1 -0
- 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/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/interfaces/builder/IFilterBuilderDisplayEvent.d.ts +4 -0
- package/dist/cjs/filters/interfaces/builder/IFilterBuilderDisplayEvent.js +2 -0
- package/dist/cjs/filters/interfaces/builder/index.d.ts +1 -0
- package/dist/cjs/filters/interfaces/builder/index.js +1 -0
- package/dist/cjs/filters/services/UChartApi.js +2 -2
- package/dist/cjs/filters/services/UChartPaginationApi.js +3 -3
- 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/general/string/camelize.d.ts +7 -0
- package/dist/cjs/general/string/camelize.js +26 -0
- package/dist/cjs/general/string/index.d.ts +1 -0
- package/dist/cjs/general/string/index.js +1 -0
- package/dist/cjs/globalization/index.d.ts +1 -0
- package/dist/cjs/globalization/index.js +1 -0
- package/dist/cjs/globalization/interfaces/II18nResource.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilder.d.ts +4 -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/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/chart_builder/II18nChartBuilderThreshold.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderThresholdDynamic.d.ts +20 -0
- package/dist/cjs/globalization/interfaces/chart_builder/II18nChartBuilderThresholdDynamic.js +2 -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 +19 -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/II18nFormulaBuilderCreateModal.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderErrorMessage.d.ts +4 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionEven.d.ts +5 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionEven.js +2 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionHour.d.ts +2 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionLog.d.ts +7 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionLog.js +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/II18nFormulaBuilderV2FunctionOdd.d.ts +5 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionOdd.js +2 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionPower.d.ts +7 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionPower.js +2 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionRound.d.ts +7 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionRound.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 +18 -0
- package/dist/cjs/globalization/interfaces/formula_builder/index.d.ts +5 -0
- package/dist/cjs/globalization/interfaces/formula_builder/index.js +5 -0
- package/dist/cjs/globalization/interfaces/panel/II18nPanelErrors.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/style_themes/II18nStyleThemesTheme.d.ts +4 -1
- package/dist/cjs/globalization/labels/I18N_DEFAULT.d.ts +5 -0
- package/dist/cjs/globalization/labels/I18N_DEFAULT.js +38 -0
- package/dist/cjs/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.d.ts +5 -0
- package/dist/cjs/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.js +124 -0
- package/dist/cjs/globalization/labels/bucket_builder/index.d.ts +1 -0
- package/dist/cjs/globalization/labels/bucket_builder/index.js +17 -0
- package/dist/cjs/globalization/labels/calendar/I18N_CALENDAR.d.ts +5 -0
- package/dist/cjs/globalization/labels/calendar/I18N_CALENDAR.js +13 -0
- package/dist/cjs/globalization/labels/calendar/index.d.ts +1 -0
- package/dist/cjs/globalization/labels/calendar/index.js +17 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER.d.ts +5 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER.js +82 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_COMPARISION_OPTIONS.d.ts +5 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_COMPARISION_OPTIONS.js +39 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_FORMAT_OPTIONS.d.ts +7 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_FORMAT_OPTIONS.js +38 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.d.ts +7 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +268 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.d.ts +7 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.js +141 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.d.ts +7 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.js +39 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_OPERATORS.d.ts +7 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_OPERATORS.js +31 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.d.ts +7 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +316 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_THRESHOLD.d.ts +7 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_THRESHOLD.js +22 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_THRESHOLD_DYNAMIC.d.ts +4 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_THRESHOLD_DYNAMIC.js +25 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_TIME_PERIOD.d.ts +7 -0
- package/dist/cjs/globalization/labels/chart_builder/I18N_CHART_BUILDER_TIME_PERIOD.js +39 -0
- package/dist/cjs/globalization/labels/chart_builder/index.d.ts +10 -0
- package/dist/cjs/globalization/labels/chart_builder/index.js +26 -0
- package/dist/cjs/globalization/labels/common/I18N_AGGREGATE_LABEL.d.ts +5 -0
- package/dist/cjs/globalization/labels/common/I18N_AGGREGATE_LABEL.js +22 -0
- package/dist/cjs/globalization/labels/common/I18N_COLUMN_LABEL.d.ts +44 -0
- package/dist/cjs/globalization/labels/common/I18N_COLUMN_LABEL.js +48 -0
- package/dist/cjs/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.d.ts +5 -0
- package/dist/cjs/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.js +58 -0
- package/dist/cjs/globalization/labels/common/I18N_COMMON.d.ts +5 -0
- package/dist/cjs/globalization/labels/common/I18N_COMMON.js +46 -0
- package/dist/cjs/globalization/labels/common/I18N_DATE_GROUPING.d.ts +5 -0
- package/dist/cjs/globalization/labels/common/I18N_DATE_GROUPING.js +38 -0
- package/dist/cjs/globalization/labels/common/I18N_DAY_NAMES.d.ts +5 -0
- package/dist/cjs/globalization/labels/common/I18N_DAY_NAMES.js +32 -0
- package/dist/cjs/globalization/labels/common/I18N_RELATIVE_DATES.d.ts +5 -0
- package/dist/cjs/globalization/labels/common/I18N_RELATIVE_DATES.js +14 -0
- package/dist/cjs/globalization/labels/common/index.d.ts +7 -0
- package/dist/cjs/globalization/labels/common/index.js +23 -0
- package/dist/cjs/globalization/labels/cross_tabs/I18N_CROSS_TABS.d.ts +5 -0
- package/dist/cjs/globalization/labels/cross_tabs/I18N_CROSS_TABS.js +17 -0
- package/dist/cjs/globalization/labels/cross_tabs/index.d.ts +1 -0
- package/dist/cjs/globalization/labels/cross_tabs/index.js +17 -0
- package/dist/cjs/globalization/labels/dashboard/I18N_DASHBOARD.d.ts +5 -0
- package/dist/cjs/globalization/labels/dashboard/I18N_DASHBOARD.js +54 -0
- package/dist/cjs/globalization/labels/dashboard/index.d.ts +1 -0
- package/dist/cjs/globalization/labels/dashboard/index.js +17 -0
- package/dist/cjs/globalization/labels/export/I18N_EXPORT_MODAL.d.ts +5 -0
- package/dist/cjs/globalization/labels/export/I18N_EXPORT_MODAL.js +30 -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/filters/I18N_FILTER.d.ts +5 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER.js +41 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_BUILDER.d.ts +5 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_BUILDER.js +46 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_DISPLAY.d.ts +5 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_DISPLAY.js +12 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_OPERATOR.d.ts +5 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_OPERATOR.js +10 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_PANEL.d.ts +5 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_PANEL.js +57 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_SCOPE.d.ts +5 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_SCOPE.js +17 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_VALIDATOR.d.ts +5 -0
- package/dist/cjs/globalization/labels/filters/I18N_FILTER_VALIDATOR.js +30 -0
- package/dist/cjs/globalization/labels/filters/I18N_RANKING_CONTAINER.d.ts +5 -0
- package/dist/cjs/globalization/labels/filters/I18N_RANKING_CONTAINER.js +10 -0
- package/dist/cjs/globalization/labels/filters/I18N_RELATIVE_CONTAINER.d.ts +5 -0
- package/dist/cjs/globalization/labels/filters/I18N_RELATIVE_CONTAINER.js +20 -0
- package/dist/cjs/globalization/labels/filters/I18N_RELATIVE_CURSOR.d.ts +9 -0
- package/dist/cjs/globalization/labels/filters/I18N_RELATIVE_CURSOR.js +12 -0
- package/dist/cjs/globalization/labels/filters/I18N_SLIDEBAR.d.ts +5 -0
- package/dist/cjs/globalization/labels/filters/I18N_SLIDEBAR.js +13 -0
- package/dist/cjs/globalization/labels/filters/I18N_VALUE_CONTAINER.d.ts +5 -0
- package/dist/cjs/globalization/labels/filters/I18N_VALUE_CONTAINER.js +18 -0
- package/dist/cjs/globalization/labels/filters/index.d.ts +12 -0
- package/dist/cjs/globalization/labels/filters/index.js +28 -0
- package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.d.ts +5 -0
- package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +801 -0
- package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER_FUNCTION_AND.d.ts +5 -0
- package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER_FUNCTION_AND.js +16 -0
- package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER_FUNCTION_MAX.d.ts +5 -0
- package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER_FUNCTION_MAX.js +16 -0
- package/dist/cjs/globalization/labels/formula_builder/index.d.ts +3 -0
- package/dist/cjs/globalization/labels/formula_builder/index.js +19 -0
- package/dist/cjs/globalization/labels/index.d.ts +1 -0
- package/dist/cjs/globalization/labels/index.js +17 -0
- package/dist/cjs/globalization/labels/panel/I18N_PANEL.d.ts +5 -0
- package/dist/cjs/globalization/labels/panel/I18N_PANEL.js +129 -0
- package/dist/cjs/globalization/labels/panel/index.d.ts +1 -0
- package/dist/cjs/globalization/labels/panel/index.js +17 -0
- package/dist/cjs/globalization/labels/style_themes/I18N_STYLE_THEMES.d.ts +5 -0
- package/dist/cjs/globalization/labels/style_themes/I18N_STYLE_THEMES.js +68 -0
- package/dist/cjs/globalization/labels/style_themes/index.d.ts +1 -0
- package/dist/cjs/globalization/labels/style_themes/index.js +17 -0
- package/dist/cjs/globalization/labels/table_charts/I18N_TABLE_CHARTS.d.ts +5 -0
- package/dist/cjs/globalization/labels/table_charts/I18N_TABLE_CHARTS.js +42 -0
- package/dist/cjs/globalization/labels/table_charts/index.d.ts +1 -0
- package/dist/cjs/globalization/labels/table_charts/index.js +17 -0
- package/dist/cjs/globalization/labels/tabular_view/I18N_TABULAR_VIEW.d.ts +5 -0
- package/dist/cjs/globalization/labels/tabular_view/I18N_TABULAR_VIEW.js +30 -0
- package/dist/cjs/globalization/labels/tabular_view/index.d.ts +1 -0
- package/dist/cjs/globalization/labels/tabular_view/index.js +17 -0
- package/dist/cjs/globalization/service/initI18n.js +2 -1
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/interfaces/CustomTokens.interface.d.ts +18 -0
- package/dist/cjs/interfaces/CustomTokens.interface.js +2 -0
- package/dist/cjs/interfaces/index.d.ts +1 -0
- package/dist/cjs/interfaces/index.js +1 -0
- package/dist/cjs/services/api/Charts.api.js +3 -6
- package/dist/cjs/services/api/getAllQrveys.api.js +2 -5
- package/dist/cjs/services/api/getDatasetColumns.api.js +2 -5
- package/dist/cjs/services/api/getDatasetsByIds.api.js +2 -5
- package/dist/cjs/services/api/getModel.api.js +2 -5
- package/dist/cjs/services/helpers/Request.d.ts +3 -1
- package/dist/cjs/services/helpers/Request.js +31 -10
- package/dist/cjs/services/interfaces/IEndpointConfig.d.ts +5 -0
- package/dist/cjs/themes/constants/AUTOMATIC_CSS_VARIABLES_FOR_DARK.d.ts +27 -0
- package/dist/cjs/themes/constants/AUTOMATIC_CSS_VARIABLES_FOR_DARK.js +31 -0
- package/dist/cjs/themes/constants/COLOR_TYPE.d.ts +4 -0
- package/dist/cjs/themes/constants/COLOR_TYPE.js +8 -0
- package/dist/cjs/themes/constants/CSS_VARIABLES_FOR_DARK.d.ts +15 -0
- package/dist/cjs/themes/constants/CSS_VARIABLES_FOR_DARK.js +19 -0
- package/dist/cjs/themes/constants/HEXADECIMAL_REGULAR_EXPRESSION.d.ts +1 -0
- package/dist/cjs/themes/constants/HEXADECIMAL_REGULAR_EXPRESSION.js +4 -0
- package/dist/cjs/themes/constants/RGBA_REGULAR_EXPRESION.d.ts +1 -0
- package/dist/cjs/themes/constants/RGBA_REGULAR_EXPRESION.js +4 -0
- package/dist/cjs/themes/constants/index.d.ts +5 -0
- package/dist/cjs/themes/constants/index.js +21 -0
- package/dist/cjs/themes/helpers/index.d.ts +6 -0
- package/dist/cjs/themes/helpers/index.js +22 -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 +14 -0
- package/dist/cjs/themes/helpers/isRGBAColor.d.ts +6 -0
- package/dist/cjs/themes/helpers/isRGBAColor.js +14 -0
- package/dist/cjs/themes/helpers/lightOrDark.d.ts +8 -0
- package/dist/cjs/themes/helpers/lightOrDark.js +53 -0
- package/dist/cjs/themes/helpers/setAutomaticCSSVariablesForDark.d.ts +8 -0
- package/dist/cjs/themes/helpers/setAutomaticCSSVariablesForDark.js +45 -0
- package/dist/cjs/themes/index.d.ts +3 -0
- package/dist/cjs/themes/index.js +19 -0
- package/dist/cjs/themes/interfaces/IColorType.d.ts +2 -0
- package/dist/cjs/themes/interfaces/IColorType.js +2 -0
- package/dist/cjs/themes/interfaces/index.d.ts +1 -0
- package/dist/cjs/themes/interfaces/index.js +17 -0
- package/dist/cjs/tokens/getCleanCustomTokens.d.ts +9 -0
- package/dist/cjs/tokens/getCleanCustomTokens.js +22 -0
- package/dist/cjs/tokens/getCustomTokenBoxParse.d.ts +10 -0
- package/dist/cjs/tokens/getCustomTokenBoxParse.js +27 -0
- package/dist/cjs/tokens/getCustomtonTokens.d.ts +10 -0
- package/dist/cjs/tokens/getCustomtonTokens.js +45 -0
- package/dist/cjs/tokens/getCustomtonTokensWithKeys.d.ts +12 -0
- package/dist/cjs/tokens/getCustomtonTokensWithKeys.js +18 -0
- package/dist/cjs/tokens/index.d.ts +4 -0
- package/dist/cjs/tokens/index.js +4 -0
- package/dist/constants/Charts.Const.d.ts +4 -1
- package/dist/constants/Charts.Const.js +3 -0
- package/dist/constants/Tokens.Const.d.ts +1 -0
- package/dist/constants/Tokens.Const.js +1 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.js +1 -0
- 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/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/interfaces/builder/IFilterBuilderDisplayEvent.d.ts +4 -0
- package/dist/filters/interfaces/builder/IFilterBuilderDisplayEvent.js +1 -0
- package/dist/filters/interfaces/builder/index.d.ts +1 -0
- package/dist/filters/interfaces/builder/index.js +1 -0
- package/dist/filters/services/UChartApi.js +2 -2
- package/dist/filters/services/UChartPaginationApi.js +3 -3
- 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/general/string/camelize.d.ts +7 -0
- package/dist/general/string/camelize.js +22 -0
- package/dist/general/string/index.d.ts +1 -0
- package/dist/general/string/index.js +1 -0
- package/dist/globalization/index.d.ts +1 -0
- package/dist/globalization/index.js +1 -0
- package/dist/globalization/interfaces/II18nResource.d.ts +2 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilder.d.ts +4 -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/II18nChartBuilderRadarType.d.ts +6 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderRadarType.js +1 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderStyleOptions.d.ts +9 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderThreshold.d.ts +2 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderThresholdDynamic.d.ts +20 -0
- package/dist/globalization/interfaces/chart_builder/II18nChartBuilderThresholdDynamic.js +1 -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 +19 -0
- package/dist/globalization/interfaces/export/II18nExportingModal.js +1 -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/II18nFormulaBuilderCreateModal.d.ts +1 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderErrorMessage.d.ts +4 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionEven.d.ts +5 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionEven.js +1 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionHour.d.ts +2 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionLog.d.ts +7 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionLog.js +1 -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/II18nFormulaBuilderV2FunctionOdd.d.ts +5 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionOdd.js +1 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionPower.d.ts +7 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionPower.js +1 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionRound.d.ts +7 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionRound.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 +18 -0
- package/dist/globalization/interfaces/formula_builder/index.d.ts +5 -0
- package/dist/globalization/interfaces/formula_builder/index.js +5 -0
- package/dist/globalization/interfaces/panel/II18nPanelErrors.d.ts +1 -0
- package/dist/globalization/interfaces/style_themes/II18nStyleThemesTheme.d.ts +4 -1
- package/dist/globalization/labels/I18N_DEFAULT.d.ts +5 -0
- package/dist/globalization/labels/I18N_DEFAULT.js +35 -0
- package/dist/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.d.ts +5 -0
- package/dist/globalization/labels/bucket_builder/I18N_BUCKET_BUILDER.js +121 -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/calendar/I18N_CALENDAR.d.ts +5 -0
- package/dist/globalization/labels/calendar/I18N_CALENDAR.js +10 -0
- package/dist/globalization/labels/calendar/index.d.ts +1 -0
- package/dist/globalization/labels/calendar/index.js +1 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER.d.ts +5 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER.js +79 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_COMPARISION_OPTIONS.d.ts +5 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_COMPARISION_OPTIONS.js +36 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_FORMAT_OPTIONS.d.ts +7 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_FORMAT_OPTIONS.js +35 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.d.ts +7 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL.js +265 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.d.ts +7 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_GENERAL_OPTIONS.js +138 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.d.ts +7 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_LAYER_OPTIONS.js +36 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_OPERATORS.d.ts +7 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_OPERATORS.js +28 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.d.ts +7 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_STYLE_OPTIONS.js +313 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_THRESHOLD.d.ts +7 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_THRESHOLD.js +19 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_THRESHOLD_DYNAMIC.d.ts +4 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_THRESHOLD_DYNAMIC.js +22 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_TIME_PERIOD.d.ts +7 -0
- package/dist/globalization/labels/chart_builder/I18N_CHART_BUILDER_TIME_PERIOD.js +36 -0
- package/dist/globalization/labels/chart_builder/index.d.ts +10 -0
- package/dist/globalization/labels/chart_builder/index.js +10 -0
- package/dist/globalization/labels/common/I18N_AGGREGATE_LABEL.d.ts +5 -0
- package/dist/globalization/labels/common/I18N_AGGREGATE_LABEL.js +19 -0
- package/dist/globalization/labels/common/I18N_COLUMN_LABEL.d.ts +44 -0
- package/dist/globalization/labels/common/I18N_COLUMN_LABEL.js +45 -0
- package/dist/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.d.ts +5 -0
- package/dist/globalization/labels/common/I18N_COLUMN_PROPERTY_LABEL.js +55 -0
- package/dist/globalization/labels/common/I18N_COMMON.d.ts +5 -0
- package/dist/globalization/labels/common/I18N_COMMON.js +43 -0
- package/dist/globalization/labels/common/I18N_DATE_GROUPING.d.ts +5 -0
- package/dist/globalization/labels/common/I18N_DATE_GROUPING.js +35 -0
- package/dist/globalization/labels/common/I18N_DAY_NAMES.d.ts +5 -0
- package/dist/globalization/labels/common/I18N_DAY_NAMES.js +29 -0
- package/dist/globalization/labels/common/I18N_RELATIVE_DATES.d.ts +5 -0
- package/dist/globalization/labels/common/I18N_RELATIVE_DATES.js +11 -0
- package/dist/globalization/labels/common/index.d.ts +7 -0
- package/dist/globalization/labels/common/index.js +7 -0
- package/dist/globalization/labels/cross_tabs/I18N_CROSS_TABS.d.ts +5 -0
- package/dist/globalization/labels/cross_tabs/I18N_CROSS_TABS.js +14 -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/dashboard/I18N_DASHBOARD.d.ts +5 -0
- package/dist/globalization/labels/dashboard/I18N_DASHBOARD.js +51 -0
- package/dist/globalization/labels/dashboard/index.d.ts +1 -0
- package/dist/globalization/labels/dashboard/index.js +1 -0
- package/dist/globalization/labels/export/I18N_EXPORT_MODAL.d.ts +5 -0
- package/dist/globalization/labels/export/I18N_EXPORT_MODAL.js +27 -0
- package/dist/globalization/labels/export/index.d.ts +1 -0
- package/dist/globalization/labels/export/index.js +1 -0
- package/dist/globalization/labels/filters/I18N_FILTER.d.ts +5 -0
- package/dist/globalization/labels/filters/I18N_FILTER.js +38 -0
- package/dist/globalization/labels/filters/I18N_FILTER_BUILDER.d.ts +5 -0
- package/dist/globalization/labels/filters/I18N_FILTER_BUILDER.js +43 -0
- package/dist/globalization/labels/filters/I18N_FILTER_DISPLAY.d.ts +5 -0
- package/dist/globalization/labels/filters/I18N_FILTER_DISPLAY.js +9 -0
- package/dist/globalization/labels/filters/I18N_FILTER_OPERATOR.d.ts +5 -0
- package/dist/globalization/labels/filters/I18N_FILTER_OPERATOR.js +7 -0
- package/dist/globalization/labels/filters/I18N_FILTER_PANEL.d.ts +5 -0
- package/dist/globalization/labels/filters/I18N_FILTER_PANEL.js +54 -0
- package/dist/globalization/labels/filters/I18N_FILTER_SCOPE.d.ts +5 -0
- package/dist/globalization/labels/filters/I18N_FILTER_SCOPE.js +14 -0
- package/dist/globalization/labels/filters/I18N_FILTER_VALIDATOR.d.ts +5 -0
- package/dist/globalization/labels/filters/I18N_FILTER_VALIDATOR.js +27 -0
- package/dist/globalization/labels/filters/I18N_RANKING_CONTAINER.d.ts +5 -0
- package/dist/globalization/labels/filters/I18N_RANKING_CONTAINER.js +7 -0
- package/dist/globalization/labels/filters/I18N_RELATIVE_CONTAINER.d.ts +5 -0
- package/dist/globalization/labels/filters/I18N_RELATIVE_CONTAINER.js +17 -0
- package/dist/globalization/labels/filters/I18N_RELATIVE_CURSOR.d.ts +9 -0
- package/dist/globalization/labels/filters/I18N_RELATIVE_CURSOR.js +9 -0
- package/dist/globalization/labels/filters/I18N_SLIDEBAR.d.ts +5 -0
- package/dist/globalization/labels/filters/I18N_SLIDEBAR.js +10 -0
- package/dist/globalization/labels/filters/I18N_VALUE_CONTAINER.d.ts +5 -0
- package/dist/globalization/labels/filters/I18N_VALUE_CONTAINER.js +15 -0
- package/dist/globalization/labels/filters/index.d.ts +12 -0
- package/dist/globalization/labels/filters/index.js +12 -0
- package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.d.ts +5 -0
- package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +798 -0
- package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER_FUNCTION_AND.d.ts +5 -0
- package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER_FUNCTION_AND.js +13 -0
- package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER_FUNCTION_MAX.d.ts +5 -0
- package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER_FUNCTION_MAX.js +13 -0
- package/dist/globalization/labels/formula_builder/index.d.ts +3 -0
- package/dist/globalization/labels/formula_builder/index.js +3 -0
- package/dist/globalization/labels/index.d.ts +1 -0
- package/dist/globalization/labels/index.js +1 -0
- package/dist/globalization/labels/panel/I18N_PANEL.d.ts +5 -0
- package/dist/globalization/labels/panel/I18N_PANEL.js +126 -0
- package/dist/globalization/labels/panel/index.d.ts +1 -0
- package/dist/globalization/labels/panel/index.js +1 -0
- package/dist/globalization/labels/style_themes/I18N_STYLE_THEMES.d.ts +5 -0
- package/dist/globalization/labels/style_themes/I18N_STYLE_THEMES.js +65 -0
- package/dist/globalization/labels/style_themes/index.d.ts +1 -0
- package/dist/globalization/labels/style_themes/index.js +1 -0
- package/dist/globalization/labels/table_charts/I18N_TABLE_CHARTS.d.ts +5 -0
- package/dist/globalization/labels/table_charts/I18N_TABLE_CHARTS.js +39 -0
- package/dist/globalization/labels/table_charts/index.d.ts +1 -0
- package/dist/globalization/labels/table_charts/index.js +1 -0
- package/dist/globalization/labels/tabular_view/I18N_TABULAR_VIEW.d.ts +5 -0
- package/dist/globalization/labels/tabular_view/I18N_TABULAR_VIEW.js +27 -0
- package/dist/globalization/labels/tabular_view/index.d.ts +1 -0
- package/dist/globalization/labels/tabular_view/index.js +1 -0
- package/dist/globalization/service/initI18n.js +2 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/interfaces/CustomTokens.interface.d.ts +18 -0
- package/dist/interfaces/CustomTokens.interface.js +1 -0
- package/dist/interfaces/index.d.ts +1 -0
- package/dist/interfaces/index.js +1 -0
- package/dist/services/api/Charts.api.js +1 -1
- package/dist/services/api/getAllQrveys.api.js +1 -1
- package/dist/services/api/getDatasetColumns.api.js +1 -1
- package/dist/services/api/getDatasetsByIds.api.js +1 -1
- package/dist/services/api/getModel.api.js +1 -1
- package/dist/services/helpers/Request.d.ts +3 -1
- package/dist/services/helpers/Request.js +30 -11
- package/dist/services/interfaces/IEndpointConfig.d.ts +5 -0
- package/dist/themes/constants/AUTOMATIC_CSS_VARIABLES_FOR_DARK.d.ts +27 -0
- package/dist/themes/constants/AUTOMATIC_CSS_VARIABLES_FOR_DARK.js +28 -0
- package/dist/themes/constants/COLOR_TYPE.d.ts +4 -0
- package/dist/themes/constants/COLOR_TYPE.js +5 -0
- package/dist/themes/constants/CSS_VARIABLES_FOR_DARK.d.ts +15 -0
- package/dist/themes/constants/CSS_VARIABLES_FOR_DARK.js +16 -0
- package/dist/themes/constants/HEXADECIMAL_REGULAR_EXPRESSION.d.ts +1 -0
- package/dist/themes/constants/HEXADECIMAL_REGULAR_EXPRESSION.js +1 -0
- package/dist/themes/constants/RGBA_REGULAR_EXPRESION.d.ts +1 -0
- package/dist/themes/constants/RGBA_REGULAR_EXPRESION.js +1 -0
- package/dist/themes/constants/index.d.ts +5 -0
- package/dist/themes/constants/index.js +5 -0
- package/dist/themes/helpers/index.d.ts +6 -0
- package/dist/themes/helpers/index.js +6 -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 +10 -0
- package/dist/themes/helpers/isRGBAColor.d.ts +6 -0
- package/dist/themes/helpers/isRGBAColor.js +10 -0
- package/dist/themes/helpers/lightOrDark.d.ts +8 -0
- package/dist/themes/helpers/lightOrDark.js +49 -0
- package/dist/themes/helpers/setAutomaticCSSVariablesForDark.d.ts +8 -0
- package/dist/themes/helpers/setAutomaticCSSVariablesForDark.js +41 -0
- package/dist/themes/index.d.ts +3 -0
- package/dist/themes/index.js +3 -0
- package/dist/themes/interfaces/IColorType.d.ts +2 -0
- package/dist/themes/interfaces/IColorType.js +1 -0
- package/dist/themes/interfaces/index.d.ts +1 -0
- package/dist/themes/interfaces/index.js +1 -0
- package/dist/tokens/getCleanCustomTokens.d.ts +9 -0
- package/dist/tokens/getCleanCustomTokens.js +18 -0
- package/dist/tokens/getCustomTokenBoxParse.d.ts +10 -0
- package/dist/tokens/getCustomTokenBoxParse.js +23 -0
- package/dist/tokens/getCustomtonTokens.d.ts +10 -0
- package/dist/tokens/getCustomtonTokens.js +41 -0
- package/dist/tokens/getCustomtonTokensWithKeys.d.ts +12 -0
- package/dist/tokens/getCustomtonTokensWithKeys.js +14 -0
- package/dist/tokens/index.d.ts +4 -0
- package/dist/tokens/index.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ICustomTokensComplex, ICustomTokensSimple } from "../interfaces";
|
|
2
|
+
/**
|
|
3
|
+
* The function `getCustomtonTokens` takes a configuration object and returns a parsed version of the
|
|
4
|
+
* custom tokens, with keys and values appropriately formatted.
|
|
5
|
+
* @param {ICustomTokensSimple | ICustomTokensComplex} customtonTokensConfig - The
|
|
6
|
+
* `customtonTokensConfig` parameter is an object that can have two possible types:
|
|
7
|
+
* `ICustomTokensSimple` or `ICustomTokensComplex`.
|
|
8
|
+
* @returns an object of type `ICustomTokensComplex`.
|
|
9
|
+
*/
|
|
10
|
+
export declare function getCustomtonTokens(customtonTokensConfig: ICustomTokensSimple | ICustomTokensComplex): ICustomTokensComplex;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getCustomtonTokens = void 0;
|
|
4
|
+
const constants_1 = require("../constants");
|
|
5
|
+
const general_1 = require("../general");
|
|
6
|
+
const getCleanCustomTokens_1 = require("./getCleanCustomTokens");
|
|
7
|
+
const getCustomtonTokensWithKeys_1 = require("./getCustomtonTokensWithKeys");
|
|
8
|
+
/**
|
|
9
|
+
* The function `getCustomtonTokens` takes a configuration object and returns a parsed version of the
|
|
10
|
+
* custom tokens, with keys and values appropriately formatted.
|
|
11
|
+
* @param {ICustomTokensSimple | ICustomTokensComplex} customtonTokensConfig - The
|
|
12
|
+
* `customtonTokensConfig` parameter is an object that can have two possible types:
|
|
13
|
+
* `ICustomTokensSimple` or `ICustomTokensComplex`.
|
|
14
|
+
* @returns an object of type `ICustomTokensComplex`.
|
|
15
|
+
*/
|
|
16
|
+
function getCustomtonTokens(customtonTokensConfig) {
|
|
17
|
+
const customTokensparsed = {
|
|
18
|
+
[constants_1.CUSTOM_TOKEN_DEFAULT_KEY]: [],
|
|
19
|
+
};
|
|
20
|
+
for (const key in customtonTokensConfig) {
|
|
21
|
+
if (Object.prototype.hasOwnProperty.call(customtonTokensConfig, key)) {
|
|
22
|
+
if (typeof customtonTokensConfig[key] === "object") {
|
|
23
|
+
const tokensFromConfig = (0, getCustomtonTokensWithKeys_1.getCustomtonTokensWithKeys)(customtonTokensConfig[key]);
|
|
24
|
+
if (key === constants_1.CUSTOM_TOKEN_DEFAULT_KEY) {
|
|
25
|
+
customTokensparsed[key].push(...tokensFromConfig);
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
customTokensparsed[key] = tokensFromConfig;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
const tokensFromConfig = customtonTokensConfig[key];
|
|
33
|
+
customTokensparsed[constants_1.CUSTOM_TOKEN_DEFAULT_KEY].push({
|
|
34
|
+
label: key,
|
|
35
|
+
value: tokensFromConfig,
|
|
36
|
+
key: (0, general_1.camelize)(key),
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
if ((0, general_1.isEmpty)(customTokensparsed[constants_1.CUSTOM_TOKEN_DEFAULT_KEY]))
|
|
42
|
+
delete customTokensparsed[constants_1.CUSTOM_TOKEN_DEFAULT_KEY];
|
|
43
|
+
return (0, getCleanCustomTokens_1.getCleanCustomTokens)(customTokensparsed);
|
|
44
|
+
}
|
|
45
|
+
exports.getCustomtonTokens = getCustomtonTokens;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CustomTokens } from "../interfaces";
|
|
2
|
+
/**
|
|
3
|
+
* The function `getCustomtonTokensWithKeys` takes an array of `CustomTokens` objects and returns a new
|
|
4
|
+
* array with each object having a `key` property that is the camelized version of either the `key` or
|
|
5
|
+
* `label` property.
|
|
6
|
+
* @param {CustomTokens[]} customTokens - An array of objects representing custom tokens. Each object
|
|
7
|
+
* should have properties such as "key" and "label".
|
|
8
|
+
* @returns an array of `CustomTokens` objects. Each object in the array has an additional `key`
|
|
9
|
+
* property, which is generated by camelizing the `key` or `label` property of the original
|
|
10
|
+
* `CustomTokens` object.
|
|
11
|
+
*/
|
|
12
|
+
export declare function getCustomtonTokensWithKeys(customTokens: CustomTokens[]): CustomTokens[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getCustomtonTokensWithKeys = void 0;
|
|
4
|
+
const general_1 = require("../general");
|
|
5
|
+
/**
|
|
6
|
+
* The function `getCustomtonTokensWithKeys` takes an array of `CustomTokens` objects and returns a new
|
|
7
|
+
* array with each object having a `key` property that is the camelized version of either the `key` or
|
|
8
|
+
* `label` property.
|
|
9
|
+
* @param {CustomTokens[]} customTokens - An array of objects representing custom tokens. Each object
|
|
10
|
+
* should have properties such as "key" and "label".
|
|
11
|
+
* @returns an array of `CustomTokens` objects. Each object in the array has an additional `key`
|
|
12
|
+
* property, which is generated by camelizing the `key` or `label` property of the original
|
|
13
|
+
* `CustomTokens` object.
|
|
14
|
+
*/
|
|
15
|
+
function getCustomtonTokensWithKeys(customTokens) {
|
|
16
|
+
return customTokens.map((token) => (Object.assign(Object.assign({}, token), { label: token.label || token.key, key: (0, general_1.camelize)((token === null || token === void 0 ? void 0 : token.key) || token.label) })));
|
|
17
|
+
}
|
|
18
|
+
exports.getCustomtonTokensWithKeys = getCustomtonTokensWithKeys;
|
package/dist/cjs/tokens/index.js
CHANGED
|
@@ -15,3 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./isTokenLabel"), exports);
|
|
18
|
+
__exportStar(require("./getCustomtonTokensWithKeys"), exports);
|
|
19
|
+
__exportStar(require("./getCustomtonTokens"), exports);
|
|
20
|
+
__exportStar(require("./getCustomTokenBoxParse"), exports);
|
|
21
|
+
__exportStar(require("./getCleanCustomTokens"), exports);
|
|
@@ -26,7 +26,10 @@ export declare enum CHART_TYPE {
|
|
|
26
26
|
BULLET_METRIC = "BULLET",
|
|
27
27
|
SUMMARY_CHART = "SUMMARY_CHART",
|
|
28
28
|
MINMAX_CHART = "MINMAX_CHART",
|
|
29
|
-
COMBINED_CHART = "COMBINED_CHART"
|
|
29
|
+
COMBINED_CHART = "COMBINED_CHART",
|
|
30
|
+
RADAR_CHART = "RADAR_CHART",
|
|
31
|
+
TREEMAP_CHART = "TREEMAP_CHART",
|
|
32
|
+
AREA_CHART = "AREA_CHART"
|
|
30
33
|
}
|
|
31
34
|
export declare enum CHART_DIMENSION {
|
|
32
35
|
CATEGORIES = "categories",
|
|
@@ -28,6 +28,9 @@ export var CHART_TYPE;
|
|
|
28
28
|
CHART_TYPE["SUMMARY_CHART"] = "SUMMARY_CHART";
|
|
29
29
|
CHART_TYPE["MINMAX_CHART"] = "MINMAX_CHART";
|
|
30
30
|
CHART_TYPE["COMBINED_CHART"] = "COMBINED_CHART";
|
|
31
|
+
CHART_TYPE["RADAR_CHART"] = "RADAR_CHART";
|
|
32
|
+
CHART_TYPE["TREEMAP_CHART"] = "TREEMAP_CHART";
|
|
33
|
+
CHART_TYPE["AREA_CHART"] = "AREA_CHART";
|
|
31
34
|
})(CHART_TYPE || (CHART_TYPE = {}));
|
|
32
35
|
export var CHART_DIMENSION;
|
|
33
36
|
(function (CHART_DIMENSION) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CUSTOM_TOKEN_DEFAULT_KEY = "Custom Tokens";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const CUSTOM_TOKEN_DEFAULT_KEY = "Custom Tokens";
|
package/dist/constants/index.js
CHANGED
|
@@ -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,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
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|