Skip to content

Commit

Permalink
chore(all): dist build
Browse files Browse the repository at this point in the history
  • Loading branch information
Thanood committed Mar 15, 2016
1 parent 2cb0f8c commit b73729e
Show file tree
Hide file tree
Showing 14 changed files with 267 additions and 289 deletions.
41 changes: 20 additions & 21 deletions dist/amd/aurelia-materialize-bridge.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
declare module 'aurelia-materialize-bridge' {
import 'materialize';
import * as LogManager from 'aurelia-logging';
import { Aurelia } from 'aurelia-framework';
import { bindable, customAttribute, customElement, inlineView } from 'aurelia-templating';
import { inject } from 'aurelia-dependency-injection';
import { bindingMode, ObserverLocator } from 'aurelia-binding';
Expand Down Expand Up @@ -75,8 +74,7 @@ declare module 'aurelia-materialize-bridge' {
*/
withoutGlobalResources(): ConfigBuilder;
}
export function configure(aurelia: Aurelia, configCallback?: ((builder: ConfigBuilder) => void)): any;
export * from 'aurelia-materialize-bridge/toast/toastService';
export function configure(aurelia: any, configCallback: any): any;
export class MdBadge {
isNew: any;
constructor(element: any);
Expand All @@ -89,17 +87,6 @@ declare module 'aurelia-materialize-bridge' {
attached(): any;
detached(): any;
}

// taken from: https://github.com/heruan/aurelia-breadcrumbs
export class MdBreadcrumbs {
constructor(element: any, router: any);
navigate(navigationInstruction: any): any;
}

// this.router.navigateToRoute(navigationInstruction.config.name);
export class InstructionFilterValueConverter {
toView(navigationInstructions: any): any;
}
export class MdButton {
disabled: any;
flat: any;
Expand All @@ -111,6 +98,17 @@ declare module 'aurelia-materialize-bridge' {
disabledChanged(newValue: any): any;
flatChanged(newValue: any): any;
}

// taken from: https://github.com/heruan/aurelia-breadcrumbs
export class MdBreadcrumbs {
constructor(element: any, router: any);
navigate(navigationInstruction: any): any;
}

// this.router.navigateToRoute(navigationInstruction.config.name);
export class InstructionFilterValueConverter {
toView(navigationInstructions: any): any;
}
export class MdCard {
mdImage: any;
mdReveal: any;
Expand Down Expand Up @@ -362,14 +360,7 @@ declare module 'aurelia-materialize-bridge' {
mdValue: any;
constructor(element: any);
}
export class MdScrollSpy {
target: any;
constructor(element: any);
attached(): any;
detached(): any;
}

// destroy handler not available
/* eslint no-new-func:0 */
export class ScrollfirePatch {
patched: any;
Expand All @@ -385,6 +376,14 @@ declare module 'aurelia-materialize-bridge' {
constructor(element: any, scrollfirePatch: any);
attached(): any;
}
export class MdScrollSpy {
target: any;
constructor(element: any);
attached(): any;
detached(): any;
}

// destroy handler not available
export class MdSelect {
constructor(element: any, logManager: any, observerLocator: any);
attached(): any;
Expand Down
4 changes: 2 additions & 2 deletions dist/amd/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
define(['exports', 'materialize', 'aurelia-framework', './config-builder', 'aurelia-materialize-bridge/toast/toastService'], function (exports, _materialize, _aureliaFramework, _configBuilder, _aureliaMaterializeBridgeToastToastService) {
define(['exports', 'materialize', './config-builder', './toast/toastService'], function (exports, _materialize, _configBuilder, _toastToastService) {
'use strict';

exports.__esModule = true;
Expand All @@ -20,5 +20,5 @@ define(['exports', 'materialize', 'aurelia-framework', './config-builder', 'aure
}
}

_defaults(exports, _interopExportWildcard(_aureliaMaterializeBridgeToastToastService, _defaults));
_defaults(exports, _interopExportWildcard(_toastToastService, _defaults));
});
41 changes: 20 additions & 21 deletions dist/aurelia-materialize-bridge.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
declare module 'aurelia-materialize-bridge' {
import 'materialize';
import * as LogManager from 'aurelia-logging';
import { Aurelia } from 'aurelia-framework';
import { bindable, customAttribute, customElement, inlineView } from 'aurelia-templating';
import { inject } from 'aurelia-dependency-injection';
import { bindingMode, ObserverLocator } from 'aurelia-binding';
Expand Down Expand Up @@ -75,8 +74,7 @@ declare module 'aurelia-materialize-bridge' {
*/
withoutGlobalResources(): ConfigBuilder;
}
export function configure(aurelia: Aurelia, configCallback?: ((builder: ConfigBuilder) => void)): any;
export * from 'aurelia-materialize-bridge/toast/toastService';
export function configure(aurelia: any, configCallback: any): any;
export class MdBadge {
isNew: any;
constructor(element: any);
Expand All @@ -89,17 +87,6 @@ declare module 'aurelia-materialize-bridge' {
attached(): any;
detached(): any;
}

// taken from: https://github.com/heruan/aurelia-breadcrumbs
export class MdBreadcrumbs {
constructor(element: any, router: any);
navigate(navigationInstruction: any): any;
}

// this.router.navigateToRoute(navigationInstruction.config.name);
export class InstructionFilterValueConverter {
toView(navigationInstructions: any): any;
}
export class MdButton {
disabled: any;
flat: any;
Expand All @@ -111,6 +98,17 @@ declare module 'aurelia-materialize-bridge' {
disabledChanged(newValue: any): any;
flatChanged(newValue: any): any;
}

// taken from: https://github.com/heruan/aurelia-breadcrumbs
export class MdBreadcrumbs {
constructor(element: any, router: any);
navigate(navigationInstruction: any): any;
}

// this.router.navigateToRoute(navigationInstruction.config.name);
export class InstructionFilterValueConverter {
toView(navigationInstructions: any): any;
}
export class MdCard {
mdImage: any;
mdReveal: any;
Expand Down Expand Up @@ -362,14 +360,7 @@ declare module 'aurelia-materialize-bridge' {
mdValue: any;
constructor(element: any);
}
export class MdScrollSpy {
target: any;
constructor(element: any);
attached(): any;
detached(): any;
}

// destroy handler not available
/* eslint no-new-func:0 */
export class ScrollfirePatch {
patched: any;
Expand All @@ -385,6 +376,14 @@ declare module 'aurelia-materialize-bridge' {
constructor(element: any, scrollfirePatch: any);
attached(): any;
}
export class MdScrollSpy {
target: any;
constructor(element: any);
attached(): any;
detached(): any;
}

// destroy handler not available
export class MdSelect {
constructor(element: any, logManager: any, observerLocator: any);
attached(): any;
Expand Down
99 changes: 49 additions & 50 deletions dist/aurelia-materialize-bridge.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'materialize';
import * as LogManager from 'aurelia-logging';
import {Aurelia} from 'aurelia-framework';
import {bindable,customAttribute,customElement,inlineView} from 'aurelia-templating';
import {inject} from 'aurelia-dependency-injection';
import {bindingMode,ObserverLocator} from 'aurelia-binding';
Expand Down Expand Up @@ -267,7 +266,7 @@ export class ConfigBuilder {
}
}

export function configure(aurelia: Aurelia, configCallback?: (builder: ConfigBuilder) => void) {
export function configure(aurelia, configCallback) {
let builder = new ConfigBuilder();

if (configCallback !== undefined && typeof(configCallback) === 'function') {
Expand All @@ -279,7 +278,7 @@ export function configure(aurelia: Aurelia, configCallback?: (builder: ConfigBui
}
}

export * from 'aurelia-materialize-bridge/toast/toastService';


@customAttribute('md-badge')
@inject(Element)
Expand Down Expand Up @@ -332,36 +331,6 @@ export class MdBox {
}
}

// taken from: https://github.com/heruan/aurelia-breadcrumbs

@customElement('md-breadcrumbs')
@inject(Element, Router)
export class MdBreadcrumbs {
constructor(element, router) {
this.element = element;
while (router.parent) {
router = router.parent;
}
this.router = router;
}

navigate(navigationInstruction) {
// this.router.navigateToRoute(navigationInstruction.config.name);
}
}

export class InstructionFilterValueConverter {
toView(navigationInstructions) {
return navigationInstructions.filter(i => {
let result = false;
if (i.config.title) {
result = true;
}
return result;
});
}
}

@customAttribute('md-button')
@inject(Element)
export class MdButton {
Expand Down Expand Up @@ -424,6 +393,36 @@ export class MdButton {
}
}

// taken from: https://github.com/heruan/aurelia-breadcrumbs

@customElement('md-breadcrumbs')
@inject(Element, Router)
export class MdBreadcrumbs {
constructor(element, router) {
this.element = element;
while (router.parent) {
router = router.parent;
}
this.router = router;
}

navigate(navigationInstruction) {
// this.router.navigateToRoute(navigationInstruction.config.name);
}
}

export class InstructionFilterValueConverter {
toView(navigationInstructions) {
return navigationInstructions.filter(i => {
let result = false;
if (i.config.title) {
result = true;
}
return result;
});
}
}

@customElement('md-card')
@inject(Element)
export class MdCard {
Expand Down Expand Up @@ -1301,23 +1300,6 @@ export class MdRange {
}
}

@customAttribute('md-scrollspy')
@inject(Element)
export class MdScrollSpy {
@bindable() target;
constructor(element) {
this.element = element;
}

attached() {
$(this.target, this.element).scrollSpy();
}

detached() {
// destroy handler not available
}
}

/* eslint no-new-func:0 */
export class ScrollfirePatch {
patched = false;
Expand Down Expand Up @@ -1414,6 +1396,23 @@ export class MdScrollfire {
}
}

@customAttribute('md-scrollspy')
@inject(Element)
export class MdScrollSpy {
@bindable() target;
constructor(element) {
this.element = element;
}

attached() {
$(this.target, this.element).scrollSpy();
}

detached() {
// destroy handler not available
}
}

@inject(Element, LogManager, ObserverLocator)
@customAttribute('md-select')
export class MdSelect {
Expand Down
Loading

0 comments on commit b73729e

Please sign in to comment.