@domoinc/da-theme2
Advanced tools
Comparing version 2.6.0 to 2.7.0
{ | ||
"name": "da-theme2", | ||
"version": "2.6.0", | ||
"version": "2.7.0", | ||
"authors": [ | ||
@@ -5,0 +5,0 @@ "Domo Inc." |
@@ -341,3 +341,29 @@ /*! Copyright 2016 Domo Inc. */ | ||
/*---------------------------------------------------------------------------------- | ||
// Gets color choices for the Color Theme dropdown in the design studio | ||
----------------------------------------------------------------------------------*/ | ||
theme.getColorChoices = function(primaryColorSeries, primaryColorKey) { | ||
var i; | ||
var colorChoices = [{name: 'Default', value:[]}]; | ||
for(i = 0; i < theme.domoColors.length; i += 1) { | ||
colorChoices.push({ | ||
name: 'Domo - ' + theme.domoColorKey[i], | ||
value: theme.domoColors[i] | ||
}); | ||
} | ||
if (theme.domoColors !== primaryColorSeries) { | ||
if (typeof primaryColorSeries[0] === 'object') { | ||
for(i = 0; i < primaryColorSeries.length; i += 1) { | ||
colorChoices.push({ | ||
name: 'Theme - ' + primaryColorKey[i], | ||
value: primaryColorSeries[i] | ||
}); | ||
} | ||
} | ||
} | ||
return colorChoices; | ||
}; | ||
/*---------------------------------------------------------------------------------- | ||
@@ -344,0 +370,0 @@ ----------------------------------------------------------------------------------*/ |
{ | ||
"name": "@domoinc/da-theme2", | ||
"version": "2.6.0", | ||
"version": "2.7.0", | ||
"description": "daTheme2 - Domo Widget", | ||
@@ -5,0 +5,0 @@ "main": "dist/bundle.js", |
@@ -284,3 +284,29 @@ var _ = require('lodash'); | ||
/*---------------------------------------------------------------------------------- | ||
// Gets color choices for the Color Theme dropdown in the design studio | ||
----------------------------------------------------------------------------------*/ | ||
theme.getColorChoices = function(primaryColorSeries, primaryColorKey) { | ||
var i; | ||
var colorChoices = [{name: 'Default', value:[]}]; | ||
for(i = 0; i < theme.domoColors.length; i += 1) { | ||
colorChoices.push({ | ||
name: 'Domo - ' + theme.domoColorKey[i], | ||
value: theme.domoColors[i] | ||
}); | ||
} | ||
if (theme.domoColors !== primaryColorSeries) { | ||
if (typeof primaryColorSeries[0] === 'object') { | ||
for(i = 0; i < primaryColorSeries.length; i += 1) { | ||
colorChoices.push({ | ||
name: 'Theme - ' + primaryColorKey[i], | ||
value: primaryColorSeries[i] | ||
}); | ||
} | ||
} | ||
} | ||
return colorChoices; | ||
}; | ||
/*---------------------------------------------------------------------------------- | ||
@@ -287,0 +313,0 @@ ----------------------------------------------------------------------------------*/ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
164807
2880
1