d2-analysis
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -36,3 +36,3 @@ 'use strict'; | ||
Dimension.prototype.val = function (noError) { | ||
if (!isString(this.dimension)) { | ||
if (!(0, _d2Utilizr.isString)(this.dimension)) { | ||
this.log('(Dimension) Dimension is not a string', noError); | ||
@@ -39,0 +39,0 @@ return null; |
@@ -16,2 +16,4 @@ 'use strict'; | ||
var _DateManager = require('../manager/DateManager.js'); | ||
var Layout = exports.Layout = undefined; | ||
@@ -41,5 +43,5 @@ | ||
t.completedOnly = (0, _d2Utilizr.isBoolean)(config.completedOnly) ? config.completedOnly : false; | ||
t.displayDensity = (0, _d2Utilizr.isString)(config.displayDensity) && !isEmpty(config.displayDensity) ? config.displayDensity : OptionConf.getDisplayDensity('normal').id; | ||
t.fontSize = (0, _d2Utilizr.isString)(config.fontSize) && !isEmpty(config.fontSize) ? config.fontSize : OptionConf.getFontSize('normal').id; | ||
t.digitGroupSeparator = (0, _d2Utilizr.isString)(config.digitGroupSeparator) && !isEmpty(config.digitGroupSeparator) ? config.digitGroupSeparator : OptionConf.getDigitGroupSeparator('space').id; | ||
t.displayDensity = (0, _d2Utilizr.isString)(config.displayDensity) && !(0, _d2Utilizr.isEmpty)(config.displayDensity) ? config.displayDensity : OptionConf.getDisplayDensity('normal').id; | ||
t.fontSize = (0, _d2Utilizr.isString)(config.fontSize) && !(0, _d2Utilizr.isEmpty)(config.fontSize) ? config.fontSize : OptionConf.getFontSize('normal').id; | ||
t.digitGroupSeparator = (0, _d2Utilizr.isString)(config.digitGroupSeparator) && !(0, _d2Utilizr.isEmpty)(config.digitGroupSeparator) ? config.digitGroupSeparator : OptionConf.getDigitGroupSeparator('space').id; | ||
@@ -92,4 +94,4 @@ t.legendSet = new _Record.Record(config.legendSet).val(true); | ||
// relative period date | ||
if (DateManager.getYYYYMMDD(config.relativePeriodDate)) { | ||
t.relativePeriodDate = DateManager.getYYYYMMDD(config.relativePeriodDate); | ||
if (_DateManager.DateManager.getYYYYMMDD(config.relativePeriodDate)) { | ||
t.relativePeriodDate = _DateManager.DateManager.getYYYYMMDD(config.relativePeriodDate); | ||
} | ||
@@ -96,0 +98,0 @@ |
@@ -29,3 +29,3 @@ 'use strict'; | ||
Record.prototype.val = function (noError) { | ||
if (!isString(this.id)) { | ||
if (!(0, _d2Utilizr.isString)(this.id)) { | ||
this.log('(Record) Id is not a string', noError); | ||
@@ -32,0 +32,0 @@ return null; |
@@ -8,5 +8,7 @@ 'use strict'; | ||
exports.DateManager = DateManager = function () {}; | ||
exports.DateManager = DateManager = function () { | ||
this.klass = DateManager; | ||
}; | ||
DateManager.prototype.getYYYYMMDD = function (param) { | ||
DateManager.getYYYYMMDD = function (param) { | ||
if (!(Object.prototype.toString.call(param) === '[object Date]' && param.toString() !== 'Invalid date')) { | ||
@@ -13,0 +15,0 @@ return null; |
{ | ||
"name": "d2-analysis", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "", | ||
@@ -22,3 +22,3 @@ "main": "index.js", | ||
"jquery": "2.1.4", | ||
"d2-utilizr": "0.0.10" | ||
"d2-utilizr": "0.0.11" | ||
}, | ||
@@ -25,0 +25,0 @@ "devDependencies": { |
@@ -1,2 +0,2 @@ | ||
import {isObject, arrayFrom, arrayContains, arrayPluck, arrayUnique} from 'd2-utilizr'; | ||
import {isString, isObject, arrayFrom, arrayContains, arrayPluck, arrayUnique} from 'd2-utilizr'; | ||
import {Record} from './Record.js'; | ||
@@ -3,0 +3,0 @@ |
@@ -1,5 +0,6 @@ | ||
import {isString, isNumber, isBoolean, isObject, isDefined, arrayFrom, arrayContains, arrayClean, arrayPluck} from 'd2-utilizr'; | ||
import {isString, isNumber, isBoolean, isObject, isDefined, isEmpty, arrayFrom, arrayContains, arrayClean, arrayPluck} from 'd2-utilizr'; | ||
import {Axis} from './Axis.js'; | ||
import {Record} from './Record.js'; | ||
import {Request} from './Request.js'; | ||
import {DateManager} from '../manager/DateManager.js'; | ||
@@ -6,0 +7,0 @@ export var Layout; |
@@ -1,2 +0,2 @@ | ||
import {isObject} from 'd2-utilizr'; | ||
import {isString, isObject} from 'd2-utilizr'; | ||
@@ -3,0 +3,0 @@ export var Record; |
export var DateManager; | ||
DateManager = function() {}; | ||
DateManager = function() { | ||
this.klass = DateManager; | ||
}; | ||
DateManager.prototype.getYYYYMMDD = function(param) { | ||
DateManager.getYYYYMMDD = function(param) { | ||
if (!(Object.prototype.toString.call(param) === '[object Date]' && param.toString() !== 'Invalid date')) { | ||
@@ -7,0 +9,0 @@ return null; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
349191
4705
+ Addedd2-utilizr@0.0.11(transitive)
- Removedd2-utilizr@0.0.10(transitive)
Updatedd2-utilizr@0.0.11