Skip to content

Commit

Permalink
defaults build
Browse files Browse the repository at this point in the history
  • Loading branch information
Hector Romero committed Feb 2, 2017
1 parent c698ad4 commit d6e634d
Show file tree
Hide file tree
Showing 36 changed files with 268 additions and 185 deletions.
2 changes: 1 addition & 1 deletion dist/amd/accordion/aubs-accordion-group.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ define(["exports", "aurelia-framework", "../utils/bootstrap-options", "velocity-
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "panelClass", [_aureliaFramework.bindable], {
enumerable: true,
initializer: function initializer() {
return 'panel-default';
return _bootstrapOptions.bootstrapOptions.accordionGroupPanelClass;
}
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "isOpen", [_dec2], {
enumerable: true,
Expand Down
2 changes: 1 addition & 1 deletion dist/amd/accordion/aubs-accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ define(["exports", "aurelia-framework", "../utils/bootstrap-options"], function
}(), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "closeOthers", [_aureliaFramework.bindable], {
enumerable: true,
initializer: function initializer() {
return true;
return _bootstrapOptions.bootstrapOptions.accordionCloseOthers;
}
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "groups", [_dec2], {
enumerable: true,
Expand Down
4 changes: 2 additions & 2 deletions dist/amd/buttons/aubs-btn-loading.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
define(['exports', 'aurelia-framework'], function (exports, _aureliaFramework) {
define(['exports', 'aurelia-framework', '../utils/bootstrap-options'], function (exports, _aureliaFramework, _bootstrapOptions) {
'use strict';

Object.defineProperty(exports, "__esModule", {
Expand Down Expand Up @@ -128,7 +128,7 @@ define(['exports', 'aurelia-framework'], function (exports, _aureliaFramework) {
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'text', [_aureliaFramework.bindable], {
enumerable: true,
initializer: function initializer() {
return "Loading...";
return _bootstrapOptions.bootstrapOptions.btnLoadingText;
}
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'disabled', [_aureliaFramework.bindable], {
enumerable: true,
Expand Down
2 changes: 1 addition & 1 deletion dist/amd/dropdown/aubs-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ define(["exports", "aurelia-framework", "../utils/bootstrap-options"], function
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "autoClose", [_aureliaFramework.bindable], {
enumerable: true,
initializer: function initializer() {
return 'always';
return _bootstrapOptions.bootstrapOptions.dropdownAutoClose;
}
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "onToggle", [_aureliaFramework.bindable], {
enumerable: true,
Expand Down
62 changes: 31 additions & 31 deletions dist/amd/pagination/aubs-pagination.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
define(['exports', 'aurelia-framework'], function (exports, _aureliaFramework) {
'use strict';
define(["exports", "aurelia-framework", "../utils/bootstrap-options"], function (exports, _aureliaFramework, _bootstrapOptions) {
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
Expand Down Expand Up @@ -61,27 +61,27 @@ define(['exports', 'aurelia-framework'], function (exports, _aureliaFramework) {
function AubsPaginationCustomElement() {
_classCallCheck(this, AubsPaginationCustomElement);

_initDefineProp(this, 'currentPage', _descriptor, this);
_initDefineProp(this, "currentPage", _descriptor, this);

_initDefineProp(this, 'pageSize', _descriptor2, this);
_initDefineProp(this, "pageSize", _descriptor2, this);

_initDefineProp(this, 'totalItems', _descriptor3, this);
_initDefineProp(this, "totalItems", _descriptor3, this);

_initDefineProp(this, 'hideSinglePage', _descriptor4, this);
_initDefineProp(this, "hideSinglePage", _descriptor4, this);

_initDefineProp(this, 'paginationSize', _descriptor5, this);
_initDefineProp(this, "paginationSize", _descriptor5, this);

_initDefineProp(this, 'boundaryLinks', _descriptor6, this);
_initDefineProp(this, "boundaryLinks", _descriptor6, this);

_initDefineProp(this, 'firstText', _descriptor7, this);
_initDefineProp(this, "firstText", _descriptor7, this);

_initDefineProp(this, 'lastText', _descriptor8, this);
_initDefineProp(this, "lastText", _descriptor8, this);

_initDefineProp(this, 'directionLinks', _descriptor9, this);
_initDefineProp(this, "directionLinks", _descriptor9, this);

_initDefineProp(this, 'previousText', _descriptor10, this);
_initDefineProp(this, "previousText", _descriptor10, this);

_initDefineProp(this, 'nextText', _descriptor11, this);
_initDefineProp(this, "nextText", _descriptor11, this);

this.totalPages = 1;
this.displayPages = [];
Expand Down Expand Up @@ -201,52 +201,52 @@ define(['exports', 'aurelia-framework'], function (exports, _aureliaFramework) {
};

return AubsPaginationCustomElement;
}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, 'currentPage', [_dec], {
}(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, "currentPage", [_dec], {
enumerable: true,
initializer: null
}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, 'pageSize', [_aureliaFramework.bindable], {
}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, "pageSize", [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'totalItems', [_aureliaFramework.bindable], {
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, "totalItems", [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, 'hideSinglePage', [_aureliaFramework.bindable], {
}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, "hideSinglePage", [_aureliaFramework.bindable], {
enumerable: true,
initializer: function initializer() {
return true;
return _bootstrapOptions.bootstrapOptions.paginationHideSinglePage;
}
}), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, 'paginationSize', [_aureliaFramework.bindable], {
}), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, "paginationSize", [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, 'boundaryLinks', [_aureliaFramework.bindable], {
}), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, "boundaryLinks", [_aureliaFramework.bindable], {
enumerable: true,
initializer: function initializer() {
return false;
return _bootstrapOptions.bootstrapOptions.paginationBoundaryLinks;
}
}), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, 'firstText', [_aureliaFramework.bindable], {
}), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, "firstText", [_aureliaFramework.bindable], {
enumerable: true,
initializer: function initializer() {
return 'First';
return _bootstrapOptions.bootstrapOptions.paginationFirstText;
}
}), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, 'lastText', [_aureliaFramework.bindable], {
}), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, "lastText", [_aureliaFramework.bindable], {
enumerable: true,
initializer: function initializer() {
return 'Last';
return _bootstrapOptions.bootstrapOptions.paginationLastText;
}
}), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, 'directionLinks', [_aureliaFramework.bindable], {
}), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, "directionLinks", [_aureliaFramework.bindable], {
enumerable: true,
initializer: function initializer() {
return true;
return _bootstrapOptions.bootstrapOptions.paginationDirectionLinks;
}
}), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, 'previousText', [_aureliaFramework.bindable], {
}), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, "previousText", [_aureliaFramework.bindable], {
enumerable: true,
initializer: function initializer() {
return '<';
return _bootstrapOptions.bootstrapOptions.paginationPreviousText;
}
}), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, 'nextText', [_aureliaFramework.bindable], {
}), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, "nextText", [_aureliaFramework.bindable], {
enumerable: true,
initializer: function initializer() {
return '>';
return _bootstrapOptions.bootstrapOptions.paginationNextText;
}
})), _class));
});
4 changes: 2 additions & 2 deletions dist/amd/popover/aubs-popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ define(["exports", "aurelia-framework", "../utils/tooltip-service", "../utils/bo
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "position", [_aureliaFramework.bindable], {
enumerable: true,
initializer: function initializer() {
return 'top';
return _bootstrapOptions.bootstrapOptions.popoverPosition;
}
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "disabled", [_aureliaFramework.bindable], {
enumerable: true,
Expand All @@ -328,7 +328,7 @@ define(["exports", "aurelia-framework", "../utils/tooltip-service", "../utils/bo
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "trigger", [_aureliaFramework.bindable], {
enumerable: true,
initializer: function initializer() {
return 'mouseover';
return _bootstrapOptions.bootstrapOptions.popoverTrigger;
}
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "customPopover", [_aureliaFramework.bindable], {
enumerable: true,
Expand Down
8 changes: 4 additions & 4 deletions dist/amd/tabs/aubs-tabset.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
define(["exports", "aurelia-framework"], function (exports, _aureliaFramework) {
define(["exports", "aurelia-framework", "../utils/bootstrap-options"], function (exports, _aureliaFramework, _bootstrapOptions) {
"use strict";

Object.defineProperty(exports, "__esModule", {
Expand Down Expand Up @@ -74,7 +74,7 @@ define(["exports", "aurelia-framework"], function (exports, _aureliaFramework) {
this.tabsClass = this.type === 'pills' ? 'nav-pills' : 'nav-tabs';
};

AubsTabsetCustomElement.prototype.activeChanged = function activeChanged(newValue, oldValue) {
AubsTabsetCustomElement.prototype.activeChanged = function activeChanged(newValue) {

if (!this.tabs || this.tabs.length == 0) {
return;
Expand Down Expand Up @@ -136,12 +136,12 @@ define(["exports", "aurelia-framework"], function (exports, _aureliaFramework) {
}(), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "type", [_aureliaFramework.bindable], {
enumerable: true,
initializer: function initializer() {
return 'tabs';
return _bootstrapOptions.bootstrapOptions.tabsetType;
}
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "vertical", [_aureliaFramework.bindable], {
enumerable: true,
initializer: function initializer() {
return false;
return _bootstrapOptions.bootstrapOptions.tabsetVertical;
}
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "active", [_dec2], {
enumerable: true,
Expand Down
4 changes: 2 additions & 2 deletions dist/amd/tooltip/aubs-tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ define(['exports', 'aurelia-framework', '../utils/tooltip-service', '../utils/bo
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'position', [_aureliaFramework.bindable], {
enumerable: true,
initializer: function initializer() {
return 'top';
return _bootstrapOptions.bootstrapOptions.tooltipPosition;
}
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'disabled', [_aureliaFramework.bindable], {
enumerable: true,
Expand All @@ -269,7 +269,7 @@ define(['exports', 'aurelia-framework', '../utils/tooltip-service', '../utils/bo
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'trigger', [_aureliaFramework.bindable], {
enumerable: true,
initializer: function initializer() {
return 'mouseover';
return _bootstrapOptions.bootstrapOptions.tooltipTrigger;
}
})), _class2)) || _class);
});
23 changes: 20 additions & 3 deletions dist/amd/utils/bootstrap-options.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,27 @@
define(["exports"], function (exports) {
"use strict";
define(['exports'], function (exports) {
'use strict';

Object.defineProperty(exports, "__esModule", {
value: true
});
var bootstrapOptions = exports.bootstrapOptions = {
version: 3
version: 3,
accordionCloseOthers: true,
accordionGroupPanelClass: 'panel-default',
btnLoadingText: 'Loading...',
dropdownAutoClose: 'always',
paginationBoundaryLinks: false,
paginationDirectionLinks: true,
paginationFirstText: 'First',
paginationHideSinglePage: true,
paginationLastText: 'Last',
paginationNextText: '>',
paginationPreviousText: '<',
popoverPosition: 'top',
popoverTrigger: 'mouseover',
tabsetType: 'tabs',
tabsetVertical: false,
tooltipPosition: 'top',
tooltipTrigger: 'mouseover'
};
});
2 changes: 1 addition & 1 deletion dist/commonjs/accordion/aubs-accordion-group.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ var AubsAccordionGroupCustomElement = exports.AubsAccordionGroupCustomElement =
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "panelClass", [_aureliaFramework.bindable], {
enumerable: true,
initializer: function initializer() {
return 'panel-default';
return _bootstrapOptions.bootstrapOptions.accordionGroupPanelClass;
}
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "isOpen", [_dec2], {
enumerable: true,
Expand Down
2 changes: 1 addition & 1 deletion dist/commonjs/accordion/aubs-accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ var AubsAccordionCustomElement = exports.AubsAccordionCustomElement = (_dec = (0
}(), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "closeOthers", [_aureliaFramework.bindable], {
enumerable: true,
initializer: function initializer() {
return true;
return _bootstrapOptions.bootstrapOptions.accordionCloseOthers;
}
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "groups", [_dec2], {
enumerable: true,
Expand Down
4 changes: 3 additions & 1 deletion dist/commonjs/buttons/aubs-btn-loading.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ var _dec, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor

var _aureliaFramework = require('aurelia-framework');

var _bootstrapOptions = require('../utils/bootstrap-options');

function _initDefineProp(target, property, descriptor, context) {
if (!descriptor) return;
Object.defineProperty(target, property, {
Expand Down Expand Up @@ -125,7 +127,7 @@ var AubsBtnLoadingCustomAttribute = exports.AubsBtnLoadingCustomAttribute = (_de
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'text', [_aureliaFramework.bindable], {
enumerable: true,
initializer: function initializer() {
return "Loading...";
return _bootstrapOptions.bootstrapOptions.btnLoadingText;
}
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'disabled', [_aureliaFramework.bindable], {
enumerable: true,
Expand Down
2 changes: 1 addition & 1 deletion dist/commonjs/dropdown/aubs-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ var AubsDropdownCustomAttribute = exports.AubsDropdownCustomAttribute = (_dec =
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "autoClose", [_aureliaFramework.bindable], {
enumerable: true,
initializer: function initializer() {
return 'always';
return _bootstrapOptions.bootstrapOptions.dropdownAutoClose;
}
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "onToggle", [_aureliaFramework.bindable], {
enumerable: true,
Expand Down
Loading

0 comments on commit d6e634d

Please sign in to comment.