ng-jhipster
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -27,3 +27,2 @@ "use strict"; | ||
var language_service_1 = require('./src/language/language.service'); | ||
var constants_1 = require('./src/constants'); | ||
var helper_1 = require('./src/helper'); | ||
@@ -62,10 +61,2 @@ var translate_partial_loader_1 = require('./src/language/translate-partial-loader'); | ||
NgJhipsterModule.forRoot = function (providedConfig) { | ||
if (providedConfig === void 0) { providedConfig = { | ||
sortIcon: constants_1.SORT_ICONS.icon, | ||
sortAscIcon: constants_1.SORT_ICONS.ascIcon, | ||
sortDescIcon: constants_1.SORT_ICONS.descIcon, | ||
sortIconSelector: constants_1.SORT_ICONS.iconSelector, | ||
defaultI18nLocation: constants_1.I18N.defaultLocation, | ||
defaultI18nLang: constants_1.I18N.defaultLanguage | ||
}; } | ||
helper_1.ConfigHelper.setModuleConfigOptions(providedConfig); | ||
@@ -72,0 +63,0 @@ return { |
@@ -71,3 +71,3 @@ { | ||
}, | ||
"version": "0.0.1" | ||
"version": "0.0.2" | ||
} |
"use strict"; | ||
exports.SORT_ICONS = { | ||
icon: 'fa-sort', | ||
ascIcon: 'fa-sort-asc', | ||
descIcon: 'fa-sort-desc', | ||
iconSelector: 'span.fa' | ||
exports.CONSTANTS = { | ||
sortIcon: 'fa-sort', | ||
sortAscIcon: 'fa-sort-asc', | ||
sortDescIcon: 'fa-sort-desc', | ||
sortIconSelector: 'span.fa', | ||
defaultI18nLocation: 'global', | ||
defaultI18nLang: 'en' | ||
}; | ||
exports.I18N = { | ||
defaultLocation: 'global', | ||
defaultLanguage: 'en' | ||
}; |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"SORT_ICONS":{"icon":"fa-sort","ascIcon":"fa-sort-asc","descIcon":"fa-sort-desc","iconSelector":"span.fa"},"I18N":{"defaultLocation":"global","defaultLanguage":"en"}}},{"__symbolic":"module","version":1,"metadata":{"SORT_ICONS":{"icon":"fa-sort","ascIcon":"fa-sort-asc","descIcon":"fa-sort-desc","iconSelector":"span.fa"},"I18N":{"defaultLocation":"global","defaultLanguage":"en"}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"CONSTANTS":{"sortIcon":"fa-sort","sortAscIcon":"fa-sort-asc","sortDescIcon":"fa-sort-desc","sortIconSelector":"span.fa","defaultI18nLocation":"global","defaultI18nLang":"en"}}},{"__symbolic":"module","version":1,"metadata":{"CONSTANTS":{"sortIcon":"fa-sort","sortAscIcon":"fa-sort-asc","sortDescIcon":"fa-sort-desc","sortIconSelector":"span.fa","defaultI18nLocation":"global","defaultI18nLang":"en"}}}] |
"use strict"; | ||
var constants_1 = require('./constants'); | ||
var CONFIG_OPTIONS; | ||
@@ -7,2 +8,14 @@ var ConfigHelper = (function () { | ||
ConfigHelper.setModuleConfigOptions = function (options) { | ||
function setProperty(property) { | ||
options[property] = options[property] ? options[property] : constants_1.CONSTANTS[property]; | ||
} | ||
if (!options) { | ||
options = {}; | ||
} | ||
setProperty('sortIcon'); | ||
setProperty('sortAscIcon'); | ||
setProperty('sortDescIcon'); | ||
setProperty('sortIconSelector'); | ||
setProperty('defaultI18nLocation'); | ||
setProperty('defaultI18nLang'); | ||
CONFIG_OPTIONS = options; | ||
@@ -9,0 +22,0 @@ }; |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"ConfigHelper":{"__symbolic":"class","statics":{"getConfig":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"error","message":"Reference to a local symbol","line":2,"character":4,"context":{"name":"CONFIG_OPTIONS"}}}}}}},{"__symbolic":"module","version":1,"metadata":{"ConfigHelper":{"__symbolic":"class","statics":{"getConfig":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"error","message":"Reference to a local symbol","line":2,"character":4,"context":{"name":"CONFIG_OPTIONS"}}}}}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"ConfigHelper":{"__symbolic":"class","statics":{"getConfig":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"error","message":"Reference to a local symbol","line":3,"character":4,"context":{"name":"CONFIG_OPTIONS"}}}}}}},{"__symbolic":"module","version":1,"metadata":{"ConfigHelper":{"__symbolic":"class","statics":{"getConfig":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"error","message":"Reference to a local symbol","line":3,"character":4,"context":{"name":"CONFIG_OPTIONS"}}}}}}}] |
@@ -10,2 +10,3 @@ "use strict"; | ||
this.suffix = suffix; | ||
this.locations = []; | ||
} | ||
@@ -12,0 +13,0 @@ TranslatePartialLoader.prototype.setLocations = function (locations) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
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
643428
70
5450