Skip to content

Commit

Permalink
Release 0.2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-guilbault committed Jun 17, 2015
1 parent c48c18c commit d91170b
Show file tree
Hide file tree
Showing 11 changed files with 162 additions and 13 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-materialize",
"version": "0.2.8",
"version": "0.2.9",
"description": "Aurelia integration with Materialize CSS Framework.",
"keywords": [
"aurelia",
Expand Down
34 changes: 34 additions & 0 deletions dist/amd/collapsible.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
define(['exports', 'aurelia-templating', 'aurelia-dependency-injection', 'jquery'], function (exports, _aureliaTemplating, _aureliaDependencyInjection, _jquery) {
'use strict';

exports.__esModule = true;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

var _$ = _interopRequireDefault(_jquery);

var MaterialCollapsible = (function () {
function MaterialCollapsible(element) {
_classCallCheck(this, _MaterialCollapsible);

this.element = element;
}

var _MaterialCollapsible = MaterialCollapsible;

_MaterialCollapsible.prototype.attached = function attached() {
(0, _$['default'])(this.element).collapsible({
accordion: this.accordion
});
};

MaterialCollapsible = (0, _aureliaDependencyInjection.inject)(Element)(MaterialCollapsible) || MaterialCollapsible;
MaterialCollapsible = (0, _aureliaTemplating.bindable)({ name: 'accordion', defaultValue: false })(MaterialCollapsible) || MaterialCollapsible;
MaterialCollapsible = (0, _aureliaTemplating.customAttribute)('material-collapsible')(MaterialCollapsible) || MaterialCollapsible;
return MaterialCollapsible;
})();

exports.MaterialCollapsible = MaterialCollapsible;
});
5 changes: 3 additions & 2 deletions dist/amd/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
define(['exports', 'jquery', 'materialize', './select', './side-nav', './toast', './dropdown', './validation-view-strategy'], function (exports, _jquery, _materialize, _select, _sideNav, _toast, _dropdown, _validationViewStrategy) {
define(['exports', 'jquery', 'materialize', './select', './side-nav', './toast', './dropdown', './collapsible', './validation-view-strategy'], function (exports, _jquery, _materialize, _select, _sideNav, _toast, _dropdown, _collapsible, _validationViewStrategy) {
'use strict';

exports.__esModule = true;
Expand All @@ -7,9 +7,10 @@ define(['exports', 'jquery', 'materialize', './select', './side-nav', './toast',
exports.MaterialSideNav = _sideNav.MaterialSideNav;
exports.MaterialToast = _toast.MaterialToast;
exports.MaterialDropDown = _dropdown.MaterialDropDown;
exports.MaterialCollapsible = _collapsible.MaterialCollapsible;
exports.MaterialValidationViewStrategy = _validationViewStrategy.MaterialValidationViewStrategy;

function configure(aurelia) {
aurelia.globalizeResources('./select', './side-nav', './toast', './dropdown');
aurelia.globalizeResources('./select', './side-nav', './toast', './dropdown', './collapsible');
}
});
38 changes: 38 additions & 0 deletions dist/commonjs/collapsible.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
'use strict';

exports.__esModule = true;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

var _aureliaTemplating = require('aurelia-templating');

var _aureliaDependencyInjection = require('aurelia-dependency-injection');

var _jquery = require('jquery');

var _jquery2 = _interopRequireDefault(_jquery);

var MaterialCollapsible = (function () {
function MaterialCollapsible(element) {
_classCallCheck(this, _MaterialCollapsible);

this.element = element;
}

var _MaterialCollapsible = MaterialCollapsible;

_MaterialCollapsible.prototype.attached = function attached() {
(0, _jquery2['default'])(this.element).collapsible({
accordion: this.accordion
});
};

MaterialCollapsible = (0, _aureliaDependencyInjection.inject)(Element)(MaterialCollapsible) || MaterialCollapsible;
MaterialCollapsible = (0, _aureliaTemplating.bindable)({ name: 'accordion', defaultValue: false })(MaterialCollapsible) || MaterialCollapsible;
MaterialCollapsible = (0, _aureliaTemplating.customAttribute)('material-collapsible')(MaterialCollapsible) || MaterialCollapsible;
return MaterialCollapsible;
})();

exports.MaterialCollapsible = MaterialCollapsible;
6 changes: 5 additions & 1 deletion dist/commonjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ var _dropdown = require('./dropdown');

exports.MaterialDropDown = _dropdown.MaterialDropDown;

var _collapsible = require('./collapsible');

exports.MaterialCollapsible = _collapsible.MaterialCollapsible;

var _validationViewStrategy = require('./validation-view-strategy');

exports.MaterialValidationViewStrategy = _validationViewStrategy.MaterialValidationViewStrategy;

function configure(aurelia) {
aurelia.globalizeResources('./select', './side-nav', './toast', './dropdown');
aurelia.globalizeResources('./select', './side-nav', './toast', './dropdown', './collapsible');
}
18 changes: 18 additions & 0 deletions dist/es6/collapsible.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import {customAttribute, bindable} from 'aurelia-templating';
import {inject} from 'aurelia-dependency-injection';
import $ from 'jquery';

@customAttribute('material-collapsible')
@bindable({ name: 'accordion', defaultValue: false })
@inject(Element)
export class MaterialCollapsible {
constructor(element) {
this.element = element;
}

attached() {
$(this.element).collapsible({
accordion : this.accordion
});
}
}
14 changes: 8 additions & 6 deletions dist/es6/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ export {MaterialSelect} from './select';
export {MaterialSideNav} from './side-nav';
export {MaterialToast} from './toast';
export {MaterialDropDown} from './dropdown';
export {MaterialCollapsible} from './collapsible';
export {MaterialValidationViewStrategy} from './validation-view-strategy';

export function configure(aurelia) {
aurelia.globalizeResources(
'./select',
'./side-nav',
'./toast',
'./dropdown'
);
aurelia.globalizeResources(
'./select',
'./side-nav',
'./toast',
'./dropdown',
'./collapsible'
);
}
42 changes: 42 additions & 0 deletions dist/system/collapsible.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
System.register(['aurelia-templating', 'aurelia-dependency-injection', 'jquery'], function (_export) {
'use strict';

var customAttribute, bindable, inject, $, MaterialCollapsible;

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

return {
setters: [function (_aureliaTemplating) {
customAttribute = _aureliaTemplating.customAttribute;
bindable = _aureliaTemplating.bindable;
}, function (_aureliaDependencyInjection) {
inject = _aureliaDependencyInjection.inject;
}, function (_jquery) {
$ = _jquery['default'];
}],
execute: function () {
MaterialCollapsible = (function () {
function MaterialCollapsible(element) {
_classCallCheck(this, _MaterialCollapsible);

this.element = element;
}

var _MaterialCollapsible = MaterialCollapsible;

_MaterialCollapsible.prototype.attached = function attached() {
$(this.element).collapsible({
accordion: this.accordion
});
};

MaterialCollapsible = inject(Element)(MaterialCollapsible) || MaterialCollapsible;
MaterialCollapsible = bindable({ name: 'accordion', defaultValue: false })(MaterialCollapsible) || MaterialCollapsible;
MaterialCollapsible = customAttribute('material-collapsible')(MaterialCollapsible) || MaterialCollapsible;
return MaterialCollapsible;
})();

_export('MaterialCollapsible', MaterialCollapsible);
}
};
});
6 changes: 4 additions & 2 deletions dist/system/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
System.register(['jquery', 'materialize', './select', './side-nav', './toast', './dropdown', './validation-view-strategy'], function (_export) {
System.register(['jquery', 'materialize', './select', './side-nav', './toast', './dropdown', './collapsible', './validation-view-strategy'], function (_export) {
'use strict';

_export('configure', configure);

function configure(aurelia) {
aurelia.globalizeResources('./select', './side-nav', './toast', './dropdown');
aurelia.globalizeResources('./select', './side-nav', './toast', './dropdown', './collapsible');
}

return {
Expand All @@ -16,6 +16,8 @@ System.register(['jquery', 'materialize', './select', './side-nav', './toast', '
_export('MaterialToast', _toast.MaterialToast);
}, function (_dropdown) {
_export('MaterialDropDown', _dropdown.MaterialDropDown);
}, function (_collapsible) {
_export('MaterialCollapsible', _collapsible.MaterialCollapsible);
}, function (_validationViewStrategy) {
_export('MaterialValidationViewStrategy', _validationViewStrategy.MaterialValidationViewStrategy);
}],
Expand Down
8 changes: 8 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### 0.2.9 (2015-06-17)


#### Features

* **collapsible:** add the collapsible widget ([c48c18c8](https://github.com/manuel-guilbault/aurelia-materialize/commit/c48c18c804ae0c1510002f83130e8f8ecfba5172))


### 0.2.8 (2015-06-15)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-materialize",
"version": "0.2.8",
"version": "0.2.9",
"description": "Aurelia integration with Materialize CSS Framework.",
"keywords": [
"aurelia",
Expand Down

0 comments on commit d91170b

Please sign in to comment.