@rh-support/utils
Advanced tools
Comparing version 0.0.64 to 0.0.65
@@ -64,2 +64,5 @@ define(['exports', 'lodash/isEmpty', 'lodash/includes', 'lodash/filter', 'lodash/forEach', 'lodash/map', 'lodash/isFunction', 'lodash/reduce', 'lodash/concat', 'lodash/merge', 'js-markdown-extra', 'lodash/assign', 'lodash/get', 'lodash/isString', 'marked', 'lodash/orderBy', 'lodash/remove', 'solr-query-builder', 'qs', 'lodash/sortBy'], function (exports, isEmpty, includes, filter, forEach, map, isFunction, reduce, concat, merge, jsMarkdownExtra, assign, get, isString, marked, orderBy, filter$1, SolrQueryBuilder, qs, sortBy) { 'use strict'; | ||
} | ||
function isOpenShiftOnlineProduct(product) { | ||
return product === 'Openshift Online'; | ||
} | ||
function isValidCaseNumber(caseNumber) { | ||
@@ -889,2 +892,31 @@ // eslint-disable-next-line no-useless-escape | ||
(function (StyleVariants) { | ||
StyleVariants[StyleVariants["INFO"] = 0] = "INFO"; | ||
StyleVariants[StyleVariants["SUCCESS"] = 1] = "SUCCESS"; | ||
StyleVariants[StyleVariants["WARNING"] = 2] = "WARNING"; | ||
StyleVariants[StyleVariants["DEFAULT"] = 3] = "DEFAULT"; | ||
StyleVariants[StyleVariants["DANGER"] = 4] = "DANGER"; | ||
})(exports.StyleVariants || (exports.StyleVariants = {})); | ||
function getBGColorStyle(styleVariant) { | ||
return { | ||
backgroundColor: getStyleVariantColor(styleVariant) | ||
}; | ||
} | ||
function getStyleVariantColor(styleVariant) { | ||
switch (styleVariant) { | ||
case exports.StyleVariants.DEFAULT: | ||
return '#72767B'; | ||
case exports.StyleVariants.INFO: | ||
return '#004368'; | ||
case exports.StyleVariants.WARNING: | ||
return '#F0AB00'; | ||
case exports.StyleVariants.SUCCESS: | ||
return '#3E8635'; | ||
case exports.StyleVariants.DANGER: | ||
return '#CE2615'; | ||
default: | ||
return '#72767B'; | ||
} | ||
} | ||
exports.CacheUtilsService = CacheUtilsService; | ||
@@ -910,2 +942,3 @@ exports.arrays2csv = arrays2csv; | ||
exports.getApiUpdationStatus = getApiUpdationStatus; | ||
exports.getBGColorStyle = getBGColorStyle; | ||
exports.getConfigField = getConfigField; | ||
@@ -921,2 +954,3 @@ exports.getDropdownBtnPlaceholder = getDropdownBtnPlaceholder; | ||
exports.getStringifiedParams = getStringifiedParams; | ||
exports.getStyleVariantColor = getStyleVariantColor; | ||
exports.getUrlParsedParams = getUrlParsedParams; | ||
@@ -932,2 +966,3 @@ exports.haltEvent = haltEvent; | ||
exports.isJsons = isJsons; | ||
exports.isOpenShiftOnlineProduct = isOpenShiftOnlineProduct; | ||
exports.isPremiumEntitlement = isPremiumEntitlement; | ||
@@ -934,0 +969,0 @@ exports.isSafari = isSafari; |
@@ -7,2 +7,3 @@ import { IPortalJwtToken } from '@rh-support/types/shared'; | ||
export declare function isSev1(severity: string): boolean; | ||
export declare function isOpenShiftOnlineProduct(product: string): boolean; | ||
export declare function isValidCaseNumber(caseNumber: string): boolean; |
@@ -27,2 +27,5 @@ import includes from 'lodash/includes'; | ||
} | ||
export function isOpenShiftOnlineProduct(product) { | ||
return product === 'Openshift Online'; | ||
} | ||
export function isValidCaseNumber(caseNumber) { | ||
@@ -29,0 +32,0 @@ // eslint-disable-next-line no-useless-escape |
@@ -19,1 +19,2 @@ export * from './apiUtils'; | ||
export * from './userUtils'; | ||
export * from './styleUtils'; |
@@ -19,1 +19,2 @@ export * from './apiUtils'; | ||
export * from './userUtils'; | ||
export * from './styleUtils'; |
{ | ||
"name": "@rh-support/utils", | ||
"version": "0.0.64", | ||
"version": "0.0.65", | ||
"description": "> TODO: description", | ||
@@ -57,4 +57,4 @@ "author": "Vikas Rathee <vrathee@redhat.com>", | ||
"dependencies": { | ||
"@rh-support/api": "^0.0.64", | ||
"@rh-support/types": "^0.0.64", | ||
"@rh-support/api": "^0.0.65", | ||
"@rh-support/types": "^0.0.65", | ||
"dot": "^1.1.3", | ||
@@ -75,3 +75,3 @@ "hydrajs": "git+https://gitlab.cee.redhat.com/redhataccess/hydrajs.git#2.0.31", | ||
}, | ||
"gitHead": "4fc9affa18db99afad902022e3fc5dfc0022a7bc" | ||
"gitHead": "7bf9db9862dae86d6627a67da8ef36afff832607" | ||
} |
88873
43
1957
+ Added@rh-support/api@0.0.65(transitive)
+ Added@rh-support/types@0.0.65(transitive)
- Removed@rh-support/api@0.0.64(transitive)
- Removed@rh-support/types@0.0.64(transitive)
Updated@rh-support/api@^0.0.65
Updated@rh-support/types@^0.0.65