diff --git a/bundles/md2.js b/bundles/md2.js
index 083d53809..248d36d6e 100644
--- a/bundles/md2.js
+++ b/bundles/md2.js
@@ -6966,10 +6966,7 @@ Md2ColorpickerModule = __decorate$46([
ColorpickerSliderDirective,
TextDirective
],
- providers: [ColorUtil],
- entryComponents: [
- Md2Colorpicker,
- ]
+ providers: [ColorUtil]
})
], Md2ColorpickerModule);
@@ -11137,7 +11134,6 @@ Md2DatepickerModule = __decorate$55([
],
exports: [
Md2Datepicker,
- Md2DatepickerContent,
Md2DatepickerToggle,
Md2Calendar,
Md2CalendarBody,
@@ -11159,7 +11155,6 @@ Md2DatepickerModule = __decorate$55([
],
providers: [DateLocale, DateUtil],
entryComponents: [
- Md2Datepicker,
Md2DatepickerContent
]
})
@@ -11419,8 +11414,7 @@ Md2DialogModule = __decorate$64([
Md2DialogContent,
Md2DialogActions,
Md2DialogPortal
- ],
- entryComponents: [Md2Dialog],
+ ]
})
], Md2DialogModule);
@@ -12408,7 +12402,7 @@ Md2TagsModule = __decorate$71([
})
], Md2TagsModule);
-var __decorate$73 = (this && this.__decorate) || function (decorators, target, key, desc) {
+var __decorate$74 = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -12519,7 +12513,7 @@ let Md2Toast = class Md2Toast {
}
}
};
-Md2Toast = __decorate$73([
+Md2Toast = __decorate$74([
Injectable(),
__metadata$43("design:paramtypes", [Overlay, Md2ToastConfig])
], Md2Toast);
@@ -12572,30 +12566,39 @@ let Md2ToastComponent = class Md2ToastComponent {
*/
hasToast() { return this.toasts.length > 0; }
};
-Md2ToastComponent = __decorate$73([
+Md2ToastComponent = __decorate$74([
Component({
selector: 'md2-toast',
- template: "
{{ toast.message }}
",
+ template: "",
styles: ["md2-toast{display:block;box-sizing:border-box;cursor:default;overflow:hidden;min-width:304px;max-width:100%;padding:8px;user-select:none}.md2-toast{position:relative;padding:14px 24px;margin-bottom:5px;display:block;margin-top:-53px;opacity:0;background-color:#323232;color:#fafafa;box-shadow:0 2px 5px 0 rgba(0,0,0,.26);border-radius:2px;font-size:14px;overflow:hidden;word-wrap:break-word;transition:all 250ms linear}.md2-toast.in{margin-top:0;opacity:1}.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;text-transform:none;width:1px}.cdk-global-overlay-wrapper,.cdk-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000} /*# sourceMappingURL=toast.css.map */ "],
encapsulation: ViewEncapsulation.None,
})
], Md2ToastComponent);
-const MD2_TOAST_DIRECTIVES = [Md2ToastComponent];
+
+var __decorate$73 = (this && this.__decorate) || function (decorators, target, key, desc) {
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
+};
let Md2ToastModule = class Md2ToastModule {
};
Md2ToastModule = __decorate$73([
NgModule({
- imports: [CommonModule],
- exports: MD2_TOAST_DIRECTIVES,
- declarations: MD2_TOAST_DIRECTIVES,
- entryComponents: MD2_TOAST_DIRECTIVES,
- providers: [Md2Toast, Md2ToastConfig, OVERLAY_PROVIDERS]
+ imports: [
+ CommonModule,
+ OverlayModule,
+ MdCommonModule,
+ PlatformModule
+ ],
+ exports: [Md2ToastComponent, MdCommonModule],
+ declarations: [Md2ToastComponent],
+ entryComponents: [Md2ToastComponent],
+ providers: [Md2Toast, Md2ToastConfig],
})
], Md2ToastModule);
-//# sourceMappingURL=index.js.map
-
-var __decorate$75 = (this && this.__decorate) || function (decorators, target, key, desc) {
+var __decorate$76 = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -12800,30 +12803,30 @@ let Md2Tooltip = class Md2Tooltip {
});
}
};
-__decorate$75([
+__decorate$76([
Input('tooltip-position'),
__metadata$44("design:type", String),
__metadata$44("design:paramtypes", [String])
], Md2Tooltip.prototype, "position", null);
-__decorate$75([
+__decorate$76([
Input('tooltipDisabled'),
__metadata$44("design:type", Boolean),
__metadata$44("design:paramtypes", [Object])
], Md2Tooltip.prototype, "disabled", null);
-__decorate$75([
+__decorate$76([
Input('tooltip-delay'),
__metadata$44("design:type", Object)
], Md2Tooltip.prototype, "showDelay", void 0);
-__decorate$75([
+__decorate$76([
Input('tooltip-hide-delay'),
__metadata$44("design:type", Object)
], Md2Tooltip.prototype, "hideDelay", void 0);
-__decorate$75([
+__decorate$76([
Input('tooltip'),
__metadata$44("design:type", Object),
__metadata$44("design:paramtypes", [String])
], Md2Tooltip.prototype, "message", null);
-Md2Tooltip = __decorate$75([
+Md2Tooltip = __decorate$76([
Directive({
selector: '[tooltip]',
host: {
@@ -12961,10 +12964,10 @@ let Md2TooltipComponent = class Md2TooltipComponent {
this._changeDetectorRef.markForCheck();
}
};
-Md2TooltipComponent = __decorate$75([
+Md2TooltipComponent = __decorate$76([
Component({selector: 'md2-tooltip',
template: "",
- styles: [":host{pointer-events:none}.md2-tooltip{color:#fff;padding:6px 8px;border-radius:2px;font-size:10px;margin:14px;max-width:250px;background:rgba(97,97,97,.9);word-wrap:break-word}.cdk-global-overlay-wrapper,.cdk-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000} /*# sourceMappingURL=tooltip.css.map */ "],
+ styles: ["md2-tooltip{pointer-events:none}.md2-tooltip{color:#fff;padding:6px 8px;border-radius:2px;font-size:10px;margin:14px;max-width:250px;background:rgba(97,97,97,.9);word-wrap:break-word}.cdk-global-overlay-wrapper,.cdk-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000} /*# sourceMappingURL=tooltip.css.map */ "],
animations: [
trigger('state', [
state('void', style({ transform: 'scale(0)' })),
@@ -12978,13 +12981,14 @@ Md2TooltipComponent = __decorate$75([
host: {
'[style.zoom]': '_visibility === "visible" ? 1 : null',
'(body:click)': 'this._handleBodyInteraction()'
- }
+ },
+ encapsulation: ViewEncapsulation.None
}),
__param$15(0, Optional()),
__metadata$44("design:paramtypes", [Dir, ChangeDetectorRef])
], Md2TooltipComponent);
-var __decorate$74 = (this && this.__decorate) || function (decorators, target, key, desc) {
+var __decorate$75 = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -12992,7 +12996,7 @@ var __decorate$74 = (this && this.__decorate) || function (decorators, target, k
};
let Md2TooltipModule = class Md2TooltipModule {
};
-Md2TooltipModule = __decorate$74([
+Md2TooltipModule = __decorate$75([
NgModule({
imports: [OverlayModule, MdCommonModule, PlatformModule],
exports: [Md2Tooltip, Md2TooltipComponent, MdCommonModule],
@@ -13043,4 +13047,4 @@ Md2Module = __decorate$36([
//# sourceMappingURL=index.js.map
-export { MdCoreModule, Dir, RtlModule, ObserveContentModule, ObserveContent, Portal, BasePortalHost, ComponentPortal, TemplatePortal, PortalHostDirective, TemplatePortalDirective, PortalModule, DomPortalHost, GestureConfig, LiveAnnouncer, LIVE_ANNOUNCER_ELEMENT_TOKEN, LIVE_ANNOUNCER_PROVIDER, InteractivityChecker, isFakeMousedownFromScreenReader, A11yModule, UniqueSelectionDispatcher, UNIQUE_SELECTION_DISPATCHER_PROVIDER, MdLineModule, MdLine, MdLineSetter, coerceBooleanProperty, coerceNumberProperty, CompatibilityModule, NoConflictStyleCompatibilityMode, MdCommonModule, MATERIAL_SANITY_CHECKS, MD_PLACEHOLDER_GLOBAL_OPTIONS, MdOptionModule, MdOptionSelectionChange, MdOption, MdOptgroupBase, _MdOptgroupMixinBase, MdOptgroup, PlatformModule, Platform, getSupportedInputTypes, Overlay, OVERLAY_PROVIDERS, OverlayContainer, FullscreenOverlayContainer, OverlayRef, OverlayState, ConnectedOverlayDirective, OverlayOrigin, OverlayModule, ViewportRuler, GlobalPositionStrategy, ConnectedPositionStrategy, ConnectionPositionPair, ScrollableViewProperties, ConnectedOverlayPositionChange, ScrollDispatchModule, Scrollable, ScrollDispatcher, ScrollStrategyOptions, RepositionScrollStrategy, CloseScrollStrategy, NoopScrollStrategy, BlockScrollStrategy, MdRippleModule, MdRipple, MD_RIPPLE_GLOBAL_OPTIONS, RippleRef, RippleState, RIPPLE_FADE_IN_DURATION, RIPPLE_FADE_OUT_DURATION, SelectionModel, SelectionChange, FocusTrap, FocusTrapFactory, FocusTrapDeprecatedDirective, FocusTrapDirective, StyleModule, TOUCH_BUFFER_MS, FocusOriginMonitor, CdkMonitorFocus, FOCUS_ORIGIN_MONITOR_PROVIDER_FACTORY, FOCUS_ORIGIN_MONITOR_PROVIDER, applyCssTransform, UP_ARROW, DOWN_ARROW, RIGHT_ARROW, LEFT_ARROW, PAGE_UP, PAGE_DOWN, HOME, END, ENTER, SPACE, TAB, ESCAPE, BACKSPACE, DELETE, COMMA, MATERIAL_COMPATIBILITY_MODE, getMdCompatibilityInvalidPrefixError, MAT_ELEMENTS_SELECTOR, MD_ELEMENTS_SELECTOR, MatPrefixRejector, MdPrefixRejector, AnimationCurves, AnimationDurations, MdSelectionModule, MdPseudoCheckboxBase, _MdPseudoCheckboxBase, MdPseudoCheckbox, NativeDateModule, MdNativeDateModule, DateAdapter, MD_DATE_FORMATS, NativeDateAdapter, MD_NATIVE_DATE_FORMATS, Md2Module, Md2AccordionModule, Md2Accordion, Md2AccordionHeader, Md2AccordionTab, Md2AutocompleteModule, Item, MD2_AUTOCOMPLETE_CONTROL_VALUE_ACCESSOR, Md2AutocompleteChange, Md2Autocomplete, HighlightPipe, Chip, MD2_CHIPS_CONTROL_VALUE_ACCESSOR, Md2ChipsChange, Md2Chips, MD2_CHIPS_DIRECTIVES, Md2ChipsModule, Md2CollapseModule, Md2Collapse, Md2ColorpickerModule, SliderPosition, SliderDimension, TextDirective, ColorpickerSliderDirective, Md2ColorChange, Md2Colorpicker, COLOR_RGB, COLOR_HSL, Hsva, Hsla, Rgba, ColorUtil, Md2PaginationChange, Md2DataTable, Md2DataTableSortBy, Md2Pagination, MD2_DATA_TABLE_DIRECTIVES, Md2DataTableModule, Md2DatepickerModule, Md2DateChange, Md2DatepickerContent, MD2_DATEPICKER_VALUE_ACCESSOR, MD2_DATEPICKER_VALIDATORS, Md2Datepicker, Md2MonthView, Md2YearView, Md2CalendarCell, Md2CalendarBody, CLOCK_RADIUS, CLOCK_INNER_RADIUS, CLOCK_OUTER_RADIUS, CLOCK_TICK_RADIUS, Md2Clock, DateLocale, DateUtil, Md2DialogModule, Md2DialogConfig, Md2DialogPortal, Md2DialogTitle, Md2DialogContent, Md2DialogActions, Md2Dialog, Md2Menu, Md2MenuModule, Md2MenuContent, Md2MenuItem, Md2MenuTrigger, Md2SelectModule, fadeInContent, transformPanel, transformPlaceholder, SELECT_ITEM_HEIGHT, SELECT_PANEL_MAX_HEIGHT, SELECT_MAX_OPTIONS_DISPLAYED, SELECT_TRIGGER_HEIGHT, SELECT_ITEM_HEIGHT_ADJUSTMENT, SELECT_PANEL_PADDING_X, SELECT_PANEL_INDENT_PADDING_X, SELECT_MULTIPLE_PANEL_PADDING_X, SELECT_PANEL_PADDING_Y, SELECT_PANEL_VIEWPORT_PADDING, Md2SelectChange, Md2Select, Md2SelectHeader, Md2OptionSelectionChange, Md2Option, Md2OptionModule, Md2OptgroupBase, _Md2OptgroupMixinBase, Md2Optgroup, Md2TabChange, Md2Transclude, Md2Tab, Md2TabLabel, Md2Tabs, MD2_TABS_DIRECTIVES, Md2TabsModule, Md2TagsModule, Tag, MD2_TAGS_CONTROL_VALUE_ACCESSOR, Md2Tags, Toast, Md2ToastConfig, Md2Toast, Md2ToastComponent, MD2_TOAST_DIRECTIVES, Md2ToastModule, Md2TooltipModule, TOUCHEND_HIDE_DELAY, SCROLL_THROTTLE_MS, throwMd2TooltipInvalidPositionError, Md2Tooltip, Md2TooltipComponent };
+export { MdCoreModule, Dir, RtlModule, ObserveContentModule, ObserveContent, Portal, BasePortalHost, ComponentPortal, TemplatePortal, PortalHostDirective, TemplatePortalDirective, PortalModule, DomPortalHost, GestureConfig, LiveAnnouncer, LIVE_ANNOUNCER_ELEMENT_TOKEN, LIVE_ANNOUNCER_PROVIDER, InteractivityChecker, isFakeMousedownFromScreenReader, A11yModule, UniqueSelectionDispatcher, UNIQUE_SELECTION_DISPATCHER_PROVIDER, MdLineModule, MdLine, MdLineSetter, coerceBooleanProperty, coerceNumberProperty, CompatibilityModule, NoConflictStyleCompatibilityMode, MdCommonModule, MATERIAL_SANITY_CHECKS, MD_PLACEHOLDER_GLOBAL_OPTIONS, MdOptionModule, MdOptionSelectionChange, MdOption, MdOptgroupBase, _MdOptgroupMixinBase, MdOptgroup, PlatformModule, Platform, getSupportedInputTypes, Overlay, OVERLAY_PROVIDERS, OverlayContainer, FullscreenOverlayContainer, OverlayRef, OverlayState, ConnectedOverlayDirective, OverlayOrigin, OverlayModule, ViewportRuler, GlobalPositionStrategy, ConnectedPositionStrategy, ConnectionPositionPair, ScrollableViewProperties, ConnectedOverlayPositionChange, ScrollDispatchModule, Scrollable, ScrollDispatcher, ScrollStrategyOptions, RepositionScrollStrategy, CloseScrollStrategy, NoopScrollStrategy, BlockScrollStrategy, MdRippleModule, MdRipple, MD_RIPPLE_GLOBAL_OPTIONS, RippleRef, RippleState, RIPPLE_FADE_IN_DURATION, RIPPLE_FADE_OUT_DURATION, SelectionModel, SelectionChange, FocusTrap, FocusTrapFactory, FocusTrapDeprecatedDirective, FocusTrapDirective, StyleModule, TOUCH_BUFFER_MS, FocusOriginMonitor, CdkMonitorFocus, FOCUS_ORIGIN_MONITOR_PROVIDER_FACTORY, FOCUS_ORIGIN_MONITOR_PROVIDER, applyCssTransform, UP_ARROW, DOWN_ARROW, RIGHT_ARROW, LEFT_ARROW, PAGE_UP, PAGE_DOWN, HOME, END, ENTER, SPACE, TAB, ESCAPE, BACKSPACE, DELETE, COMMA, MATERIAL_COMPATIBILITY_MODE, getMdCompatibilityInvalidPrefixError, MAT_ELEMENTS_SELECTOR, MD_ELEMENTS_SELECTOR, MatPrefixRejector, MdPrefixRejector, AnimationCurves, AnimationDurations, MdSelectionModule, MdPseudoCheckboxBase, _MdPseudoCheckboxBase, MdPseudoCheckbox, NativeDateModule, MdNativeDateModule, DateAdapter, MD_DATE_FORMATS, NativeDateAdapter, MD_NATIVE_DATE_FORMATS, Md2Module, Md2AccordionModule, Md2Accordion, Md2AccordionHeader, Md2AccordionTab, Md2AutocompleteModule, Item, MD2_AUTOCOMPLETE_CONTROL_VALUE_ACCESSOR, Md2AutocompleteChange, Md2Autocomplete, HighlightPipe, Chip, MD2_CHIPS_CONTROL_VALUE_ACCESSOR, Md2ChipsChange, Md2Chips, MD2_CHIPS_DIRECTIVES, Md2ChipsModule, Md2CollapseModule, Md2Collapse, Md2ColorpickerModule, SliderPosition, SliderDimension, TextDirective, ColorpickerSliderDirective, Md2ColorChange, Md2Colorpicker, COLOR_RGB, COLOR_HSL, Hsva, Hsla, Rgba, ColorUtil, Md2PaginationChange, Md2DataTable, Md2DataTableSortBy, Md2Pagination, MD2_DATA_TABLE_DIRECTIVES, Md2DataTableModule, Md2DatepickerModule, Md2DateChange, Md2DatepickerContent, MD2_DATEPICKER_VALUE_ACCESSOR, MD2_DATEPICKER_VALIDATORS, Md2Datepicker, Md2MonthView, Md2YearView, Md2CalendarCell, Md2CalendarBody, CLOCK_RADIUS, CLOCK_INNER_RADIUS, CLOCK_OUTER_RADIUS, CLOCK_TICK_RADIUS, Md2Clock, DateLocale, DateUtil, Md2DialogModule, Md2DialogConfig, Md2DialogPortal, Md2DialogTitle, Md2DialogContent, Md2DialogActions, Md2Dialog, Md2Menu, Md2MenuModule, Md2MenuContent, Md2MenuItem, Md2MenuTrigger, Md2SelectModule, fadeInContent, transformPanel, transformPlaceholder, SELECT_ITEM_HEIGHT, SELECT_PANEL_MAX_HEIGHT, SELECT_MAX_OPTIONS_DISPLAYED, SELECT_TRIGGER_HEIGHT, SELECT_ITEM_HEIGHT_ADJUSTMENT, SELECT_PANEL_PADDING_X, SELECT_PANEL_INDENT_PADDING_X, SELECT_MULTIPLE_PANEL_PADDING_X, SELECT_PANEL_PADDING_Y, SELECT_PANEL_VIEWPORT_PADDING, Md2SelectChange, Md2Select, Md2SelectHeader, Md2OptionSelectionChange, Md2Option, Md2OptionModule, Md2OptgroupBase, _Md2OptgroupMixinBase, Md2Optgroup, Md2TabChange, Md2Transclude, Md2Tab, Md2TabLabel, Md2Tabs, MD2_TABS_DIRECTIVES, Md2TabsModule, Md2TagsModule, Tag, MD2_TAGS_CONTROL_VALUE_ACCESSOR, Md2Tags, Md2ToastModule, Toast, Md2ToastConfig, Md2Toast, Md2ToastComponent, Md2TooltipModule, TOUCHEND_HIDE_DELAY, SCROLL_THROTTLE_MS, throwMd2TooltipInvalidPositionError, Md2Tooltip, Md2TooltipComponent };
diff --git a/bundles/md2.umd.js b/bundles/md2.umd.js
index d8b2036de..f31a5e478 100644
--- a/bundles/md2.umd.js
+++ b/bundles/md2.umd.js
@@ -7396,10 +7396,7 @@ exports.Md2ColorpickerModule = __decorate$46([
exports.ColorpickerSliderDirective,
exports.TextDirective
],
- providers: [exports.ColorUtil],
- entryComponents: [
- exports.Md2Colorpicker,
- ]
+ providers: [exports.ColorUtil]
})
], exports.Md2ColorpickerModule);
@@ -11872,7 +11869,6 @@ exports.Md2DatepickerModule = __decorate$55([
],
exports: [
exports.Md2Datepicker,
- exports.Md2DatepickerContent,
Md2DatepickerToggle,
Md2Calendar,
exports.Md2CalendarBody,
@@ -11894,7 +11890,6 @@ exports.Md2DatepickerModule = __decorate$55([
],
providers: [exports.DateLocale, DateUtil],
entryComponents: [
- exports.Md2Datepicker,
exports.Md2DatepickerContent
]
})
@@ -12192,8 +12187,7 @@ exports.Md2DialogModule = __decorate$64([
exports.Md2DialogContent,
exports.Md2DialogActions,
exports.Md2DialogPortal
- ],
- entryComponents: [exports.Md2Dialog],
+ ]
})
], exports.Md2DialogModule);
@@ -13258,7 +13252,7 @@ exports.Md2TagsModule = __decorate$71([
})
], exports.Md2TagsModule);
-var __decorate$73 = (this && this.__decorate) || function (decorators, target, key, desc) {
+var __decorate$74 = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -13375,7 +13369,7 @@ exports.Md2Toast = (function () {
};
return Md2Toast;
}());
-exports.Md2Toast = __decorate$73([
+exports.Md2Toast = __decorate$74([
_angular_core.Injectable(),
__metadata$43("design:paramtypes", [exports.Overlay, Md2ToastConfig])
], exports.Md2Toast);
@@ -13432,15 +13426,21 @@ exports.Md2ToastComponent = (function () {
Md2ToastComponent.prototype.hasToast = function () { return this.toasts.length > 0; };
return Md2ToastComponent;
}());
-exports.Md2ToastComponent = __decorate$73([
+exports.Md2ToastComponent = __decorate$74([
_angular_core.Component({
selector: 'md2-toast',
- template: "{{ toast.message }}
",
+ template: "",
styles: ["md2-toast{display:block;box-sizing:border-box;cursor:default;overflow:hidden;min-width:304px;max-width:100%;padding:8px;user-select:none}.md2-toast{position:relative;padding:14px 24px;margin-bottom:5px;display:block;margin-top:-53px;opacity:0;background-color:#323232;color:#fafafa;box-shadow:0 2px 5px 0 rgba(0,0,0,.26);border-radius:2px;font-size:14px;overflow:hidden;word-wrap:break-word;transition:all 250ms linear}.md2-toast.in{margin-top:0;opacity:1}.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;text-transform:none;width:1px}.cdk-global-overlay-wrapper,.cdk-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000} /*# sourceMappingURL=toast.css.map */ "],
encapsulation: _angular_core.ViewEncapsulation.None,
})
], exports.Md2ToastComponent);
-var MD2_TOAST_DIRECTIVES = [exports.Md2ToastComponent];
+
+var __decorate$73 = (this && this.__decorate) || function (decorators, target, key, desc) {
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
+};
exports.Md2ToastModule = (function () {
function Md2ToastModule() {
}
@@ -13448,17 +13448,20 @@ exports.Md2ToastModule = (function () {
}());
exports.Md2ToastModule = __decorate$73([
_angular_core.NgModule({
- imports: [_angular_common.CommonModule],
- exports: MD2_TOAST_DIRECTIVES,
- declarations: MD2_TOAST_DIRECTIVES,
- entryComponents: MD2_TOAST_DIRECTIVES,
- providers: [exports.Md2Toast, Md2ToastConfig, OVERLAY_PROVIDERS]
+ imports: [
+ _angular_common.CommonModule,
+ exports.OverlayModule,
+ exports.MdCommonModule,
+ exports.PlatformModule
+ ],
+ exports: [exports.Md2ToastComponent, exports.MdCommonModule],
+ declarations: [exports.Md2ToastComponent],
+ entryComponents: [exports.Md2ToastComponent],
+ providers: [exports.Md2Toast, Md2ToastConfig],
})
], exports.Md2ToastModule);
-//# sourceMappingURL=index.js.map
-
-var __decorate$75 = (this && this.__decorate) || function (decorators, target, key, desc) {
+var __decorate$76 = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -13682,30 +13685,30 @@ exports.Md2Tooltip = (function () {
};
return Md2Tooltip;
}());
-__decorate$75([
+__decorate$76([
_angular_core.Input('tooltip-position'),
__metadata$44("design:type", String),
__metadata$44("design:paramtypes", [String])
], exports.Md2Tooltip.prototype, "position", null);
-__decorate$75([
+__decorate$76([
_angular_core.Input('tooltipDisabled'),
__metadata$44("design:type", Boolean),
__metadata$44("design:paramtypes", [Object])
], exports.Md2Tooltip.prototype, "disabled", null);
-__decorate$75([
+__decorate$76([
_angular_core.Input('tooltip-delay'),
__metadata$44("design:type", Object)
], exports.Md2Tooltip.prototype, "showDelay", void 0);
-__decorate$75([
+__decorate$76([
_angular_core.Input('tooltip-hide-delay'),
__metadata$44("design:type", Object)
], exports.Md2Tooltip.prototype, "hideDelay", void 0);
-__decorate$75([
+__decorate$76([
_angular_core.Input('tooltip'),
__metadata$44("design:type", Object),
__metadata$44("design:paramtypes", [String])
], exports.Md2Tooltip.prototype, "message", null);
-exports.Md2Tooltip = __decorate$75([
+exports.Md2Tooltip = __decorate$76([
_angular_core.Directive({
selector: '[tooltip]',
host: {
@@ -13846,10 +13849,10 @@ exports.Md2TooltipComponent = (function () {
};
return Md2TooltipComponent;
}());
-exports.Md2TooltipComponent = __decorate$75([
+exports.Md2TooltipComponent = __decorate$76([
_angular_core.Component({selector: 'md2-tooltip',
template: "",
- styles: [":host{pointer-events:none}.md2-tooltip{color:#fff;padding:6px 8px;border-radius:2px;font-size:10px;margin:14px;max-width:250px;background:rgba(97,97,97,.9);word-wrap:break-word}.cdk-global-overlay-wrapper,.cdk-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000} /*# sourceMappingURL=tooltip.css.map */ "],
+ styles: ["md2-tooltip{pointer-events:none}.md2-tooltip{color:#fff;padding:6px 8px;border-radius:2px;font-size:10px;margin:14px;max-width:250px;background:rgba(97,97,97,.9);word-wrap:break-word}.cdk-global-overlay-wrapper,.cdk-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000} /*# sourceMappingURL=tooltip.css.map */ "],
animations: [
_angular_animations.trigger('state', [
_angular_animations.state('void', _angular_animations.style({ transform: 'scale(0)' })),
@@ -13863,13 +13866,14 @@ exports.Md2TooltipComponent = __decorate$75([
host: {
'[style.zoom]': '_visibility === "visible" ? 1 : null',
'(body:click)': 'this._handleBodyInteraction()'
- }
+ },
+ encapsulation: _angular_core.ViewEncapsulation.None
}),
__param$15(0, _angular_core.Optional()),
__metadata$44("design:paramtypes", [exports.Dir, _angular_core.ChangeDetectorRef])
], exports.Md2TooltipComponent);
-var __decorate$74 = (this && this.__decorate) || function (decorators, target, key, desc) {
+var __decorate$75 = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
@@ -13880,7 +13884,7 @@ exports.Md2TooltipModule = (function () {
}
return Md2TooltipModule;
}());
-exports.Md2TooltipModule = __decorate$74([
+exports.Md2TooltipModule = __decorate$75([
_angular_core.NgModule({
imports: [exports.OverlayModule, exports.MdCommonModule, exports.PlatformModule],
exports: [exports.Md2Tooltip, exports.Md2TooltipComponent, exports.MdCommonModule],
@@ -14051,7 +14055,6 @@ exports.Tag = Tag;
exports.MD2_TAGS_CONTROL_VALUE_ACCESSOR = MD2_TAGS_CONTROL_VALUE_ACCESSOR;
exports.Toast = Toast;
exports.Md2ToastConfig = Md2ToastConfig;
-exports.MD2_TOAST_DIRECTIVES = MD2_TOAST_DIRECTIVES;
exports.TOUCHEND_HIDE_DELAY = TOUCHEND_HIDE_DELAY;
exports.SCROLL_THROTTLE_MS = SCROLL_THROTTLE_MS;
exports.throwMd2TooltipInvalidPositionError = throwMd2TooltipInvalidPositionError;
diff --git a/colorpicker/index.js b/colorpicker/index.js
index 066d2d217..fd960c979 100644
--- a/colorpicker/index.js
+++ b/colorpicker/index.js
@@ -37,10 +37,7 @@ Md2ColorpickerModule = __decorate([
ColorpickerSliderDirective,
TextDirective
],
- providers: [ColorUtil],
- entryComponents: [
- Md2Colorpicker,
- ]
+ providers: [ColorUtil]
})
], Md2ColorpickerModule);
export { Md2ColorpickerModule };
diff --git a/colorpicker/index.js.map b/colorpicker/index.js.map
index 397cd75df..d2570cefc 100644
--- a/colorpicker/index.js.map
+++ b/colorpicker/index.js.map
@@ -1 +1 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/colorpicker/index.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,0BAA0B,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC1F,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AA2B7B,IAAa,oBAAoB;IAAjC;IAAoC,CAAC;IAAD,2BAAC;AAAD,CAAC,AAArC,IAAqC;AAAxB,oBAAoB;IAxBhC,QAAQ,CAAC;QACR,OAAO,EAAE;YACP,YAAY;YACZ,WAAW;YACX,aAAa;YACb,YAAY;YACZ,WAAW;YACX,UAAU;SACX;QACD,OAAO,EAAE;YACP,cAAc;YACd,0BAA0B;YAC1B,aAAa;SACd;QACD,YAAY,EAAE;YACZ,cAAc;YACd,0BAA0B;YAC1B,aAAa;SACd;QACD,SAAS,EAAE,CAAC,SAAS,CAAC;QACtB,eAAe,EAAE;YACf,cAAc;SACf;KACF,CAAC;GACW,oBAAoB,CAAI;SAAxB,oBAAoB","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { StyleModule, OverlayModule, PortalModule, A11yModule } from '../core';\nimport { Md2Colorpicker, ColorpickerSliderDirective, TextDirective } from './colorpicker';\nimport { ColorUtil } from './color-util';\n\n\nexport * from './colorpicker';\nexport * from './color-util';\n\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n OverlayModule,\n PortalModule,\n StyleModule,\n A11yModule,\n ],\n exports: [\n Md2Colorpicker,\n ColorpickerSliderDirective,\n TextDirective\n ],\n declarations: [\n Md2Colorpicker,\n ColorpickerSliderDirective,\n TextDirective\n ],\n providers: [ColorUtil],\n entryComponents: [\n Md2Colorpicker,\n ]\n})\nexport class Md2ColorpickerModule { }\n"]}
\ No newline at end of file
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/colorpicker/index.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,0BAA0B,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC1F,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAwB7B,IAAa,oBAAoB;IAAjC;IAAoC,CAAC;IAAD,2BAAC;AAAD,CAAC,AAArC,IAAqC;AAAxB,oBAAoB;IArBhC,QAAQ,CAAC;QACR,OAAO,EAAE;YACP,YAAY;YACZ,WAAW;YACX,aAAa;YACb,YAAY;YACZ,WAAW;YACX,UAAU;SACX;QACD,OAAO,EAAE;YACP,cAAc;YACd,0BAA0B;YAC1B,aAAa;SACd;QACD,YAAY,EAAE;YACZ,cAAc;YACd,0BAA0B;YAC1B,aAAa;SACd;QACD,SAAS,EAAE,CAAC,SAAS,CAAC;KACvB,CAAC;GACW,oBAAoB,CAAI;SAAxB,oBAAoB","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { StyleModule, OverlayModule, PortalModule, A11yModule } from '../core';\nimport { Md2Colorpicker, ColorpickerSliderDirective, TextDirective } from './colorpicker';\nimport { ColorUtil } from './color-util';\n\n\nexport * from './colorpicker';\nexport * from './color-util';\n\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n OverlayModule,\n PortalModule,\n StyleModule,\n A11yModule,\n ],\n exports: [\n Md2Colorpicker,\n ColorpickerSliderDirective,\n TextDirective\n ],\n declarations: [\n Md2Colorpicker,\n ColorpickerSliderDirective,\n TextDirective\n ],\n providers: [ColorUtil]\n})\nexport class Md2ColorpickerModule { }\n"]}
\ No newline at end of file
diff --git a/colorpicker/index.metadata.json b/colorpicker/index.metadata.json
index fd8414b18..32df8d53a 100644
--- a/colorpicker/index.metadata.json
+++ b/colorpicker/index.metadata.json
@@ -1 +1 @@
-[{"__symbolic":"module","version":3,"metadata":{"Md2ColorpickerModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"},{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule"},{"__symbolic":"reference","module":"../core","name":"OverlayModule"},{"__symbolic":"reference","module":"../core","name":"PortalModule"},{"__symbolic":"reference","module":"../core","name":"StyleModule"},{"__symbolic":"reference","module":"../core","name":"A11yModule"}],"exports":[{"__symbolic":"reference","module":"./colorpicker","name":"Md2Colorpicker"},{"__symbolic":"reference","module":"./colorpicker","name":"ColorpickerSliderDirective"},{"__symbolic":"reference","module":"./colorpicker","name":"TextDirective"}],"declarations":[{"__symbolic":"reference","module":"./colorpicker","name":"Md2Colorpicker"},{"__symbolic":"reference","module":"./colorpicker","name":"ColorpickerSliderDirective"},{"__symbolic":"reference","module":"./colorpicker","name":"TextDirective"}],"providers":[{"__symbolic":"reference","module":"./color-util","name":"ColorUtil"}],"entryComponents":[{"__symbolic":"reference","module":"./colorpicker","name":"Md2Colorpicker"}]}]}]}},"exports":[{"from":"./colorpicker"},{"from":"./color-util"}]},{"__symbolic":"module","version":1,"metadata":{"Md2ColorpickerModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"},{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule"},{"__symbolic":"reference","module":"../core","name":"OverlayModule"},{"__symbolic":"reference","module":"../core","name":"PortalModule"},{"__symbolic":"reference","module":"../core","name":"StyleModule"},{"__symbolic":"reference","module":"../core","name":"A11yModule"}],"exports":[{"__symbolic":"reference","module":"./colorpicker","name":"Md2Colorpicker"},{"__symbolic":"reference","module":"./colorpicker","name":"ColorpickerSliderDirective"},{"__symbolic":"reference","module":"./colorpicker","name":"TextDirective"}],"declarations":[{"__symbolic":"reference","module":"./colorpicker","name":"Md2Colorpicker"},{"__symbolic":"reference","module":"./colorpicker","name":"ColorpickerSliderDirective"},{"__symbolic":"reference","module":"./colorpicker","name":"TextDirective"}],"providers":[{"__symbolic":"reference","module":"./color-util","name":"ColorUtil"}],"entryComponents":[{"__symbolic":"reference","module":"./colorpicker","name":"Md2Colorpicker"}]}]}]}},"exports":[{"from":"./colorpicker"},{"from":"./color-util"}]}]
\ No newline at end of file
+[{"__symbolic":"module","version":3,"metadata":{"Md2ColorpickerModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"},{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule"},{"__symbolic":"reference","module":"../core","name":"OverlayModule"},{"__symbolic":"reference","module":"../core","name":"PortalModule"},{"__symbolic":"reference","module":"../core","name":"StyleModule"},{"__symbolic":"reference","module":"../core","name":"A11yModule"}],"exports":[{"__symbolic":"reference","module":"./colorpicker","name":"Md2Colorpicker"},{"__symbolic":"reference","module":"./colorpicker","name":"ColorpickerSliderDirective"},{"__symbolic":"reference","module":"./colorpicker","name":"TextDirective"}],"declarations":[{"__symbolic":"reference","module":"./colorpicker","name":"Md2Colorpicker"},{"__symbolic":"reference","module":"./colorpicker","name":"ColorpickerSliderDirective"},{"__symbolic":"reference","module":"./colorpicker","name":"TextDirective"}],"providers":[{"__symbolic":"reference","module":"./color-util","name":"ColorUtil"}]}]}]}},"exports":[{"from":"./colorpicker"},{"from":"./color-util"}]},{"__symbolic":"module","version":1,"metadata":{"Md2ColorpickerModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"},{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule"},{"__symbolic":"reference","module":"../core","name":"OverlayModule"},{"__symbolic":"reference","module":"../core","name":"PortalModule"},{"__symbolic":"reference","module":"../core","name":"StyleModule"},{"__symbolic":"reference","module":"../core","name":"A11yModule"}],"exports":[{"__symbolic":"reference","module":"./colorpicker","name":"Md2Colorpicker"},{"__symbolic":"reference","module":"./colorpicker","name":"ColorpickerSliderDirective"},{"__symbolic":"reference","module":"./colorpicker","name":"TextDirective"}],"declarations":[{"__symbolic":"reference","module":"./colorpicker","name":"Md2Colorpicker"},{"__symbolic":"reference","module":"./colorpicker","name":"ColorpickerSliderDirective"},{"__symbolic":"reference","module":"./colorpicker","name":"TextDirective"}],"providers":[{"__symbolic":"reference","module":"./color-util","name":"ColorUtil"}]}]}]}},"exports":[{"from":"./colorpicker"},{"from":"./color-util"}]}]
\ No newline at end of file
diff --git a/core/coercion/boolean-property.metadata.json b/core/coercion/boolean-property.metadata.json
index a6dfd74b9..d724b328a 100644
--- a/core/coercion/boolean-property.metadata.json
+++ b/core/coercion/boolean-property.metadata.json
@@ -1 +1 @@
-[{"__symbolic":"module","version":3,"metadata":{"coerceBooleanProperty":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!=","left":{"__symbolic":"reference","name":"value"},"right":null},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"value"},"right":"false"}}}}},{"__symbolic":"module","version":1,"metadata":{"coerceBooleanProperty":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!=","left":{"__symbolic":"reference","name":"value"},"right":null},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"reference","name":"value"},"right":"false"}}}}}]
\ No newline at end of file
+[{"__symbolic":"module","version":3,"metadata":{"coerceBooleanProperty":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!=","left":{"__symbolic":"reference","name":"value"},"right":null},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":2,"character":26},"right":"false"}}}}},{"__symbolic":"module","version":1,"metadata":{"coerceBooleanProperty":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"!=","left":{"__symbolic":"reference","name":"value"},"right":null},"right":{"__symbolic":"binop","operator":"!==","left":{"__symbolic":"error","message":"Expression form not supported","line":2,"character":26},"right":"false"}}}}}]
\ No newline at end of file
diff --git a/core/compatibility/compatibility.metadata.json b/core/compatibility/compatibility.metadata.json
index 4a4a0c133..ec093d04d 100644
--- a/core/compatibility/compatibility.metadata.json
+++ b/core/compatibility/compatibility.metadata.json
@@ -1 +1 @@
-[{"__symbolic":"module","version":3,"metadata":{"MATERIAL_COMPATIBILITY_MODE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["md-compatibility-mode"]},"getMdCompatibilityInvalidPrefixError":{"__symbolic":"function","parameters":["prefix","nodeName"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Error"},"arguments":[{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":"The \"","right":{"__symbolic":"reference","name":"prefix"}},"right":"-\" prefix cannot be used in ng-material v1 compatibility mode. "},"right":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":"It was used on an \"","right":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"nodeName"},"member":"toLowerCase"}}},"right":"\" element."}}]}},"MAT_ELEMENTS_SELECTOR":"\n [mat-button],\n [mat-fab],\n [mat-icon-button],\n [mat-mini-fab],\n [mat-raised-button],\n [matCardSubtitle],\n [matCardTitle],\n [matDialogActions],\n [matDialogClose],\n [matDialogContent],\n [matDialogTitle],\n [matLine],\n [matTabLabel],\n [matTabLink],\n [matTabNav],\n [matTooltip],\n mat-autocomplete,\n mat-button-toggle,\n mat-button-toggle,\n mat-button-toggle-group,\n mat-card,\n mat-card-actions,\n mat-card-content,\n mat-card-footer,\n mat-card-header,\n mat-card-subtitle,\n mat-card-title,\n mat-card-title-group,\n mat-checkbox,\n mat-chip,\n mat-dialog-actions,\n mat-dialog-container,\n mat-dialog-content,\n mat-divider,\n mat-error,\n mat-grid-list,\n mat-grid-tile,\n mat-grid-tile-footer,\n mat-grid-tile-header,\n mat-hint,\n mat-icon,\n mat-list,\n mat-list-item,\n mat-menu,\n mat-nav-list,\n mat-option,\n mat-placeholder,\n mat-progress-bar,\n mat-pseudo-checkbox,\n mat-radio-button,\n mat-radio-group,\n mat-select,\n mat-sidenav,\n mat-sidenav-container,\n mat-slider,\n mat-spinner,\n mat-tab,\n mat-tab-group,\n mat-toolbar","MD_ELEMENTS_SELECTOR":"\n [md-button],\n [md-fab],\n [md-icon-button],\n [md-mini-fab],\n [md-raised-button],\n [mdCardSubtitle],\n [mdCardTitle],\n [mdDialogActions],\n [mdDialogClose],\n [mdDialogContent],\n [mdDialogTitle],\n [mdLine],\n [mdTabLabel],\n [mdTabLink],\n [mdTabNav],\n [mdTooltip],\n md-autocomplete,\n md-button-toggle,\n md-button-toggle,\n md-button-toggle-group,\n md-card,\n md-card-actions,\n md-card-content,\n md-card-footer,\n md-card-header,\n md-card-subtitle,\n md-card-title,\n md-card-title-group,\n md-checkbox,\n md-chip,\n md-dialog-actions,\n md-dialog-container,\n md-dialog-content,\n md-divider,\n md-error,\n md-grid-list,\n md-grid-tile,\n md-grid-tile-footer,\n md-grid-tile-header,\n md-hint,\n md-icon,\n md-list,\n md-list-item,\n md-menu,\n md-nav-list,\n md-option,\n md-placeholder,\n md-progress-bar,\n md-pseudo-checkbox,\n md-radio-button,\n md-radio-group,\n md-select,\n md-sidenav,\n md-sidenav-container,\n md-slider,\n md-spinner,\n md-tab,\n md-tab-group,\n md-toolbar","MatPrefixRejector":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"\n [mat-button],\n [mat-fab],\n [mat-icon-button],\n [mat-mini-fab],\n [mat-raised-button],\n [matCardSubtitle],\n [matCardTitle],\n [matDialogActions],\n [matDialogClose],\n [matDialogContent],\n [matDialogTitle],\n [matLine],\n [matTabLabel],\n [matTabLink],\n [matTabNav],\n [matTooltip],\n mat-autocomplete,\n mat-button-toggle,\n mat-button-toggle,\n mat-button-toggle-group,\n mat-card,\n mat-card-actions,\n mat-card-content,\n mat-card-footer,\n mat-card-header,\n mat-card-subtitle,\n mat-card-title,\n mat-card-title-group,\n mat-checkbox,\n mat-chip,\n mat-dialog-actions,\n mat-dialog-container,\n mat-dialog-content,\n mat-divider,\n mat-error,\n mat-grid-list,\n mat-grid-tile,\n mat-grid-tile-footer,\n mat-grid-tile-header,\n mat-hint,\n mat-icon,\n mat-list,\n mat-list-item,\n mat-menu,\n mat-nav-list,\n mat-option,\n mat-placeholder,\n mat-progress-bar,\n mat-pseudo-checkbox,\n mat-radio-button,\n mat-radio-group,\n mat-select,\n mat-sidenav,\n mat-sidenav-container,\n mat-slider,\n mat-spinner,\n mat-tab,\n mat-tab-group,\n mat-toolbar"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"MATERIAL_COMPATIBILITY_MODE"}]}],null],"parameters":[{"__symbolic":"reference","name":"boolean"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}]}},"MdPrefixRejector":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"\n [md-button],\n [md-fab],\n [md-icon-button],\n [md-mini-fab],\n [md-raised-button],\n [mdCardSubtitle],\n [mdCardTitle],\n [mdDialogActions],\n [mdDialogClose],\n [mdDialogContent],\n [mdDialogTitle],\n [mdLine],\n [mdTabLabel],\n [mdTabLink],\n [mdTabNav],\n [mdTooltip],\n md-autocomplete,\n md-button-toggle,\n md-button-toggle,\n md-button-toggle-group,\n md-card,\n md-card-actions,\n md-card-content,\n md-card-footer,\n md-card-header,\n md-card-subtitle,\n md-card-title,\n md-card-title-group,\n md-checkbox,\n md-chip,\n md-dialog-actions,\n md-dialog-container,\n md-dialog-content,\n md-divider,\n md-error,\n md-grid-list,\n md-grid-tile,\n md-grid-tile-footer,\n md-grid-tile-header,\n md-hint,\n md-icon,\n md-list,\n md-list-item,\n md-menu,\n md-nav-list,\n md-option,\n md-placeholder,\n md-progress-bar,\n md-pseudo-checkbox,\n md-radio-button,\n md-radio-group,\n md-select,\n md-sidenav,\n md-sidenav-container,\n md-slider,\n md-spinner,\n md-tab,\n md-tab-group,\n md-toolbar"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"MATERIAL_COMPATIBILITY_MODE"}]}],null],"parameters":[{"__symbolic":"reference","name":"boolean"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}]}},"CompatibilityModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","name":"MatPrefixRejector"},{"__symbolic":"reference","name":"MdPrefixRejector"}],"exports":[{"__symbolic":"reference","name":"MatPrefixRejector"},{"__symbolic":"reference","name":"MdPrefixRejector"}]}]}]},"NoConflictStyleCompatibilityMode":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"providers":[{"provide":{"__symbolic":"reference","name":"MATERIAL_COMPATIBILITY_MODE"},"useValue":true}]}]}]}}},{"__symbolic":"module","version":1,"metadata":{"MATERIAL_COMPATIBILITY_MODE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["md-compatibility-mode"]},"getMdCompatibilityInvalidPrefixError":{"__symbolic":"function","parameters":["prefix","nodeName"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Error"},"arguments":[{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":"The \"","right":{"__symbolic":"reference","name":"prefix"}},"right":"-\" prefix cannot be used in ng-material v1 compatibility mode. "},"right":{"__symbolic":"binop","operator":"+","left":{"__symbolic":"binop","operator":"+","left":"It was used on an \"","right":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"nodeName"},"member":"toLowerCase"}}},"right":"\" element."}}]}},"MAT_ELEMENTS_SELECTOR":"\n [mat-button],\n [mat-fab],\n [mat-icon-button],\n [mat-mini-fab],\n [mat-raised-button],\n [matCardSubtitle],\n [matCardTitle],\n [matDialogActions],\n [matDialogClose],\n [matDialogContent],\n [matDialogTitle],\n [matLine],\n [matTabLabel],\n [matTabLink],\n [matTabNav],\n [matTooltip],\n mat-autocomplete,\n mat-button-toggle,\n mat-button-toggle,\n mat-button-toggle-group,\n mat-card,\n mat-card-actions,\n mat-card-content,\n mat-card-footer,\n mat-card-header,\n mat-card-subtitle,\n mat-card-title,\n mat-card-title-group,\n mat-checkbox,\n mat-chip,\n mat-dialog-actions,\n mat-dialog-container,\n mat-dialog-content,\n mat-divider,\n mat-error,\n mat-grid-list,\n mat-grid-tile,\n mat-grid-tile-footer,\n mat-grid-tile-header,\n mat-hint,\n mat-icon,\n mat-list,\n mat-list-item,\n mat-menu,\n mat-nav-list,\n mat-option,\n mat-placeholder,\n mat-progress-bar,\n mat-pseudo-checkbox,\n mat-radio-button,\n mat-radio-group,\n mat-select,\n mat-sidenav,\n mat-sidenav-container,\n mat-slider,\n mat-spinner,\n mat-tab,\n mat-tab-group,\n mat-toolbar","MD_ELEMENTS_SELECTOR":"\n [md-button],\n [md-fab],\n [md-icon-button],\n [md-mini-fab],\n [md-raised-button],\n [mdCardSubtitle],\n [mdCardTitle],\n [mdDialogActions],\n [mdDialogClose],\n [mdDialogContent],\n [mdDialogTitle],\n [mdLine],\n [mdTabLabel],\n [mdTabLink],\n [mdTabNav],\n [mdTooltip],\n md-autocomplete,\n md-button-toggle,\n md-button-toggle,\n md-button-toggle-group,\n md-card,\n md-card-actions,\n md-card-content,\n md-card-footer,\n md-card-header,\n md-card-subtitle,\n md-card-title,\n md-card-title-group,\n md-checkbox,\n md-chip,\n md-dialog-actions,\n md-dialog-container,\n md-dialog-content,\n md-divider,\n md-error,\n md-grid-list,\n md-grid-tile,\n md-grid-tile-footer,\n md-grid-tile-header,\n md-hint,\n md-icon,\n md-list,\n md-list-item,\n md-menu,\n md-nav-list,\n md-option,\n md-placeholder,\n md-progress-bar,\n md-pseudo-checkbox,\n md-radio-button,\n md-radio-group,\n md-select,\n md-sidenav,\n md-sidenav-container,\n md-slider,\n md-spinner,\n md-tab,\n md-tab-group,\n md-toolbar","MatPrefixRejector":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"\n [mat-button],\n [mat-fab],\n [mat-icon-button],\n [mat-mini-fab],\n [mat-raised-button],\n [matCardSubtitle],\n [matCardTitle],\n [matDialogActions],\n [matDialogClose],\n [matDialogContent],\n [matDialogTitle],\n [matLine],\n [matTabLabel],\n [matTabLink],\n [matTabNav],\n [matTooltip],\n mat-autocomplete,\n mat-button-toggle,\n mat-button-toggle,\n mat-button-toggle-group,\n mat-card,\n mat-card-actions,\n mat-card-content,\n mat-card-footer,\n mat-card-header,\n mat-card-subtitle,\n mat-card-title,\n mat-card-title-group,\n mat-checkbox,\n mat-chip,\n mat-dialog-actions,\n mat-dialog-container,\n mat-dialog-content,\n mat-divider,\n mat-error,\n mat-grid-list,\n mat-grid-tile,\n mat-grid-tile-footer,\n mat-grid-tile-header,\n mat-hint,\n mat-icon,\n mat-list,\n mat-list-item,\n mat-menu,\n mat-nav-list,\n mat-option,\n mat-placeholder,\n mat-progress-bar,\n mat-pseudo-checkbox,\n mat-radio-button,\n mat-radio-group,\n mat-select,\n mat-sidenav,\n mat-sidenav-container,\n mat-slider,\n mat-spinner,\n mat-tab,\n mat-tab-group,\n mat-toolbar"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"MATERIAL_COMPATIBILITY_MODE"}]}],null],"parameters":[{"__symbolic":"reference","name":"boolean"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}]}},"MdPrefixRejector":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"\n [md-button],\n [md-fab],\n [md-icon-button],\n [md-mini-fab],\n [md-raised-button],\n [mdCardSubtitle],\n [mdCardTitle],\n [mdDialogActions],\n [mdDialogClose],\n [mdDialogContent],\n [mdDialogTitle],\n [mdLine],\n [mdTabLabel],\n [mdTabLink],\n [mdTabNav],\n [mdTooltip],\n md-autocomplete,\n md-button-toggle,\n md-button-toggle,\n md-button-toggle-group,\n md-card,\n md-card-actions,\n md-card-content,\n md-card-footer,\n md-card-header,\n md-card-subtitle,\n md-card-title,\n md-card-title-group,\n md-checkbox,\n md-chip,\n md-dialog-actions,\n md-dialog-container,\n md-dialog-content,\n md-divider,\n md-error,\n md-grid-list,\n md-grid-tile,\n md-grid-tile-footer,\n md-grid-tile-header,\n md-hint,\n md-icon,\n md-list,\n md-list-item,\n md-menu,\n md-nav-list,\n md-option,\n md-placeholder,\n md-progress-bar,\n md-pseudo-checkbox,\n md-radio-button,\n md-radio-group,\n md-select,\n md-sidenav,\n md-sidenav-container,\n md-slider,\n md-spinner,\n md-tab,\n md-tab-group,\n md-toolbar"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"MATERIAL_COMPATIBILITY_MODE"}]}],null],"parameters":[{"__symbolic":"reference","name":"boolean"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}]}},"CompatibilityModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","name":"MatPrefixRejector"},{"__symbolic":"reference","name":"MdPrefixRejector"}],"exports":[{"__symbolic":"reference","name":"MatPrefixRejector"},{"__symbolic":"reference","name":"MdPrefixRejector"}]}]}]},"NoConflictStyleCompatibilityMode":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"providers":[{"provide":{"__symbolic":"reference","name":"MATERIAL_COMPATIBILITY_MODE"},"useValue":true}]}]}]}}}]
\ No newline at end of file
+[{"__symbolic":"module","version":3,"metadata":{"MATERIAL_COMPATIBILITY_MODE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["md-compatibility-mode"]},"getMdCompatibilityInvalidPrefixError":{"__symbolic":"function","parameters":["prefix","nodeName"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Error"},"arguments":[{"__symbolic":"binop","operator":"+","left":{"__symbolic":"error","message":"Expression form not supported","line":10,"character":15},"right":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":19}}]}},"MAT_ELEMENTS_SELECTOR":"\n [mat-button],\n [mat-fab],\n [mat-icon-button],\n [mat-mini-fab],\n [mat-raised-button],\n [matCardSubtitle],\n [matCardTitle],\n [matDialogActions],\n [matDialogClose],\n [matDialogContent],\n [matDialogTitle],\n [matLine],\n [matTabLabel],\n [matTabLink],\n [matTabNav],\n [matTooltip],\n mat-autocomplete,\n mat-button-toggle,\n mat-button-toggle,\n mat-button-toggle-group,\n mat-card,\n mat-card-actions,\n mat-card-content,\n mat-card-footer,\n mat-card-header,\n mat-card-subtitle,\n mat-card-title,\n mat-card-title-group,\n mat-checkbox,\n mat-chip,\n mat-dialog-actions,\n mat-dialog-container,\n mat-dialog-content,\n mat-divider,\n mat-error,\n mat-grid-list,\n mat-grid-tile,\n mat-grid-tile-footer,\n mat-grid-tile-header,\n mat-hint,\n mat-icon,\n mat-list,\n mat-list-item,\n mat-menu,\n mat-nav-list,\n mat-option,\n mat-placeholder,\n mat-progress-bar,\n mat-pseudo-checkbox,\n mat-radio-button,\n mat-radio-group,\n mat-select,\n mat-sidenav,\n mat-sidenav-container,\n mat-slider,\n mat-spinner,\n mat-tab,\n mat-tab-group,\n mat-toolbar","MD_ELEMENTS_SELECTOR":"\n [md-button],\n [md-fab],\n [md-icon-button],\n [md-mini-fab],\n [md-raised-button],\n [mdCardSubtitle],\n [mdCardTitle],\n [mdDialogActions],\n [mdDialogClose],\n [mdDialogContent],\n [mdDialogTitle],\n [mdLine],\n [mdTabLabel],\n [mdTabLink],\n [mdTabNav],\n [mdTooltip],\n md-autocomplete,\n md-button-toggle,\n md-button-toggle,\n md-button-toggle-group,\n md-card,\n md-card-actions,\n md-card-content,\n md-card-footer,\n md-card-header,\n md-card-subtitle,\n md-card-title,\n md-card-title-group,\n md-checkbox,\n md-chip,\n md-dialog-actions,\n md-dialog-container,\n md-dialog-content,\n md-divider,\n md-error,\n md-grid-list,\n md-grid-tile,\n md-grid-tile-footer,\n md-grid-tile-header,\n md-hint,\n md-icon,\n md-list,\n md-list-item,\n md-menu,\n md-nav-list,\n md-option,\n md-placeholder,\n md-progress-bar,\n md-pseudo-checkbox,\n md-radio-button,\n md-radio-group,\n md-select,\n md-sidenav,\n md-sidenav-container,\n md-slider,\n md-spinner,\n md-tab,\n md-tab-group,\n md-toolbar","MatPrefixRejector":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"\n [mat-button],\n [mat-fab],\n [mat-icon-button],\n [mat-mini-fab],\n [mat-raised-button],\n [matCardSubtitle],\n [matCardTitle],\n [matDialogActions],\n [matDialogClose],\n [matDialogContent],\n [matDialogTitle],\n [matLine],\n [matTabLabel],\n [matTabLink],\n [matTabNav],\n [matTooltip],\n mat-autocomplete,\n mat-button-toggle,\n mat-button-toggle,\n mat-button-toggle-group,\n mat-card,\n mat-card-actions,\n mat-card-content,\n mat-card-footer,\n mat-card-header,\n mat-card-subtitle,\n mat-card-title,\n mat-card-title-group,\n mat-checkbox,\n mat-chip,\n mat-dialog-actions,\n mat-dialog-container,\n mat-dialog-content,\n mat-divider,\n mat-error,\n mat-grid-list,\n mat-grid-tile,\n mat-grid-tile-footer,\n mat-grid-tile-header,\n mat-hint,\n mat-icon,\n mat-list,\n mat-list-item,\n mat-menu,\n mat-nav-list,\n mat-option,\n mat-placeholder,\n mat-progress-bar,\n mat-pseudo-checkbox,\n mat-radio-button,\n mat-radio-group,\n mat-select,\n mat-sidenav,\n mat-sidenav-container,\n mat-slider,\n mat-spinner,\n mat-tab,\n mat-tab-group,\n mat-toolbar"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"MATERIAL_COMPATIBILITY_MODE"}]}],null],"parameters":[{"__symbolic":"reference","name":"boolean"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}]}},"MdPrefixRejector":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"\n [md-button],\n [md-fab],\n [md-icon-button],\n [md-mini-fab],\n [md-raised-button],\n [mdCardSubtitle],\n [mdCardTitle],\n [mdDialogActions],\n [mdDialogClose],\n [mdDialogContent],\n [mdDialogTitle],\n [mdLine],\n [mdTabLabel],\n [mdTabLink],\n [mdTabNav],\n [mdTooltip],\n md-autocomplete,\n md-button-toggle,\n md-button-toggle,\n md-button-toggle-group,\n md-card,\n md-card-actions,\n md-card-content,\n md-card-footer,\n md-card-header,\n md-card-subtitle,\n md-card-title,\n md-card-title-group,\n md-checkbox,\n md-chip,\n md-dialog-actions,\n md-dialog-container,\n md-dialog-content,\n md-divider,\n md-error,\n md-grid-list,\n md-grid-tile,\n md-grid-tile-footer,\n md-grid-tile-header,\n md-hint,\n md-icon,\n md-list,\n md-list-item,\n md-menu,\n md-nav-list,\n md-option,\n md-placeholder,\n md-progress-bar,\n md-pseudo-checkbox,\n md-radio-button,\n md-radio-group,\n md-select,\n md-sidenav,\n md-sidenav-container,\n md-slider,\n md-spinner,\n md-tab,\n md-tab-group,\n md-toolbar"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"MATERIAL_COMPATIBILITY_MODE"}]}],null],"parameters":[{"__symbolic":"reference","name":"boolean"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}]}},"CompatibilityModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","name":"MatPrefixRejector"},{"__symbolic":"reference","name":"MdPrefixRejector"}],"exports":[{"__symbolic":"reference","name":"MatPrefixRejector"},{"__symbolic":"reference","name":"MdPrefixRejector"}]}]}]},"NoConflictStyleCompatibilityMode":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"providers":[{"provide":{"__symbolic":"reference","name":"MATERIAL_COMPATIBILITY_MODE"},"useValue":true}]}]}]}}},{"__symbolic":"module","version":1,"metadata":{"MATERIAL_COMPATIBILITY_MODE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["md-compatibility-mode"]},"getMdCompatibilityInvalidPrefixError":{"__symbolic":"function","parameters":["prefix","nodeName"],"value":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Error"},"arguments":[{"__symbolic":"binop","operator":"+","left":{"__symbolic":"error","message":"Expression form not supported","line":10,"character":15},"right":{"__symbolic":"error","message":"Expression form not supported","line":11,"character":19}}]}},"MAT_ELEMENTS_SELECTOR":"\n [mat-button],\n [mat-fab],\n [mat-icon-button],\n [mat-mini-fab],\n [mat-raised-button],\n [matCardSubtitle],\n [matCardTitle],\n [matDialogActions],\n [matDialogClose],\n [matDialogContent],\n [matDialogTitle],\n [matLine],\n [matTabLabel],\n [matTabLink],\n [matTabNav],\n [matTooltip],\n mat-autocomplete,\n mat-button-toggle,\n mat-button-toggle,\n mat-button-toggle-group,\n mat-card,\n mat-card-actions,\n mat-card-content,\n mat-card-footer,\n mat-card-header,\n mat-card-subtitle,\n mat-card-title,\n mat-card-title-group,\n mat-checkbox,\n mat-chip,\n mat-dialog-actions,\n mat-dialog-container,\n mat-dialog-content,\n mat-divider,\n mat-error,\n mat-grid-list,\n mat-grid-tile,\n mat-grid-tile-footer,\n mat-grid-tile-header,\n mat-hint,\n mat-icon,\n mat-list,\n mat-list-item,\n mat-menu,\n mat-nav-list,\n mat-option,\n mat-placeholder,\n mat-progress-bar,\n mat-pseudo-checkbox,\n mat-radio-button,\n mat-radio-group,\n mat-select,\n mat-sidenav,\n mat-sidenav-container,\n mat-slider,\n mat-spinner,\n mat-tab,\n mat-tab-group,\n mat-toolbar","MD_ELEMENTS_SELECTOR":"\n [md-button],\n [md-fab],\n [md-icon-button],\n [md-mini-fab],\n [md-raised-button],\n [mdCardSubtitle],\n [mdCardTitle],\n [mdDialogActions],\n [mdDialogClose],\n [mdDialogContent],\n [mdDialogTitle],\n [mdLine],\n [mdTabLabel],\n [mdTabLink],\n [mdTabNav],\n [mdTooltip],\n md-autocomplete,\n md-button-toggle,\n md-button-toggle,\n md-button-toggle-group,\n md-card,\n md-card-actions,\n md-card-content,\n md-card-footer,\n md-card-header,\n md-card-subtitle,\n md-card-title,\n md-card-title-group,\n md-checkbox,\n md-chip,\n md-dialog-actions,\n md-dialog-container,\n md-dialog-content,\n md-divider,\n md-error,\n md-grid-list,\n md-grid-tile,\n md-grid-tile-footer,\n md-grid-tile-header,\n md-hint,\n md-icon,\n md-list,\n md-list-item,\n md-menu,\n md-nav-list,\n md-option,\n md-placeholder,\n md-progress-bar,\n md-pseudo-checkbox,\n md-radio-button,\n md-radio-group,\n md-select,\n md-sidenav,\n md-sidenav-container,\n md-slider,\n md-spinner,\n md-tab,\n md-tab-group,\n md-toolbar","MatPrefixRejector":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"\n [mat-button],\n [mat-fab],\n [mat-icon-button],\n [mat-mini-fab],\n [mat-raised-button],\n [matCardSubtitle],\n [matCardTitle],\n [matDialogActions],\n [matDialogClose],\n [matDialogContent],\n [matDialogTitle],\n [matLine],\n [matTabLabel],\n [matTabLink],\n [matTabNav],\n [matTooltip],\n mat-autocomplete,\n mat-button-toggle,\n mat-button-toggle,\n mat-button-toggle-group,\n mat-card,\n mat-card-actions,\n mat-card-content,\n mat-card-footer,\n mat-card-header,\n mat-card-subtitle,\n mat-card-title,\n mat-card-title-group,\n mat-checkbox,\n mat-chip,\n mat-dialog-actions,\n mat-dialog-container,\n mat-dialog-content,\n mat-divider,\n mat-error,\n mat-grid-list,\n mat-grid-tile,\n mat-grid-tile-footer,\n mat-grid-tile-header,\n mat-hint,\n mat-icon,\n mat-list,\n mat-list-item,\n mat-menu,\n mat-nav-list,\n mat-option,\n mat-placeholder,\n mat-progress-bar,\n mat-pseudo-checkbox,\n mat-radio-button,\n mat-radio-group,\n mat-select,\n mat-sidenav,\n mat-sidenav-container,\n mat-slider,\n mat-spinner,\n mat-tab,\n mat-tab-group,\n mat-toolbar"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"MATERIAL_COMPATIBILITY_MODE"}]}],null],"parameters":[{"__symbolic":"reference","name":"boolean"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}]}},"MdPrefixRejector":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"\n [md-button],\n [md-fab],\n [md-icon-button],\n [md-mini-fab],\n [md-raised-button],\n [mdCardSubtitle],\n [mdCardTitle],\n [mdDialogActions],\n [mdDialogClose],\n [mdDialogContent],\n [mdDialogTitle],\n [mdLine],\n [mdTabLabel],\n [mdTabLink],\n [mdTabNav],\n [mdTooltip],\n md-autocomplete,\n md-button-toggle,\n md-button-toggle,\n md-button-toggle-group,\n md-card,\n md-card-actions,\n md-card-content,\n md-card-footer,\n md-card-header,\n md-card-subtitle,\n md-card-title,\n md-card-title-group,\n md-checkbox,\n md-chip,\n md-dialog-actions,\n md-dialog-container,\n md-dialog-content,\n md-divider,\n md-error,\n md-grid-list,\n md-grid-tile,\n md-grid-tile-footer,\n md-grid-tile-header,\n md-hint,\n md-icon,\n md-list,\n md-list-item,\n md-menu,\n md-nav-list,\n md-option,\n md-placeholder,\n md-progress-bar,\n md-pseudo-checkbox,\n md-radio-button,\n md-radio-group,\n md-select,\n md-sidenav,\n md-sidenav-container,\n md-slider,\n md-spinner,\n md-tab,\n md-tab-group,\n md-toolbar"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"MATERIAL_COMPATIBILITY_MODE"}]}],null],"parameters":[{"__symbolic":"reference","name":"boolean"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}]}},"CompatibilityModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","name":"MatPrefixRejector"},{"__symbolic":"reference","name":"MdPrefixRejector"}],"exports":[{"__symbolic":"reference","name":"MatPrefixRejector"},{"__symbolic":"reference","name":"MdPrefixRejector"}]}]}]},"NoConflictStyleCompatibilityMode":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"providers":[{"provide":{"__symbolic":"reference","name":"MATERIAL_COMPATIBILITY_MODE"},"useValue":true}]}]}]}}}]
\ No newline at end of file
diff --git a/datepicker/index.js b/datepicker/index.js
index 99d03f4b7..b0d3cfdb5 100644
--- a/datepicker/index.js
+++ b/datepicker/index.js
@@ -39,7 +39,6 @@ Md2DatepickerModule = __decorate([
],
exports: [
Md2Datepicker,
- Md2DatepickerContent,
Md2DatepickerToggle,
Md2Calendar,
Md2CalendarBody,
@@ -61,7 +60,6 @@ Md2DatepickerModule = __decorate([
],
providers: [DateLocale, DateUtil],
entryComponents: [
- Md2Datepicker,
Md2DatepickerContent
]
})
diff --git a/datepicker/index.js.map b/datepicker/index.js.map
index 088c4b586..7f872015c 100644
--- a/datepicker/index.js.map
+++ b/datepicker/index.js.map
@@ -1 +1 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/datepicker/index.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAuC5B,IAAa,mBAAmB;IAAhC;IAAmC,CAAC;IAAD,0BAAC;AAAD,CAAC,AAApC,IAAoC;AAAvB,mBAAmB;IApC/B,QAAQ,CAAC;QACR,OAAO,EAAE;YACP,YAAY;YACZ,aAAa;YACb,YAAY;YACZ,WAAW;YACX,UAAU;SACX;QACD,OAAO,EAAE;YACP,aAAa;YACb,oBAAoB;YACpB,mBAAmB;YACnB,WAAW;YACX,eAAe;YACf,WAAW;YACX,YAAY;YACZ,WAAW;YACX,eAAe;YACf,QAAQ;SACT;QACD,YAAY,EAAE;YACZ,aAAa;YACb,oBAAoB;YACpB,mBAAmB;YACnB,WAAW;YACX,YAAY;YACZ,WAAW;YACX,eAAe;YACf,QAAQ;SACT;QACD,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC;QACjC,eAAe,EAAE;YACf,aAAa;YACb,oBAAoB;SACrB;KACF,CAAC;GACW,mBAAmB,CAAI;SAAvB,mBAAmB","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { StyleModule, OverlayModule, PortalModule, A11yModule } from '../core';\nimport { Md2Datepicker, Md2DatepickerContent } from './datepicker';\nimport { Md2DatepickerToggle } from './datepicker-toggle';\nimport { Md2Calendar } from './calendar';\nimport { Md2MonthView } from './month-view';\nimport { Md2YearView } from './year-view';\nimport { Md2CalendarBody } from './calendar-body';\nimport { Md2Clock } from './clock';\nimport { DateLocale } from './date-locale';\nimport { DateUtil } from './date-util';\n\n\nexport * from './datepicker';\nexport * from './month-view';\nexport * from './year-view';\nexport * from './calendar-body';\nexport * from './clock';\nexport * from './date-locale';\nexport * from './date-util';\n\n\n@NgModule({\n imports: [\n CommonModule,\n OverlayModule,\n PortalModule,\n StyleModule,\n A11yModule,\n ],\n exports: [\n Md2Datepicker,\n Md2DatepickerContent,\n Md2DatepickerToggle,\n Md2Calendar,\n Md2CalendarBody,\n Md2Calendar,\n Md2MonthView,\n Md2YearView,\n Md2CalendarBody,\n Md2Clock,\n ],\n declarations: [\n Md2Datepicker,\n Md2DatepickerContent,\n Md2DatepickerToggle,\n Md2Calendar,\n Md2MonthView,\n Md2YearView,\n Md2CalendarBody,\n Md2Clock,\n ],\n providers: [DateLocale, DateUtil],\n entryComponents: [\n Md2Datepicker,\n Md2DatepickerContent\n ]\n})\nexport class Md2DatepickerModule { }\n"]}
\ No newline at end of file
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/datepicker/index.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAqC5B,IAAa,mBAAmB;IAAhC;IAAmC,CAAC;IAAD,0BAAC;AAAD,CAAC,AAApC,IAAoC;AAAvB,mBAAmB;IAlC/B,QAAQ,CAAC;QACR,OAAO,EAAE;YACP,YAAY;YACZ,aAAa;YACb,YAAY;YACZ,WAAW;YACX,UAAU;SACX;QACD,OAAO,EAAE;YACP,aAAa;YACb,mBAAmB;YACnB,WAAW;YACX,eAAe;YACf,WAAW;YACX,YAAY;YACZ,WAAW;YACX,eAAe;YACf,QAAQ;SACT;QACD,YAAY,EAAE;YACZ,aAAa;YACb,oBAAoB;YACpB,mBAAmB;YACnB,WAAW;YACX,YAAY;YACZ,WAAW;YACX,eAAe;YACf,QAAQ;SACT;QACD,SAAS,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC;QACjC,eAAe,EAAE;YACf,oBAAoB;SACrB;KACF,CAAC;GACW,mBAAmB,CAAI;SAAvB,mBAAmB","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { StyleModule, OverlayModule, PortalModule, A11yModule } from '../core';\nimport { Md2Datepicker, Md2DatepickerContent } from './datepicker';\nimport { Md2DatepickerToggle } from './datepicker-toggle';\nimport { Md2Calendar } from './calendar';\nimport { Md2MonthView } from './month-view';\nimport { Md2YearView } from './year-view';\nimport { Md2CalendarBody } from './calendar-body';\nimport { Md2Clock } from './clock';\nimport { DateLocale } from './date-locale';\nimport { DateUtil } from './date-util';\n\n\nexport * from './datepicker';\nexport * from './month-view';\nexport * from './year-view';\nexport * from './calendar-body';\nexport * from './clock';\nexport * from './date-locale';\nexport * from './date-util';\n\n\n@NgModule({\n imports: [\n CommonModule,\n OverlayModule,\n PortalModule,\n StyleModule,\n A11yModule,\n ],\n exports: [\n Md2Datepicker,\n Md2DatepickerToggle,\n Md2Calendar,\n Md2CalendarBody,\n Md2Calendar,\n Md2MonthView,\n Md2YearView,\n Md2CalendarBody,\n Md2Clock,\n ],\n declarations: [\n Md2Datepicker,\n Md2DatepickerContent,\n Md2DatepickerToggle,\n Md2Calendar,\n Md2MonthView,\n Md2YearView,\n Md2CalendarBody,\n Md2Clock,\n ],\n providers: [DateLocale, DateUtil],\n entryComponents: [\n Md2DatepickerContent\n ]\n})\nexport class Md2DatepickerModule { }\n"]}
\ No newline at end of file
diff --git a/datepicker/index.metadata.json b/datepicker/index.metadata.json
index be4b6cc1b..03459d732 100644
--- a/datepicker/index.metadata.json
+++ b/datepicker/index.metadata.json
@@ -1 +1 @@
-[{"__symbolic":"module","version":3,"metadata":{"Md2DatepickerModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"},{"__symbolic":"reference","module":"../core","name":"OverlayModule"},{"__symbolic":"reference","module":"../core","name":"PortalModule"},{"__symbolic":"reference","module":"../core","name":"StyleModule"},{"__symbolic":"reference","module":"../core","name":"A11yModule"}],"exports":[{"__symbolic":"reference","module":"./datepicker","name":"Md2Datepicker"},{"__symbolic":"reference","module":"./datepicker","name":"Md2DatepickerContent"},{"__symbolic":"reference","module":"./datepicker-toggle","name":"Md2DatepickerToggle"},{"__symbolic":"reference","module":"./calendar","name":"Md2Calendar"},{"__symbolic":"reference","module":"./calendar-body","name":"Md2CalendarBody"},{"__symbolic":"reference","module":"./calendar","name":"Md2Calendar"},{"__symbolic":"reference","module":"./month-view","name":"Md2MonthView"},{"__symbolic":"reference","module":"./year-view","name":"Md2YearView"},{"__symbolic":"reference","module":"./calendar-body","name":"Md2CalendarBody"},{"__symbolic":"reference","module":"./clock","name":"Md2Clock"}],"declarations":[{"__symbolic":"reference","module":"./datepicker","name":"Md2Datepicker"},{"__symbolic":"reference","module":"./datepicker","name":"Md2DatepickerContent"},{"__symbolic":"reference","module":"./datepicker-toggle","name":"Md2DatepickerToggle"},{"__symbolic":"reference","module":"./calendar","name":"Md2Calendar"},{"__symbolic":"reference","module":"./month-view","name":"Md2MonthView"},{"__symbolic":"reference","module":"./year-view","name":"Md2YearView"},{"__symbolic":"reference","module":"./calendar-body","name":"Md2CalendarBody"},{"__symbolic":"reference","module":"./clock","name":"Md2Clock"}],"providers":[{"__symbolic":"reference","module":"./date-locale","name":"DateLocale"},{"__symbolic":"reference","module":"./date-util","name":"DateUtil"}],"entryComponents":[{"__symbolic":"reference","module":"./datepicker","name":"Md2Datepicker"},{"__symbolic":"reference","module":"./datepicker","name":"Md2DatepickerContent"}]}]}]}},"exports":[{"from":"./datepicker"},{"from":"./month-view"},{"from":"./year-view"},{"from":"./calendar-body"},{"from":"./clock"},{"from":"./date-locale"},{"from":"./date-util"}]},{"__symbolic":"module","version":1,"metadata":{"Md2DatepickerModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"},{"__symbolic":"reference","module":"../core","name":"OverlayModule"},{"__symbolic":"reference","module":"../core","name":"PortalModule"},{"__symbolic":"reference","module":"../core","name":"StyleModule"},{"__symbolic":"reference","module":"../core","name":"A11yModule"}],"exports":[{"__symbolic":"reference","module":"./datepicker","name":"Md2Datepicker"},{"__symbolic":"reference","module":"./datepicker","name":"Md2DatepickerContent"},{"__symbolic":"reference","module":"./datepicker-toggle","name":"Md2DatepickerToggle"},{"__symbolic":"reference","module":"./calendar","name":"Md2Calendar"},{"__symbolic":"reference","module":"./calendar-body","name":"Md2CalendarBody"},{"__symbolic":"reference","module":"./calendar","name":"Md2Calendar"},{"__symbolic":"reference","module":"./month-view","name":"Md2MonthView"},{"__symbolic":"reference","module":"./year-view","name":"Md2YearView"},{"__symbolic":"reference","module":"./calendar-body","name":"Md2CalendarBody"},{"__symbolic":"reference","module":"./clock","name":"Md2Clock"}],"declarations":[{"__symbolic":"reference","module":"./datepicker","name":"Md2Datepicker"},{"__symbolic":"reference","module":"./datepicker","name":"Md2DatepickerContent"},{"__symbolic":"reference","module":"./datepicker-toggle","name":"Md2DatepickerToggle"},{"__symbolic":"reference","module":"./calendar","name":"Md2Calendar"},{"__symbolic":"reference","module":"./month-view","name":"Md2MonthView"},{"__symbolic":"reference","module":"./year-view","name":"Md2YearView"},{"__symbolic":"reference","module":"./calendar-body","name":"Md2CalendarBody"},{"__symbolic":"reference","module":"./clock","name":"Md2Clock"}],"providers":[{"__symbolic":"reference","module":"./date-locale","name":"DateLocale"},{"__symbolic":"reference","module":"./date-util","name":"DateUtil"}],"entryComponents":[{"__symbolic":"reference","module":"./datepicker","name":"Md2Datepicker"},{"__symbolic":"reference","module":"./datepicker","name":"Md2DatepickerContent"}]}]}]}},"exports":[{"from":"./datepicker"},{"from":"./month-view"},{"from":"./year-view"},{"from":"./calendar-body"},{"from":"./clock"},{"from":"./date-locale"},{"from":"./date-util"}]}]
\ No newline at end of file
+[{"__symbolic":"module","version":3,"metadata":{"Md2DatepickerModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"},{"__symbolic":"reference","module":"../core","name":"OverlayModule"},{"__symbolic":"reference","module":"../core","name":"PortalModule"},{"__symbolic":"reference","module":"../core","name":"StyleModule"},{"__symbolic":"reference","module":"../core","name":"A11yModule"}],"exports":[{"__symbolic":"reference","module":"./datepicker","name":"Md2Datepicker"},{"__symbolic":"reference","module":"./datepicker-toggle","name":"Md2DatepickerToggle"},{"__symbolic":"reference","module":"./calendar","name":"Md2Calendar"},{"__symbolic":"reference","module":"./calendar-body","name":"Md2CalendarBody"},{"__symbolic":"reference","module":"./calendar","name":"Md2Calendar"},{"__symbolic":"reference","module":"./month-view","name":"Md2MonthView"},{"__symbolic":"reference","module":"./year-view","name":"Md2YearView"},{"__symbolic":"reference","module":"./calendar-body","name":"Md2CalendarBody"},{"__symbolic":"reference","module":"./clock","name":"Md2Clock"}],"declarations":[{"__symbolic":"reference","module":"./datepicker","name":"Md2Datepicker"},{"__symbolic":"reference","module":"./datepicker","name":"Md2DatepickerContent"},{"__symbolic":"reference","module":"./datepicker-toggle","name":"Md2DatepickerToggle"},{"__symbolic":"reference","module":"./calendar","name":"Md2Calendar"},{"__symbolic":"reference","module":"./month-view","name":"Md2MonthView"},{"__symbolic":"reference","module":"./year-view","name":"Md2YearView"},{"__symbolic":"reference","module":"./calendar-body","name":"Md2CalendarBody"},{"__symbolic":"reference","module":"./clock","name":"Md2Clock"}],"providers":[{"__symbolic":"reference","module":"./date-locale","name":"DateLocale"},{"__symbolic":"reference","module":"./date-util","name":"DateUtil"}],"entryComponents":[{"__symbolic":"reference","module":"./datepicker","name":"Md2DatepickerContent"}]}]}]}},"exports":[{"from":"./datepicker"},{"from":"./month-view"},{"from":"./year-view"},{"from":"./calendar-body"},{"from":"./clock"},{"from":"./date-locale"},{"from":"./date-util"}]},{"__symbolic":"module","version":1,"metadata":{"Md2DatepickerModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"},{"__symbolic":"reference","module":"../core","name":"OverlayModule"},{"__symbolic":"reference","module":"../core","name":"PortalModule"},{"__symbolic":"reference","module":"../core","name":"StyleModule"},{"__symbolic":"reference","module":"../core","name":"A11yModule"}],"exports":[{"__symbolic":"reference","module":"./datepicker","name":"Md2Datepicker"},{"__symbolic":"reference","module":"./datepicker-toggle","name":"Md2DatepickerToggle"},{"__symbolic":"reference","module":"./calendar","name":"Md2Calendar"},{"__symbolic":"reference","module":"./calendar-body","name":"Md2CalendarBody"},{"__symbolic":"reference","module":"./calendar","name":"Md2Calendar"},{"__symbolic":"reference","module":"./month-view","name":"Md2MonthView"},{"__symbolic":"reference","module":"./year-view","name":"Md2YearView"},{"__symbolic":"reference","module":"./calendar-body","name":"Md2CalendarBody"},{"__symbolic":"reference","module":"./clock","name":"Md2Clock"}],"declarations":[{"__symbolic":"reference","module":"./datepicker","name":"Md2Datepicker"},{"__symbolic":"reference","module":"./datepicker","name":"Md2DatepickerContent"},{"__symbolic":"reference","module":"./datepicker-toggle","name":"Md2DatepickerToggle"},{"__symbolic":"reference","module":"./calendar","name":"Md2Calendar"},{"__symbolic":"reference","module":"./month-view","name":"Md2MonthView"},{"__symbolic":"reference","module":"./year-view","name":"Md2YearView"},{"__symbolic":"reference","module":"./calendar-body","name":"Md2CalendarBody"},{"__symbolic":"reference","module":"./clock","name":"Md2Clock"}],"providers":[{"__symbolic":"reference","module":"./date-locale","name":"DateLocale"},{"__symbolic":"reference","module":"./date-util","name":"DateUtil"}],"entryComponents":[{"__symbolic":"reference","module":"./datepicker","name":"Md2DatepickerContent"}]}]}]}},"exports":[{"from":"./datepicker"},{"from":"./month-view"},{"from":"./year-view"},{"from":"./calendar-body"},{"from":"./clock"},{"from":"./date-locale"},{"from":"./date-util"}]}]
\ No newline at end of file
diff --git a/dialog/index.js b/dialog/index.js
index b2ab13a70..527fd8af0 100644
--- a/dialog/index.js
+++ b/dialog/index.js
@@ -30,8 +30,7 @@ Md2DialogModule = __decorate([
Md2DialogContent,
Md2DialogActions,
Md2DialogPortal
- ],
- entryComponents: [Md2Dialog],
+ ]
})
], Md2DialogModule);
export { Md2DialogModule };
diff --git a/dialog/index.js.map b/dialog/index.js.map
index b95faa859..d5366fd16 100644
--- a/dialog/index.js.map
+++ b/dialog/index.js.map
@@ -1 +1 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/dialog/index.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EACL,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EAChB,MAAM,UAAU,CAAC;AAqBlB,IAAa,eAAe;IAA5B;IAA+B,CAAC;IAAD,sBAAC;AAAD,CAAC,AAAhC,IAAgC;AAAnB,eAAe;IAlB3B,QAAQ,CAAC;QACR,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,CAAC;QACtE,OAAO,EAAE;YACP,SAAS;YACT,cAAc;YACd,gBAAgB;YAChB,gBAAgB;YAChB,eAAe;SAChB;QACD,YAAY,EAAE;YACZ,SAAS;YACT,cAAc;YACd,gBAAgB;YAChB,gBAAgB;YAChB,eAAe;SAChB;QACD,eAAe,EAAE,CAAC,SAAS,CAAC;KAC7B,CAAC;GACW,eAAe,CAAI;SAAnB,eAAe;AAG5B,cAAc,UAAU,CAAC","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { OverlayModule, MdCommonModule } from '../core';\nimport { PlatformModule } from '../core/platform/index';\nimport {\n Md2Dialog,\n Md2DialogTitle,\n Md2DialogContent,\n Md2DialogActions,\n Md2DialogPortal\n} from './dialog';\n\n\n@NgModule({\n imports: [CommonModule, OverlayModule, MdCommonModule, PlatformModule],\n exports: [\n Md2Dialog,\n Md2DialogTitle,\n Md2DialogContent,\n Md2DialogActions,\n Md2DialogPortal\n ],\n declarations: [\n Md2Dialog,\n Md2DialogTitle,\n Md2DialogContent,\n Md2DialogActions,\n Md2DialogPortal\n ],\n entryComponents: [Md2Dialog],\n})\nexport class Md2DialogModule { }\n\n\nexport * from './dialog';\n"]}
\ No newline at end of file
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/dialog/index.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EACL,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EAChB,MAAM,UAAU,CAAC;AAoBlB,IAAa,eAAe;IAA5B;IAA+B,CAAC;IAAD,sBAAC;AAAD,CAAC,AAAhC,IAAgC;AAAnB,eAAe;IAjB3B,QAAQ,CAAC;QACR,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,CAAC;QACtE,OAAO,EAAE;YACP,SAAS;YACT,cAAc;YACd,gBAAgB;YAChB,gBAAgB;YAChB,eAAe;SAChB;QACD,YAAY,EAAE;YACZ,SAAS;YACT,cAAc;YACd,gBAAgB;YAChB,gBAAgB;YAChB,eAAe;SAChB;KACF,CAAC;GACW,eAAe,CAAI;SAAnB,eAAe;AAG5B,cAAc,UAAU,CAAC","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { OverlayModule, MdCommonModule } from '../core';\nimport { PlatformModule } from '../core/platform/index';\nimport {\n Md2Dialog,\n Md2DialogTitle,\n Md2DialogContent,\n Md2DialogActions,\n Md2DialogPortal\n} from './dialog';\n\n\n@NgModule({\n imports: [CommonModule, OverlayModule, MdCommonModule, PlatformModule],\n exports: [\n Md2Dialog,\n Md2DialogTitle,\n Md2DialogContent,\n Md2DialogActions,\n Md2DialogPortal\n ],\n declarations: [\n Md2Dialog,\n Md2DialogTitle,\n Md2DialogContent,\n Md2DialogActions,\n Md2DialogPortal\n ]\n})\nexport class Md2DialogModule { }\n\n\nexport * from './dialog';\n"]}
\ No newline at end of file
diff --git a/dialog/index.metadata.json b/dialog/index.metadata.json
index 3abb9b13f..52eaaee95 100644
--- a/dialog/index.metadata.json
+++ b/dialog/index.metadata.json
@@ -1 +1 @@
-[{"__symbolic":"module","version":3,"metadata":{"Md2DialogModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"},{"__symbolic":"reference","module":"../core","name":"OverlayModule"},{"__symbolic":"reference","module":"../core","name":"MdCommonModule"},{"__symbolic":"reference","module":"../core/platform/index","name":"PlatformModule"}],"exports":[{"__symbolic":"reference","module":"./dialog","name":"Md2Dialog"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogTitle"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogContent"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogActions"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogPortal"}],"declarations":[{"__symbolic":"reference","module":"./dialog","name":"Md2Dialog"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogTitle"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogContent"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogActions"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogPortal"}],"entryComponents":[{"__symbolic":"reference","module":"./dialog","name":"Md2Dialog"}]}]}]}},"exports":[{"from":"./dialog"}]},{"__symbolic":"module","version":1,"metadata":{"Md2DialogModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"},{"__symbolic":"reference","module":"../core","name":"OverlayModule"},{"__symbolic":"reference","module":"../core","name":"MdCommonModule"},{"__symbolic":"reference","module":"../core/platform/index","name":"PlatformModule"}],"exports":[{"__symbolic":"reference","module":"./dialog","name":"Md2Dialog"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogTitle"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogContent"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogActions"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogPortal"}],"declarations":[{"__symbolic":"reference","module":"./dialog","name":"Md2Dialog"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogTitle"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogContent"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogActions"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogPortal"}],"entryComponents":[{"__symbolic":"reference","module":"./dialog","name":"Md2Dialog"}]}]}]}},"exports":[{"from":"./dialog"}]}]
\ No newline at end of file
+[{"__symbolic":"module","version":3,"metadata":{"Md2DialogModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"},{"__symbolic":"reference","module":"../core","name":"OverlayModule"},{"__symbolic":"reference","module":"../core","name":"MdCommonModule"},{"__symbolic":"reference","module":"../core/platform/index","name":"PlatformModule"}],"exports":[{"__symbolic":"reference","module":"./dialog","name":"Md2Dialog"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogTitle"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogContent"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogActions"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogPortal"}],"declarations":[{"__symbolic":"reference","module":"./dialog","name":"Md2Dialog"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogTitle"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogContent"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogActions"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogPortal"}]}]}]}},"exports":[{"from":"./dialog"}]},{"__symbolic":"module","version":1,"metadata":{"Md2DialogModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"},{"__symbolic":"reference","module":"../core","name":"OverlayModule"},{"__symbolic":"reference","module":"../core","name":"MdCommonModule"},{"__symbolic":"reference","module":"../core/platform/index","name":"PlatformModule"}],"exports":[{"__symbolic":"reference","module":"./dialog","name":"Md2Dialog"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogTitle"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogContent"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogActions"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogPortal"}],"declarations":[{"__symbolic":"reference","module":"./dialog","name":"Md2Dialog"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogTitle"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogContent"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogActions"},{"__symbolic":"reference","module":"./dialog","name":"Md2DialogPortal"}]}]}]}},"exports":[{"from":"./dialog"}]}]
\ No newline at end of file
diff --git a/toast/index.d.ts b/toast/index.d.ts
index 7ff6d415e..05f8cb28c 100644
--- a/toast/index.d.ts
+++ b/toast/index.d.ts
@@ -1 +1,3 @@
export * from './toast';
+export declare class Md2ToastModule {
+}
diff --git a/toast/index.js b/toast/index.js
index f57cb58e2..f08f015aa 100644
--- a/toast/index.js
+++ b/toast/index.js
@@ -1,2 +1,33 @@
+var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
+};
+import { NgModule } from '@angular/core';
+import { CommonModule } from '@angular/common';
+import { OverlayModule, MdCommonModule } from '../core';
+import { PlatformModule } from '../core/platform/index';
+import { Md2Toast, Md2ToastConfig, Md2ToastComponent } from './toast';
export * from './toast';
+var Md2ToastModule = (function () {
+ function Md2ToastModule() {
+ }
+ return Md2ToastModule;
+}());
+Md2ToastModule = __decorate([
+ NgModule({
+ imports: [
+ CommonModule,
+ OverlayModule,
+ MdCommonModule,
+ PlatformModule
+ ],
+ exports: [Md2ToastComponent, MdCommonModule],
+ declarations: [Md2ToastComponent],
+ entryComponents: [Md2ToastComponent],
+ providers: [Md2Toast, Md2ToastConfig],
+ })
+], Md2ToastModule);
+export { Md2ToastModule };
//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/toast/index.js.map b/toast/index.js.map
index 985cc6521..82eb4a85d 100644
--- a/toast/index.js.map
+++ b/toast/index.js.map
@@ -1 +1 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/toast/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC","sourcesContent":["export * from './toast';\n"]}
\ No newline at end of file
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/toast/index.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEtE,cAAc,SAAS,CAAC;AAcxB,IAAa,cAAc;IAA3B;IAA8B,CAAC;IAAD,qBAAC;AAAD,CAAC,AAA/B,IAA+B;AAAlB,cAAc;IAZ1B,QAAQ,CAAC;QACR,OAAO,EAAE;YACP,YAAY;YACZ,aAAa;YACb,cAAc;YACd,cAAc;SACf;QACD,OAAO,EAAE,CAAC,iBAAiB,EAAE,cAAc,CAAC;QAC5C,YAAY,EAAE,CAAC,iBAAiB,CAAC;QACjC,eAAe,EAAE,CAAC,iBAAiB,CAAC;QACpC,SAAS,EAAE,CAAC,QAAQ,EAAE,cAAc,CAAC;KACtC,CAAC;GACW,cAAc,CAAI;SAAlB,cAAc","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { OverlayModule, MdCommonModule } from '../core';\nimport { PlatformModule } from '../core/platform/index';\nimport { Md2Toast, Md2ToastConfig, Md2ToastComponent } from './toast';\n\nexport * from './toast';\n\n@NgModule({\n imports: [\n CommonModule,\n OverlayModule,\n MdCommonModule,\n PlatformModule\n ],\n exports: [Md2ToastComponent, MdCommonModule],\n declarations: [Md2ToastComponent],\n entryComponents: [Md2ToastComponent],\n providers: [Md2Toast, Md2ToastConfig],\n})\nexport class Md2ToastModule { }\n"]}
\ No newline at end of file
diff --git a/toast/index.metadata.json b/toast/index.metadata.json
index cf6ab47b3..9fda9f1cd 100644
--- a/toast/index.metadata.json
+++ b/toast/index.metadata.json
@@ -1 +1 @@
-[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./toast"}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./toast"}]}]
\ No newline at end of file
+[{"__symbolic":"module","version":3,"metadata":{"Md2ToastModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"},{"__symbolic":"reference","module":"../core","name":"OverlayModule"},{"__symbolic":"reference","module":"../core","name":"MdCommonModule"},{"__symbolic":"reference","module":"../core/platform/index","name":"PlatformModule"}],"exports":[{"__symbolic":"reference","module":"./toast","name":"Md2ToastComponent"},{"__symbolic":"reference","module":"../core","name":"MdCommonModule"}],"declarations":[{"__symbolic":"reference","module":"./toast","name":"Md2ToastComponent"}],"entryComponents":[{"__symbolic":"reference","module":"./toast","name":"Md2ToastComponent"}],"providers":[{"__symbolic":"reference","module":"./toast","name":"Md2Toast"},{"__symbolic":"reference","module":"./toast","name":"Md2ToastConfig"}]}]}]}},"exports":[{"from":"./toast"}]},{"__symbolic":"module","version":1,"metadata":{"Md2ToastModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"},{"__symbolic":"reference","module":"../core","name":"OverlayModule"},{"__symbolic":"reference","module":"../core","name":"MdCommonModule"},{"__symbolic":"reference","module":"../core/platform/index","name":"PlatformModule"}],"exports":[{"__symbolic":"reference","module":"./toast","name":"Md2ToastComponent"},{"__symbolic":"reference","module":"../core","name":"MdCommonModule"}],"declarations":[{"__symbolic":"reference","module":"./toast","name":"Md2ToastComponent"}],"entryComponents":[{"__symbolic":"reference","module":"./toast","name":"Md2ToastComponent"}],"providers":[{"__symbolic":"reference","module":"./toast","name":"Md2Toast"},{"__symbolic":"reference","module":"./toast","name":"Md2ToastConfig"}]}]}]}},"exports":[{"from":"./toast"}]}]
\ No newline at end of file
diff --git a/toast/toast.d.ts b/toast/toast.d.ts
index 907067bd4..15888dcfe 100644
--- a/toast/toast.d.ts
+++ b/toast/toast.d.ts
@@ -69,6 +69,3 @@ export declare class Md2ToastComponent {
*/
hasToast(): boolean;
}
-export declare const MD2_TOAST_DIRECTIVES: any[];
-export declare class Md2ToastModule {
-}
diff --git a/toast/toast.html b/toast/toast.html
index 3c7438d0e..fcf7d90d1 100644
--- a/toast/toast.html
+++ b/toast/toast.html
@@ -1 +1 @@
-{{ toast.message }}
\ No newline at end of file
+
\ No newline at end of file
diff --git a/toast/toast.js b/toast/toast.js
index 57493a642..70ada5efe 100644
--- a/toast/toast.js
+++ b/toast/toast.js
@@ -7,9 +7,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
-import { Component, Injectable, NgModule, ViewEncapsulation, } from '@angular/core';
-import { CommonModule } from '@angular/common';
-import { Overlay, OverlayState, ComponentPortal, OVERLAY_PROVIDERS } from '../core';
+import { Component, Injectable, ViewEncapsulation, } from '@angular/core';
+import { Overlay, OverlayState, ComponentPortal, } from '../core';
var Toast = (function () {
function Toast(message) {
this.message = message;
@@ -181,26 +180,10 @@ var Md2ToastComponent = (function () {
Md2ToastComponent = __decorate([
Component({
selector: 'md2-toast',
- template: "{{ toast.message }}
",
+ template: "",
styles: ["md2-toast{display:block;box-sizing:border-box;cursor:default;overflow:hidden;min-width:304px;max-width:100%;padding:8px;user-select:none}.md2-toast{position:relative;padding:14px 24px;margin-bottom:5px;display:block;margin-top:-53px;opacity:0;background-color:#323232;color:#fafafa;box-shadow:0 2px 5px 0 rgba(0,0,0,.26);border-radius:2px;font-size:14px;overflow:hidden;word-wrap:break-word;transition:all 250ms linear}.md2-toast.in{margin-top:0;opacity:1}.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;text-transform:none;width:1px}.cdk-global-overlay-wrapper,.cdk-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000} /*# sourceMappingURL=toast.css.map */ "],
encapsulation: ViewEncapsulation.None,
})
], Md2ToastComponent);
export { Md2ToastComponent };
-export var MD2_TOAST_DIRECTIVES = [Md2ToastComponent];
-var Md2ToastModule = (function () {
- function Md2ToastModule() {
- }
- return Md2ToastModule;
-}());
-Md2ToastModule = __decorate([
- NgModule({
- imports: [CommonModule],
- exports: MD2_TOAST_DIRECTIVES,
- declarations: MD2_TOAST_DIRECTIVES,
- entryComponents: MD2_TOAST_DIRECTIVES,
- providers: [Md2Toast, Md2ToastConfig, OVERLAY_PROVIDERS]
- })
-], Md2ToastModule);
-export { Md2ToastModule };
//# sourceMappingURL=toast.js.map
\ No newline at end of file
diff --git a/toast/toast.js.map b/toast/toast.js.map
index 5a770a2c9..f9a591617 100644
--- a/toast/toast.js.map
+++ b/toast/toast.js.map
@@ -1 +1 @@
-{"version":3,"file":"toast.js","sourceRoot":"","sources":["../../../src/lib/toast/toast.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,UAAU,EAEV,QAAQ,EACR,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EACL,OAAO,EACP,YAAY,EAEZ,eAAe,EACf,iBAAiB,EAClB,MAAM,SAAS,CAAC;AAEjB;IAGE,eAAmB,OAAe;QAAf,YAAO,GAAP,OAAO,CAAQ;IAAI,CAAC;IACzC,YAAC;AAAD,CAAC,AAJD,IAIC;;AAED;IAAA;QACE,aAAQ,GAAW,IAAI,CAAC;QACxB,qBAAgB,GAAsB,IAAI,CAAC;IAC7C,CAAC;IAAD,qBAAC;AAAD,CAAC,AAHD,IAGC;;AAGD,IAAa,QAAQ;IAMnB,kBAAoB,QAAiB,EAAU,OAAuB;QAAlD,aAAQ,GAAR,QAAQ,CAAS;QAAU,YAAO,GAAP,OAAO,CAAgB;QAL9D,UAAK,GAAW,CAAC,CAAC;IAKgD,CAAC;IAE3E;;;OAGG;IACH,wBAAK,GAAL,UAAM,OAAe,EAAE,QAAiB;QACtC,IAAI,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c,EAAE,iBAAiB,CAAC;KACzD,CAAC;GACW,cAAc,CAAI;SAAlB,cAAc","sourcesContent":["import {\n Component,\n Injectable,\n ViewContainerRef,\n NgModule,\n ViewEncapsulation,\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport {\n Overlay,\n OverlayState,\n OverlayRef,\n ComponentPortal,\n OVERLAY_PROVIDERS\n} from '../core';\n\nexport class Toast {\n id: number;\n isVisible: boolean;\n constructor(public message: string) { }\n}\n\nexport class Md2ToastConfig {\n duration: number = 3000;\n viewContainerRef?: ViewContainerRef = null;\n}\n\n@Injectable()\nexport class Md2Toast {\n private index: number = 0;\n\n _overlayRef: OverlayRef;\n _toastInstance: Md2ToastComponent;\n\n constructor(private _overlay: Overlay, private _config: Md2ToastConfig) { }\n\n /**\n * toast message\n * @param toast string or object with message and other properties of toast\n */\n toast(message: string, duration?: number) {\n this.show(message, duration);\n }\n\n /**\n * show toast\n * @param toastObj string or object with message and other properties of toast\n */\n show(message: string, duration?: number) {\n if (!message || !message.trim()) { return; }\n\n if (duration) { this._config.duration = duration; }\n\n let toast: Toast;\n toast = new Toast(message);\n\n if (toast) {\n if (!this._toastInstance) {\n this._createToast();\n }\n\n this._setToastMessage(toast);\n }\n }\n\n /** Create the toast to display */\n private _createToast(): void {\n this._createOverlay();\n let portal = new ComponentPortal(Md2ToastComponent, this._config.viewContainerRef);\n this._toastInstance = this._overlayRef.attach(portal).instance;\n }\n\n /** Create the overlay config and position strategy */\n private _createOverlay(): void {\n if (!this._overlayRef) {\n let config = new OverlayState();\n config.positionStrategy = this._overlay.position()\n .global()\n .top('0').right('0');\n\n this._overlayRef = this._overlay.create(config);\n }\n }\n\n /** Disposes the current toast and the overlay it is attached to */\n private _disposeToast(): void {\n this._overlayRef.dispose();\n this._overlayRef = null;\n this._toastInstance = null;\n }\n\n /** Updates the toast message and repositions the overlay according to the new message length */\n private _setToastMessage(toast: Toast) {\n toast.id = ++this.index;\n this._toastInstance.addToast(toast);\n setTimeout(() => {\n this.clearToast(toast.id);\n }, this._config.duration);\n }\n\n /**\n * clear specific toast\n * @param toastId\n */\n private clearToast(toastId: number) {\n if (this._toastInstance) {\n this._toastInstance.removeToast(toastId);\n setTimeout(() => {\n if (!this._toastInstance.hasToast()) { this._disposeToast(); }\n }, 250);\n\n }\n }\n\n /**\n * clear all toasts\n */\n clearAllToasts() {\n if (this._toastInstance) {\n this._toastInstance.removeAllToasts();\n setTimeout(() => {\n if (!this._toastInstance.hasToast()) { this._disposeToast(); }\n }, 250);\n\n }\n }\n\n}\n\n@Component({\n selector: 'md2-toast',\n templateUrl: 'toast.html',\n styleUrls: ['toast.css'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class Md2ToastComponent {\n toasts: Toast[] = [];\n maxShown = 5;\n\n /**\n * add toast\n * @param toast toast object with all parameters\n */\n addToast(toast: Toast) {\n setTimeout(() => {\n toast.isVisible = true;\n }, 1);\n this.toasts.push(toast);\n if (this.toasts.length > this.maxShown) {\n this.toasts[0].isVisible = false;\n setTimeout(() => {\n this.toasts.splice(0, (this.toasts.length - this.maxShown));\n }, 250);\n }\n }\n\n /**\n * remove toast\n * @param toastId number of toast id\n */\n removeToast(toastId: number) {\n this.toasts.forEach((t: any) => { if (t.id === toastId) { t.isVisible = false; } });\n setTimeout(() => {\n this.toasts = this.toasts.filter((toast) => { return toast.id !== toastId; });\n }, 250);\n }\n\n /**\n * remove all toasts\n * @param toastId number of toast id\n */\n removeAllToasts() {\n this.toasts.forEach((t: any) => { t.isVisible = false; });\n setTimeout(() => {\n this.toasts = [];\n }, 250);\n }\n\n /**\n * check has any toast\n * @return boolean\n */\n hasToast(): boolean { return this.toasts.length > 0; }\n\n}\n\nexport const MD2_TOAST_DIRECTIVES: any[] = [Md2ToastComponent];\n\n@NgModule({\n imports: [CommonModule],\n exports: MD2_TOAST_DIRECTIVES,\n declarations: MD2_TOAST_DIRECTIVES,\n entryComponents: MD2_TOAST_DIRECTIVES,\n providers: [Md2Toast, Md2ToastConfig, OVERLAY_PROVIDERS]\n})\nexport class Md2ToastModule { }\n"]}
\ No newline at end of file
+{"version":3,"file":"toast.js","sourceRoot":"","sources":["../../../src/lib/toast/toast.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,UAAU,EAEV,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,OAAO,EACP,YAAY,EAEZ,eAAe,GAChB,MAAM,SAAS,CAAC;AAEjB;IAGE,eAAmB,OAAe;QAAf,YAAO,GAAP,OAAO,CAAQ;IAAI,CAAC;IACzC,YAAC;AAAD,CAAC,AAJD,IAIC;;AAED;IAAA;QACE,aAAQ,GAAW,IAAI,CAAC;QACxB,qBAAgB,GAAsB,IAAI,CAAC;IAC7C,CAAC;IAAD,qBAAC;AAAD,CAAC,AAHD,IAGC;;AAGD,IAAa,QAAQ;IAMnB,kBAAoB,QAAiB,EAAU,OAAuB;QAAlD,aAAQ,GAAR,QAAQ,CAAS;QAAU,YAAO,GAAP,OAAO,CAAgB;QAL9D,UAAK,GAAW,CAAC,CAAC;IAKgD,CAAC;IAE3E;;;OAGG;IACH,wBAAK,GAAL,UAAM,OAAe,EAAE,QAAiB;QACtC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAC/B,CAAC;IAED;;;OAGG;IACH,uBAAI,GAAJ,UAAK,OAAe,EAAE,QAAiB;QACrC,EAAE,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;YAAC,MAAM,CAAC;QAAC,CAAC;QAE5C,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;YAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAAC,CAAC;QAEnD,IAAI,KAAY,CAAC;QACjB,KAAK,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;QAE3B,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,C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CAAC;QACnB,CAAC,EAAE,GAAG,CAAC,CAAC;IACV,CAAC;IAED;;;OAGG;IACH,oCAAQ,GAAR,cAAsB,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;IAExD,wBAAC;AAAD,CAAC,AAjDD,IAiDC;AAjDY,iBAAiB;IAN7B,SAAS,CAAC;QACT,QAAQ,EAAE,WAAW;QACrB,WAAW,EAAE,YAAY;QACzB,SAAS,EAAE,CAAC,WAAW,CAAC;QACxB,aAAa,EAAE,iBAAiB,CAAC,IAAI;KACtC,CAAC;GACW,iBAAiB,CAiD7B;SAjDY,iBAAiB","sourcesContent":["import {\n Component,\n Injectable,\n ViewContainerRef,\n ViewEncapsulation,\n} from '@angular/core';\nimport {\n Overlay,\n OverlayState,\n OverlayRef,\n ComponentPortal,\n} from '../core';\n\nexport class Toast {\n id: number;\n isVisible: boolean;\n constructor(public message: string) { }\n}\n\nexport class Md2ToastConfig {\n duration: number = 3000;\n viewContainerRef?: ViewContainerRef = null;\n}\n\n@Injectable()\nexport class Md2Toast {\n private index: number = 0;\n\n _overlayRef: OverlayRef;\n _toastInstance: Md2ToastComponent;\n\n constructor(private _overlay: Overlay, private _config: Md2ToastConfig) { }\n\n /**\n * toast message\n * @param toast string or object with message and other properties of toast\n */\n toast(message: string, duration?: number) {\n this.show(message, duration);\n }\n\n /**\n * show toast\n * @param toastObj string or object with message and other properties of toast\n */\n show(message: string, duration?: number) {\n if (!message || !message.trim()) { return; }\n\n if (duration) { this._config.duration = duration; }\n\n let toast: Toast;\n toast = new Toast(message);\n\n if (toast) {\n if (!this._toastInstance) {\n this._createToast();\n }\n\n this._setToastMessage(toast);\n }\n }\n\n /** Create the toast to display */\n private _createToast(): void {\n this._createOverlay();\n let portal = new ComponentPortal(Md2ToastComponent, this._config.viewContainerRef);\n this._toastInstance = this._overlayRef.attach(portal).instance;\n }\n\n /** Create the overlay config and position strategy */\n private _createOverlay(): void {\n if (!this._overlayRef) {\n let config = new OverlayState();\n config.positionStrategy = this._overlay.position()\n .global()\n .top('0').right('0');\n\n this._overlayRef = this._overlay.create(config);\n }\n }\n\n /** Disposes the current toast and the overlay it is attached to */\n private _disposeToast(): void {\n this._overlayRef.dispose();\n this._overlayRef = null;\n this._toastInstance = null;\n }\n\n /** Updates the toast message and repositions the overlay according to the new message length */\n private _setToastMessage(toast: Toast) {\n toast.id = ++this.index;\n this._toastInstance.addToast(toast);\n setTimeout(() => {\n this.clearToast(toast.id);\n }, this._config.duration);\n }\n\n /**\n * clear specific toast\n * @param toastId\n */\n private clearToast(toastId: number) {\n if (this._toastInstance) {\n this._toastInstance.removeToast(toastId);\n setTimeout(() => {\n if (!this._toastInstance.hasToast()) { this._disposeToast(); }\n }, 250);\n\n }\n }\n\n /**\n * clear all toasts\n */\n clearAllToasts() {\n if (this._toastInstance) {\n this._toastInstance.removeAllToasts();\n setTimeout(() => {\n if (!this._toastInstance.hasToast()) { this._disposeToast(); }\n }, 250);\n\n }\n }\n\n}\n\n@Component({\n selector: 'md2-toast',\n templateUrl: 'toast.html',\n styleUrls: ['toast.css'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class Md2ToastComponent {\n toasts: Toast[] = [];\n maxShown = 5;\n\n /**\n * add toast\n * @param toast toast object with all parameters\n */\n addToast(toast: Toast) {\n setTimeout(() => {\n toast.isVisible = true;\n }, 1);\n this.toasts.push(toast);\n if (this.toasts.length > this.maxShown) {\n this.toasts[0].isVisible = false;\n setTimeout(() => {\n this.toasts.splice(0, (this.toasts.length - this.maxShown));\n }, 250);\n }\n }\n\n /**\n * remove toast\n * @param toastId number of toast id\n */\n removeToast(toastId: number) {\n this.toasts.forEach((t: any) => { if (t.id === toastId) { t.isVisible = false; } });\n setTimeout(() => {\n this.toasts = this.toasts.filter((toast) => { return toast.id !== toastId; });\n }, 250);\n }\n\n /**\n * remove all toasts\n * @param toastId number of toast id\n */\n removeAllToasts() {\n this.toasts.forEach((t: any) => { t.isVisible = false; });\n setTimeout(() => {\n this.toasts = [];\n }, 250);\n }\n\n /**\n * check has any toast\n * @return boolean\n */\n hasToast(): boolean { return this.toasts.length > 0; }\n\n}\n"]}
\ No newline at end of file
diff --git a/toast/toast.metadata.json b/toast/toast.metadata.json
index 7937bac08..5c7920cc3 100644
--- a/toast/toast.metadata.json
+++ b/toast/toast.metadata.json
@@ -1 +1 @@
-[{"__symbolic":"module","version":3,"metadata":{"Toast":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"}]}]}},"Md2ToastConfig":{"__symbolic":"class"},"Md2Toast":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../core","name":"Overlay"},{"__symbolic":"reference","name":"Md2ToastConfig"}]}],"toast":[{"__symbolic":"method"}],"show":[{"__symbolic":"method"}],"_createToast":[{"__symbolic":"method"}],"_createOverlay":[{"__symbolic":"method"}],"_disposeToast":[{"__symbolic":"method"}],"_setToastMessage":[{"__symbolic":"method"}],"clearToast":[{"__symbolic":"method"}],"clearAllToasts":[{"__symbolic":"method"}]}},"Md2ToastComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"md2-toast","templateUrl":"toast.html","styleUrls":["toast.css"],"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation"},"member":"None"}}]}],"members":{"addToast":[{"__symbolic":"method"}],"removeToast":[{"__symbolic":"method"}],"removeAllToasts":[{"__symbolic":"method"}],"hasToast":[{"__symbolic":"method"}]}},"MD2_TOAST_DIRECTIVES":[{"__symbolic":"reference","name":"Md2ToastComponent"}],"Md2ToastModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"exports":{"__symbolic":"reference","name":"MD2_TOAST_DIRECTIVES"},"declarations":{"__symbolic":"reference","name":"MD2_TOAST_DIRECTIVES"},"entryComponents":{"__symbolic":"reference","name":"MD2_TOAST_DIRECTIVES"},"providers":[{"__symbolic":"reference","name":"Md2Toast"},{"__symbolic":"reference","name":"Md2ToastConfig"},{"__symbolic":"reference","module":"../core","name":"OVERLAY_PROVIDERS"}]}]}]}}},{"__symbolic":"module","version":1,"metadata":{"Toast":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"}]}]}},"Md2ToastConfig":{"__symbolic":"class"},"Md2Toast":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../core","name":"Overlay"},{"__symbolic":"reference","name":"Md2ToastConfig"}]}],"toast":[{"__symbolic":"method"}],"show":[{"__symbolic":"method"}],"_createToast":[{"__symbolic":"method"}],"_createOverlay":[{"__symbolic":"method"}],"_disposeToast":[{"__symbolic":"method"}],"_setToastMessage":[{"__symbolic":"method"}],"clearToast":[{"__symbolic":"method"}],"clearAllToasts":[{"__symbolic":"method"}]}},"Md2ToastComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"md2-toast","templateUrl":"toast.html","styleUrls":["toast.css"],"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation"},"member":"None"}}]}],"members":{"addToast":[{"__symbolic":"method"}],"removeToast":[{"__symbolic":"method"}],"removeAllToasts":[{"__symbolic":"method"}],"hasToast":[{"__symbolic":"method"}]}},"MD2_TOAST_DIRECTIVES":[{"__symbolic":"reference","name":"Md2ToastComponent"}],"Md2ToastModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"exports":{"__symbolic":"reference","name":"MD2_TOAST_DIRECTIVES"},"declarations":{"__symbolic":"reference","name":"MD2_TOAST_DIRECTIVES"},"entryComponents":{"__symbolic":"reference","name":"MD2_TOAST_DIRECTIVES"},"providers":[{"__symbolic":"reference","name":"Md2Toast"},{"__symbolic":"reference","name":"Md2ToastConfig"},{"__symbolic":"reference","module":"../core","name":"OVERLAY_PROVIDERS"}]}]}]}}}]
\ No newline at end of file
+[{"__symbolic":"module","version":3,"metadata":{"Toast":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"}]}]}},"Md2ToastConfig":{"__symbolic":"class"},"Md2Toast":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../core","name":"Overlay"},{"__symbolic":"reference","name":"Md2ToastConfig"}]}],"toast":[{"__symbolic":"method"}],"show":[{"__symbolic":"method"}],"_createToast":[{"__symbolic":"method"}],"_createOverlay":[{"__symbolic":"method"}],"_disposeToast":[{"__symbolic":"method"}],"_setToastMessage":[{"__symbolic":"method"}],"clearToast":[{"__symbolic":"method"}],"clearAllToasts":[{"__symbolic":"method"}]}},"Md2ToastComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"md2-toast","templateUrl":"toast.html","styleUrls":["toast.css"],"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation"},"member":"None"}}]}],"members":{"addToast":[{"__symbolic":"method"}],"removeToast":[{"__symbolic":"method"}],"removeAllToasts":[{"__symbolic":"method"}],"hasToast":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"Toast":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"}]}]}},"Md2ToastConfig":{"__symbolic":"class"},"Md2Toast":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../core","name":"Overlay"},{"__symbolic":"reference","name":"Md2ToastConfig"}]}],"toast":[{"__symbolic":"method"}],"show":[{"__symbolic":"method"}],"_createToast":[{"__symbolic":"method"}],"_createOverlay":[{"__symbolic":"method"}],"_disposeToast":[{"__symbolic":"method"}],"_setToastMessage":[{"__symbolic":"method"}],"clearToast":[{"__symbolic":"method"}],"clearAllToasts":[{"__symbolic":"method"}]}},"Md2ToastComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"md2-toast","templateUrl":"toast.html","styleUrls":["toast.css"],"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation"},"member":"None"}}]}],"members":{"addToast":[{"__symbolic":"method"}],"removeToast":[{"__symbolic":"method"}],"removeAllToasts":[{"__symbolic":"method"}],"hasToast":[{"__symbolic":"method"}]}}}}]
\ No newline at end of file
diff --git a/tooltip/tooltip.css b/tooltip/tooltip.css
index 02eeba398..fe31f1ded 100644
--- a/tooltip/tooltip.css
+++ b/tooltip/tooltip.css
@@ -1,2 +1,2 @@
-:host{pointer-events:none}.md2-tooltip{color:#fff;padding:6px 8px;border-radius:2px;font-size:10px;margin:14px;max-width:250px;background:rgba(97,97,97,.9);word-wrap:break-word}.cdk-global-overlay-wrapper,.cdk-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000}
+md2-tooltip{pointer-events:none}.md2-tooltip{color:#fff;padding:6px 8px;border-radius:2px;font-size:10px;margin:14px;max-width:250px;background:rgba(97,97,97,.9);word-wrap:break-word}.cdk-global-overlay-wrapper,.cdk-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000}
/*# sourceMappingURL=tooltip.css.map */
diff --git a/tooltip/tooltip.css.map b/tooltip/tooltip.css.map
index 027c608a3..e1fa4b80e 100644
--- a/tooltip/tooltip.css.map
+++ b/tooltip/tooltip.css.map
@@ -1 +1 @@
-{"version":3,"sources":["tooltip/tooltip.scss"],"names":[],"mappings":"AAOA,MACE,eAAgB,KAGlB,aACE,MAAO,KACP,QAR6B,IADE,IAU/B,cAAe,IACf,UAbsB,KActB,OAbmB,KAcnB,UAhBsB,MAiBtB,WAAY,kBACZ,UAAW,WAGW,4BAAxB,uBACE,eAAgB,KAChB,IAAK,EACL,KAAM,EACN,OAAQ,KACR,MAAO,KAGT,uBACE,SAAU,MACV,QAAS,KAGX,4BACE,QAAS,KACT,SAAU,SACV,QAAS,KAGX,kBACE,SAAU,SACV,eAAgB,KAChB,WAAY,WACZ,QAAS","file":"tooltip.css","sourcesContent":["$md2-tooltip-target-height: 22px;\n$md2-tooltip-max-width: 250px;\n$md2-tooltip-font-size: 10px;\n$md2-tooltip-margin: 14px;\n$md2-tooltip-horizontal-padding: 8px;\n$md2-tooltip-vertical-padding: ($md2-tooltip-target-height - $md2-tooltip-font-size) / 2;\n\n:host {\n pointer-events: none;\n}\n\n.md2-tooltip {\n color: white;\n padding: $md2-tooltip-vertical-padding $md2-tooltip-horizontal-padding;\n border-radius: 2px;\n font-size: $md2-tooltip-font-size;\n margin: $md2-tooltip-margin;\n max-width: $md2-tooltip-max-width;\n background: rgba(97, 97, 97, 0.9);\n word-wrap: break-word;\n}\n\n.cdk-overlay-container, .cdk-global-overlay-wrapper {\n pointer-events: none;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n}\n\n.cdk-overlay-container {\n position: fixed;\n z-index: 1000;\n}\n\n.cdk-global-overlay-wrapper {\n display: flex;\n position: absolute;\n z-index: 1000;\n}\n\n.cdk-overlay-pane {\n position: absolute;\n pointer-events: auto;\n box-sizing: border-box;\n z-index: 1000;\n}\n"]}
\ No newline at end of file
+{"version":3,"sources":["tooltip/tooltip.scss"],"names":[],"mappings":"AAOA,YACE,eAAgB,KAGlB,aACE,MAAO,KACP,QAR6B,IADE,IAU/B,cAAe,IACf,UAbsB,KActB,OAbmB,KAcnB,UAhBsB,MAiBtB,WAAY,kBACZ,UAAW,WAGW,4BAAxB,uBACE,eAAgB,KAChB,IAAK,EACL,KAAM,EACN,OAAQ,KACR,MAAO,KAGT,uBACE,SAAU,MACV,QAAS,KAGX,4BACE,QAAS,KACT,SAAU,SACV,QAAS,KAGX,kBACE,SAAU,SACV,eAAgB,KAChB,WAAY,WACZ,QAAS","file":"tooltip.css","sourcesContent":["$md2-tooltip-target-height: 22px;\n$md2-tooltip-max-width: 250px;\n$md2-tooltip-font-size: 10px;\n$md2-tooltip-margin: 14px;\n$md2-tooltip-horizontal-padding: 8px;\n$md2-tooltip-vertical-padding: ($md2-tooltip-target-height - $md2-tooltip-font-size) / 2;\n\nmd2-tooltip {\n pointer-events: none;\n}\n\n.md2-tooltip {\n color: white;\n padding: $md2-tooltip-vertical-padding $md2-tooltip-horizontal-padding;\n border-radius: 2px;\n font-size: $md2-tooltip-font-size;\n margin: $md2-tooltip-margin;\n max-width: $md2-tooltip-max-width;\n background: rgba(97, 97, 97, 0.9);\n word-wrap: break-word;\n}\n\n.cdk-overlay-container, .cdk-global-overlay-wrapper {\n pointer-events: none;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n}\n\n.cdk-overlay-container {\n position: fixed;\n z-index: 1000;\n}\n\n.cdk-global-overlay-wrapper {\n display: flex;\n position: absolute;\n z-index: 1000;\n}\n\n.cdk-overlay-pane {\n position: absolute;\n pointer-events: auto;\n box-sizing: border-box;\n z-index: 1000;\n}\n"]}
\ No newline at end of file
diff --git a/tooltip/tooltip.js b/tooltip/tooltip.js
index 36ab58183..a114a10a5 100644
--- a/tooltip/tooltip.js
+++ b/tooltip/tooltip.js
@@ -10,7 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
var __param = (this && this.__param) || function (paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
};
-import { Component, Directive, Input, ElementRef, ViewContainerRef, NgZone, Optional, Renderer2, ChangeDetectorRef, } from '@angular/core';
+import { Component, Directive, Input, ElementRef, ViewContainerRef, NgZone, Optional, Renderer2, ChangeDetectorRef, ViewEncapsulation, } from '@angular/core';
import { style, trigger, state, transition, animate, } from '@angular/animations';
import { Overlay, OverlayState, ComponentPortal, } from '../core';
import { Subject } from 'rxjs/Subject';
@@ -399,7 +399,7 @@ var Md2TooltipComponent = (function () {
Md2TooltipComponent = __decorate([
Component({selector: 'md2-tooltip',
template: "",
- styles: [":host{pointer-events:none}.md2-tooltip{color:#fff;padding:6px 8px;border-radius:2px;font-size:10px;margin:14px;max-width:250px;background:rgba(97,97,97,.9);word-wrap:break-word}.cdk-global-overlay-wrapper,.cdk-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000} /*# sourceMappingURL=tooltip.css.map */ "],
+ styles: ["md2-tooltip{pointer-events:none}.md2-tooltip{color:#fff;padding:6px 8px;border-radius:2px;font-size:10px;margin:14px;max-width:250px;background:rgba(97,97,97,.9);word-wrap:break-word}.cdk-global-overlay-wrapper,.cdk-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000} /*# sourceMappingURL=tooltip.css.map */ "],
animations: [
trigger('state', [
state('void', style({ transform: 'scale(0)' })),
@@ -413,7 +413,8 @@ Md2TooltipComponent = __decorate([
host: {
'[style.zoom]': '_visibility === "visible" ? 1 : null',
'(body:click)': 'this._handleBodyInteraction()'
- }
+ },
+ encapsulation: ViewEncapsulation.None
}),
__param(0, Optional()),
__metadata("design:paramtypes", [Dir, ChangeDetectorRef])
diff --git a/tooltip/tooltip.js.map b/tooltip/tooltip.js.map
index c21f93620..826714f89 100644
--- a/tooltip/tooltip.js.map
+++ b/tooltip/tooltip.js.map
@@ -1 +1 @@
-{"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../../src/lib/tooltip/tooltip.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,SAAS,EACT,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,MAAM,EACN,QAAQ,EAER,SAAS,EACT,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,KAAK,EACL,OAAO,EACP,KAAK,EACL,UAAU,EACV,OAAO,GAER,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,OAAO,EACP,YAAY,EAEZ,eAAe,GAGhB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAI1E,2EAA2E;AAC3E,MAAM,CAAC,I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uBc,WAAA,QAAQ,EAAE,CAAA;qCAAe,GAAG,EAA8B,iBAAiB;GAtB9E,mBAAmB,CA8H/B;SA9HY,mBAAmB","sourcesContent":["import {\n Component,\n Directive,\n Input,\n ElementRef,\n ViewContainerRef,\n NgZone,\n Optional,\n OnDestroy,\n Renderer2,\n ChangeDetectorRef,\n} from '@angular/core';\nimport {\n style,\n trigger,\n state,\n transition,\n animate,\n AnimationEvent,\n} from '@angular/animations';\nimport {\n Overlay,\n OverlayState,\n OverlayRef,\n ComponentPortal,\n OverlayConnectionPosition,\n OriginConnectionPosition,\n} from '../core';\nimport { Observable } from 'rxjs/Observable';\nimport { Subject } from 'rxjs/Subject';\nimport { Dir } from '../core/rtl/dir';\nimport { Platform } from '../core/platform/index';\nimport 'rxjs/add/operator/first';\nimport { ScrollDispatcher } from '../core/overlay/scroll/scroll-dispatcher';\nimport { coerceBooleanProperty } from '../core/coercion/boolean-property';\n\nexport type TooltipPosition = 'left' | 'right' | 'above' | 'below' | 'before' | 'after';\n\n/** Time in ms to delay before changing the tooltip visibility to hidden */\nexport const TOUCHEND_HIDE_DELAY = 1500;\n\n/** Time in ms to throttle repositioning after scroll events. */\nexport const SCROLL_THROTTLE_MS = 20;\n\n/** Throws an error if the user supplied an invalid tooltip position. */\nexport function throwMd2TooltipInvalidPositionError(position: string) {\n throw new Error(`Tooltip position \"${position}\" is invalid.`);\n}\n\n/**\n * Directive that attaches a material design tooltip to the host element. Animates the showing and\n * hiding of a tooltip provided position (defaults to below the element).\n *\n * https://material.google.com/components/tooltips.html\n */\n@Directive({\n selector: '[tooltip]',\n host: {\n '(longpress)': 'show()',\n '(touchend)': 'hide(' + TOUCHEND_HIDE_DELAY + ')',\n },\n exportAs: 'md2Tooltip',\n})\nexport class Md2Tooltip implements OnDestroy {\n _overlayRef: OverlayRef;\n _tooltipInstance: Md2TooltipComponent;\n\n private _position: TooltipPosition = 'below';\n private _disabled: boolean = false;\n\n /** Allows the user to define the position of the tooltip relative to the parent element */\n @Input('tooltip-position')\n get position(): TooltipPosition { return this._position; }\n set position(value: TooltipPosition) {\n if (value !== this._position) {\n this._position = value;\n\n // TODO(andrewjs): When the overlay's position can be dynamically changed, do not destroy\n // the tooltip.\n if (this._tooltipInstance) {\n this._disposeTooltip();\n }\n }\n }\n\n /** Disables the display of the tooltip. */\n @Input('tooltipDisabled')\n get disabled(): boolean { return this._disabled; }\n set disabled(value) {\n this._disabled = coerceBooleanProperty(value);\n\n // If tooltip is disabled, hide immediately.\n if (this._disabled) {\n this.hide(0);\n }\n }\n\n /** The default delay in ms before showing the tooltip after show is called */\n @Input('tooltip-delay') showDelay = 0;\n\n /** The default delay in ms before hiding the tooltip after hide is called */\n @Input('tooltip-hide-delay') hideDelay = 0;\n\n private _message: string;\n\n /** The message to be displayed in the tooltip */\n @Input('tooltip') get message() { return this._message; }\n set message(value: string) {\n this._message = value;\n if (this._tooltipInstance) {\n this._setTooltipMessage(this._message);\n }\n }\n\n constructor(private _overlay: Overlay,\n private _elementRef: ElementRef,\n private _scrollDispatcher: ScrollDispatcher,\n private _viewContainerRef: ViewContainerRef,\n private _ngZone: NgZone,\n private _renderer: Renderer2,\n private _platform: Platform,\n @Optional() private _dir: Dir) {\n\n // The mouse events shouldn't be bound on iOS devices, because\n // they can prevent the first tap from firing its click event.\n if (!_platform.IOS) {\n _renderer.listen(_elementRef.nativeElement, 'mouseenter', () => this.show());\n _renderer.listen(_elementRef.nativeElement, 'mouseleave', () => this.hide());\n }\n }\n\n /**\n * Dispose the tooltip when destroyed.\n */\n ngOnDestroy() {\n if (this._tooltipInstance) {\n this._disposeTooltip();\n }\n }\n\n /** Shows the tooltip after the delay in ms, defaults to tooltip-delay-show or 0ms if no input */\n show(delay: number = this.showDelay): void {\n if (this.disabled || !this._message || !this._message.trim()) { return; }\n\n if (!this._tooltipInstance) {\n this._createTooltip();\n }\n\n this._setTooltipMessage(this._message);\n this._tooltipInstance.show(this._position, delay);\n }\n\n /** Hides the tooltip after the delay in ms, defaults to tooltip-delay-hide or 0ms if no input */\n hide(delay: number = this.hideDelay): void {\n if (this._tooltipInstance) {\n this._tooltipInstance.hide(delay);\n }\n }\n\n /** Shows/hides the tooltip */\n toggle(): void {\n this._isTooltipVisible() ? this.hide() : this.show();\n }\n\n /** Returns true if the tooltip is currently visible to the user */\n _isTooltipVisible(): boolean {\n return !!this._tooltipInstance && this._tooltipInstance.isVisible();\n }\n\n /** Create the tooltip to display */\n private _createTooltip(): void {\n this._createOverlay();\n let portal = new ComponentPortal(Md2TooltipComponent, this._viewContainerRef);\n this._tooltipInstance = this._overlayRef.attach(portal).instance;\n\n // Dispose the overlay when finished the shown tooltip.\n this._tooltipInstance.afterHidden().subscribe(() => {\n // Check first if the tooltip has already been removed through this components destroy.\n if (this._tooltipInstance) {\n this._disposeTooltip();\n }\n });\n }\n\n /** Create the overlay config and position strategy */\n private _createOverlay(): void {\n let origin = this._getOrigin();\n let position = this._getOverlayPosition();\n\n // Create connected position strategy that listens for scroll events to reposition.\n // After position changes occur and the overlay is clipped by a parent scrollable then\n // close the tooltip.\n let strategy = this._overlay.position().connectedTo(this._elementRef, origin, position);\n strategy.withScrollableContainers(this._scrollDispatcher.getScrollContainers(this._elementRef));\n strategy.onPositionChange.subscribe(change => {\n if (change.scrollableViewProperties.isOverlayClipped &&\n this._tooltipInstance && this._tooltipInstance.isVisible()) {\n this.hide(0);\n }\n });\n\n let config = new OverlayState();\n\n config.direction = this._dir ? this._dir.value : 'ltr';\n config.positionStrategy = strategy;\n config.scrollStrategy = this._overlay.scrollStrategies.reposition({\n scrollThrottle: SCROLL_THROTTLE_MS\n });\n\n this._overlayRef = this._overlay.create(config);\n }\n\n /** Disposes the current tooltip and the overlay it is attached to */\n private _disposeTooltip(): void {\n this._overlayRef.dispose();\n this._overlayRef = null;\n this._tooltipInstance = null;\n }\n\n /** Returns the origin position based on the user's position preference */\n _getOrigin(): OriginConnectionPosition {\n if (this.position == 'above' || this.position == 'below') {\n return { originX: 'center', originY: this.position == 'above' ? 'top' : 'bottom' };\n }\n\n const isDirectionLtr = !this._dir || this._dir.value == 'ltr';\n if (this.position == 'left' ||\n this.position == 'before' && isDirectionLtr ||\n this.position == 'after' && !isDirectionLtr) {\n return { originX: 'start', originY: 'center' };\n }\n\n if (this.position == 'right' ||\n this.position == 'after' && isDirectionLtr ||\n this.position == 'before' && !isDirectionLtr) {\n return { originX: 'end', originY: 'center' };\n }\n\n throwMd2TooltipInvalidPositionError(this.position);\n }\n\n /** Returns the overlay position based on the user's preference */\n _getOverlayPosition(): OverlayConnectionPosition {\n if (this.position == 'above') {\n return { overlayX: 'center', overlayY: 'bottom' };\n }\n\n if (this.position == 'below') {\n return { overlayX: 'center', overlayY: 'top' };\n }\n\n const isLtr = !this._dir || this._dir.value == 'ltr';\n if (this.position == 'left' ||\n this.position == 'before' && isLtr ||\n this.position == 'after' && !isLtr) {\n return { overlayX: 'end', overlayY: 'center' };\n }\n\n if (this.position == 'right' ||\n this.position == 'after' && isLtr ||\n this.position == 'before' && !isLtr) {\n return { overlayX: 'start', overlayY: 'center' };\n }\n\n throwMd2TooltipInvalidPositionError(this.position);\n }\n\n /** Updates the tooltip message and repositions the overlay according to the new message length */\n private _setTooltipMessage(message: string) {\n // Must wait for the message to be painted to the tooltip so that the overlay can properly\n // calculate the correct positioning based on the size of the text.\n this._tooltipInstance.message = message;\n this._tooltipInstance._markForCheck();\n\n this._ngZone.onMicrotaskEmpty.first().subscribe(() => {\n if (this._tooltipInstance) {\n this._overlayRef.updatePosition();\n }\n });\n }\n}\n\nexport type TooltipVisibility = 'initial' | 'visible' | 'hidden';\n\n/**\n * Internal component that wraps the tooltip's content.\n * @docs-private\n */\n@Component({\n moduleId: module.id,\n selector: 'md2-tooltip',\n templateUrl: 'tooltip.html',\n styleUrls: ['tooltip.css'],\n animations: [\n trigger('state', [\n state('void', style({ transform: 'scale(0)' })),\n state('initial', style({ transform: 'scale(0)' })),\n state('visible', style({ transform: 'scale(1)' })),\n state('hidden', style({ transform: 'scale(0)' })),\n transition('* => visible', animate('150ms cubic-bezier(0.0, 0.0, 0.2, 1)')),\n transition('* => hidden', animate('150ms cubic-bezier(0.4, 0.0, 1, 1)')),\n ])\n ],\n host: {\n '[style.zoom]': '_visibility === \"visible\" ? 1 : null',\n '(body:click)': 'this._handleBodyInteraction()'\n }\n})\nexport class Md2TooltipComponent {\n /** Message to display in the tooltip */\n message: string;\n\n /** The timeout ID of any current timer set to show the tooltip */\n _showTimeoutId: number;\n\n /** The timeout ID of any current timer set to hide the tooltip */\n _hideTimeoutId: number;\n\n /** Property watched by the animation framework to show or hide the tooltip */\n _visibility: TooltipVisibility = 'initial';\n\n /** Whether interactions on the page should close the tooltip */\n _closeOnInteraction: boolean = false;\n\n /** The transform origin used in the animation for showing and hiding the tooltip */\n _transformOrigin: string = 'bottom';\n\n /** Subject for notifying that the tooltip has been hidden from the view */\n private _onHide: Subject = new Subject();\n\n constructor( @Optional() private _dir: Dir, private _changeDetectorRef: ChangeDetectorRef) { }\n\n /**\n * Shows the tooltip with an animation originating from the provided origin\n * @param position Position of the tooltip.\n * @param delay Amount of milliseconds to the delay showing the tooltip.\n */\n show(position: TooltipPosition, delay: number): void {\n // Cancel the delayed hide if it is scheduled\n if (this._hideTimeoutId) {\n clearTimeout(this._hideTimeoutId);\n }\n\n // Body interactions should cancel the tooltip if there is a delay in showing.\n this._closeOnInteraction = true;\n\n this._setTransformOrigin(position);\n this._showTimeoutId = setTimeout(() => {\n this._visibility = 'visible';\n\n // If this was set to true immediately, then a body click that triggers show() would\n // trigger interaction and close the tooltip right after it was displayed.\n this._closeOnInteraction = false;\n\n // Mark for check so if any parent component has set the\n // ChangeDetectionStrategy to OnPush it will be checked anyways\n this._markForCheck();\n setTimeout(() => this._closeOnInteraction = true, 0);\n }, delay);\n }\n\n /**\n * Begins the animation to hide the tooltip after the provided delay in ms.\n * @param delay Amount of milliseconds to delay showing the tooltip.\n */\n hide(delay: number): void {\n // Cancel the delayed show if it is scheduled\n if (this._showTimeoutId) {\n clearTimeout(this._showTimeoutId);\n }\n\n this._hideTimeoutId = setTimeout(() => {\n this._visibility = 'hidden';\n this._closeOnInteraction = false;\n\n // Mark for check so if any parent component has set the\n // ChangeDetectionStrategy to OnPush it will be checked anyways\n this._markForCheck();\n }, delay);\n }\n\n /**\n * Returns an observable that notifies when the tooltip has been hidden from view\n */\n afterHidden(): Observable {\n return this._onHide.asObservable();\n }\n\n /**\n * Whether the tooltip is being displayed\n */\n isVisible(): boolean {\n return this._visibility === 'visible';\n }\n\n /** Sets the tooltip transform origin according to the tooltip position */\n _setTransformOrigin(value: TooltipPosition) {\n const isLtr = !this._dir || this._dir.value == 'ltr';\n switch (value) {\n case 'before': this._transformOrigin = isLtr ? 'right' : 'left'; break;\n case 'after': this._transformOrigin = isLtr ? 'left' : 'right'; break;\n case 'left': this._transformOrigin = 'right'; break;\n case 'right': this._transformOrigin = 'left'; break;\n case 'above': this._transformOrigin = 'bottom'; break;\n case 'below': this._transformOrigin = 'top'; break;\n default: throwMd2TooltipInvalidPositionError(value);\n }\n }\n\n _afterVisibilityAnimation(e: AnimationEvent): void {\n if (e.toState === 'hidden' && !this.isVisible()) {\n this._onHide.next();\n }\n }\n\n /**\n * Interactions on the HTML body should close the tooltip immediately as defined in the\n * material design spec.\n * https://material.google.com/components/tooltips.html#tooltips-interaction\n */\n _handleBodyInteraction(): void {\n if (this._closeOnInteraction) {\n this.hide(0);\n }\n }\n\n /**\n * Marks that the tooltip needs to be checked in the next change detection run.\n * Mainly used for rendering the initial text before positioning a tooltip, which\n * can be problematic in components with OnPush change detection.\n */\n _markForCheck(): void {\n this._changeDetectorRef.markForCheck();\n }\n}\n"]}
\ No newline at end of file
+{"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../../src/lib/tooltip/tooltip.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,SAAS,EACT,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,MAAM,EACN,QAAQ,EAER,SAAS,E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,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,CAAC;gBAC/C,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,CAAC;gBAClD,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,CAAC;gBAClD,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,CAAC;gBACjD,UAAU,CAAC,cAAc,EAAE,OAAO,CAAC,sCAAsC,CAAC,CAAC;gBAC3E,UAAU,CAAC,aAAa,EAAE,OAAO,CAAC,oCAAoC,CAAC,CAAC;aACzE,CAAC;SACH;QACD,IAAI,EAAE;YACJ,cAAc,EAAE,sCAAsC;YACtD,cAAc,EAAE,+BAA+B;SAChD;QACD,aAAa,EAAE,iBAAiB,CAAC,IAAI;KACtC,CAAC;IAuBc,WAAA,QAAQ,EAAE,CAAA;qCAAe,GAAG,EAA8B,iBAAiB;GAtB9E,mBAAmB,CA8H/B;SA9HY,mBAAmB","sourcesContent":["import {\n Component,\n Directive,\n Input,\n ElementRef,\n ViewContainerRef,\n NgZone,\n Optional,\n OnDestroy,\n Renderer2,\n ChangeDetectorRef,\n ViewEncapsulation,\n} from '@angular/core';\nimport {\n style,\n trigger,\n state,\n transition,\n animate,\n AnimationEvent,\n} from '@angular/animations';\nimport {\n Overlay,\n OverlayState,\n OverlayRef,\n ComponentPortal,\n OverlayConnectionPosition,\n OriginConnectionPosition,\n} from '../core';\nimport { Observable } from 'rxjs/Observable';\nimport { Subject } from 'rxjs/Subject';\nimport { Dir } from '../core/rtl/dir';\nimport { Platform } from '../core/platform/index';\nimport 'rxjs/add/operator/first';\nimport { ScrollDispatcher } from '../core/overlay/scroll/scroll-dispatcher';\nimport { coerceBooleanProperty } from '../core/coercion/boolean-property';\n\nexport type TooltipPosition = 'left' | 'right' | 'above' | 'below' | 'before' | 'after';\n\n/** Time in ms to delay before changing the tooltip visibility to hidden */\nexport const TOUCHEND_HIDE_DELAY = 1500;\n\n/** Time in ms to throttle repositioning after scroll events. */\nexport const SCROLL_THROTTLE_MS = 20;\n\n/** Throws an error if the user supplied an invalid tooltip position. */\nexport function throwMd2TooltipInvalidPositionError(position: string) {\n throw new Error(`Tooltip position \"${position}\" is invalid.`);\n}\n\n/**\n * Directive that attaches a material design tooltip to the host element. Animates the showing and\n * hiding of a tooltip provided position (defaults to below the element).\n *\n * https://material.google.com/components/tooltips.html\n */\n@Directive({\n selector: '[tooltip]',\n host: {\n '(longpress)': 'show()',\n '(touchend)': 'hide(' + TOUCHEND_HIDE_DELAY + ')',\n },\n exportAs: 'md2Tooltip',\n})\nexport class Md2Tooltip implements OnDestroy {\n _overlayRef: OverlayRef;\n _tooltipInstance: Md2TooltipComponent;\n\n private _position: TooltipPosition = 'below';\n private _disabled: boolean = false;\n\n /** Allows the user to define the position of the tooltip relative to the parent element */\n @Input('tooltip-position')\n get position(): TooltipPosition { return this._position; }\n set position(value: TooltipPosition) {\n if (value !== this._position) {\n this._position = value;\n\n // TODO(andrewjs): When the overlay's position can be dynamically changed, do not destroy\n // the tooltip.\n if (this._tooltipInstance) {\n this._disposeTooltip();\n }\n }\n }\n\n /** Disables the display of the tooltip. */\n @Input('tooltipDisabled')\n get disabled(): boolean { return this._disabled; }\n set disabled(value) {\n this._disabled = coerceBooleanProperty(value);\n\n // If tooltip is disabled, hide immediately.\n if (this._disabled) {\n this.hide(0);\n }\n }\n\n /** The default delay in ms before showing the tooltip after show is called */\n @Input('tooltip-delay') showDelay = 0;\n\n /** The default delay in ms before hiding the tooltip after hide is called */\n @Input('tooltip-hide-delay') hideDelay = 0;\n\n private _message: string;\n\n /** The message to be displayed in the tooltip */\n @Input('tooltip') get message() { return this._message; }\n set message(value: string) {\n this._message = value;\n if (this._tooltipInstance) {\n this._setTooltipMessage(this._message);\n }\n }\n\n constructor(private _overlay: Overlay,\n private _elementRef: ElementRef,\n private _scrollDispatcher: ScrollDispatcher,\n private _viewContainerRef: ViewContainerRef,\n private _ngZone: NgZone,\n private _renderer: Renderer2,\n private _platform: Platform,\n @Optional() private _dir: Dir) {\n\n // The mouse events shouldn't be bound on iOS devices, because\n // they can prevent the first tap from firing its click event.\n if (!_platform.IOS) {\n _renderer.listen(_elementRef.nativeElement, 'mouseenter', () => this.show());\n _renderer.listen(_elementRef.nativeElement, 'mouseleave', () => this.hide());\n }\n }\n\n /**\n * Dispose the tooltip when destroyed.\n */\n ngOnDestroy() {\n if (this._tooltipInstance) {\n this._disposeTooltip();\n }\n }\n\n /** Shows the tooltip after the delay in ms, defaults to tooltip-delay-show or 0ms if no input */\n show(delay: number = this.showDelay): void {\n if (this.disabled || !this._message || !this._message.trim()) { return; }\n\n if (!this._tooltipInstance) {\n this._createTooltip();\n }\n\n this._setTooltipMessage(this._message);\n this._tooltipInstance.show(this._position, delay);\n }\n\n /** Hides the tooltip after the delay in ms, defaults to tooltip-delay-hide or 0ms if no input */\n hide(delay: number = this.hideDelay): void {\n if (this._tooltipInstance) {\n this._tooltipInstance.hide(delay);\n }\n }\n\n /** Shows/hides the tooltip */\n toggle(): void {\n this._isTooltipVisible() ? this.hide() : this.show();\n }\n\n /** Returns true if the tooltip is currently visible to the user */\n _isTooltipVisible(): boolean {\n return !!this._tooltipInstance && this._tooltipInstance.isVisible();\n }\n\n /** Create the tooltip to display */\n private _createTooltip(): void {\n this._createOverlay();\n let portal = new ComponentPortal(Md2TooltipComponent, this._viewContainerRef);\n this._tooltipInstance = this._overlayRef.attach(portal).instance;\n\n // Dispose the overlay when finished the shown tooltip.\n this._tooltipInstance.afterHidden().subscribe(() => {\n // Check first if the tooltip has already been removed through this components destroy.\n if (this._tooltipInstance) {\n this._disposeTooltip();\n }\n });\n }\n\n /** Create the overlay config and position strategy */\n private _createOverlay(): void {\n let origin = this._getOrigin();\n let position = this._getOverlayPosition();\n\n // Create connected position strategy that listens for scroll events to reposition.\n // After position changes occur and the overlay is clipped by a parent scrollable then\n // close the tooltip.\n let strategy = this._overlay.position().connectedTo(this._elementRef, origin, position);\n strategy.withScrollableContainers(this._scrollDispatcher.getScrollContainers(this._elementRef));\n strategy.onPositionChange.subscribe(change => {\n if (change.scrollableViewProperties.isOverlayClipped &&\n this._tooltipInstance && this._tooltipInstance.isVisible()) {\n this.hide(0);\n }\n });\n\n let config = new OverlayState();\n\n config.direction = this._dir ? this._dir.value : 'ltr';\n config.positionStrategy = strategy;\n config.scrollStrategy = this._overlay.scrollStrategies.reposition({\n scrollThrottle: SCROLL_THROTTLE_MS\n });\n\n this._overlayRef = this._overlay.create(config);\n }\n\n /** Disposes the current tooltip and the overlay it is attached to */\n private _disposeTooltip(): void {\n this._overlayRef.dispose();\n this._overlayRef = null;\n this._tooltipInstance = null;\n }\n\n /** Returns the origin position based on the user's position preference */\n _getOrigin(): OriginConnectionPosition {\n if (this.position == 'above' || this.position == 'below') {\n return { originX: 'center', originY: this.position == 'above' ? 'top' : 'bottom' };\n }\n\n const isDirectionLtr = !this._dir || this._dir.value == 'ltr';\n if (this.position == 'left' ||\n this.position == 'before' && isDirectionLtr ||\n this.position == 'after' && !isDirectionLtr) {\n return { originX: 'start', originY: 'center' };\n }\n\n if (this.position == 'right' ||\n this.position == 'after' && isDirectionLtr ||\n this.position == 'before' && !isDirectionLtr) {\n return { originX: 'end', originY: 'center' };\n }\n\n throwMd2TooltipInvalidPositionError(this.position);\n }\n\n /** Returns the overlay position based on the user's preference */\n _getOverlayPosition(): OverlayConnectionPosition {\n if (this.position == 'above') {\n return { overlayX: 'center', overlayY: 'bottom' };\n }\n\n if (this.position == 'below') {\n return { overlayX: 'center', overlayY: 'top' };\n }\n\n const isLtr = !this._dir || this._dir.value == 'ltr';\n if (this.position == 'left' ||\n this.position == 'before' && isLtr ||\n this.position == 'after' && !isLtr) {\n return { overlayX: 'end', overlayY: 'center' };\n }\n\n if (this.position == 'right' ||\n this.position == 'after' && isLtr ||\n this.position == 'before' && !isLtr) {\n return { overlayX: 'start', overlayY: 'center' };\n }\n\n throwMd2TooltipInvalidPositionError(this.position);\n }\n\n /** Updates the tooltip message and repositions the overlay according to the new message length */\n private _setTooltipMessage(message: string) {\n // Must wait for the message to be painted to the tooltip so that the overlay can properly\n // calculate the correct positioning based on the size of the text.\n this._tooltipInstance.message = message;\n this._tooltipInstance._markForCheck();\n\n this._ngZone.onMicrotaskEmpty.first().subscribe(() => {\n if (this._tooltipInstance) {\n this._overlayRef.updatePosition();\n }\n });\n }\n}\n\nexport type TooltipVisibility = 'initial' | 'visible' | 'hidden';\n\n/**\n * Internal component that wraps the tooltip's content.\n * @docs-private\n */\n@Component({\n moduleId: module.id,\n selector: 'md2-tooltip',\n templateUrl: 'tooltip.html',\n styleUrls: ['tooltip.css'],\n animations: [\n trigger('state', [\n state('void', style({ transform: 'scale(0)' })),\n state('initial', style({ transform: 'scale(0)' })),\n state('visible', style({ transform: 'scale(1)' })),\n state('hidden', style({ transform: 'scale(0)' })),\n transition('* => visible', animate('150ms cubic-bezier(0.0, 0.0, 0.2, 1)')),\n transition('* => hidden', animate('150ms cubic-bezier(0.4, 0.0, 1, 1)')),\n ])\n ],\n host: {\n '[style.zoom]': '_visibility === \"visible\" ? 1 : null',\n '(body:click)': 'this._handleBodyInteraction()'\n },\n encapsulation: ViewEncapsulation.None\n})\nexport class Md2TooltipComponent {\n /** Message to display in the tooltip */\n message: string;\n\n /** The timeout ID of any current timer set to show the tooltip */\n _showTimeoutId: number;\n\n /** The timeout ID of any current timer set to hide the tooltip */\n _hideTimeoutId: number;\n\n /** Property watched by the animation framework to show or hide the tooltip */\n _visibility: TooltipVisibility = 'initial';\n\n /** Whether interactions on the page should close the tooltip */\n _closeOnInteraction: boolean = false;\n\n /** The transform origin used in the animation for showing and hiding the tooltip */\n _transformOrigin: string = 'bottom';\n\n /** Subject for notifying that the tooltip has been hidden from the view */\n private _onHide: Subject = new Subject();\n\n constructor( @Optional() private _dir: Dir, private _changeDetectorRef: ChangeDetectorRef) { }\n\n /**\n * Shows the tooltip with an animation originating from the provided origin\n * @param position Position of the tooltip.\n * @param delay Amount of milliseconds to the delay showing the tooltip.\n */\n show(position: TooltipPosition, delay: number): void {\n // Cancel the delayed hide if it is scheduled\n if (this._hideTimeoutId) {\n clearTimeout(this._hideTimeoutId);\n }\n\n // Body interactions should cancel the tooltip if there is a delay in showing.\n this._closeOnInteraction = true;\n\n this._setTransformOrigin(position);\n this._showTimeoutId = setTimeout(() => {\n this._visibility = 'visible';\n\n // If this was set to true immediately, then a body click that triggers show() would\n // trigger interaction and close the tooltip right after it was displayed.\n this._closeOnInteraction = false;\n\n // Mark for check so if any parent component has set the\n // ChangeDetectionStrategy to OnPush it will be checked anyways\n this._markForCheck();\n setTimeout(() => this._closeOnInteraction = true, 0);\n }, delay);\n }\n\n /**\n * Begins the animation to hide the tooltip after the provided delay in ms.\n * @param delay Amount of milliseconds to delay showing the tooltip.\n */\n hide(delay: number): void {\n // Cancel the delayed show if it is scheduled\n if (this._showTimeoutId) {\n clearTimeout(this._showTimeoutId);\n }\n\n this._hideTimeoutId = setTimeout(() => {\n this._visibility = 'hidden';\n this._closeOnInteraction = false;\n\n // Mark for check so if any parent component has set the\n // ChangeDetectionStrategy to OnPush it will be checked anyways\n this._markForCheck();\n }, delay);\n }\n\n /**\n * Returns an observable that notifies when the tooltip has been hidden from view\n */\n afterHidden(): Observable {\n return this._onHide.asObservable();\n }\n\n /**\n * Whether the tooltip is being displayed\n */\n isVisible(): boolean {\n return this._visibility === 'visible';\n }\n\n /** Sets the tooltip transform origin according to the tooltip position */\n _setTransformOrigin(value: TooltipPosition) {\n const isLtr = !this._dir || this._dir.value == 'ltr';\n switch (value) {\n case 'before': this._transformOrigin = isLtr ? 'right' : 'left'; break;\n case 'after': this._transformOrigin = isLtr ? 'left' : 'right'; break;\n case 'left': this._transformOrigin = 'right'; break;\n case 'right': this._transformOrigin = 'left'; break;\n case 'above': this._transformOrigin = 'bottom'; break;\n case 'below': this._transformOrigin = 'top'; break;\n default: throwMd2TooltipInvalidPositionError(value);\n }\n }\n\n _afterVisibilityAnimation(e: AnimationEvent): void {\n if (e.toState === 'hidden' && !this.isVisible()) {\n this._onHide.next();\n }\n }\n\n /**\n * Interactions on the HTML body should close the tooltip immediately as defined in the\n * material design spec.\n * https://material.google.com/components/tooltips.html#tooltips-interaction\n */\n _handleBodyInteraction(): void {\n if (this._closeOnInteraction) {\n this.hide(0);\n }\n }\n\n /**\n * Marks that the tooltip needs to be checked in the next change detection run.\n * Mainly used for rendering the initial text before positioning a tooltip, which\n * can be problematic in components with OnPush change detection.\n */\n _markForCheck(): void {\n this._changeDetectorRef.markForCheck();\n }\n}\n"]}
\ No newline at end of file
diff --git a/tooltip/tooltip.metadata.json b/tooltip/tooltip.metadata.json
index 91cebc8cc..7a68a1be4 100644
--- a/tooltip/tooltip.metadata.json
+++ b/tooltip/tooltip.metadata.json
@@ -1 +1 @@
-[{"__symbolic":"module","version":3,"metadata":{"TOUCHEND_HIDE_DELAY":1500,"SCROLL_THROTTLE_MS":20,"throwMd2TooltipInvalidPositionError":{"__symbolic":"function"},"Md2Tooltip":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[tooltip]","host":{"(longpress)":"show()","(touchend)":"hide(1500)","$quoted$":["(longpress)","(touchend)"]},"exportAs":"md2Tooltip"}]}],"members":{"position":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltip-position"]}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltipDisabled"]}]}],"showDelay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltip-delay"]}]}],"hideDelay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltip-hide-delay"]}]}],"message":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltip"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"../core","name":"Overlay"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"../core/overlay/scroll/scroll-dispatcher","name":"ScrollDispatcher"},{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"},{"__symbolic":"reference","module":"../core/platform/index","name":"Platform"},{"__symbolic":"reference","module":"../core/rtl/dir","name":"Dir"}]}],"ngOnDestroy":[{"__symbolic":"method"}],"show":[{"__symbolic":"method"}],"hide":[{"__symbolic":"method"}],"toggle":[{"__symbolic":"method"}],"_isTooltipVisible":[{"__symbolic":"method"}],"_createTooltip":[{"__symbolic":"method"}],"_createOverlay":[{"__symbolic":"method"}],"_disposeTooltip":[{"__symbolic":"method"}],"_getOrigin":[{"__symbolic":"method"}],"_getOverlayPosition":[{"__symbolic":"method"}],"_setTooltipMessage":[{"__symbolic":"method"}]}},"Md2TooltipComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"moduleId":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"module"},"member":"id"},"selector":"md2-tooltip","templateUrl":"tooltip.html","styleUrls":["tooltip.css"],"animations":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"trigger"},"arguments":["state",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"state"},"arguments":["void",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style"},"arguments":[{"transform":"scale(0)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"state"},"arguments":["initial",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style"},"arguments":[{"transform":"scale(0)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"state"},"arguments":["visible",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style"},"arguments":[{"transform":"scale(1)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"state"},"arguments":["hidden",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style"},"arguments":[{"transform":"scale(0)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition"},"arguments":["* => visible",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate"},"arguments":["150ms cubic-bezier(0.0, 0.0, 0.2, 1)"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition"},"arguments":["* => hidden",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate"},"arguments":["150ms cubic-bezier(0.4, 0.0, 1, 1)"]}]}]]}],"host":{"[style.zoom]":"_visibility === \"visible\" ? 1 : null","(body:click)":"this._handleBodyInteraction()","$quoted$":["[style.zoom]","(body:click)"]}}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],null],"parameters":[{"__symbolic":"reference","module":"../core/rtl/dir","name":"Dir"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef"}]}],"show":[{"__symbolic":"method"}],"hide":[{"__symbolic":"method"}],"afterHidden":[{"__symbolic":"method"}],"isVisible":[{"__symbolic":"method"}],"_setTransformOrigin":[{"__symbolic":"method"}],"_afterVisibilityAnimation":[{"__symbolic":"method"}],"_handleBodyInteraction":[{"__symbolic":"method"}],"_markForCheck":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"TOUCHEND_HIDE_DELAY":1500,"SCROLL_THROTTLE_MS":20,"throwMd2TooltipInvalidPositionError":{"__symbolic":"function"},"Md2Tooltip":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[tooltip]","host":{"(longpress)":"show()","(touchend)":"hide(1500)"},"exportAs":"md2Tooltip"}]}],"members":{"position":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltip-position"]}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltipDisabled"]}]}],"showDelay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltip-delay"]}]}],"hideDelay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltip-hide-delay"]}]}],"message":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltip"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"../core","name":"Overlay"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"../core/overlay/scroll/scroll-dispatcher","name":"ScrollDispatcher"},{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"},{"__symbolic":"reference","module":"../core/platform/index","name":"Platform"},{"__symbolic":"reference","module":"../core/rtl/dir","name":"Dir"}]}],"ngOnDestroy":[{"__symbolic":"method"}],"show":[{"__symbolic":"method"}],"hide":[{"__symbolic":"method"}],"toggle":[{"__symbolic":"method"}],"_isTooltipVisible":[{"__symbolic":"method"}],"_createTooltip":[{"__symbolic":"method"}],"_createOverlay":[{"__symbolic":"method"}],"_disposeTooltip":[{"__symbolic":"method"}],"_getOrigin":[{"__symbolic":"method"}],"_getOverlayPosition":[{"__symbolic":"method"}],"_setTooltipMessage":[{"__symbolic":"method"}]}},"Md2TooltipComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"moduleId":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"module"},"member":"id"},"selector":"md2-tooltip","templateUrl":"tooltip.html","styleUrls":["tooltip.css"],"animations":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"trigger"},"arguments":["state",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"state"},"arguments":["void",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style"},"arguments":[{"transform":"scale(0)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"state"},"arguments":["initial",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style"},"arguments":[{"transform":"scale(0)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"state"},"arguments":["visible",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style"},"arguments":[{"transform":"scale(1)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"state"},"arguments":["hidden",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style"},"arguments":[{"transform":"scale(0)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition"},"arguments":["* => visible",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate"},"arguments":["150ms cubic-bezier(0.0, 0.0, 0.2, 1)"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition"},"arguments":["* => hidden",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate"},"arguments":["150ms cubic-bezier(0.4, 0.0, 1, 1)"]}]}]]}],"host":{"[style.zoom]":"_visibility === \"visible\" ? 1 : null","(body:click)":"this._handleBodyInteraction()"}}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],null],"parameters":[{"__symbolic":"reference","module":"../core/rtl/dir","name":"Dir"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef"}]}],"show":[{"__symbolic":"method"}],"hide":[{"__symbolic":"method"}],"afterHidden":[{"__symbolic":"method"}],"isVisible":[{"__symbolic":"method"}],"_setTransformOrigin":[{"__symbolic":"method"}],"_afterVisibilityAnimation":[{"__symbolic":"method"}],"_handleBodyInteraction":[{"__symbolic":"method"}],"_markForCheck":[{"__symbolic":"method"}]}}}}]
\ No newline at end of file
+[{"__symbolic":"module","version":3,"metadata":{"TOUCHEND_HIDE_DELAY":1500,"SCROLL_THROTTLE_MS":20,"throwMd2TooltipInvalidPositionError":{"__symbolic":"function"},"Md2Tooltip":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[tooltip]","host":{"(longpress)":"show()","(touchend)":"hide(1500)","$quoted$":["(longpress)","(touchend)"]},"exportAs":"md2Tooltip"}]}],"members":{"position":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltip-position"]}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltipDisabled"]}]}],"showDelay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltip-delay"]}]}],"hideDelay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltip-hide-delay"]}]}],"message":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltip"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"../core","name":"Overlay"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"../core/overlay/scroll/scroll-dispatcher","name":"ScrollDispatcher"},{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"},{"__symbolic":"reference","module":"../core/platform/index","name":"Platform"},{"__symbolic":"reference","module":"../core/rtl/dir","name":"Dir"}]}],"ngOnDestroy":[{"__symbolic":"method"}],"show":[{"__symbolic":"method"}],"hide":[{"__symbolic":"method"}],"toggle":[{"__symbolic":"method"}],"_isTooltipVisible":[{"__symbolic":"method"}],"_createTooltip":[{"__symbolic":"method"}],"_createOverlay":[{"__symbolic":"method"}],"_disposeTooltip":[{"__symbolic":"method"}],"_getOrigin":[{"__symbolic":"method"}],"_getOverlayPosition":[{"__symbolic":"method"}],"_setTooltipMessage":[{"__symbolic":"method"}]}},"Md2TooltipComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"moduleId":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"module"},"member":"id"},"selector":"md2-tooltip","templateUrl":"tooltip.html","styleUrls":["tooltip.css"],"animations":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"trigger"},"arguments":["state",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"state"},"arguments":["void",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style"},"arguments":[{"transform":"scale(0)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"state"},"arguments":["initial",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style"},"arguments":[{"transform":"scale(0)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"state"},"arguments":["visible",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style"},"arguments":[{"transform":"scale(1)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"state"},"arguments":["hidden",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style"},"arguments":[{"transform":"scale(0)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition"},"arguments":["* => visible",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate"},"arguments":["150ms cubic-bezier(0.0, 0.0, 0.2, 1)"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition"},"arguments":["* => hidden",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate"},"arguments":["150ms cubic-bezier(0.4, 0.0, 1, 1)"]}]}]]}],"host":{"[style.zoom]":"_visibility === \"visible\" ? 1 : null","(body:click)":"this._handleBodyInteraction()","$quoted$":["[style.zoom]","(body:click)"]},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation"},"member":"None"}}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],null],"parameters":[{"__symbolic":"reference","module":"../core/rtl/dir","name":"Dir"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef"}]}],"show":[{"__symbolic":"method"}],"hide":[{"__symbolic":"method"}],"afterHidden":[{"__symbolic":"method"}],"isVisible":[{"__symbolic":"method"}],"_setTransformOrigin":[{"__symbolic":"method"}],"_afterVisibilityAnimation":[{"__symbolic":"method"}],"_handleBodyInteraction":[{"__symbolic":"method"}],"_markForCheck":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"TOUCHEND_HIDE_DELAY":1500,"SCROLL_THROTTLE_MS":20,"throwMd2TooltipInvalidPositionError":{"__symbolic":"function"},"Md2Tooltip":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[tooltip]","host":{"(longpress)":"show()","(touchend)":"hide(1500)"},"exportAs":"md2Tooltip"}]}],"members":{"position":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltip-position"]}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltipDisabled"]}]}],"showDelay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltip-delay"]}]}],"hideDelay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltip-hide-delay"]}]}],"message":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"},"arguments":["tooltip"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,null,null,null,null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","module":"../core","name":"Overlay"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"../core/overlay/scroll/scroll-dispatcher","name":"ScrollDispatcher"},{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2"},{"__symbolic":"reference","module":"../core/platform/index","name":"Platform"},{"__symbolic":"reference","module":"../core/rtl/dir","name":"Dir"}]}],"ngOnDestroy":[{"__symbolic":"method"}],"show":[{"__symbolic":"method"}],"hide":[{"__symbolic":"method"}],"toggle":[{"__symbolic":"method"}],"_isTooltipVisible":[{"__symbolic":"method"}],"_createTooltip":[{"__symbolic":"method"}],"_createOverlay":[{"__symbolic":"method"}],"_disposeTooltip":[{"__symbolic":"method"}],"_getOrigin":[{"__symbolic":"method"}],"_getOverlayPosition":[{"__symbolic":"method"}],"_setTooltipMessage":[{"__symbolic":"method"}]}},"Md2TooltipComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"moduleId":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"module"},"member":"id"},"selector":"md2-tooltip","templateUrl":"tooltip.html","styleUrls":["tooltip.css"],"animations":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"trigger"},"arguments":["state",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"state"},"arguments":["void",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style"},"arguments":[{"transform":"scale(0)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"state"},"arguments":["initial",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style"},"arguments":[{"transform":"scale(0)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"state"},"arguments":["visible",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style"},"arguments":[{"transform":"scale(1)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"state"},"arguments":["hidden",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style"},"arguments":[{"transform":"scale(0)"}]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition"},"arguments":["* => visible",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate"},"arguments":["150ms cubic-bezier(0.0, 0.0, 0.2, 1)"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition"},"arguments":["* => hidden",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate"},"arguments":["150ms cubic-bezier(0.4, 0.0, 1, 1)"]}]}]]}],"host":{"[style.zoom]":"_visibility === \"visible\" ? 1 : null","(body:click)":"this._handleBodyInteraction()"},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation"},"member":"None"}}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],null],"parameters":[{"__symbolic":"reference","module":"../core/rtl/dir","name":"Dir"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef"}]}],"show":[{"__symbolic":"method"}],"hide":[{"__symbolic":"method"}],"afterHidden":[{"__symbolic":"method"}],"isVisible":[{"__symbolic":"method"}],"_setTransformOrigin":[{"__symbolic":"method"}],"_afterVisibilityAnimation":[{"__symbolic":"method"}],"_handleBodyInteraction":[{"__symbolic":"method"}],"_markForCheck":[{"__symbolic":"method"}]}}}}]
\ No newline at end of file
diff --git a/tooltip/tooltip.scss b/tooltip/tooltip.scss
index f414e1e58..fc65254e2 100644
--- a/tooltip/tooltip.scss
+++ b/tooltip/tooltip.scss
@@ -5,7 +5,7 @@ $md2-tooltip-margin: 14px;
$md2-tooltip-horizontal-padding: 8px;
$md2-tooltip-vertical-padding: ($md2-tooltip-target-height - $md2-tooltip-font-size) / 2;
-:host {
+md2-tooltip {
pointer-events: none;
}