Skip to content

Commit

Permalink
release 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-guilbault committed May 30, 2015
1 parent 84c8c9c commit e045038
Show file tree
Hide file tree
Showing 13 changed files with 306 additions and 233 deletions.
12 changes: 12 additions & 0 deletions dist/amd/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
define(['exports', './select', './side-nav'], function (exports, _select, _sideNav) {
'use strict';

exports.__esModule = true;
exports.configure = configure;
exports.MaterializeSelect = _select.MaterializeSelect;
exports.MaterializeSideNav = _sideNav.MaterializeSideNav;

function configure(aurelia) {
aurelia.globalizeResources('./select', './side-nav');
}
});
31 changes: 31 additions & 0 deletions dist/amd/select.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
define(['exports', 'aurelia-framework'], function (exports, _aureliaFramework) {
'use strict';

exports.__esModule = true;

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

var MaterializeSelect = (function () {
function MaterializeSelect(element) {
_classCallCheck(this, _MaterializeSelect);

this.element = element;
}

var _MaterializeSelect = MaterializeSelect;

_MaterializeSelect.prototype.attached = function attached() {
$(this.element).material_select();
};

_MaterializeSelect.prototype.detached = function detached() {
$(this.element).material_select('destroy');
};

MaterializeSelect = (0, _aureliaFramework.inject)(Element)(MaterializeSelect) || MaterializeSelect;
MaterializeSelect = (0, _aureliaFramework.customAttribute)('materialize-select')(MaterializeSelect) || MaterializeSelect;
return MaterializeSelect;
})();

exports.MaterializeSelect = MaterializeSelect;
});
34 changes: 34 additions & 0 deletions dist/amd/side-nav.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
define(['exports', 'aurelia-framework'], function (exports, _aureliaFramework) {
'use strict';

exports.__esModule = true;

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

var MaterializeSideNav = (function () {
function MaterializeSideNav(element) {
_classCallCheck(this, _MaterializeSideNav);

this.element = element;
}

var _MaterializeSideNav = MaterializeSideNav;

_MaterializeSideNav.prototype.attached = function attached() {
$(this.element).sideNav({
menuWidth: this.menuWidth,
edge: this.edge,
closeOnClick: this.closeOnClick
});
};

MaterializeSideNav = (0, _aureliaFramework.bindable)({ name: 'closeOnClick', defaultValue: true })(MaterializeSideNav) || MaterializeSideNav;
MaterializeSideNav = (0, _aureliaFramework.bindable)('edge')(MaterializeSideNav) || MaterializeSideNav;
MaterializeSideNav = (0, _aureliaFramework.bindable)('menuWidth')(MaterializeSideNav) || MaterializeSideNav;
MaterializeSideNav = (0, _aureliaFramework.inject)(Element)(MaterializeSideNav) || MaterializeSideNav;
MaterializeSideNav = (0, _aureliaFramework.customAttribute)('materialize-side-nav')(MaterializeSideNav) || MaterializeSideNav;
return MaterializeSideNav;
})();

exports.MaterializeSideNav = MaterializeSideNav;
});
16 changes: 16 additions & 0 deletions dist/commonjs/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
'use strict';

exports.__esModule = true;
exports.configure = configure;

var _select = require('./select');

exports.MaterializeSelect = _select.MaterializeSelect;

var _sideNav = require('./side-nav');

exports.MaterializeSideNav = _sideNav.MaterializeSideNav;

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

exports.__esModule = true;

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

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

var MaterializeSelect = (function () {
function MaterializeSelect(element) {
_classCallCheck(this, _MaterializeSelect);

this.element = element;
}

var _MaterializeSelect = MaterializeSelect;

_MaterializeSelect.prototype.attached = function attached() {
$(this.element).material_select();
};

_MaterializeSelect.prototype.detached = function detached() {
$(this.element).material_select('destroy');
};

MaterializeSelect = (0, _aureliaFramework.inject)(Element)(MaterializeSelect) || MaterializeSelect;
MaterializeSelect = (0, _aureliaFramework.customAttribute)('materialize-select')(MaterializeSelect) || MaterializeSelect;
return MaterializeSelect;
})();

exports.MaterializeSelect = MaterializeSelect;
34 changes: 34 additions & 0 deletions dist/commonjs/side-nav.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
'use strict';

exports.__esModule = true;

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

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

var MaterializeSideNav = (function () {
function MaterializeSideNav(element) {
_classCallCheck(this, _MaterializeSideNav);

this.element = element;
}

var _MaterializeSideNav = MaterializeSideNav;

_MaterializeSideNav.prototype.attached = function attached() {
$(this.element).sideNav({
menuWidth: this.menuWidth,
edge: this.edge,
closeOnClick: this.closeOnClick
});
};

MaterializeSideNav = (0, _aureliaFramework.bindable)({ name: 'closeOnClick', defaultValue: true })(MaterializeSideNav) || MaterializeSideNav;
MaterializeSideNav = (0, _aureliaFramework.bindable)('edge')(MaterializeSideNav) || MaterializeSideNav;
MaterializeSideNav = (0, _aureliaFramework.bindable)('menuWidth')(MaterializeSideNav) || MaterializeSideNav;
MaterializeSideNav = (0, _aureliaFramework.inject)(Element)(MaterializeSideNav) || MaterializeSideNav;
MaterializeSideNav = (0, _aureliaFramework.customAttribute)('materialize-side-nav')(MaterializeSideNav) || MaterializeSideNav;
return MaterializeSideNav;
})();

exports.MaterializeSideNav = MaterializeSideNav;
9 changes: 9 additions & 0 deletions dist/es6/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export {MaterializeSelect} from './select';
export {MaterializeSideNav} from './side-nav';

export function configure(aurelia) {
aurelia.globalizeResources(
'./select',
'./side-nav'
);
}
17 changes: 17 additions & 0 deletions dist/es6/select.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import {customAttribute, inject} from 'aurelia-framework';

@customAttribute('materialize-select')
@inject(Element)
export class MaterializeSelect {
constructor(element) {
this.element = element;
}

attached() {
$(this.element).material_select();
}

detached() {
$(this.element).material_select('destroy');
}
}
20 changes: 20 additions & 0 deletions dist/es6/side-nav.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import {customAttribute, inject, bindable} from 'aurelia-framework';

@customAttribute('materialize-side-nav')
@inject(Element)
@bindable('menuWidth')
@bindable('edge')
@bindable({ name: 'closeOnClick', defaultValue: true })
export class MaterializeSideNav {
constructor(element) {
this.element = element;
}

attached() {
$(this.element).sideNav({
menuWidth: this.menuWidth,
edge: this.edge,
closeOnClick: this.closeOnClick
});
}
}
18 changes: 18 additions & 0 deletions dist/system/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
System.register(['./select', './side-nav'], function (_export) {
'use strict';

_export('configure', configure);

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

return {
setters: [function (_select) {
_export('MaterializeSelect', _select.MaterializeSelect);
}, function (_sideNav) {
_export('MaterializeSideNav', _sideNav.MaterializeSideNav);
}],
execute: function () {}
};
});
39 changes: 39 additions & 0 deletions dist/system/select.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
System.register(['aurelia-framework'], function (_export) {
'use strict';

var customAttribute, inject, MaterializeSelect;

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

return {
setters: [function (_aureliaFramework) {
customAttribute = _aureliaFramework.customAttribute;
inject = _aureliaFramework.inject;
}],
execute: function () {
MaterializeSelect = (function () {
function MaterializeSelect(element) {
_classCallCheck(this, _MaterializeSelect);

this.element = element;
}

var _MaterializeSelect = MaterializeSelect;

_MaterializeSelect.prototype.attached = function attached() {
$(this.element).material_select();
};

_MaterializeSelect.prototype.detached = function detached() {
$(this.element).material_select('destroy');
};

MaterializeSelect = inject(Element)(MaterializeSelect) || MaterializeSelect;
MaterializeSelect = customAttribute('materialize-select')(MaterializeSelect) || MaterializeSelect;
return MaterializeSelect;
})();

_export('MaterializeSelect', MaterializeSelect);
}
};
});
43 changes: 43 additions & 0 deletions dist/system/side-nav.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
System.register(['aurelia-framework'], function (_export) {
'use strict';

var customAttribute, inject, bindable, MaterializeSideNav;

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

return {
setters: [function (_aureliaFramework) {
customAttribute = _aureliaFramework.customAttribute;
inject = _aureliaFramework.inject;
bindable = _aureliaFramework.bindable;
}],
execute: function () {
MaterializeSideNav = (function () {
function MaterializeSideNav(element) {
_classCallCheck(this, _MaterializeSideNav);

this.element = element;
}

var _MaterializeSideNav = MaterializeSideNav;

_MaterializeSideNav.prototype.attached = function attached() {
$(this.element).sideNav({
menuWidth: this.menuWidth,
edge: this.edge,
closeOnClick: this.closeOnClick
});
};

MaterializeSideNav = bindable({ name: 'closeOnClick', defaultValue: true })(MaterializeSideNav) || MaterializeSideNav;
MaterializeSideNav = bindable('edge')(MaterializeSideNav) || MaterializeSideNav;
MaterializeSideNav = bindable('menuWidth')(MaterializeSideNav) || MaterializeSideNav;
MaterializeSideNav = inject(Element)(MaterializeSideNav) || MaterializeSideNav;
MaterializeSideNav = customAttribute('materialize-side-nav')(MaterializeSideNav) || MaterializeSideNav;
return MaterializeSideNav;
})();

_export('MaterializeSideNav', MaterializeSideNav);
}
};
});
Loading

0 comments on commit e045038

Please sign in to comment.