@splunk/dashboard-definition
Advanced tools
Comparing version 12.0.0 to 13.0.0
@@ -186,2 +186,7 @@ /*! | ||
}, | ||
defaults: { | ||
patternProperties: _babel_runtime_corejs2_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, keyPattern, { | ||
$ref: '#/definitions/Default' | ||
}) | ||
}, | ||
layout: { | ||
@@ -289,2 +294,11 @@ $ref: '#/definitions/Layout' | ||
}, | ||
Default: { | ||
type: 'object', | ||
properties: { | ||
options: { | ||
type: 'object' | ||
} | ||
}, | ||
required: ['options'] | ||
}, | ||
EventHandler: { | ||
@@ -1075,2 +1089,14 @@ type: 'object', | ||
/** | ||
* Fetch the default options for a datasource by id | ||
* @param {*} dsId | ||
* @returns {Object} The datasource default options | ||
*/ | ||
}, { | ||
key: "getDataSourceDefaultOptions", | ||
value: function getDataSourceDefaultOptions(dsId) { | ||
var dataSourceType = lodash_get__WEBPACK_IMPORTED_MODULE_10___default()(this.getDataSource(dsId), 'type'); | ||
return lodash_get__WEBPACK_IMPORTED_MODULE_10___default()(this.definition, ['defaults', dataSourceType, 'options']) || {}; | ||
} | ||
/** | ||
* Get the type for the given visualization | ||
@@ -1077,0 +1103,0 @@ * @method getVisualizationType |
@@ -171,2 +171,7 @@ /*! | ||
}, | ||
defaults: { | ||
patternProperties: _babel_runtime_corejs2_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, keyPattern, { | ||
$ref: '#/definitions/Default' | ||
}) | ||
}, | ||
layout: { | ||
@@ -274,2 +279,11 @@ $ref: '#/definitions/Layout' | ||
}, | ||
Default: { | ||
type: 'object', | ||
properties: { | ||
options: { | ||
type: 'object' | ||
} | ||
}, | ||
required: ['options'] | ||
}, | ||
EventHandler: { | ||
@@ -276,0 +290,0 @@ type: 'object', |
@@ -6,3 +6,3 @@ { | ||
"author": "Splunk", | ||
"version": "12.0.0", | ||
"version": "13.0.0", | ||
"scripts": { | ||
@@ -27,4 +27,4 @@ "build": "NODE_ENV=production webpack --config ./webpack.config.js --bail", | ||
"@babel/core": "^7.5.5", | ||
"@splunk/dashboard-build-tools": "12.0.0", | ||
"jest": "^24.1.0", | ||
"@splunk/dashboard-build-tools": "13.0.0", | ||
"jest": "^25.1.0", | ||
"webpack": "^4.29.6", | ||
@@ -31,0 +31,0 @@ "webpack-cli": "^3.2.3", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
160309
1767