@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
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Collection of channel values for a related name color
|
|
3
|
+
* The list is based on https://drafts.csswg.org/css-color/#named-colors
|
|
4
|
+
*/
|
|
5
|
+
export declare const COLOR_NAME: {
|
|
6
|
+
aliceblue: number[];
|
|
7
|
+
antiquewhite: number[];
|
|
8
|
+
aqua: number[];
|
|
9
|
+
aquamarine: number[];
|
|
10
|
+
azure: number[];
|
|
11
|
+
beige: number[];
|
|
12
|
+
bisque: number[];
|
|
13
|
+
black: number[];
|
|
14
|
+
blanchedalmond: number[];
|
|
15
|
+
blue: number[];
|
|
16
|
+
blueviolet: number[];
|
|
17
|
+
brown: number[];
|
|
18
|
+
burlywood: number[];
|
|
19
|
+
cadetblue: number[];
|
|
20
|
+
chartreuse: number[];
|
|
21
|
+
chocolate: number[];
|
|
22
|
+
coral: number[];
|
|
23
|
+
cornflowerblue: number[];
|
|
24
|
+
cornsilk: number[];
|
|
25
|
+
crimson: number[];
|
|
26
|
+
cyan: number[];
|
|
27
|
+
darkblue: number[];
|
|
28
|
+
darkcyan: number[];
|
|
29
|
+
darkgoldenrod: number[];
|
|
30
|
+
darkgray: number[];
|
|
31
|
+
darkgreen: number[];
|
|
32
|
+
darkgrey: number[];
|
|
33
|
+
darkkhaki: number[];
|
|
34
|
+
darkmagenta: number[];
|
|
35
|
+
darkolivegreen: number[];
|
|
36
|
+
darkorange: number[];
|
|
37
|
+
darkorchid: number[];
|
|
38
|
+
darkred: number[];
|
|
39
|
+
darksalmon: number[];
|
|
40
|
+
darkseagreen: number[];
|
|
41
|
+
darkslateblue: number[];
|
|
42
|
+
darkslategray: number[];
|
|
43
|
+
darkslategrey: number[];
|
|
44
|
+
darkturquoise: number[];
|
|
45
|
+
darkviolet: number[];
|
|
46
|
+
deeppink: number[];
|
|
47
|
+
deepskyblue: number[];
|
|
48
|
+
dimgray: number[];
|
|
49
|
+
dimgrey: number[];
|
|
50
|
+
dodgerblue: number[];
|
|
51
|
+
firebrick: number[];
|
|
52
|
+
floralwhite: number[];
|
|
53
|
+
forestgreen: number[];
|
|
54
|
+
fuchsia: number[];
|
|
55
|
+
gainsboro: number[];
|
|
56
|
+
ghostwhite: number[];
|
|
57
|
+
gold: number[];
|
|
58
|
+
goldenrod: number[];
|
|
59
|
+
gray: number[];
|
|
60
|
+
green: number[];
|
|
61
|
+
greenyellow: number[];
|
|
62
|
+
grey: number[];
|
|
63
|
+
honeydew: number[];
|
|
64
|
+
hotpink: number[];
|
|
65
|
+
indianred: number[];
|
|
66
|
+
indigo: number[];
|
|
67
|
+
ivory: number[];
|
|
68
|
+
khaki: number[];
|
|
69
|
+
lavender: number[];
|
|
70
|
+
lavenderblush: number[];
|
|
71
|
+
lawngreen: number[];
|
|
72
|
+
lemonchiffon: number[];
|
|
73
|
+
lightblue: number[];
|
|
74
|
+
lightcoral: number[];
|
|
75
|
+
lightcyan: number[];
|
|
76
|
+
lightgoldenrodyellow: number[];
|
|
77
|
+
lightgray: number[];
|
|
78
|
+
lightgreen: number[];
|
|
79
|
+
lightgrey: number[];
|
|
80
|
+
lightpink: number[];
|
|
81
|
+
lightsalmon: number[];
|
|
82
|
+
lightseagreen: number[];
|
|
83
|
+
lightskyblue: number[];
|
|
84
|
+
lightslategray: number[];
|
|
85
|
+
lightslategrey: number[];
|
|
86
|
+
lightsteelblue: number[];
|
|
87
|
+
lightyellow: number[];
|
|
88
|
+
lime: number[];
|
|
89
|
+
limegreen: number[];
|
|
90
|
+
linen: number[];
|
|
91
|
+
magenta: number[];
|
|
92
|
+
maroon: number[];
|
|
93
|
+
mediumaquamarine: number[];
|
|
94
|
+
mediumblue: number[];
|
|
95
|
+
mediumorchid: number[];
|
|
96
|
+
mediumpurple: number[];
|
|
97
|
+
mediumseagreen: number[];
|
|
98
|
+
mediumslateblue: number[];
|
|
99
|
+
mediumspringgreen: number[];
|
|
100
|
+
mediumturquoise: number[];
|
|
101
|
+
mediumvioletred: number[];
|
|
102
|
+
midnightblue: number[];
|
|
103
|
+
mintcream: number[];
|
|
104
|
+
mistyrose: number[];
|
|
105
|
+
moccasin: number[];
|
|
106
|
+
navajowhite: number[];
|
|
107
|
+
navy: number[];
|
|
108
|
+
oldlace: number[];
|
|
109
|
+
olive: number[];
|
|
110
|
+
olivedrab: number[];
|
|
111
|
+
orange: number[];
|
|
112
|
+
orangered: number[];
|
|
113
|
+
orchid: number[];
|
|
114
|
+
palegoldenrod: number[];
|
|
115
|
+
palegreen: number[];
|
|
116
|
+
paleturquoise: number[];
|
|
117
|
+
palevioletred: number[];
|
|
118
|
+
papayawhip: number[];
|
|
119
|
+
peachpuff: number[];
|
|
120
|
+
peru: number[];
|
|
121
|
+
pink: number[];
|
|
122
|
+
plum: number[];
|
|
123
|
+
powderblue: number[];
|
|
124
|
+
purple: number[];
|
|
125
|
+
rebeccapurple: number[];
|
|
126
|
+
red: number[];
|
|
127
|
+
rosybrown: number[];
|
|
128
|
+
royalblue: number[];
|
|
129
|
+
saddlebrown: number[];
|
|
130
|
+
salmon: number[];
|
|
131
|
+
sandybrown: number[];
|
|
132
|
+
seagreen: number[];
|
|
133
|
+
seashell: number[];
|
|
134
|
+
sienna: number[];
|
|
135
|
+
silver: number[];
|
|
136
|
+
skyblue: number[];
|
|
137
|
+
slateblue: number[];
|
|
138
|
+
slategray: number[];
|
|
139
|
+
slategrey: number[];
|
|
140
|
+
snow: number[];
|
|
141
|
+
springgreen: number[];
|
|
142
|
+
steelblue: number[];
|
|
143
|
+
tan: number[];
|
|
144
|
+
teal: number[];
|
|
145
|
+
thistle: number[];
|
|
146
|
+
tomato: number[];
|
|
147
|
+
turquoise: number[];
|
|
148
|
+
violet: number[];
|
|
149
|
+
wheat: number[];
|
|
150
|
+
white: number[];
|
|
151
|
+
whitesmoke: number[];
|
|
152
|
+
yellow: number[];
|
|
153
|
+
yellowgreen: number[];
|
|
154
|
+
};
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Collection of channel values for a related name color
|
|
3
|
+
* The list is based on https://drafts.csswg.org/css-color/#named-colors
|
|
4
|
+
*/
|
|
5
|
+
export const COLOR_NAME = {
|
|
6
|
+
aliceblue: [240, 248, 255],
|
|
7
|
+
antiquewhite: [250, 235, 215],
|
|
8
|
+
aqua: [0, 255, 255],
|
|
9
|
+
aquamarine: [127, 255, 212],
|
|
10
|
+
azure: [240, 255, 255],
|
|
11
|
+
beige: [245, 245, 220],
|
|
12
|
+
bisque: [255, 228, 196],
|
|
13
|
+
black: [0, 0, 0],
|
|
14
|
+
blanchedalmond: [255, 235, 205],
|
|
15
|
+
blue: [0, 0, 255],
|
|
16
|
+
blueviolet: [138, 43, 226],
|
|
17
|
+
brown: [165, 42, 42],
|
|
18
|
+
burlywood: [222, 184, 135],
|
|
19
|
+
cadetblue: [95, 158, 160],
|
|
20
|
+
chartreuse: [127, 255, 0],
|
|
21
|
+
chocolate: [210, 105, 30],
|
|
22
|
+
coral: [255, 127, 80],
|
|
23
|
+
cornflowerblue: [100, 149, 237],
|
|
24
|
+
cornsilk: [255, 248, 220],
|
|
25
|
+
crimson: [220, 20, 60],
|
|
26
|
+
cyan: [0, 255, 255],
|
|
27
|
+
darkblue: [0, 0, 139],
|
|
28
|
+
darkcyan: [0, 139, 139],
|
|
29
|
+
darkgoldenrod: [184, 134, 11],
|
|
30
|
+
darkgray: [169, 169, 169],
|
|
31
|
+
darkgreen: [0, 100, 0],
|
|
32
|
+
darkgrey: [169, 169, 169],
|
|
33
|
+
darkkhaki: [189, 183, 107],
|
|
34
|
+
darkmagenta: [139, 0, 139],
|
|
35
|
+
darkolivegreen: [85, 107, 47],
|
|
36
|
+
darkorange: [255, 140, 0],
|
|
37
|
+
darkorchid: [153, 50, 204],
|
|
38
|
+
darkred: [139, 0, 0],
|
|
39
|
+
darksalmon: [233, 150, 122],
|
|
40
|
+
darkseagreen: [143, 188, 143],
|
|
41
|
+
darkslateblue: [72, 61, 139],
|
|
42
|
+
darkslategray: [47, 79, 79],
|
|
43
|
+
darkslategrey: [47, 79, 79],
|
|
44
|
+
darkturquoise: [0, 206, 209],
|
|
45
|
+
darkviolet: [148, 0, 211],
|
|
46
|
+
deeppink: [255, 20, 147],
|
|
47
|
+
deepskyblue: [0, 191, 255],
|
|
48
|
+
dimgray: [105, 105, 105],
|
|
49
|
+
dimgrey: [105, 105, 105],
|
|
50
|
+
dodgerblue: [30, 144, 255],
|
|
51
|
+
firebrick: [178, 34, 34],
|
|
52
|
+
floralwhite: [255, 250, 240],
|
|
53
|
+
forestgreen: [34, 139, 34],
|
|
54
|
+
fuchsia: [255, 0, 255],
|
|
55
|
+
gainsboro: [220, 220, 220],
|
|
56
|
+
ghostwhite: [248, 248, 255],
|
|
57
|
+
gold: [255, 215, 0],
|
|
58
|
+
goldenrod: [218, 165, 32],
|
|
59
|
+
gray: [128, 128, 128],
|
|
60
|
+
green: [0, 128, 0],
|
|
61
|
+
greenyellow: [173, 255, 47],
|
|
62
|
+
grey: [128, 128, 128],
|
|
63
|
+
honeydew: [240, 255, 240],
|
|
64
|
+
hotpink: [255, 105, 180],
|
|
65
|
+
indianred: [205, 92, 92],
|
|
66
|
+
indigo: [75, 0, 130],
|
|
67
|
+
ivory: [255, 255, 240],
|
|
68
|
+
khaki: [240, 230, 140],
|
|
69
|
+
lavender: [230, 230, 250],
|
|
70
|
+
lavenderblush: [255, 240, 245],
|
|
71
|
+
lawngreen: [124, 252, 0],
|
|
72
|
+
lemonchiffon: [255, 250, 205],
|
|
73
|
+
lightblue: [173, 216, 230],
|
|
74
|
+
lightcoral: [240, 128, 128],
|
|
75
|
+
lightcyan: [224, 255, 255],
|
|
76
|
+
lightgoldenrodyellow: [250, 250, 210],
|
|
77
|
+
lightgray: [211, 211, 211],
|
|
78
|
+
lightgreen: [144, 238, 144],
|
|
79
|
+
lightgrey: [211, 211, 211],
|
|
80
|
+
lightpink: [255, 182, 193],
|
|
81
|
+
lightsalmon: [255, 160, 122],
|
|
82
|
+
lightseagreen: [32, 178, 170],
|
|
83
|
+
lightskyblue: [135, 206, 250],
|
|
84
|
+
lightslategray: [119, 136, 153],
|
|
85
|
+
lightslategrey: [119, 136, 153],
|
|
86
|
+
lightsteelblue: [176, 196, 222],
|
|
87
|
+
lightyellow: [255, 255, 224],
|
|
88
|
+
lime: [0, 255, 0],
|
|
89
|
+
limegreen: [50, 205, 50],
|
|
90
|
+
linen: [250, 240, 230],
|
|
91
|
+
magenta: [255, 0, 255],
|
|
92
|
+
maroon: [128, 0, 0],
|
|
93
|
+
mediumaquamarine: [102, 205, 170],
|
|
94
|
+
mediumblue: [0, 0, 205],
|
|
95
|
+
mediumorchid: [186, 85, 211],
|
|
96
|
+
mediumpurple: [147, 112, 219],
|
|
97
|
+
mediumseagreen: [60, 179, 113],
|
|
98
|
+
mediumslateblue: [123, 104, 238],
|
|
99
|
+
mediumspringgreen: [0, 250, 154],
|
|
100
|
+
mediumturquoise: [72, 209, 204],
|
|
101
|
+
mediumvioletred: [199, 21, 133],
|
|
102
|
+
midnightblue: [25, 25, 112],
|
|
103
|
+
mintcream: [245, 255, 250],
|
|
104
|
+
mistyrose: [255, 228, 225],
|
|
105
|
+
moccasin: [255, 228, 181],
|
|
106
|
+
navajowhite: [255, 222, 173],
|
|
107
|
+
navy: [0, 0, 128],
|
|
108
|
+
oldlace: [253, 245, 230],
|
|
109
|
+
olive: [128, 128, 0],
|
|
110
|
+
olivedrab: [107, 142, 35],
|
|
111
|
+
orange: [255, 165, 0],
|
|
112
|
+
orangered: [255, 69, 0],
|
|
113
|
+
orchid: [218, 112, 214],
|
|
114
|
+
palegoldenrod: [238, 232, 170],
|
|
115
|
+
palegreen: [152, 251, 152],
|
|
116
|
+
paleturquoise: [175, 238, 238],
|
|
117
|
+
palevioletred: [219, 112, 147],
|
|
118
|
+
papayawhip: [255, 239, 213],
|
|
119
|
+
peachpuff: [255, 218, 185],
|
|
120
|
+
peru: [205, 133, 63],
|
|
121
|
+
pink: [255, 192, 203],
|
|
122
|
+
plum: [221, 160, 221],
|
|
123
|
+
powderblue: [176, 224, 230],
|
|
124
|
+
purple: [128, 0, 128],
|
|
125
|
+
rebeccapurple: [102, 51, 153],
|
|
126
|
+
red: [255, 0, 0],
|
|
127
|
+
rosybrown: [188, 143, 143],
|
|
128
|
+
royalblue: [65, 105, 225],
|
|
129
|
+
saddlebrown: [139, 69, 19],
|
|
130
|
+
salmon: [250, 128, 114],
|
|
131
|
+
sandybrown: [244, 164, 96],
|
|
132
|
+
seagreen: [46, 139, 87],
|
|
133
|
+
seashell: [255, 245, 238],
|
|
134
|
+
sienna: [160, 82, 45],
|
|
135
|
+
silver: [192, 192, 192],
|
|
136
|
+
skyblue: [135, 206, 235],
|
|
137
|
+
slateblue: [106, 90, 205],
|
|
138
|
+
slategray: [112, 128, 144],
|
|
139
|
+
slategrey: [112, 128, 144],
|
|
140
|
+
snow: [255, 250, 250],
|
|
141
|
+
springgreen: [0, 255, 127],
|
|
142
|
+
steelblue: [70, 130, 180],
|
|
143
|
+
tan: [210, 180, 140],
|
|
144
|
+
teal: [0, 128, 128],
|
|
145
|
+
thistle: [216, 191, 216],
|
|
146
|
+
tomato: [255, 99, 71],
|
|
147
|
+
turquoise: [64, 224, 208],
|
|
148
|
+
violet: [238, 130, 238],
|
|
149
|
+
wheat: [245, 222, 179],
|
|
150
|
+
white: [255, 255, 255],
|
|
151
|
+
whitesmoke: [245, 245, 245],
|
|
152
|
+
yellow: [255, 255, 0],
|
|
153
|
+
yellowgreen: [154, 205, 50],
|
|
154
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Destination places to inject the css variables
|
|
3
|
+
*/
|
|
4
|
+
export var CSS_VARIABLE_DESTINATION;
|
|
5
|
+
(function (CSS_VARIABLE_DESTINATION) {
|
|
6
|
+
CSS_VARIABLE_DESTINATION["CANVAS"] = "CANVAS";
|
|
7
|
+
CSS_VARIABLE_DESTINATION["GLOBAL"] = "GLOBAL";
|
|
8
|
+
})(CSS_VARIABLE_DESTINATION || (CSS_VARIABLE_DESTINATION = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Collection of CSS Variables to apply for Dark Theme
|
|
3
|
+
*/
|
|
4
|
+
export declare enum GLOBAL_CSS_VARIABLES {
|
|
5
|
+
BACKGROUND_OPACITY_BLACK_COLOR = "--qv-global-opacity-black-color",
|
|
6
|
+
HEADER_BACKGROUND_COLOR = "--qv-global-header-background-color",
|
|
7
|
+
BORDER_COLOR = "--qv-global-border-color",
|
|
8
|
+
DIVIDER_COLOR = "--qv-global-divider-color",
|
|
9
|
+
HOVER_COLOR = "--qv-global-hover-color",
|
|
10
|
+
PLACEHOLDER_COLOR = "--qv-global-placeholder-color",
|
|
11
|
+
PILLS_BACKGROUND_COLOR = "--qv-pills-background-color",
|
|
12
|
+
TEXT_COLOR = "--qv-global-text-color",
|
|
13
|
+
TEXT_SECONDARY_COLOR = "--qv-global-text-secondary-color",
|
|
14
|
+
TEXT_TERTIARY_COLOR = "--qv-global-text-tertiary-color"
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Collection of CSS Variables to apply for Dark Theme
|
|
3
|
+
*/
|
|
4
|
+
export var GLOBAL_CSS_VARIABLES;
|
|
5
|
+
(function (GLOBAL_CSS_VARIABLES) {
|
|
6
|
+
GLOBAL_CSS_VARIABLES["BACKGROUND_OPACITY_BLACK_COLOR"] = "--qv-global-opacity-black-color";
|
|
7
|
+
GLOBAL_CSS_VARIABLES["HEADER_BACKGROUND_COLOR"] = "--qv-global-header-background-color";
|
|
8
|
+
GLOBAL_CSS_VARIABLES["BORDER_COLOR"] = "--qv-global-border-color";
|
|
9
|
+
GLOBAL_CSS_VARIABLES["DIVIDER_COLOR"] = "--qv-global-divider-color";
|
|
10
|
+
GLOBAL_CSS_VARIABLES["HOVER_COLOR"] = "--qv-global-hover-color";
|
|
11
|
+
GLOBAL_CSS_VARIABLES["PLACEHOLDER_COLOR"] = "--qv-global-placeholder-color";
|
|
12
|
+
GLOBAL_CSS_VARIABLES["PILLS_BACKGROUND_COLOR"] = "--qv-pills-background-color";
|
|
13
|
+
GLOBAL_CSS_VARIABLES["TEXT_COLOR"] = "--qv-global-text-color";
|
|
14
|
+
GLOBAL_CSS_VARIABLES["TEXT_SECONDARY_COLOR"] = "--qv-global-text-secondary-color";
|
|
15
|
+
GLOBAL_CSS_VARIABLES["TEXT_TERTIARY_COLOR"] = "--qv-global-text-tertiary-color";
|
|
16
|
+
})(GLOBAL_CSS_VARIABLES || (GLOBAL_CSS_VARIABLES = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from "./AUTOMATIC_CANVAS_CSS_VARIABLES_FOR_DARK";
|
|
2
|
+
export * from "./AUTOMATIC_CANVAS_CSS_VARIABLES_FOR_LIGHT";
|
|
3
|
+
export * from "./AUTOMATIC_CSS_VARIABLES";
|
|
4
|
+
export * from "./AUTOMATIC_GLOBAL_CSS_VARIABLES_FOR_DARK";
|
|
5
|
+
export * from "./AUTOMATIC_GLOBAL_CSS_VARIABLES_FOR_LIGHT";
|
|
6
|
+
export * from "./CANVAS_CSS_VARIABLES";
|
|
7
|
+
export * from "./CHANNEL_BLACK_COLOR";
|
|
8
|
+
export * from "./CHANNEL_WHITE_COLOR";
|
|
9
|
+
export * from "./COLOR_NAME";
|
|
10
|
+
export * from "./COLOR_TYPE";
|
|
11
|
+
export * from "./CSS_VARIABLE_DESTINATION";
|
|
12
|
+
export * from "./GLOBAL_CSS_VARIABLES";
|
|
13
|
+
export * from "./HEXADECIMAL_REGULAR_EXPRESSION";
|
|
14
|
+
export * from "./RGBA_REGULAR_EXPRESION";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from "./AUTOMATIC_CANVAS_CSS_VARIABLES_FOR_DARK";
|
|
2
|
+
export * from "./AUTOMATIC_CANVAS_CSS_VARIABLES_FOR_LIGHT";
|
|
3
|
+
export * from "./AUTOMATIC_CSS_VARIABLES";
|
|
4
|
+
export * from "./AUTOMATIC_GLOBAL_CSS_VARIABLES_FOR_DARK";
|
|
5
|
+
export * from "./AUTOMATIC_GLOBAL_CSS_VARIABLES_FOR_LIGHT";
|
|
6
|
+
export * from "./CANVAS_CSS_VARIABLES";
|
|
7
|
+
export * from "./CHANNEL_BLACK_COLOR";
|
|
8
|
+
export * from "./CHANNEL_WHITE_COLOR";
|
|
9
|
+
export * from "./COLOR_NAME";
|
|
10
|
+
export * from "./COLOR_TYPE";
|
|
11
|
+
export * from "./CSS_VARIABLE_DESTINATION";
|
|
12
|
+
export * from "./GLOBAL_CSS_VARIABLES";
|
|
13
|
+
export * from "./HEXADECIMAL_REGULAR_EXPRESSION";
|
|
14
|
+
export * from "./RGBA_REGULAR_EXPRESION";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IColorChannel } from "../interfaces/IColorChannel";
|
|
2
|
+
/**
|
|
3
|
+
* Calculates the HSP Color Mode from the RGBA channels
|
|
4
|
+
* - If the calculation are wrong or the given parameter is undefined, the function will return a default for light colors
|
|
5
|
+
* @param rgbaChannel the rgba channel object
|
|
6
|
+
* @returns a HSP color number
|
|
7
|
+
*/
|
|
8
|
+
export declare function calculateHSP(rgbaChannel: IColorChannel): number;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { isNaNV2 } from "../../general";
|
|
2
|
+
import { isEmpty } from "../../general/mix/isEmpty";
|
|
3
|
+
/**
|
|
4
|
+
* Calculates the HSP Color Mode from the RGBA channels
|
|
5
|
+
* - If the calculation are wrong or the given parameter is undefined, the function will return a default for light colors
|
|
6
|
+
* @param rgbaChannel the rgba channel object
|
|
7
|
+
* @returns a HSP color number
|
|
8
|
+
*/
|
|
9
|
+
export function calculateHSP(rgbaChannel) {
|
|
10
|
+
if (isEmpty(rgbaChannel))
|
|
11
|
+
return 255;
|
|
12
|
+
const { r, g, b } = rgbaChannel;
|
|
13
|
+
// HSP equation from http://alienryderflex.com/hsp.html
|
|
14
|
+
const hsp = Math.sqrt(0.299 * (r * r) + 0.587 * (g * g) + 0.114 * (b * b));
|
|
15
|
+
return isNaNV2(hsp) ? 255 : hsp;
|
|
16
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { IColorCSSVariableDestination } from "../interfaces/IColorCSSVariableDestination";
|
|
2
|
+
/**
|
|
3
|
+
* Gets CSS variables depending on the destination of them.
|
|
4
|
+
* - Destination is the place where the CSS variables are going to be applied. With this, the right CSS variables are searched and set.
|
|
5
|
+
* @param destination the string of the destination.
|
|
6
|
+
* @returns the CSS variables and their values.
|
|
7
|
+
*/
|
|
8
|
+
export declare function getCSSVariablesByDestination(destination?: IColorCSSVariableDestination): {
|
|
9
|
+
DARK: {
|
|
10
|
+
"--qv-global-header-background-color": string;
|
|
11
|
+
"--qv-global-opacity-black-color": string;
|
|
12
|
+
"--qv-global-border-color": string;
|
|
13
|
+
"--qv-global-divider-color": string;
|
|
14
|
+
"--qv-global-hover-color": string;
|
|
15
|
+
"--qv-global-placeholder-color": string;
|
|
16
|
+
"--qv-pills-background-color": string;
|
|
17
|
+
"--qv-global-text-color": string;
|
|
18
|
+
"--qv-global-text-secondary-color": string;
|
|
19
|
+
"--qv-global-text-tertiary-color": string;
|
|
20
|
+
};
|
|
21
|
+
LIGHT: {
|
|
22
|
+
"--qv-global-header-background-color": string;
|
|
23
|
+
"--qv-global-opacity-black-color": string;
|
|
24
|
+
"--qv-global-border-color": string;
|
|
25
|
+
"--qv-global-divider-color": string;
|
|
26
|
+
"--qv-global-hover-color": string;
|
|
27
|
+
"--qv-global-placeholder-color": string;
|
|
28
|
+
"--qv-pills-background-color": string;
|
|
29
|
+
"--qv-global-text-color": any;
|
|
30
|
+
"--qv-global-text-secondary-color": string;
|
|
31
|
+
"--qv-global-text-tertiary-color": string;
|
|
32
|
+
};
|
|
33
|
+
} | {
|
|
34
|
+
DARK: {
|
|
35
|
+
"--qv-canvas-border-color": string;
|
|
36
|
+
};
|
|
37
|
+
LIGHT: {
|
|
38
|
+
"--qv-canvas-border-color": string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { isEmpty } from "../../general/mix/isEmpty";
|
|
2
|
+
import { AUTOMATIC_CANVAS_CSS_VARIABLES } from "../constants/AUTOMATIC_CSS_VARIABLES";
|
|
3
|
+
import { CSS_VARIABLE_DESTINATION } from "../constants/CSS_VARIABLE_DESTINATION";
|
|
4
|
+
/**
|
|
5
|
+
* Gets CSS variables depending on the destination of them.
|
|
6
|
+
* - Destination is the place where the CSS variables are going to be applied. With this, the right CSS variables are searched and set.
|
|
7
|
+
* @param destination the string of the destination.
|
|
8
|
+
* @returns the CSS variables and their values.
|
|
9
|
+
*/
|
|
10
|
+
export function getCSSVariablesByDestination(destination = CSS_VARIABLE_DESTINATION.GLOBAL) {
|
|
11
|
+
if (isEmpty(destination))
|
|
12
|
+
return AUTOMATIC_CANVAS_CSS_VARIABLES[CSS_VARIABLE_DESTINATION.GLOBAL];
|
|
13
|
+
return AUTOMATIC_CANVAS_CSS_VARIABLES[destination];
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IColorChannel } from "../interfaces/IColorChannel";
|
|
2
|
+
/**
|
|
3
|
+
* Gets the RGBA channels based on the given string Hexadecimal color
|
|
4
|
+
* - If the given argument is undefined or invalid, the function will return a channel related to white color
|
|
5
|
+
* @param color the Hexadecimal color
|
|
6
|
+
* @returns the RGBA channels
|
|
7
|
+
*/
|
|
8
|
+
export declare function getChannelsByHexadecimalColor(hexadecimal?: string): IColorChannel;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CHANNEL_WHITE_COLOR } from "../constants/CHANNEL_WHITE_COLOR";
|
|
2
|
+
import { getHexadecimalOpacity } from "./getHexadecimalOpacity";
|
|
3
|
+
import { isHexadecimalColor } from "./isHexadecimalColor";
|
|
4
|
+
/**
|
|
5
|
+
* Gets the RGBA channels based on the given string Hexadecimal color
|
|
6
|
+
* - If the given argument is undefined or invalid, the function will return a channel related to white color
|
|
7
|
+
* @param color the Hexadecimal color
|
|
8
|
+
* @returns the RGBA channels
|
|
9
|
+
*/
|
|
10
|
+
export function getChannelsByHexadecimalColor(hexadecimal = "") {
|
|
11
|
+
if (!isHexadecimalColor(hexadecimal))
|
|
12
|
+
return CHANNEL_WHITE_COLOR;
|
|
13
|
+
const colorCode = +`0x${hexadecimal
|
|
14
|
+
.slice(1)
|
|
15
|
+
.replace(hexadecimal.length < 5 && /./g, "$&$&")}`;
|
|
16
|
+
return {
|
|
17
|
+
r: colorCode >> 16,
|
|
18
|
+
g: (colorCode >> 8) & 255,
|
|
19
|
+
b: colorCode & 255,
|
|
20
|
+
a: getHexadecimalOpacity(hexadecimal),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IColorChannel } from "../interfaces/IColorChannel";
|
|
2
|
+
/**
|
|
3
|
+
* Gets the RGBA channels based on the given string name color
|
|
4
|
+
* - If the given argument is undefined or invalid, the function will return a channel related to white color
|
|
5
|
+
* @param color the name color
|
|
6
|
+
* @returns the RGBA channels
|
|
7
|
+
*/
|
|
8
|
+
export declare function getChannelsByNameColor(name?: string): IColorChannel;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { isEmpty } from "../../general/mix/isEmpty";
|
|
2
|
+
import { CHANNEL_WHITE_COLOR } from "../constants/CHANNEL_WHITE_COLOR";
|
|
3
|
+
import { COLOR_NAME } from "../constants/COLOR_NAME";
|
|
4
|
+
/**
|
|
5
|
+
* Gets the RGBA channels based on the given string name color
|
|
6
|
+
* - If the given argument is undefined or invalid, the function will return a channel related to white color
|
|
7
|
+
* @param color the name color
|
|
8
|
+
* @returns the RGBA channels
|
|
9
|
+
*/
|
|
10
|
+
export function getChannelsByNameColor(name = "") {
|
|
11
|
+
const nameColorChannel = COLOR_NAME[String(name).toLowerCase()];
|
|
12
|
+
if (isEmpty(nameColorChannel) ||
|
|
13
|
+
!Array.isArray(nameColorChannel) ||
|
|
14
|
+
nameColorChannel.length !== 3)
|
|
15
|
+
return CHANNEL_WHITE_COLOR;
|
|
16
|
+
return {
|
|
17
|
+
r: nameColorChannel[0],
|
|
18
|
+
g: nameColorChannel[1],
|
|
19
|
+
b: nameColorChannel[2],
|
|
20
|
+
a: 1,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IColorChannel } from "../interfaces/IColorChannel";
|
|
2
|
+
/**
|
|
3
|
+
* Gets the RGBA channels based on the given string RGBA color
|
|
4
|
+
* - If the given argument is undefined or invalid, the function will return a channel related to white color
|
|
5
|
+
* @param color the RGBA color
|
|
6
|
+
* @returns the RGBA channels
|
|
7
|
+
*/
|
|
8
|
+
export declare function getChannelsByRgbaColor(rgba?: string): IColorChannel;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CHANNEL_WHITE_COLOR } from "../constants/CHANNEL_WHITE_COLOR";
|
|
2
|
+
import { RGBA_REGULAR_EXPRESSION } from "../constants/RGBA_REGULAR_EXPRESION";
|
|
3
|
+
import { getRgbaOpacity } from "./getRgbaOpacity";
|
|
4
|
+
import { isRGBAColor } from "./isRGBAColor";
|
|
5
|
+
/**
|
|
6
|
+
* Gets the RGBA channels based on the given string RGBA color
|
|
7
|
+
* - If the given argument is undefined or invalid, the function will return a channel related to white color
|
|
8
|
+
* @param color the RGBA color
|
|
9
|
+
* @returns the RGBA channels
|
|
10
|
+
*/
|
|
11
|
+
export function getChannelsByRgbaColor(rgba = "") {
|
|
12
|
+
if (!isRGBAColor(rgba))
|
|
13
|
+
return CHANNEL_WHITE_COLOR;
|
|
14
|
+
const colors = rgba.toLowerCase().match(RGBA_REGULAR_EXPRESSION);
|
|
15
|
+
return {
|
|
16
|
+
r: Number(colors[1]),
|
|
17
|
+
g: Number(colors[2]),
|
|
18
|
+
b: Number(colors[3]),
|
|
19
|
+
a: getRgbaOpacity(rgba),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gets the Alpha channel (opacity) base on the hexadecimal color
|
|
3
|
+
* - If the alpha channel is not set into the given parameter or the calculation is NaN, the function will return 1
|
|
4
|
+
* @param hexadecimal hexadecimal color
|
|
5
|
+
* @returns the Alpha channel (opacity)
|
|
6
|
+
*/
|
|
7
|
+
export declare function getHexadecimalOpacity(hexadecimal?: string): number;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { isNaNV2 } from "../../general/mix/isNaNV2";
|
|
2
|
+
import { isHexadecimalColor } from "./isHexadecimalColor";
|
|
3
|
+
/**
|
|
4
|
+
* Gets the Alpha channel (opacity) base on the hexadecimal color
|
|
5
|
+
* - If the alpha channel is not set into the given parameter or the calculation is NaN, the function will return 1
|
|
6
|
+
* @param hexadecimal hexadecimal color
|
|
7
|
+
* @returns the Alpha channel (opacity)
|
|
8
|
+
*/
|
|
9
|
+
export function getHexadecimalOpacity(hexadecimal = "") {
|
|
10
|
+
if (!isHexadecimalColor(hexadecimal))
|
|
11
|
+
return 1;
|
|
12
|
+
const opacityHexa = hexadecimal.slice(7) || "FF";
|
|
13
|
+
const opacity = parseInt(opacityHexa, 16) / 255;
|
|
14
|
+
return isNaNV2(opacity) ? 1 : opacity;
|
|
15
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gets the Alpha channel (opacity) base on the RGBA color
|
|
3
|
+
* * - If the alpha channel is not set into the given parameter or the calculation is NaN, the function will return 1
|
|
4
|
+
* @param hexadecimal RGBA color
|
|
5
|
+
* @returns the Alpha channel (opacity)
|
|
6
|
+
*/
|
|
7
|
+
export declare function getRgbaOpacity(rgba?: string): number;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { isNaNV2 } from "../../general/mix/isNaNV2";
|
|
2
|
+
import { RGBA_REGULAR_EXPRESSION } from "../constants/RGBA_REGULAR_EXPRESION";
|
|
3
|
+
import { isRGBAColor } from "./isRGBAColor";
|
|
4
|
+
/**
|
|
5
|
+
* Gets the Alpha channel (opacity) base on the RGBA color
|
|
6
|
+
* * - If the alpha channel is not set into the given parameter or the calculation is NaN, the function will return 1
|
|
7
|
+
* @param hexadecimal RGBA color
|
|
8
|
+
* @returns the Alpha channel (opacity)
|
|
9
|
+
*/
|
|
10
|
+
export function getRgbaOpacity(rgba = "") {
|
|
11
|
+
var _a;
|
|
12
|
+
if (!isRGBAColor(rgba))
|
|
13
|
+
return 1;
|
|
14
|
+
const colors = rgba.toLowerCase().match(RGBA_REGULAR_EXPRESSION);
|
|
15
|
+
const opacity = (_a = Number(colors[4])) !== null && _a !== void 0 ? _a : 1;
|
|
16
|
+
return isNaNV2(opacity) ? 1 : opacity;
|
|
17
|
+
}
|