Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@domoinc/da-theme2

Package Overview
Dependencies
Maintainers
8
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@domoinc/da-theme2 - npm Package Compare versions

Comparing version 2.6.0 to 2.7.0

2

bower.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc