-
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
c48c18c
commit d91170b
Showing
11 changed files
with
162 additions
and
13 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
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-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; | ||
}); |
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
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,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; |
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
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 @@ | ||
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 | ||
}); | ||
} | ||
} |
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
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,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); | ||
} | ||
}; | ||
}); |
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
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
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