-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
84c8c9c
commit e045038
Showing
13 changed files
with
306 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 () {} | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
}; | ||
}); |
Oops, something went wrong.