From b73729e19dc07e5b29eb09ed5e35f8dc627eb9e0 Mon Sep 17 00:00:00 2001 From: Daniel Bendel Date: Tue, 15 Mar 2016 18:07:04 +0100 Subject: [PATCH] chore(all): dist build --- dist/amd/aurelia-materialize-bridge.d.ts | 41 +++-- dist/amd/index.js | 4 +- dist/aurelia-materialize-bridge.d.ts | 41 +++-- dist/aurelia-materialize-bridge.js | 99 ++++++----- dist/commonjs/aurelia-materialize-bridge.d.ts | 41 +++-- dist/commonjs/index.js | 6 +- dist/dev/aurelia-materialize-bridge.d.ts | 41 +++-- dist/dev/dist/dev/index.js.map | 2 +- dist/dev/index.js | 14 +- dist/es6/aurelia-materialize-bridge.d.ts | 41 +++-- dist/es6/index.js | 7 +- dist/system/aurelia-materialize-bridge.d.ts | 41 +++-- dist/system/index.js | 14 +- dist/temp/aurelia-materialize-bridge.js | 164 ++++++++---------- 14 files changed, 267 insertions(+), 289 deletions(-) diff --git a/dist/amd/aurelia-materialize-bridge.d.ts b/dist/amd/aurelia-materialize-bridge.d.ts index bd22e02a..9f815180 100644 --- a/dist/amd/aurelia-materialize-bridge.d.ts +++ b/dist/amd/aurelia-materialize-bridge.d.ts @@ -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'; @@ -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); @@ -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; @@ -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; @@ -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; @@ -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; diff --git a/dist/amd/index.js b/dist/amd/index.js index b1313698..72498cec 100644 --- a/dist/amd/index.js +++ b/dist/amd/index.js @@ -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; @@ -20,5 +20,5 @@ define(['exports', 'materialize', 'aurelia-framework', './config-builder', 'aure } } - _defaults(exports, _interopExportWildcard(_aureliaMaterializeBridgeToastToastService, _defaults)); + _defaults(exports, _interopExportWildcard(_toastToastService, _defaults)); }); \ No newline at end of file diff --git a/dist/aurelia-materialize-bridge.d.ts b/dist/aurelia-materialize-bridge.d.ts index bd22e02a..9f815180 100644 --- a/dist/aurelia-materialize-bridge.d.ts +++ b/dist/aurelia-materialize-bridge.d.ts @@ -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'; @@ -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); @@ -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; @@ -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; @@ -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; @@ -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; diff --git a/dist/aurelia-materialize-bridge.js b/dist/aurelia-materialize-bridge.js index ca8a93de..f229c31c 100644 --- a/dist/aurelia-materialize-bridge.js +++ b/dist/aurelia-materialize-bridge.js @@ -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'; @@ -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') { @@ -279,7 +278,7 @@ export function configure(aurelia: Aurelia, configCallback?: (builder: ConfigBui } } -export * from 'aurelia-materialize-bridge/toast/toastService'; + @customAttribute('md-badge') @inject(Element) @@ -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 { @@ -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 { @@ -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; @@ -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 { diff --git a/dist/commonjs/aurelia-materialize-bridge.d.ts b/dist/commonjs/aurelia-materialize-bridge.d.ts index bd22e02a..9f815180 100644 --- a/dist/commonjs/aurelia-materialize-bridge.d.ts +++ b/dist/commonjs/aurelia-materialize-bridge.d.ts @@ -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'; @@ -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); @@ -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; @@ -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; @@ -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; @@ -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; diff --git a/dist/commonjs/index.js b/dist/commonjs/index.js index 3f84be1c..d80ed253 100644 --- a/dist/commonjs/index.js +++ b/dist/commonjs/index.js @@ -9,8 +9,6 @@ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaul require('materialize'); -var _aureliaFramework = require('aurelia-framework'); - var _configBuilder = require('./config-builder'); function configure(aurelia, configCallback) { @@ -25,6 +23,6 @@ function configure(aurelia, configCallback) { } } -var _aureliaMaterializeBridgeToastToastService = require('aurelia-materialize-bridge/toast/toastService'); +var _toastToastService = require('./toast/toastService'); -_defaults(exports, _interopExportWildcard(_aureliaMaterializeBridgeToastToastService, _defaults)); \ No newline at end of file +_defaults(exports, _interopExportWildcard(_toastToastService, _defaults)); \ No newline at end of file diff --git a/dist/dev/aurelia-materialize-bridge.d.ts b/dist/dev/aurelia-materialize-bridge.d.ts index bd22e02a..9f815180 100644 --- a/dist/dev/aurelia-materialize-bridge.d.ts +++ b/dist/dev/aurelia-materialize-bridge.d.ts @@ -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'; @@ -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); @@ -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; @@ -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; @@ -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; @@ -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; diff --git a/dist/dev/dist/dev/index.js.map b/dist/dev/dist/dev/index.js.map index e8a46265..697a0304 100644 --- a/dist/dev/dist/dev/index.js.map +++ b/dist/dev/dist/dev/index.js.map @@ -1 +1 @@ -{"version":3,"sources":["index.js"],"names":[],"mappings":";;;;;;;AAIO,WAAS,SAAS,CAAC,OAAgB,EAAE,cAAiD,EAAE;AAC7F,QAAI,OAAO,GAAG,IAAI,aAAa,EAAE,CAAC;;AAElC,QAAI,cAAc,KAAK,SAAS,IAAI,OAAO,cAAc,AAAC,KAAK,UAAU,EAAE;AACzE,oBAAc,CAAC,OAAO,CAAC,CAAC;KACzB;;AAED,QAAI,OAAO,CAAC,kBAAkB,EAAE;AAC9B,aAAO,CAAC,eAAe,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;KAClD;GACF;;;;kCAbO,OAAO;;qCACP,aAAa","file":"index.js","sourceRoot":"/source/","sourcesContent":["import 'materialize';\nimport {Aurelia} from 'aurelia-framework';\nimport {ConfigBuilder} from './config-builder';\n\nexport function configure(aurelia: Aurelia, configCallback?: (builder: ConfigBuilder) => void) {\n let builder = new ConfigBuilder();\n\n if (configCallback !== undefined && typeof(configCallback) === 'function') {\n configCallback(builder);\n }\n\n if (builder.useGlobalResources) {\n aurelia.globalResources(builder.globalResources);\n }\n}\n\nexport * from 'aurelia-materialize-bridge/toast/toastService';\n"]} \ No newline at end of file +{"version":3,"sources":["index.js"],"names":[],"mappings":";;;;;;;AAGO,WAAS,SAAS,CAAC,OAAO,EAAE,cAAc,EAAE;AACjD,QAAI,OAAO,GAAG,IAAI,aAAa,EAAE,CAAC;;AAElC,QAAI,cAAc,KAAK,SAAS,IAAI,OAAO,cAAc,AAAC,KAAK,UAAU,EAAE;AACzE,oBAAc,CAAC,OAAO,CAAC,CAAC;KACzB;;AAED,QAAI,OAAO,CAAC,kBAAkB,EAAE;AAC9B,aAAO,CAAC,eAAe,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;KAClD;GACF;;;;qCAZO,aAAa","file":"index.js","sourceRoot":"/source/","sourcesContent":["import 'materialize';\nimport {ConfigBuilder} from './config-builder';\n\nexport function configure(aurelia, configCallback) {\n let builder = new ConfigBuilder();\n\n if (configCallback !== undefined && typeof(configCallback) === 'function') {\n configCallback(builder);\n }\n\n if (builder.useGlobalResources) {\n aurelia.globalResources(builder.globalResources);\n }\n}\n\n// build-index-remove start\nexport * from './toast/toastService';\n// build-index-remove end\n"]} \ No newline at end of file diff --git a/dist/dev/index.js b/dist/dev/index.js index 5610d8a9..34bd2f19 100644 --- a/dist/dev/index.js +++ b/dist/dev/index.js @@ -1,7 +1,7 @@ -System.register(['materialize', 'aurelia-framework', './config-builder', 'aurelia-materialize-bridge/toast/toastService'], function (_export) { +System.register(['materialize', './config-builder', './toast/toastService'], function (_export) { 'use strict'; - var Aurelia, ConfigBuilder; + var ConfigBuilder; _export('configure', configure); @@ -18,13 +18,11 @@ System.register(['materialize', 'aurelia-framework', './config-builder', 'aureli } return { - setters: [function (_materialize) {}, function (_aureliaFramework) { - Aurelia = _aureliaFramework.Aurelia; - }, function (_configBuilder) { + setters: [function (_materialize) {}, function (_configBuilder) { ConfigBuilder = _configBuilder.ConfigBuilder; - }, function (_aureliaMaterializeBridgeToastToastService) { - for (var _key in _aureliaMaterializeBridgeToastToastService) { - if (_key !== 'default') _export(_key, _aureliaMaterializeBridgeToastToastService[_key]); + }, function (_toastToastService) { + for (var _key in _toastToastService) { + if (_key !== 'default') _export(_key, _toastToastService[_key]); } }], execute: function () {} diff --git a/dist/es6/aurelia-materialize-bridge.d.ts b/dist/es6/aurelia-materialize-bridge.d.ts index bd22e02a..9f815180 100644 --- a/dist/es6/aurelia-materialize-bridge.d.ts +++ b/dist/es6/aurelia-materialize-bridge.d.ts @@ -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'; @@ -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); @@ -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; @@ -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; @@ -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; @@ -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; diff --git a/dist/es6/index.js b/dist/es6/index.js index 02da88a9..fc00592a 100644 --- a/dist/es6/index.js +++ b/dist/es6/index.js @@ -1,8 +1,7 @@ import 'materialize'; -import {Aurelia} from 'aurelia-framework'; import {ConfigBuilder} from './config-builder'; -export function configure(aurelia: Aurelia, configCallback?: (builder: ConfigBuilder) => void) { +export function configure(aurelia, configCallback) { let builder = new ConfigBuilder(); if (configCallback !== undefined && typeof(configCallback) === 'function') { @@ -14,4 +13,6 @@ export function configure(aurelia: Aurelia, configCallback?: (builder: ConfigBui } } -export * from 'aurelia-materialize-bridge/toast/toastService'; +// build-index-remove start +export * from './toast/toastService'; +// build-index-remove end diff --git a/dist/system/aurelia-materialize-bridge.d.ts b/dist/system/aurelia-materialize-bridge.d.ts index bd22e02a..9f815180 100644 --- a/dist/system/aurelia-materialize-bridge.d.ts +++ b/dist/system/aurelia-materialize-bridge.d.ts @@ -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'; @@ -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); @@ -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; @@ -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; @@ -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; @@ -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; diff --git a/dist/system/index.js b/dist/system/index.js index 1f38382e..962c21ae 100644 --- a/dist/system/index.js +++ b/dist/system/index.js @@ -1,7 +1,7 @@ -System.register(['materialize', 'aurelia-framework', './config-builder', 'aurelia-materialize-bridge/toast/toastService'], function (_export) { +System.register(['materialize', './config-builder', './toast/toastService'], function (_export) { 'use strict'; - var Aurelia, ConfigBuilder; + var ConfigBuilder; _export('configure', configure); @@ -18,13 +18,11 @@ System.register(['materialize', 'aurelia-framework', './config-builder', 'aureli } return { - setters: [function (_materialize) {}, function (_aureliaFramework) { - Aurelia = _aureliaFramework.Aurelia; - }, function (_configBuilder) { + setters: [function (_materialize) {}, function (_configBuilder) { ConfigBuilder = _configBuilder.ConfigBuilder; - }, function (_aureliaMaterializeBridgeToastToastService) { - for (var _key in _aureliaMaterializeBridgeToastToastService) { - if (_key !== 'default') _export(_key, _aureliaMaterializeBridgeToastToastService[_key]); + }, function (_toastToastService) { + for (var _key in _toastToastService) { + if (_key !== 'default') _export(_key, _toastToastService[_key]); } }], execute: function () {} diff --git a/dist/temp/aurelia-materialize-bridge.js b/dist/temp/aurelia-materialize-bridge.js index 7593f144..f8e17fb2 100644 --- a/dist/temp/aurelia-materialize-bridge.js +++ b/dist/temp/aurelia-materialize-bridge.js @@ -11,10 +11,6 @@ exports.getBooleanFromAttributeValue = getBooleanFromAttributeValue; exports.fireEvent = fireEvent; exports.fireMaterializeEvent = fireMaterializeEvent; -function _interopExportWildcard(obj, defaults) { var newObj = defaults({}, obj); delete newObj['default']; return newObj; } - -function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } - function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } function _defineDecoratedPropertyDescriptor(target, key, descriptors) { var _descriptor = descriptors[key]; if (!_descriptor) return; var descriptor = {}; for (var _key in _descriptor) descriptor[_key] = _descriptor[_key]; descriptor.value = descriptor.initializer ? descriptor.initializer.call(target) : undefined; Object.defineProperty(target, key, descriptor); } @@ -27,8 +23,6 @@ var _aureliaLogging = require('aurelia-logging'); var LogManager = _interopRequireWildcard(_aureliaLogging); -var _aureliaFramework = require('aurelia-framework'); - var _aureliaTemplating = require('aurelia-templating'); var _aureliaDependencyInjection = require('aurelia-dependency-injection'); @@ -274,10 +268,6 @@ function configure(aurelia, configCallback) { } } -var _aureliaMaterializeBridgeToastToastService = require('aurelia-materialize-bridge/toast/toastService'); - -_defaults(exports, _interopExportWildcard(_aureliaMaterializeBridgeToastToastService, _defaults)); - var MdBadge = (function () { var _instanceInitializers = {}; @@ -362,47 +352,6 @@ var MdBox = (function () { exports.MdBox = MdBox; -var MdBreadcrumbs = (function () { - function MdBreadcrumbs(element, router) { - _classCallCheck(this, _MdBreadcrumbs); - - this.element = element; - while (router.parent) { - router = router.parent; - } - this.router = router; - } - - MdBreadcrumbs.prototype.navigate = function navigate(navigationInstruction) {}; - - var _MdBreadcrumbs = MdBreadcrumbs; - MdBreadcrumbs = _aureliaDependencyInjection.inject(Element, _aureliaRouter.Router)(MdBreadcrumbs) || MdBreadcrumbs; - MdBreadcrumbs = _aureliaTemplating.customElement('md-breadcrumbs')(MdBreadcrumbs) || MdBreadcrumbs; - return MdBreadcrumbs; -})(); - -exports.MdBreadcrumbs = MdBreadcrumbs; - -var InstructionFilterValueConverter = (function () { - function InstructionFilterValueConverter() { - _classCallCheck(this, InstructionFilterValueConverter); - } - - InstructionFilterValueConverter.prototype.toView = function toView(navigationInstructions) { - return navigationInstructions.filter(function (i) { - var result = false; - if (i.config.title) { - result = true; - } - return result; - }); - }; - - return InstructionFilterValueConverter; -})(); - -exports.InstructionFilterValueConverter = InstructionFilterValueConverter; - var MdButton = (function () { var _instanceInitializers3 = {}; @@ -507,6 +456,47 @@ var MdButton = (function () { exports.MdButton = MdButton; +var MdBreadcrumbs = (function () { + function MdBreadcrumbs(element, router) { + _classCallCheck(this, _MdBreadcrumbs); + + this.element = element; + while (router.parent) { + router = router.parent; + } + this.router = router; + } + + MdBreadcrumbs.prototype.navigate = function navigate(navigationInstruction) {}; + + var _MdBreadcrumbs = MdBreadcrumbs; + MdBreadcrumbs = _aureliaDependencyInjection.inject(Element, _aureliaRouter.Router)(MdBreadcrumbs) || MdBreadcrumbs; + MdBreadcrumbs = _aureliaTemplating.customElement('md-breadcrumbs')(MdBreadcrumbs) || MdBreadcrumbs; + return MdBreadcrumbs; +})(); + +exports.MdBreadcrumbs = MdBreadcrumbs; + +var InstructionFilterValueConverter = (function () { + function InstructionFilterValueConverter() { + _classCallCheck(this, InstructionFilterValueConverter); + } + + InstructionFilterValueConverter.prototype.toView = function toView(navigationInstructions) { + return navigationInstructions.filter(function (i) { + var result = false; + if (i.config.title) { + result = true; + } + return result; + }); + }; + + return InstructionFilterValueConverter; +})(); + +exports.InstructionFilterValueConverter = InstructionFilterValueConverter; + var MdCard = (function () { var _instanceInitializers4 = {}; @@ -2077,38 +2067,6 @@ var MdRange = (function () { exports.MdRange = MdRange; -var MdScrollSpy = (function () { - var _instanceInitializers22 = {}; - - _createDecoratedClass(MdScrollSpy, [{ - key: 'target', - decorators: [_aureliaTemplating.bindable()], - initializer: null, - enumerable: true - }], null, _instanceInitializers22); - - function MdScrollSpy(element) { - _classCallCheck(this, _MdScrollSpy); - - _defineDecoratedPropertyDescriptor(this, 'target', _instanceInitializers22); - - this.element = element; - } - - MdScrollSpy.prototype.attached = function attached() { - $(this.target, this.element).scrollSpy(); - }; - - MdScrollSpy.prototype.detached = function detached() {}; - - var _MdScrollSpy = MdScrollSpy; - MdScrollSpy = _aureliaDependencyInjection.inject(Element)(MdScrollSpy) || MdScrollSpy; - MdScrollSpy = _aureliaTemplating.customAttribute('md-scrollspy')(MdScrollSpy) || MdScrollSpy; - return MdScrollSpy; -})(); - -exports.MdScrollSpy = MdScrollSpy; - var ScrollfirePatch = (function () { function ScrollfirePatch() { _classCallCheck(this, ScrollfirePatch); @@ -2166,7 +2124,7 @@ var ScrollfirePatch = (function () { exports.ScrollfirePatch = ScrollfirePatch; var MdScrollfireTarget = (function () { - var _instanceInitializers23 = {}; + var _instanceInitializers22 = {}; _createDecoratedClass(MdScrollfireTarget, [{ key: 'callback', @@ -2182,14 +2140,14 @@ var MdScrollfireTarget = (function () { return 0; }, enumerable: true - }], null, _instanceInitializers23); + }], null, _instanceInitializers22); function MdScrollfireTarget(element) { _classCallCheck(this, _MdScrollfireTarget); - _defineDecoratedPropertyDescriptor(this, 'callback', _instanceInitializers23); + _defineDecoratedPropertyDescriptor(this, 'callback', _instanceInitializers22); - _defineDecoratedPropertyDescriptor(this, 'offset', _instanceInitializers23); + _defineDecoratedPropertyDescriptor(this, 'offset', _instanceInitializers22); this.element = element; } @@ -2249,6 +2207,38 @@ var MdScrollfire = (function () { exports.MdScrollfire = MdScrollfire; +var MdScrollSpy = (function () { + var _instanceInitializers23 = {}; + + _createDecoratedClass(MdScrollSpy, [{ + key: 'target', + decorators: [_aureliaTemplating.bindable()], + initializer: null, + enumerable: true + }], null, _instanceInitializers23); + + function MdScrollSpy(element) { + _classCallCheck(this, _MdScrollSpy); + + _defineDecoratedPropertyDescriptor(this, 'target', _instanceInitializers23); + + this.element = element; + } + + MdScrollSpy.prototype.attached = function attached() { + $(this.target, this.element).scrollSpy(); + }; + + MdScrollSpy.prototype.detached = function detached() {}; + + var _MdScrollSpy = MdScrollSpy; + MdScrollSpy = _aureliaDependencyInjection.inject(Element)(MdScrollSpy) || MdScrollSpy; + MdScrollSpy = _aureliaTemplating.customAttribute('md-scrollspy')(MdScrollSpy) || MdScrollSpy; + return MdScrollSpy; +})(); + +exports.MdScrollSpy = MdScrollSpy; + var MdSelect = (function () { function MdSelect(element, logManager, observerLocator) { _classCallCheck(this, _MdSelect);