@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,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.excludeUIFiltersByAggregate = void 0;
|
|
4
|
-
const
|
|
4
|
+
const objectCopy_1 = require("../../../general/object/objectCopy");
|
|
5
5
|
/**
|
|
6
6
|
* Excludes Aggregate Filters in the Flattened UI Filters array
|
|
7
7
|
* @param uFilters Collection of Flat UI Filters
|
|
8
8
|
* @returns a new Flat UI Filters that were excluded the aggregate filters
|
|
9
9
|
*/
|
|
10
10
|
function excludeUIFiltersByAggregate(uFilters = []) {
|
|
11
|
-
const _uFilters = (0,
|
|
11
|
+
const _uFilters = (0, objectCopy_1.objectCopy)(uFilters);
|
|
12
12
|
return _uFilters.filter((uFilter) => uFilter.column.aggregate == null);
|
|
13
13
|
}
|
|
14
14
|
exports.excludeUIFiltersByAggregate = excludeUIFiltersByAggregate;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.excludeUIFlatFiltersByScopes = void 0;
|
|
4
4
|
const isEmpty_1 = require("../../../general/mix/isEmpty");
|
|
5
|
-
const
|
|
5
|
+
const objectCopy_1 = require("../../../general/object/objectCopy");
|
|
6
6
|
/**
|
|
7
7
|
* Excludes and returns a UI Flat Filters without filters by the given scopes
|
|
8
8
|
* @param uFilters The Flatten UI Filters
|
|
@@ -12,7 +12,7 @@ const cloneDeep_1 = require("../../../general/object/cloneDeep");
|
|
|
12
12
|
function excludeUIFlatFiltersByScopes(uFilters = [], scopes = []) {
|
|
13
13
|
if ((0, isEmpty_1.isEmpty)(uFilters))
|
|
14
14
|
return [];
|
|
15
|
-
const _uFilters = (0,
|
|
15
|
+
const _uFilters = (0, objectCopy_1.objectCopy)(uFilters);
|
|
16
16
|
return _uFilters.filter((uFilter) => !scopes.includes(uFilter.extras.scope));
|
|
17
17
|
}
|
|
18
18
|
exports.excludeUIFlatFiltersByScopes = excludeUIFlatFiltersByScopes;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getUIFlatFilterByParams = void 0;
|
|
4
4
|
const isEmpty_1 = require("../../../general/mix/isEmpty");
|
|
5
|
-
const
|
|
5
|
+
const objectCopy_1 = require("../../../general/object/objectCopy");
|
|
6
6
|
const resolveUIFlatFilterByParams_1 = require("./resolveUIFlatFilterByParams");
|
|
7
7
|
/**
|
|
8
8
|
* Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
|
|
@@ -19,7 +19,7 @@ const resolveUIFlatFilterByParams_1 = require("./resolveUIFlatFilterByParams");
|
|
|
19
19
|
function getUIFlatFilterByParams(uFilters = [], params = {}, getIndex = false) {
|
|
20
20
|
if ((0, isEmpty_1.isEmpty)(params))
|
|
21
21
|
return;
|
|
22
|
-
const _uFilters = (0,
|
|
22
|
+
const _uFilters = (0, objectCopy_1.objectCopy)(uFilters);
|
|
23
23
|
return getIndex
|
|
24
24
|
? _uFilters.findIndex((filter) => (0, resolveUIFlatFilterByParams_1.resolveUIFlatFilterByParams)(filter, params))
|
|
25
25
|
: _uFilters.find((filter) => (0, resolveUIFlatFilterByParams_1.resolveUIFlatFilterByParams)(filter, params));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getUIFlatFiltersByParams = void 0;
|
|
4
4
|
const isEmpty_1 = require("../../../general/mix/isEmpty");
|
|
5
|
-
const
|
|
5
|
+
const objectCopy_1 = require("../../../general/object/objectCopy");
|
|
6
6
|
const resolveUIFlatFilterByParams_1 = require("./resolveUIFlatFilterByParams");
|
|
7
7
|
/**
|
|
8
8
|
* Gets a filter from the given Flattened UI Filters by given params. Return a index of the array or an object
|
|
@@ -20,7 +20,7 @@ const resolveUIFlatFilterByParams_1 = require("./resolveUIFlatFilterByParams");
|
|
|
20
20
|
function getUIFlatFiltersByParams(uFilters = [], params = {}) {
|
|
21
21
|
if ((0, isEmpty_1.isEmpty)(params))
|
|
22
22
|
return;
|
|
23
|
-
const _uFilters = (0,
|
|
23
|
+
const _uFilters = (0, objectCopy_1.objectCopy)(uFilters);
|
|
24
24
|
return _uFilters.filter((filter) => (0, resolveUIFlatFilterByParams_1.resolveUIFlatFilterByParams)(filter, params));
|
|
25
25
|
}
|
|
26
26
|
exports.getUIFlatFiltersByParams = getUIFlatFiltersByParams;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getUIFlatFiltersByScopes = void 0;
|
|
4
4
|
const isEmpty_1 = require("../../../general/mix/isEmpty");
|
|
5
|
-
const
|
|
5
|
+
const objectCopy_1 = require("../../../general/object/objectCopy");
|
|
6
6
|
/**
|
|
7
7
|
* Filters and gets a UI Flatten Filters by the given scopes
|
|
8
8
|
* @param uFilters The Flatten UI Filters
|
|
@@ -12,7 +12,7 @@ const cloneDeep_1 = require("../../../general/object/cloneDeep");
|
|
|
12
12
|
function getUIFlatFiltersByScopes(uFilters = [], scopes = []) {
|
|
13
13
|
if ((0, isEmpty_1.isEmpty)(uFilters))
|
|
14
14
|
return [];
|
|
15
|
-
const _uFilters = (0,
|
|
15
|
+
const _uFilters = (0, objectCopy_1.objectCopy)(uFilters);
|
|
16
16
|
return _uFilters.filter((uFilter) => scopes.includes(uFilter.extras.scope));
|
|
17
17
|
}
|
|
18
18
|
exports.getUIFlatFiltersByScopes = getUIFlatFiltersByScopes;
|
|
@@ -8,13 +8,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
12
|
exports.FiltersApi = void 0;
|
|
16
|
-
const UChartPaginationApi_1 =
|
|
17
|
-
const UChartApi_1 =
|
|
13
|
+
const UChartPaginationApi_1 = require("./UChartPaginationApi");
|
|
14
|
+
const UChartApi_1 = require("./UChartApi");
|
|
18
15
|
const isRangeValidator_1 = require("../helpers/common/isRangeValidator");
|
|
19
16
|
const getFiltersByVisibility_1 = require("../helpers/common/getFiltersByVisibility");
|
|
20
17
|
const excludeFiltersByAggregateColumn_1 = require("../helpers/common/excludeFiltersByAggregateColumn");
|
|
@@ -36,8 +33,8 @@ const getFiltersByParams_1 = require("../helpers/common/getFiltersByParams");
|
|
|
36
33
|
class FiltersApi {
|
|
37
34
|
constructor(cfg) {
|
|
38
35
|
this.setConfig(cfg);
|
|
39
|
-
this.chartPaginationApi = new UChartPaginationApi_1.
|
|
40
|
-
this.chartApi = new UChartApi_1.
|
|
36
|
+
this.chartPaginationApi = new UChartPaginationApi_1.UChartPaginationApi();
|
|
37
|
+
this.chartApi = new UChartApi_1.UChartApi();
|
|
41
38
|
}
|
|
42
39
|
/**
|
|
43
40
|
* Get the model by Qrvey ID
|
|
@@ -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
|
|
@@ -3,10 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.UChartApi = void 0;
|
|
6
7
|
const isDateColumn_1 = require("../../columns/helpers/isDateColumn");
|
|
7
8
|
const isNumericalColumn_1 = require("../../columns/helpers/isNumericalColumn");
|
|
8
9
|
const isRangeValidator_1 = require("../helpers/common/isRangeValidator");
|
|
9
|
-
const
|
|
10
|
+
const objectCopy_1 = require("../../general/object/objectCopy");
|
|
10
11
|
const isEmpty_1 = require("../../general/mix/isEmpty");
|
|
11
12
|
const COLUMN_1 = require("../../columns/constants/COLUMN");
|
|
12
13
|
const getAggFiltersBySummaryIndex_1 = require("../helpers/backend/getAggFiltersBySummaryIndex");
|
|
@@ -137,6 +138,7 @@ class UChartApi {
|
|
|
137
138
|
}, []);
|
|
138
139
|
}
|
|
139
140
|
}
|
|
141
|
+
exports.UChartApi = UChartApi;
|
|
140
142
|
/**
|
|
141
143
|
* Gets request body structure
|
|
142
144
|
* @param {IFUFlattenedFilter} uFilter The filter object
|
|
@@ -248,7 +250,7 @@ UChartApi._getSummariesBody = (uFilter) => {
|
|
|
248
250
|
* @returns the body structure
|
|
249
251
|
*/
|
|
250
252
|
UChartApi._refineBodies = (bodies, uFilter) => {
|
|
251
|
-
const _bodies = (0,
|
|
253
|
+
const _bodies = (0, objectCopy_1.objectCopy)(bodies);
|
|
252
254
|
if (uFilter.property != null) {
|
|
253
255
|
_bodies.forEach((body) => {
|
|
254
256
|
if ((0, isDateColumn_1.isDateColumn)(uFilter.column) ||
|
|
@@ -299,4 +301,3 @@ UChartApi.isResultEmpty = (resultObject, validateNesteddata = false) => {
|
|
|
299
301
|
}
|
|
300
302
|
return validation;
|
|
301
303
|
};
|
|
302
|
-
exports.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
|
/**
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.UChartPaginationApi = void 0;
|
|
6
7
|
const isNumericalColumn_1 = require("../../columns/helpers/isNumericalColumn");
|
|
7
8
|
const isDateColumn_1 = require("../../columns/helpers/isDateColumn");
|
|
8
9
|
const OLD_getAggFilters_1 = require("../helpers/OLD_getAggFilters");
|
|
@@ -14,7 +15,7 @@ const getAggFiltersBySummaryIndex_1 = require("../helpers/backend/getAggFiltersB
|
|
|
14
15
|
const COLUMN_1 = require("../../columns/constants/COLUMN");
|
|
15
16
|
const get_1 = require("../../general/object/get");
|
|
16
17
|
const AGGREGATE_1 = require("../../charts/constants/AGGREGATE");
|
|
17
|
-
const
|
|
18
|
+
const objectCopy_1 = require("../../general/object/objectCopy");
|
|
18
19
|
const FILTER_VALIDATOR_1 = require("../constants/common/FILTER_VALIDATOR");
|
|
19
20
|
const flatUIToOldLogic_1 = require("../adapters/flatUIToOldLogic");
|
|
20
21
|
class UChartPaginationApi {
|
|
@@ -90,7 +91,7 @@ class UChartPaginationApi {
|
|
|
90
91
|
* @param uFilter
|
|
91
92
|
*/
|
|
92
93
|
this.setProps = (uFilter) => {
|
|
93
|
-
this.uFilter = (0,
|
|
94
|
+
this.uFilter = (0, objectCopy_1.objectCopy)(uFilter);
|
|
94
95
|
};
|
|
95
96
|
}
|
|
96
97
|
/**
|
|
@@ -146,6 +147,7 @@ class UChartPaginationApi {
|
|
|
146
147
|
}, []);
|
|
147
148
|
}
|
|
148
149
|
}
|
|
150
|
+
exports.UChartPaginationApi = UChartPaginationApi;
|
|
149
151
|
/**
|
|
150
152
|
* Gets request body structure
|
|
151
153
|
* @param {IFUFlattenedFilter} uFilter The filter object
|
|
@@ -258,7 +260,7 @@ UChartPaginationApi._getSummariesBody = (uFilter) => {
|
|
|
258
260
|
* @returns the body structure
|
|
259
261
|
*/
|
|
260
262
|
UChartPaginationApi._refineBodies = (bodies, uFilter) => {
|
|
261
|
-
const _bodies = (0,
|
|
263
|
+
const _bodies = (0, objectCopy_1.objectCopy)(bodies);
|
|
262
264
|
if (uFilter.property != null) {
|
|
263
265
|
_bodies.forEach((body) => {
|
|
264
266
|
if ((0, isDateColumn_1.isDateColumn)(uFilter.column) ||
|
|
@@ -331,4 +333,3 @@ UChartPaginationApi.isResultPaginationEmpty = (resultObject) => {
|
|
|
331
333
|
const result = (0, get_1._get)(resultObject, "data");
|
|
332
334
|
return (0, isEmpty_1.isEmpty)(result);
|
|
333
335
|
};
|
|
334
|
-
exports.default = UChartPaginationApi;
|
|
@@ -22,7 +22,7 @@ const FORMULA_1 = require("../formulas/constants/FORMULA");
|
|
|
22
22
|
const localization_1 = require("./localization");
|
|
23
23
|
const isObject_1 = require("../general/object/isObject");
|
|
24
24
|
const DURATION_PARTS_LIST_1 = require("../column_format/constants/DURATION_PARTS_LIST");
|
|
25
|
-
const
|
|
25
|
+
const objectCopy_1 = require("../general/object/objectCopy");
|
|
26
26
|
dayjs_1.default.extend(updateLocale_1.default);
|
|
27
27
|
dayjs_1.default.updateLocale("en", {
|
|
28
28
|
yearStart: 4,
|
|
@@ -41,7 +41,7 @@ function isValidDateString(dateString = "") {
|
|
|
41
41
|
/^\d{4}-\d{2}-\d{2}/.test(dateString)); // YYYY-MM-DD
|
|
42
42
|
}
|
|
43
43
|
function formatDate(dateString, format, offset) {
|
|
44
|
-
let _format = (0,
|
|
44
|
+
let _format = (0, objectCopy_1.objectCopy)(format);
|
|
45
45
|
if ((0, isObject_1.isObject)(format))
|
|
46
46
|
_format = _format.format || "";
|
|
47
47
|
if ((0, isEmpty_1.isEmpty)(dateString) || !isNaN(dateString) || _format === "Default")
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.filterNestedTree = void 0;
|
|
4
4
|
const isEmpty_1 = require("../mix/isEmpty");
|
|
5
|
-
const
|
|
5
|
+
const objectCopy_1 = require("../object/objectCopy");
|
|
6
6
|
/**
|
|
7
7
|
* Filters a nested tree array by a custom condition on the last child node
|
|
8
8
|
* - If the given arguments are not valid, the function returns the first argument.
|
|
@@ -16,7 +16,7 @@ const cloneDeep_1 = require("../object/cloneDeep");
|
|
|
16
16
|
function filterNestedTree(arr = [], childArrKey = "", condition = undefined) {
|
|
17
17
|
if (!isValid(arr, childArrKey, condition))
|
|
18
18
|
return arr;
|
|
19
|
-
return (0,
|
|
19
|
+
return (0, objectCopy_1.objectCopy)(arr).filter((obj) => {
|
|
20
20
|
const hasChildArr = Array.isArray(obj[childArrKey]) && obj[childArrKey].length > 0;
|
|
21
21
|
if (hasChildArr)
|
|
22
22
|
obj[childArrKey] = filterNestedTree(obj[childArrKey], childArrKey, condition);
|
|
@@ -7,23 +7,24 @@ exports.objectCopy = void 0;
|
|
|
7
7
|
* @param cache
|
|
8
8
|
* @returns A new reference of the given argument
|
|
9
9
|
*/
|
|
10
|
-
function objectCopy(entity, cache
|
|
10
|
+
function objectCopy(entity, cache) {
|
|
11
11
|
if (!isClonable(entity))
|
|
12
12
|
return entity;
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
const newCache = cache ? cache : new WeakMap();
|
|
14
|
+
if (newCache.has(entity))
|
|
15
|
+
return newCache.get(entity);
|
|
15
16
|
const c = new entity.constructor();
|
|
16
17
|
if (c.name === "Date")
|
|
17
18
|
return new Date(entity);
|
|
18
19
|
if (entity instanceof Map) {
|
|
19
|
-
entity.forEach((value, key) => c.set(objectCopy(key), objectCopy(value)));
|
|
20
|
+
entity.forEach((value, key) => c.set(objectCopy(key, newCache), objectCopy(value, newCache)));
|
|
20
21
|
}
|
|
21
22
|
if (entity instanceof Set) {
|
|
22
|
-
entity.forEach((value) => c.add(objectCopy(value)));
|
|
23
|
+
entity.forEach((value) => c.add(objectCopy(value, newCache)));
|
|
23
24
|
}
|
|
24
|
-
|
|
25
|
+
newCache.set(entity, c);
|
|
25
26
|
return Object.assign(c, ...Object.keys(entity).map((prop) => ({
|
|
26
|
-
[prop]: objectCopy(entity[prop],
|
|
27
|
+
[prop]: objectCopy(entity[prop], newCache),
|
|
27
28
|
})));
|
|
28
29
|
}
|
|
29
30
|
exports.objectCopy = objectCopy;
|
|
@@ -12,12 +12,14 @@ import { II18nCrossTabs } from "./cross_tabs";
|
|
|
12
12
|
import { II18nChartBuilder } from ".";
|
|
13
13
|
import { II18nStyleThemes } from "./style_themes/II18nStyleThemes";
|
|
14
14
|
import { II18nTabularView } from "./tabular_view/II18nTabularView";
|
|
15
|
+
import { I18nExportingModal } from "./export";
|
|
15
16
|
export interface II18nResource {
|
|
16
17
|
bucket_builder?: II18nBucketBuilder;
|
|
17
18
|
chart_builder?: II18nChartBuilder;
|
|
18
19
|
common?: II18nCommon;
|
|
19
20
|
cross_tabs?: II18nCrossTabs;
|
|
20
21
|
dashboard?: II18nDashboard;
|
|
22
|
+
exporting_modal?: I18nExportingModal;
|
|
21
23
|
filter?: II18nFilter;
|
|
22
24
|
filter_builder?: II18nFilterBuilder;
|
|
23
25
|
filter_display?: II18nFilterDisplay;
|
|
@@ -72,6 +72,7 @@ import { II18nChartBuilderWordCloud } from "./II18nChartBuilderWordCloud";
|
|
|
72
72
|
import { II18nChartBuilderBoxWhisker } from "./II18nChartBuilderBoxWhisker";
|
|
73
73
|
import { II18nChartBuilderDurationParts } from "./II18nChartBuilderDurationParts";
|
|
74
74
|
import { II18nChartBuilderThresholdDynamic } from "./II18nChartBuilderThresholdDynamic";
|
|
75
|
+
import { II18nChartBuilderRadarType } from "./II18nChartBuilderRadarType";
|
|
75
76
|
export interface II18nChartBuilder {
|
|
76
77
|
action_panel: II18nChartBuilderActionPanel;
|
|
77
78
|
aggregated_formula: II18nChartBuilderAggregatedFormulas;
|
|
@@ -147,4 +148,5 @@ export interface II18nChartBuilder {
|
|
|
147
148
|
trends_line: II18nChartBuilderTrendsLine;
|
|
148
149
|
word_cloud: II18nChartBuilderWordCloud;
|
|
149
150
|
duration_parts: II18nChartBuilderDurationParts;
|
|
151
|
+
radar_type: II18nChartBuilderRadarType;
|
|
150
152
|
}
|
|
@@ -8,6 +8,7 @@ export interface II18nChartBuilderAxisStyle {
|
|
|
8
8
|
custom_axis_label: string;
|
|
9
9
|
custom_label: string;
|
|
10
10
|
custom_label_placeholder: string;
|
|
11
|
+
custom_rotation: string;
|
|
11
12
|
end_date: string;
|
|
12
13
|
format_title: string;
|
|
13
14
|
include_starting: string;
|
|
@@ -26,6 +27,14 @@ export interface II18nChartBuilderAxisStyle {
|
|
|
26
27
|
type_label: string;
|
|
27
28
|
values_axis_check: string;
|
|
28
29
|
values_check: string;
|
|
30
|
+
skip_labels_all_but_first_and_last: string;
|
|
31
|
+
skip_labels_all: string;
|
|
32
|
+
skip_labels_auto: string;
|
|
33
|
+
skip_labels_custom: string;
|
|
34
|
+
skip_labels_help: string;
|
|
35
|
+
skip_labels_none: string;
|
|
36
|
+
skip_labels_placeholder: string;
|
|
37
|
+
skip_labels: string;
|
|
29
38
|
values_rotation: string;
|
|
30
39
|
values_rotation_diagonal: string;
|
|
31
40
|
values_rotation_horizontal: string;
|
|
@@ -8,6 +8,7 @@ export interface II18nChartBuilderChartNames {
|
|
|
8
8
|
combo: string;
|
|
9
9
|
funnel: string;
|
|
10
10
|
pie: string;
|
|
11
|
+
summary: string;
|
|
11
12
|
minmax: string;
|
|
12
13
|
metric_indicator: string;
|
|
13
14
|
metric_dial: string;
|
|
@@ -22,4 +23,5 @@ export interface II18nChartBuilderChartNames {
|
|
|
22
23
|
boxwhisker: string;
|
|
23
24
|
wordcloud: string;
|
|
24
25
|
multiseries_combo: string;
|
|
26
|
+
radar: string;
|
|
25
27
|
}
|
|
@@ -26,6 +26,15 @@ export interface II18nChartBuilderStyleOptions {
|
|
|
26
26
|
line_opacity: string;
|
|
27
27
|
map_borders: string;
|
|
28
28
|
needle_color: string;
|
|
29
|
+
offset_bottom: string;
|
|
30
|
+
offset_icon_info: string;
|
|
31
|
+
offset_left: string;
|
|
32
|
+
offset_percentage: string;
|
|
33
|
+
offset_pixels: string;
|
|
34
|
+
offset_placeholder: string;
|
|
35
|
+
offset_reset: string;
|
|
36
|
+
offset_title: string;
|
|
37
|
+
offset_top: string;
|
|
29
38
|
opacity: string;
|
|
30
39
|
percentage_check: string;
|
|
31
40
|
reversed_colors: string;
|
|
@@ -7,6 +7,7 @@ import { II18nDashboardViews } from "./II18nDashboardViews";
|
|
|
7
7
|
export interface II18nDashboard {
|
|
8
8
|
add_chart: II18nDashboardAddChart;
|
|
9
9
|
export_csv: string;
|
|
10
|
+
export_in_progress: string;
|
|
10
11
|
toast: II18nDashboardToast;
|
|
11
12
|
tooltips: II18nDashboardTooltips;
|
|
12
13
|
views: II18nDashboardViews;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { II18nExportingModalApplyButtonLabel } from "./II18nExportingModalApplyButtonLabel";
|
|
2
|
+
import { II18nExportingModalErrorMessages } from "./II18nExportingModalErrorMessages";
|
|
3
|
+
import { II18nExportingModalRecurrence } from "./II18nExportingModalRecurrence";
|
|
4
|
+
import { II18nExportingModalTimeStamp } from "./II18nExportingModalTimeStamp";
|
|
5
|
+
export interface I18nExportingModal {
|
|
6
|
+
apply_button_label: II18nExportingModalApplyButtonLabel;
|
|
7
|
+
cancel_button_label: string;
|
|
8
|
+
error_messages: II18nExportingModalErrorMessages;
|
|
9
|
+
file_name_label: string;
|
|
10
|
+
recurrence: II18nExportingModalRecurrence;
|
|
11
|
+
time_stamp: II18nExportingModalTimeStamp;
|
|
12
|
+
time_zone_label: string;
|
|
13
|
+
title_label: string;
|
|
14
|
+
uniqueness_concatenate: string;
|
|
15
|
+
toast_messages: {
|
|
16
|
+
failed_scheduling: string;
|
|
17
|
+
successful_scheduling: string;
|
|
18
|
+
};
|
|
19
|
+
schedule: {
|
|
20
|
+
chart_download_ready: string;
|
|
21
|
+
page_download_ready: string;
|
|
22
|
+
schedule_button_label: {
|
|
23
|
+
schedule: string;
|
|
24
|
+
reset_to_default: string;
|
|
25
|
+
};
|
|
26
|
+
title: string;
|
|
27
|
+
start: {
|
|
28
|
+
date: string;
|
|
29
|
+
time: string;
|
|
30
|
+
};
|
|
31
|
+
repeat: {
|
|
32
|
+
every: string;
|
|
33
|
+
placeholder: string;
|
|
34
|
+
on: string;
|
|
35
|
+
intervals: {
|
|
36
|
+
hour: string;
|
|
37
|
+
day: string;
|
|
38
|
+
week: string;
|
|
39
|
+
month: string;
|
|
40
|
+
year: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
time_zone: {
|
|
44
|
+
label: string;
|
|
45
|
+
placeholder: string;
|
|
46
|
+
};
|
|
47
|
+
days_of_week_short: {
|
|
48
|
+
sunday: string;
|
|
49
|
+
monday: string;
|
|
50
|
+
tuesday: string;
|
|
51
|
+
wednesday: string;
|
|
52
|
+
thursday: string;
|
|
53
|
+
friday: string;
|
|
54
|
+
saturday: string;
|
|
55
|
+
};
|
|
56
|
+
end: {
|
|
57
|
+
ends: string;
|
|
58
|
+
radio_buttons: {
|
|
59
|
+
never: string;
|
|
60
|
+
on: string;
|
|
61
|
+
after: string;
|
|
62
|
+
};
|
|
63
|
+
select_date_placeholder: string;
|
|
64
|
+
recurrences: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./II18nExportingModalApplyButtonLabel"), exports);
|
|
18
|
+
__exportStar(require("./II18nExportingModalRecurrence"), exports);
|
|
19
|
+
__exportStar(require("./II18nExportingModalTimeStamp"), exports);
|
|
20
|
+
__exportStar(require("./II18nExportingModalErrorMessages"), exports);
|
|
21
|
+
__exportStar(require("./II18nExportingModal"), exports);
|
package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2FunctionHour.d.ts
CHANGED
|
@@ -2,4 +2,6 @@ import { II18nFormulaBuilderFunction } from "./II18nFormulaBuilderFunction";
|
|
|
2
2
|
export interface II18nFormulaBuilderV2FunctionHour extends II18nFormulaBuilderFunction {
|
|
3
3
|
param_date_value1_name: string;
|
|
4
4
|
param_date_value1_description: string;
|
|
5
|
+
param_time_format_name: string;
|
|
6
|
+
param_time_format_description: string;
|
|
5
7
|
}
|
package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderV2Functions.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ import { II18nFormulaBuilderV2FunctionLength } from "./II18nFormulaBuilderV2Func
|
|
|
18
18
|
import { II18nFormulaBuilderV2FunctionLog } from "./II18nFormulaBuilderV2FunctionLog";
|
|
19
19
|
import { II18nFormulaBuilderV2FunctionMax } from "./II18nFormulaBuilderV2FunctionMax";
|
|
20
20
|
import { II18nFormulaBuilderV2FunctionMid } from "./II18nFormulaBuilderV2FunctionMid";
|
|
21
|
+
import { II18nFormulaBuilderV2FunctionMillisecond } from "./II18nFormulaBuilderV2FunctionMillisecond";
|
|
21
22
|
import { II18nFormulaBuilderV2FunctionMinute } from "./II18nFormulaBuilderV2FunctionMinute";
|
|
22
23
|
import { II18nFormulaBuilderV2FunctionMonth } from "./II18nFormulaBuilderV2FunctionMonth";
|
|
23
24
|
import { II18nFormulaBuilderV2FunctionOdd } from "./II18nFormulaBuilderV2FunctionOdd";
|
|
@@ -26,6 +27,7 @@ import { II18nFormulaBuilderV2FunctionReplace } from "./II18nFormulaBuilderV2Fun
|
|
|
26
27
|
import { II18nFormulaBuilderV2FunctionRound } from "./II18nFormulaBuilderV2FunctionRound";
|
|
27
28
|
import { II18nFormulaBuilderV2FunctionSecond } from "./II18nFormulaBuilderV2FunctionSecond";
|
|
28
29
|
import { II18nFormulaBuilderV2FunctionSqrt } from "./II18nFormulaBuilderV2FunctionSqrt";
|
|
30
|
+
import { II18nFormulaBuilderV2FunctionText } from "./II18nFormulaBuilderV2FunctionText";
|
|
29
31
|
import { II18nFormulaBuilderV2FunctionTrim } from "./II18nFormulaBuilderV2FunctionTrim";
|
|
30
32
|
import { II18nFormulaBuilderV2FunctionUpper } from "./II18nFormulaBuilderV2FunctionUpper";
|
|
31
33
|
import { II18nFormulaBuilderV2FunctionYear } from "./II18nFormulaBuilderV2FunctionYear";
|
|
@@ -69,4 +71,6 @@ export interface II18nFormulaBuilderV2Functions {
|
|
|
69
71
|
round: II18nFormulaBuilderV2FunctionRound;
|
|
70
72
|
rounddown: II18nFormulaBuilderV2FunctionRound;
|
|
71
73
|
roundup: II18nFormulaBuilderV2FunctionRound;
|
|
74
|
+
millisecond: II18nFormulaBuilderV2FunctionMillisecond;
|
|
75
|
+
text: II18nFormulaBuilderV2FunctionText;
|
|
72
76
|
}
|