mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
refactor(components): convert components to separate modules
This commit is contained in:
33
src/components/action-sheet/action-sheet.module.ts
Normal file
33
src/components/action-sheet/action-sheet.module.ts
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { ButtonModule } from '../button/button.module';
|
||||||
|
import { BackdropModule } from '../backdrop/backdrop.module';
|
||||||
|
import { IconModule } from '../icon/icon.module';
|
||||||
|
|
||||||
|
import { ActionSheetCmp } from './action-sheet-component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
BackdropModule,
|
||||||
|
ButtonModule,
|
||||||
|
CommonModule,
|
||||||
|
IconModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
ActionSheetCmp
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
ActionSheetCmp
|
||||||
|
],
|
||||||
|
entryComponents: [
|
||||||
|
ActionSheetCmp
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class ActionSheetModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: ActionSheetModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
33
src/components/alert/alert.module.ts
Normal file
33
src/components/alert/alert.module.ts
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { FormsModule } from '@angular/forms';
|
||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { ButtonModule } from '../button/button.module';
|
||||||
|
import { BackdropModule } from '../backdrop/backdrop.module';
|
||||||
|
|
||||||
|
import { AlertCmp } from './alert-component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
BackdropModule,
|
||||||
|
ButtonModule,
|
||||||
|
CommonModule,
|
||||||
|
FormsModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
AlertCmp
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
AlertCmp
|
||||||
|
],
|
||||||
|
entryComponents: [
|
||||||
|
AlertCmp
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class AlertModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: AlertModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
27
src/components/app/app.module.ts
Normal file
27
src/components/app/app.module.ts
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { IonicApp } from './app-root';
|
||||||
|
|
||||||
|
import { NavModule } from '../nav/nav.module';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
NavModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
IonicApp
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
IonicApp
|
||||||
|
],
|
||||||
|
entryComponents: [
|
||||||
|
IonicApp
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class AppModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: AppModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
@ -3,7 +3,7 @@ import { Title, DOCUMENT } from '@angular/platform-browser';
|
|||||||
|
|
||||||
import { IonicApp } from './app-root';
|
import { IonicApp } from './app-root';
|
||||||
import * as Constants from './app-constants';
|
import * as Constants from './app-constants';
|
||||||
import { ClickBlock } from '../../util/click-block';
|
import { ClickBlock } from '../click-block/click-block';
|
||||||
import { runInDev } from '../../util/util';
|
import { runInDev } from '../../util/util';
|
||||||
import { Config } from '../../config/config';
|
import { Config } from '../../config/config';
|
||||||
import { isNav, NavOptions, DIRECTION_FORWARD, DIRECTION_BACK } from '../../navigation/nav-util';
|
import { isNav, NavOptions, DIRECTION_FORWARD, DIRECTION_BACK } from '../../navigation/nav-util';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { App } from '../app';
|
import { App } from '../app';
|
||||||
import { ClickBlock } from '../../../util/click-block';
|
import { ClickBlock } from '../../click-block/click-block';
|
||||||
import { Config } from '../../../config/config';
|
import { Config } from '../../../config/config';
|
||||||
import { mockApp, mockConfig, mockElementRef, mockNavController, mockPlatform, MockPlatform, mockRenderer, mockTab, mockTabs, mockView, mockViews } from '../../../util/mock-providers';
|
import { mockApp, mockConfig, mockElementRef, mockNavController, mockPlatform, MockPlatform, mockRenderer, mockTab, mockTabs, mockView, mockViews } from '../../../util/mock-providers';
|
||||||
import { OverlayPortal } from '../../nav/overlay-portal';
|
import { OverlayPortal } from '../../nav/overlay-portal';
|
||||||
|
19
src/components/avatar/avatar.module.ts
Normal file
19
src/components/avatar/avatar.module.ts
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { Avatar } from './avatar';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
Avatar
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Avatar
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class AvatarModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: AvatarModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
19
src/components/backdrop/backdrop.module.ts
Normal file
19
src/components/backdrop/backdrop.module.ts
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { Backdrop } from './backdrop';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
Backdrop
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Backdrop
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class BackdropModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: BackdropModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
19
src/components/badge/badge.module.ts
Normal file
19
src/components/badge/badge.module.ts
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { Badge } from './badge';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
Badge
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Badge
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class BadgeModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: BadgeModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
19
src/components/button/button.module.ts
Normal file
19
src/components/button/button.module.ts
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { Button } from './button';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
Button
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Button
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class ButtonModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: ButtonModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
28
src/components/card/card.module.ts
Normal file
28
src/components/card/card.module.ts
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { Card } from './card';
|
||||||
|
import { CardContent } from './card-content';
|
||||||
|
import { CardHeader } from './card-header';
|
||||||
|
import { CardTitle } from './card-title';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
Card,
|
||||||
|
CardContent,
|
||||||
|
CardHeader,
|
||||||
|
CardTitle
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Card,
|
||||||
|
CardContent,
|
||||||
|
CardHeader,
|
||||||
|
CardTitle
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class CardModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: CardModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
19
src/components/checkbox/checkbox.module.ts
Normal file
19
src/components/checkbox/checkbox.module.ts
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { Checkbox } from './checkbox';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
Checkbox
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Checkbox
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class CheckboxModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: CheckboxModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
19
src/components/chip/chip.module.ts
Normal file
19
src/components/chip/chip.module.ts
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { Chip } from './chip';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
Chip
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Chip
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class ChipModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: ChipModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
19
src/components/click-block/click-block.module.ts
Normal file
19
src/components/click-block/click-block.module.ts
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { ClickBlock } from './click-block';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
ClickBlock
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
ClickBlock
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class ClickBlockModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: ClickBlockModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
@ -1,8 +1,8 @@
|
|||||||
import { Directive, ElementRef, forwardRef, Inject, Renderer } from '@angular/core';
|
import { Directive, ElementRef, forwardRef, Inject, Renderer } from '@angular/core';
|
||||||
|
|
||||||
import { App } from '../components/app/app';
|
import { App } from '../app/app';
|
||||||
import { Config } from '../config/config';
|
import { Config } from '../../config/config';
|
||||||
import { Platform } from '../platform/platform';
|
import { Platform } from '../../platform/platform';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
19
src/components/content/content.module.ts
Normal file
19
src/components/content/content.module.ts
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { Content } from './content';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
Content
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Content
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class ContentModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: ContentModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
23
src/components/datetime/datetime.module.ts
Normal file
23
src/components/datetime/datetime.module.ts
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { DateTime } from './datetime';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
DateTime
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
DateTime
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class DateTimeModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: DateTimeModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
30
src/components/fab/fab.module.ts
Normal file
30
src/components/fab/fab.module.ts
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { IconModule } from '../icon/icon.module';
|
||||||
|
|
||||||
|
import { FabButton } from './fab';
|
||||||
|
import { FabContainer } from './fab-container';
|
||||||
|
import { FabList } from './fab-list';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
IconModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
FabButton,
|
||||||
|
FabContainer,
|
||||||
|
FabList
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
FabButton,
|
||||||
|
FabContainer,
|
||||||
|
FabList
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class FabModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: FabModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
25
src/components/grid/grid.module.ts
Normal file
25
src/components/grid/grid.module.ts
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { Grid } from './grid';
|
||||||
|
import { Row } from './row';
|
||||||
|
import { Col } from './col';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
Grid,
|
||||||
|
Row,
|
||||||
|
Col
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Grid,
|
||||||
|
Row,
|
||||||
|
Col
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class GridModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: GridModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
19
src/components/img/img.module.ts
Normal file
19
src/components/img/img.module.ts
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { Img } from './img';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
Img
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Img
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class ImgModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: ImgModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
29
src/components/infinite-scroll/infinite-scroll.module.ts
Normal file
29
src/components/infinite-scroll/infinite-scroll.module.ts
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { InfiniteScroll } from './infinite-scroll';
|
||||||
|
import { InfiniteScrollContent } from './infinite-scroll-content';
|
||||||
|
|
||||||
|
import { SpinnerModule } from '../spinner/spinner.module';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
SpinnerModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
InfiniteScroll,
|
||||||
|
InfiniteScrollContent
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
InfiniteScroll,
|
||||||
|
InfiniteScrollContent
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class InfiniteScrollModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: InfiniteScrollModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
32
src/components/input/input.module.ts
Normal file
32
src/components/input/input.module.ts
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { NativeInput } from './native-input';
|
||||||
|
import { NextInput } from './next-input';
|
||||||
|
import { TextInput } from './input';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
FormsModule,
|
||||||
|
ReactiveFormsModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
NativeInput,
|
||||||
|
NextInput,
|
||||||
|
TextInput
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
NativeInput,
|
||||||
|
NextInput,
|
||||||
|
TextInput
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class InputModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: InputModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
49
src/components/item/item.module.ts
Normal file
49
src/components/item/item.module.ts
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { Item } from './item';
|
||||||
|
import { ItemContent } from './item-content';
|
||||||
|
import { ItemDivider } from './item-divider';
|
||||||
|
import { ItemGroup } from './item-group';
|
||||||
|
import { ItemOptions } from './item-options';
|
||||||
|
import { ItemReorder } from './item-reorder';
|
||||||
|
import { ItemSliding } from './item-sliding';
|
||||||
|
import { Reorder } from './reorder';
|
||||||
|
|
||||||
|
import { IconModule } from '../icon/icon.module';
|
||||||
|
import { LabelModule } from '../label/label.module';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
IconModule,
|
||||||
|
LabelModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
Item,
|
||||||
|
ItemContent,
|
||||||
|
ItemDivider,
|
||||||
|
ItemGroup,
|
||||||
|
ItemOptions,
|
||||||
|
ItemReorder,
|
||||||
|
ItemSliding,
|
||||||
|
Reorder
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Item,
|
||||||
|
ItemContent,
|
||||||
|
ItemDivider,
|
||||||
|
ItemGroup,
|
||||||
|
ItemOptions,
|
||||||
|
ItemReorder,
|
||||||
|
ItemSliding,
|
||||||
|
Reorder
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class ItemModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: ItemModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
19
src/components/label/label.module.ts
Normal file
19
src/components/label/label.module.ts
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { Label } from './label';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
Label
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Label
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class LabelModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: LabelModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
22
src/components/list/list.module.ts
Normal file
22
src/components/list/list.module.ts
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { List } from './list';
|
||||||
|
import { ListHeader } from './list-header';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
List,
|
||||||
|
ListHeader
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
List,
|
||||||
|
ListHeader
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class ListModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: ListModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
31
src/components/loading/loading.module.ts
Normal file
31
src/components/loading/loading.module.ts
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { BackdropModule } from '../backdrop/backdrop.module';
|
||||||
|
import { SpinnerModule } from '../spinner/spinner.module';
|
||||||
|
|
||||||
|
import { LoadingCmp } from './loading-component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
BackdropModule,
|
||||||
|
CommonModule,
|
||||||
|
SpinnerModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
LoadingCmp
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
LoadingCmp
|
||||||
|
],
|
||||||
|
entryComponents: [
|
||||||
|
LoadingCmp
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class LoadingModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: LoadingModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
30
src/components/menu/menu.module.ts
Normal file
30
src/components/menu/menu.module.ts
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { BackdropModule } from '../backdrop/backdrop.module';
|
||||||
|
|
||||||
|
import { Menu } from './menu';
|
||||||
|
import { MenuClose } from './menu-close';
|
||||||
|
import { MenuToggle } from './menu-toggle';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
BackdropModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
Menu,
|
||||||
|
MenuClose,
|
||||||
|
MenuToggle
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Menu,
|
||||||
|
MenuClose,
|
||||||
|
MenuToggle
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class MenuModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: MenuModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
27
src/components/modal/modal.module.ts
Normal file
27
src/components/modal/modal.module.ts
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { BackdropModule } from '../backdrop/backdrop.module';
|
||||||
|
|
||||||
|
import { ModalCmp } from './modal-component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
BackdropModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
ModalCmp
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
ModalCmp
|
||||||
|
],
|
||||||
|
entryComponents: [
|
||||||
|
ModalCmp
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class ModalModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: ModalModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
34
src/components/nav/nav.module.ts
Normal file
34
src/components/nav/nav.module.ts
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { Nav } from './nav';
|
||||||
|
import { NavPop, } from './nav-pop';
|
||||||
|
import { NavPopAnchor } from './nav-pop-anchor';
|
||||||
|
import { NavPush } from './nav-push';
|
||||||
|
import { NavPushAnchor } from './nav-push-anchor';
|
||||||
|
import { OverlayPortal } from './overlay-portal';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
Nav,
|
||||||
|
NavPop,
|
||||||
|
NavPopAnchor,
|
||||||
|
NavPush,
|
||||||
|
NavPushAnchor,
|
||||||
|
OverlayPortal
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Nav,
|
||||||
|
NavPop,
|
||||||
|
NavPopAnchor,
|
||||||
|
NavPush,
|
||||||
|
NavPushAnchor,
|
||||||
|
OverlayPortal
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class NavModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: NavModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
26
src/components/navbar/navbar.module.ts
Normal file
26
src/components/navbar/navbar.module.ts
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { Navbar } from './navbar';
|
||||||
|
|
||||||
|
import { IconModule } from '../icon/icon.module';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
IconModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
Navbar
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Navbar
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class NavbarModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: NavbarModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
19
src/components/note/note.module.ts
Normal file
19
src/components/note/note.module.ts
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { Note } from './note';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
Note
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Note
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class NoteModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: NoteModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
19
src/components/option/option.module.ts
Normal file
19
src/components/option/option.module.ts
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { Option } from './option';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
Option
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Option
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class OptionModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: OptionModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
32
src/components/picker/picker.module.ts
Normal file
32
src/components/picker/picker.module.ts
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { BackdropModule } from '../backdrop/backdrop.module';
|
||||||
|
|
||||||
|
import { PickerCmp } from './picker-component';
|
||||||
|
import { PickerColumnCmp } from './picker-column';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
BackdropModule,
|
||||||
|
CommonModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
PickerCmp,
|
||||||
|
PickerColumnCmp
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
PickerCmp,
|
||||||
|
PickerColumnCmp
|
||||||
|
],
|
||||||
|
entryComponents: [
|
||||||
|
PickerCmp
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class PickerModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: PickerModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
27
src/components/popover/popover.module.ts
Normal file
27
src/components/popover/popover.module.ts
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { BackdropModule } from '../backdrop/backdrop.module';
|
||||||
|
|
||||||
|
import { PopoverCmp } from './popover-component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
BackdropModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
PopoverCmp
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
PopoverCmp
|
||||||
|
],
|
||||||
|
entryComponents: [
|
||||||
|
PopoverCmp
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class PopoverModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: PopoverModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
22
src/components/radio/radio.module.ts
Normal file
22
src/components/radio/radio.module.ts
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { RadioButton } from './radio-button';
|
||||||
|
import { RadioGroup } from './radio-group';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
RadioButton,
|
||||||
|
RadioGroup
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
RadioButton,
|
||||||
|
RadioGroup
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class RadioModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: RadioModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
26
src/components/range/range.module.ts
Normal file
26
src/components/range/range.module.ts
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { Range } from './range';
|
||||||
|
import { RangeKnob } from './range-knob';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
Range,
|
||||||
|
RangeKnob
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Range,
|
||||||
|
RangeKnob
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class RangeModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: RangeModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
31
src/components/refresher/refresher.module.ts
Normal file
31
src/components/refresher/refresher.module.ts
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { IconModule } from '../icon/icon.module';
|
||||||
|
import { SpinnerModule } from '../spinner/spinner.module';
|
||||||
|
|
||||||
|
import { Refresher } from './refresher';
|
||||||
|
import { RefresherContent } from './refresher-content';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
IconModule,
|
||||||
|
SpinnerModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
Refresher,
|
||||||
|
RefresherContent
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Refresher,
|
||||||
|
RefresherContent
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class RefresherModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: RefresherModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
19
src/components/scroll/scroll.module.ts
Normal file
19
src/components/scroll/scroll.module.ts
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { Scroll } from './scroll';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
Scroll
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Scroll
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class ScrollModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: ScrollModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
26
src/components/searchbar/searchbar.module.ts
Normal file
26
src/components/searchbar/searchbar.module.ts
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { ButtonModule } from '../button/button.module';
|
||||||
|
import { IconModule } from '../icon/icon.module';
|
||||||
|
|
||||||
|
import { Searchbar } from './searchbar';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
ButtonModule,
|
||||||
|
IconModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
Searchbar
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Searchbar
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class SearchbarModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: SearchbarModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
22
src/components/segment/segment.module.ts
Normal file
22
src/components/segment/segment.module.ts
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { Segment } from './segment';
|
||||||
|
import { SegmentButton } from './segment-button';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
Segment,
|
||||||
|
SegmentButton
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Segment,
|
||||||
|
SegmentButton
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class SegmentModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: SegmentModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
23
src/components/select/select.module.ts
Normal file
23
src/components/select/select.module.ts
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { Select } from './select';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
Select
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Select
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class SelectModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: SelectModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
55
src/components/show-hide-when/display-when.ts
Normal file
55
src/components/show-hide-when/display-when.ts
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
import { NgZone } from '@angular/core';
|
||||||
|
|
||||||
|
import { Platform } from '../../platform/platform';
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @hidden
|
||||||
|
*/
|
||||||
|
export class DisplayWhen {
|
||||||
|
isMatch: boolean = false;
|
||||||
|
conditions: string[];
|
||||||
|
resizeObs: any;
|
||||||
|
|
||||||
|
constructor(conditions: string, public _plt: Platform, public zone: NgZone) {
|
||||||
|
if (!conditions) return;
|
||||||
|
|
||||||
|
this.conditions = conditions.replace(/\s/g, '').split(',');
|
||||||
|
|
||||||
|
// check if its one of the matching platforms first
|
||||||
|
// a platform does not change during the life of an app
|
||||||
|
for (let i = 0; i < this.conditions.length; i++) {
|
||||||
|
if (this.conditions[i] && _plt.is(this.conditions[i])) {
|
||||||
|
this.isMatch = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.orientation()) {
|
||||||
|
// add window resize listener
|
||||||
|
this.resizeObs = _plt.resize.subscribe(this.orientation.bind(this));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
orientation(): boolean {
|
||||||
|
for (let i = 0; i < this.conditions.length; i++) {
|
||||||
|
|
||||||
|
if (this.conditions[i] === 'portrait') {
|
||||||
|
this.isMatch = this._plt.isPortrait();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.conditions[i] === 'landscape') {
|
||||||
|
this.isMatch = this._plt.isLandscape();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
ngOnDestroy() {
|
||||||
|
this.resizeObs && this.resizeObs.unsubscribe();
|
||||||
|
this.resizeObs = null;
|
||||||
|
}
|
||||||
|
}
|
@ -2,7 +2,7 @@ import { Attribute, Directive, NgZone } from '@angular/core';
|
|||||||
|
|
||||||
import { Platform } from '../../platform/platform';
|
import { Platform } from '../../platform/platform';
|
||||||
|
|
||||||
import { DisplayWhen } from './show-hide-when';
|
import { DisplayWhen } from './display-when';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name HideWhen
|
* @name HideWhen
|
||||||
|
22
src/components/show-hide-when/show-hide-when.module.ts
Normal file
22
src/components/show-hide-when/show-hide-when.module.ts
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { ShowWhen } from './show-when';
|
||||||
|
import { HideWhen } from './hide-when';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
ShowWhen,
|
||||||
|
HideWhen
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
ShowWhen,
|
||||||
|
HideWhen
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class ShowHideWhenModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: ShowHideWhenModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
@ -1,59 +1,10 @@
|
|||||||
import { Attribute, Directive, NgZone } from '@angular/core';
|
import { Attribute, Directive, NgZone } from '@angular/core';
|
||||||
|
|
||||||
|
import { DisplayWhen } from './display-when';
|
||||||
|
|
||||||
import { Platform } from '../../platform/platform';
|
import { Platform } from '../../platform/platform';
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @hidden
|
|
||||||
*/
|
|
||||||
export class DisplayWhen {
|
|
||||||
isMatch: boolean = false;
|
|
||||||
conditions: string[];
|
|
||||||
resizeObs: any;
|
|
||||||
|
|
||||||
constructor(conditions: string, public _plt: Platform, public zone: NgZone) {
|
|
||||||
if (!conditions) return;
|
|
||||||
|
|
||||||
this.conditions = conditions.replace(/\s/g, '').split(',');
|
|
||||||
|
|
||||||
// check if its one of the matching platforms first
|
|
||||||
// a platform does not change during the life of an app
|
|
||||||
for (let i = 0; i < this.conditions.length; i++) {
|
|
||||||
if (this.conditions[i] && _plt.is(this.conditions[i])) {
|
|
||||||
this.isMatch = true;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.orientation()) {
|
|
||||||
// add window resize listener
|
|
||||||
this.resizeObs = _plt.resize.subscribe(this.orientation.bind(this));
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
orientation(): boolean {
|
|
||||||
for (let i = 0; i < this.conditions.length; i++) {
|
|
||||||
|
|
||||||
if (this.conditions[i] === 'portrait') {
|
|
||||||
this.isMatch = this._plt.isPortrait();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.conditions[i] === 'landscape') {
|
|
||||||
this.isMatch = this._plt.isLandscape();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
ngOnDestroy() {
|
|
||||||
this.resizeObs && this.resizeObs.unsubscribe();
|
|
||||||
this.resizeObs = null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @name ShowWhen
|
* @name ShowWhen
|
||||||
@ -111,6 +62,5 @@ export class ShowWhen extends DisplayWhen {
|
|||||||
super(showWhen, plt, zone);
|
super(showWhen, plt, zone);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ngOnDestroy is implemente in DisplayWhen
|
// ngOnDestroy is implemented in DisplayWhen
|
||||||
|
|
||||||
}
|
}
|
22
src/components/slides/slides.module.ts
Normal file
22
src/components/slides/slides.module.ts
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { Slide } from './slide';
|
||||||
|
import { Slides } from './slides';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
Slide,
|
||||||
|
Slides
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Slide,
|
||||||
|
Slides
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class SlidesModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: SlidesModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
23
src/components/spinner/spinner.module.ts
Normal file
23
src/components/spinner/spinner.module.ts
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { Spinner } from './spinner';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
Spinner
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Spinner
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class SpinnerModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: SpinnerModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
19
src/components/split-pane/split-pane.module.ts
Normal file
19
src/components/split-pane/split-pane.module.ts
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { SplitPane } from './split-pane';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
SplitPane
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
SplitPane
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class SplitPaneModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: SplitPaneModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
37
src/components/tabs/tabs.module.ts
Normal file
37
src/components/tabs/tabs.module.ts
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { BadgeModule } from '../badge/badge.module';
|
||||||
|
import { IconModule } from '../icon/icon.module';
|
||||||
|
|
||||||
|
import { Tab } from './tab';
|
||||||
|
import { TabButton } from './tab-button';
|
||||||
|
import { TabHighlight } from './tab-highlight';
|
||||||
|
import { Tabs } from './tabs';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
BadgeModule,
|
||||||
|
CommonModule,
|
||||||
|
IconModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
Tab,
|
||||||
|
TabButton,
|
||||||
|
TabHighlight,
|
||||||
|
Tabs
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Tab,
|
||||||
|
TabButton,
|
||||||
|
TabHighlight,
|
||||||
|
Tabs
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class TabsModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: TabsModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
19
src/components/thumbnail/thumbnail.module.ts
Normal file
19
src/components/thumbnail/thumbnail.module.ts
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { Thumbnail } from './thumbnail';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
Thumbnail
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Thumbnail
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class ThumbnailModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: ThumbnailModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
31
src/components/toast/toast.module.ts
Normal file
31
src/components/toast/toast.module.ts
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { BackdropModule } from '../backdrop/backdrop.module';
|
||||||
|
import { ButtonModule } from '../button/button.module';
|
||||||
|
|
||||||
|
import { ToastCmp } from './toast-component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
BackdropModule,
|
||||||
|
ButtonModule,
|
||||||
|
CommonModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
ToastCmp
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
ToastCmp
|
||||||
|
],
|
||||||
|
entryComponents: [
|
||||||
|
ToastCmp
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class ToastModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: ToastModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
19
src/components/toggle/toggle.module.ts
Normal file
19
src/components/toggle/toggle.module.ts
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { Toggle } from './toggle';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
Toggle
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Toggle
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class ToggleModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: ToggleModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
35
src/components/toolbar/toolbar.module.ts
Normal file
35
src/components/toolbar/toolbar.module.ts
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { Footer } from './toolbar-footer';
|
||||||
|
import { Header } from './toolbar-header';
|
||||||
|
import { Toolbar } from './toolbar';
|
||||||
|
import { ToolbarItem } from './toolbar-item';
|
||||||
|
import { ToolbarTitle } from './toolbar-title';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
Footer,
|
||||||
|
Header,
|
||||||
|
Toolbar,
|
||||||
|
ToolbarItem,
|
||||||
|
ToolbarTitle
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Footer,
|
||||||
|
Header,
|
||||||
|
Toolbar,
|
||||||
|
ToolbarItem,
|
||||||
|
ToolbarTitle
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class ToolbarModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: ToolbarModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
19
src/components/typography/typography.module.ts
Normal file
19
src/components/typography/typography.module.ts
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { Typography } from './typography';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
Typography
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
Typography
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class TypographyModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: TypographyModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
28
src/components/virtual-scroll/virtual-scroll.module.ts
Normal file
28
src/components/virtual-scroll/virtual-scroll.module.ts
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
|
|
||||||
|
import { VirtualFooter } from './virtual-footer';
|
||||||
|
import { VirtualHeader } from './virtual-header';
|
||||||
|
import { VirtualItem } from './virtual-item';
|
||||||
|
import { VirtualScroll } from './virtual-scroll';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
VirtualFooter,
|
||||||
|
VirtualHeader,
|
||||||
|
VirtualItem,
|
||||||
|
VirtualScroll
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
VirtualFooter,
|
||||||
|
VirtualHeader,
|
||||||
|
VirtualItem,
|
||||||
|
VirtualScroll
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class VirtualScrollModule {
|
||||||
|
public static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: VirtualScrollModule, providers: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
489
src/index.ts
489
src/index.ts
@ -46,106 +46,111 @@ import { UrlSerializer, setupUrlSerializer, DeepLinkConfigToken } from './naviga
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Import Overlay Entry Components
|
* Import Modules
|
||||||
*/
|
*/
|
||||||
import { ActionSheetCmp } from './components/action-sheet/action-sheet-component';
|
import { ActionSheetModule } from './components/action-sheet/action-sheet.module';
|
||||||
import { AlertCmp } from './components/alert/alert-component';
|
import { AlertModule } from './components/alert/alert.module';
|
||||||
import { IonicApp } from './components/app/app-root';
|
import { AppModule } from './components/app/app.module';
|
||||||
import { LoadingCmp } from './components/loading/loading-component';
|
import { AvatarModule } from './components/avatar/avatar.module';
|
||||||
import { ModalCmp } from './components/modal/modal-component';
|
import { BackdropModule } from './components/backdrop/backdrop.module';
|
||||||
import { PickerCmp } from './components/picker/picker-component';
|
import { BadgeModule } from './components/badge/badge.module';
|
||||||
import { PopoverCmp } from './components/popover/popover-component';
|
import { ButtonModule } from './components/button/button.module';
|
||||||
import { ToastCmp } from './components/toast/toast-component';
|
import { CardModule } from './components/card/card.module';
|
||||||
|
import { CheckboxModule } from './components/checkbox/checkbox.module';
|
||||||
|
import { ChipModule } from './components/chip/chip.module';
|
||||||
|
import { ClickBlockModule } from './components/click-block/click-block.module';
|
||||||
|
import { ContentModule } from './components/content/content.module';
|
||||||
|
import { DateTimeModule } from './components/datetime/datetime.module';
|
||||||
|
import { FabModule } from './components/fab/fab.module';
|
||||||
|
import { GridModule } from './components/grid/grid.module';
|
||||||
|
import { IconModule } from './components/icon/icon.module';
|
||||||
|
import { ImgModule } from './components/img/img.module';
|
||||||
|
import { InfiniteScrollModule } from './components/infinite-scroll/infinite-scroll.module';
|
||||||
|
import { InputModule } from './components/input/input.module';
|
||||||
|
import { ItemModule } from './components/item/item.module';
|
||||||
|
import { LabelModule } from './components/label/label.module';
|
||||||
|
import { ListModule } from './components/list/list.module';
|
||||||
|
import { LoadingModule } from './components/loading/loading.module';
|
||||||
|
import { MenuModule } from './components/menu/menu.module';
|
||||||
|
import { ModalModule } from './components/modal/modal.module';
|
||||||
|
import { NavModule } from './components/nav/nav.module';
|
||||||
|
import { NavbarModule } from './components/navbar/navbar.module';
|
||||||
|
import { NoteModule } from './components/note/note.module';
|
||||||
|
import { OptionModule } from './components/option/option.module';
|
||||||
|
import { PickerModule } from './components/picker/picker.module';
|
||||||
|
import { PopoverModule } from './components/popover/popover.module';
|
||||||
|
import { RadioModule } from './components/radio/radio.module';
|
||||||
|
import { RangeModule } from './components/range/range.module';
|
||||||
|
import { RefresherModule } from './components/refresher/refresher.module';
|
||||||
|
import { ScrollModule } from './components/scroll/scroll.module';
|
||||||
|
import { SearchbarModule } from './components/searchbar/searchbar.module';
|
||||||
|
import { SegmentModule } from './components/segment/segment.module';
|
||||||
|
import { SelectModule } from './components/select/select.module';
|
||||||
|
import { ShowHideWhenModule } from './components/show-hide-when/show-hide-when.module';
|
||||||
|
import { SlidesModule } from './components/slides/slides.module';
|
||||||
|
import { SpinnerModule } from './components/spinner/spinner.module';
|
||||||
|
import { SplitPaneModule } from './components/split-pane/split-pane.module';
|
||||||
|
import { TabsModule } from './components/tabs/tabs.module';
|
||||||
|
import { ThumbnailModule } from './components/thumbnail/thumbnail.module';
|
||||||
|
import { ToastModule } from './components/toast/toast.module';
|
||||||
|
import { ToggleModule } from './components/toggle/toggle.module';
|
||||||
|
import { ToolbarModule } from './components/toolbar/toolbar.module';
|
||||||
|
import { TypographyModule } from './components/typography/typography.module';
|
||||||
|
import { VirtualScrollModule } from './components/virtual-scroll/virtual-scroll.module';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Import Components
|
* Export Modules
|
||||||
*/
|
*/
|
||||||
import { Avatar } from './components/avatar/avatar';
|
export { ActionSheetModule } from './components/action-sheet/action-sheet.module';
|
||||||
import { Backdrop } from './components/backdrop/backdrop';
|
export { AlertModule } from './components/alert/alert.module';
|
||||||
import { Badge } from './components/badge/badge';
|
export { AppModule } from './components/app/app.module';
|
||||||
import { Button } from './components/button/button';
|
export { AvatarModule } from './components/avatar/avatar.module';
|
||||||
import { Card } from './components/card/card';
|
export { BackdropModule } from './components/backdrop/backdrop.module';
|
||||||
import { CardContent } from './components/card/card-content';
|
export { BadgeModule } from './components/badge/badge.module';
|
||||||
import { CardHeader } from './components/card/card-header';
|
export { ButtonModule } from './components/button/button.module';
|
||||||
import { CardTitle } from './components/card/card-title';
|
export { CardModule } from './components/card/card.module';
|
||||||
import { Checkbox } from './components/checkbox/checkbox';
|
export { CheckboxModule } from './components/checkbox/checkbox.module';
|
||||||
import { Chip } from './components/chip/chip';
|
export { ChipModule } from './components/chip/chip.module';
|
||||||
import { ClickBlock } from './util/click-block';
|
export { ClickBlockModule } from './components/click-block/click-block.module';
|
||||||
import { Content } from './components/content/content';
|
export { ContentModule } from './components/content/content.module';
|
||||||
import { DateTime } from './components/datetime/datetime';
|
export { DateTimeModule } from './components/datetime/datetime.module';
|
||||||
import { FabButton } from './components/fab/fab';
|
export { FabModule } from './components/fab/fab.module';
|
||||||
import { FabContainer } from './components/fab/fab-container';
|
export { GridModule } from './components/grid/grid.module';
|
||||||
import { FabList } from './components/fab/fab-list';
|
export { IconModule } from './components/icon/icon.module';
|
||||||
import { Col } from './components/grid/col';
|
export { ImgModule } from './components/img/img.module';
|
||||||
import { Grid } from './components/grid/grid';
|
export { InfiniteScrollModule } from './components/infinite-scroll/infinite-scroll.module';
|
||||||
import { Row } from './components/grid/row';
|
export { InputModule } from './components/input/input.module';
|
||||||
import { Icon } from './components/icon/icon';
|
export { ItemModule } from './components/item/item.module';
|
||||||
import { Img } from './components/img/img';
|
export { LabelModule } from './components/label/label.module';
|
||||||
import { InfiniteScroll } from './components/infinite-scroll/infinite-scroll';
|
export { ListModule } from './components/list/list.module';
|
||||||
import { InfiniteScrollContent } from './components/infinite-scroll/infinite-scroll-content';
|
export { LoadingModule } from './components/loading/loading.module';
|
||||||
import { Item } from './components/item/item';
|
export { MenuModule } from './components/menu/menu.module';
|
||||||
import { ItemContent } from './components/item/item-content';
|
export { ModalModule } from './components/modal/modal.module';
|
||||||
import { ItemDivider } from './components/item/item-divider';
|
export { NavModule } from './components/nav/nav.module';
|
||||||
import { ItemGroup } from './components/item/item-group';
|
export { NavbarModule } from './components/navbar/navbar.module';
|
||||||
import { ItemReorder } from './components/item/item-reorder';
|
export { NoteModule } from './components/note/note.module';
|
||||||
import { Reorder } from './components/item/reorder';
|
export { OptionModule } from './components/option/option.module';
|
||||||
import { ItemSliding } from './components/item/item-sliding';
|
export { PickerModule } from './components/picker/picker.module';
|
||||||
import { ItemOptions } from './components/item/item-options';
|
export { PopoverModule } from './components/popover/popover.module';
|
||||||
import { Label } from './components/label/label';
|
export { RadioModule } from './components/radio/radio.module';
|
||||||
import { List } from './components/list/list';
|
export { RangeModule } from './components/range/range.module';
|
||||||
import { ListHeader } from './components/list/list-header';
|
export { RefresherModule } from './components/refresher/refresher.module';
|
||||||
import { Menu } from './components/menu/menu';
|
export { ScrollModule } from './components/scroll/scroll.module';
|
||||||
import { MenuClose } from './components/menu/menu-close';
|
export { SearchbarModule } from './components/searchbar/searchbar.module';
|
||||||
import { MenuToggle } from './components/menu/menu-toggle';
|
export { SegmentModule } from './components/segment/segment.module';
|
||||||
import { NativeInput } from './components/input/native-input';
|
export { SelectModule } from './components/select/select.module';
|
||||||
import { NextInput } from './components/input/next-input';
|
export { ShowHideWhenModule } from './components/show-hide-when/show-hide-when.module';
|
||||||
import { Nav } from './components/nav/nav';
|
export { SlidesModule } from './components/slides/slides.module';
|
||||||
import { NavPop } from './components/nav/nav-pop';
|
export { SpinnerModule } from './components/spinner/spinner.module';
|
||||||
import { NavPopAnchor } from './components/nav/nav-pop-anchor';
|
export { SplitPaneModule } from './components/split-pane/split-pane.module';
|
||||||
import { NavPush } from './components/nav/nav-push';
|
export { TabsModule } from './components/tabs/tabs.module';
|
||||||
import { NavPushAnchor } from './components/nav/nav-push-anchor';
|
export { ThumbnailModule } from './components/thumbnail/thumbnail.module';
|
||||||
import { Navbar } from './components/navbar/navbar';
|
export { ToastModule } from './components/toast/toast.module';
|
||||||
import { Note } from './components/note/note';
|
export { ToggleModule } from './components/toggle/toggle.module';
|
||||||
import { Option } from './components/option/option';
|
export { ToolbarModule } from './components/toolbar/toolbar.module';
|
||||||
import { OverlayPortal } from './components/nav/overlay-portal';
|
export { TypographyModule } from './components/typography/typography.module';
|
||||||
import { PickerColumnCmp } from './components/picker/picker-column';
|
export { VirtualScrollModule } from './components/virtual-scroll/virtual-scroll.module';
|
||||||
import { RadioButton } from './components/radio/radio-button';
|
|
||||||
import { RadioGroup } from './components/radio/radio-group';
|
|
||||||
import { Range } from './components/range/range';
|
|
||||||
import { RangeKnob } from './components/range/range-knob';
|
|
||||||
import { Refresher } from './components/refresher/refresher';
|
|
||||||
import { RefresherContent } from './components/refresher/refresher-content';
|
|
||||||
import { Scroll } from './components/scroll/scroll';
|
|
||||||
import { Searchbar } from './components/searchbar/searchbar';
|
|
||||||
import { Segment } from './components/segment/segment';
|
|
||||||
import { SegmentButton } from './components/segment/segment-button';
|
|
||||||
import { Select } from './components/select/select';
|
|
||||||
import { ShowWhen } from './components/show-hide-when/show-hide-when';
|
|
||||||
import { HideWhen } from './components/show-hide-when/hide-when';
|
|
||||||
import { Slide } from './components/slides/slide';
|
|
||||||
import { Slides } from './components/slides/slides';
|
|
||||||
import { Spinner } from './components/spinner/spinner';
|
|
||||||
import { SplitPane } from './components/split-pane/split-pane';
|
|
||||||
import { Tab } from './components/tabs/tab';
|
|
||||||
import { Tabs } from './components/tabs/tabs';
|
|
||||||
import { TabButton } from './components/tabs/tab-button';
|
|
||||||
import { TabHighlight } from './components/tabs/tab-highlight';
|
|
||||||
import { TextInput } from './components/input/input';
|
|
||||||
import { Thumbnail } from './components/thumbnail/thumbnail';
|
|
||||||
import { Toggle } from './components/toggle/toggle';
|
|
||||||
import { Toolbar } from './components/toolbar/toolbar';
|
|
||||||
import { Header } from './components/toolbar/toolbar-header';
|
|
||||||
import { Footer } from './components/toolbar/toolbar-footer';
|
|
||||||
import { ToolbarItem } from './components/toolbar/toolbar-item';
|
|
||||||
import { ToolbarTitle } from './components/toolbar/toolbar-title';
|
|
||||||
import { Typography } from './components/typography/typography';
|
|
||||||
import { VirtualScroll } from './components/virtual-scroll/virtual-scroll';
|
|
||||||
|
|
||||||
import { VirtualItem } from './components/virtual-scroll/virtual-item';
|
|
||||||
import { VirtualHeader } from './components/virtual-scroll/virtual-header';
|
|
||||||
import { VirtualFooter } from './components/virtual-scroll/virtual-footer';
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Export Components/Directives
|
* Export Components/Directives
|
||||||
@ -167,7 +172,7 @@ export { CardHeader } from './components/card/card-header';
|
|||||||
export { CardTitle } from './components/card/card-title';
|
export { CardTitle } from './components/card/card-title';
|
||||||
export { Checkbox } from './components/checkbox/checkbox';
|
export { Checkbox } from './components/checkbox/checkbox';
|
||||||
export { Chip } from './components/chip/chip';
|
export { Chip } from './components/chip/chip';
|
||||||
export { ClickBlock } from './util/click-block';
|
export { ClickBlock } from './components/click-block/click-block';
|
||||||
export { Content, ScrollEvent } from './components/content/content';
|
export { Content, ScrollEvent } from './components/content/content';
|
||||||
export { DateTime } from './components/datetime/datetime';
|
export { DateTime } from './components/datetime/datetime';
|
||||||
export { FabButton } from './components/fab/fab';
|
export { FabButton } from './components/fab/fab';
|
||||||
@ -235,8 +240,8 @@ export { Searchbar } from './components/searchbar/searchbar';
|
|||||||
export { Segment } from './components/segment/segment';
|
export { Segment } from './components/segment/segment';
|
||||||
export { SegmentButton } from './components/segment/segment-button';
|
export { SegmentButton } from './components/segment/segment-button';
|
||||||
export { Select } from './components/select/select';
|
export { Select } from './components/select/select';
|
||||||
export { ShowWhen } from './components/show-hide-when/show-hide-when';
|
export { ShowWhen } from './components/show-hide-when/show-when';
|
||||||
export { DisplayWhen } from './components/show-hide-when/show-hide-when';
|
export { DisplayWhen } from './components/show-hide-when/display-when';
|
||||||
export { HideWhen } from './components/show-hide-when/hide-when';
|
export { HideWhen } from './components/show-hide-when/hide-when';
|
||||||
export { Slide } from './components/slides/slide';
|
export { Slide } from './components/slides/slide';
|
||||||
export { Slides } from './components/slides/slides';
|
export { Slides } from './components/slides/slides';
|
||||||
@ -359,201 +364,111 @@ export { IonicGestureConfig } from './gestures/gesture-config';
|
|||||||
CommonModule,
|
CommonModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
|
|
||||||
|
ActionSheetModule.forRoot(),
|
||||||
|
AlertModule.forRoot(),
|
||||||
|
AppModule.forRoot(),
|
||||||
|
AvatarModule.forRoot(),
|
||||||
|
BackdropModule.forRoot(),
|
||||||
|
BadgeModule.forRoot(),
|
||||||
|
ButtonModule.forRoot(),
|
||||||
|
CardModule.forRoot(),
|
||||||
|
CheckboxModule.forRoot(),
|
||||||
|
ChipModule.forRoot(),
|
||||||
|
ClickBlockModule.forRoot(),
|
||||||
|
ContentModule.forRoot(),
|
||||||
|
DateTimeModule.forRoot(),
|
||||||
|
FabModule.forRoot(),
|
||||||
|
GridModule.forRoot(),
|
||||||
|
IconModule.forRoot(),
|
||||||
|
ImgModule.forRoot(),
|
||||||
|
InfiniteScrollModule.forRoot(),
|
||||||
|
InputModule.forRoot(),
|
||||||
|
ItemModule.forRoot(),
|
||||||
|
LabelModule.forRoot(),
|
||||||
|
ListModule.forRoot(),
|
||||||
|
LoadingModule.forRoot(),
|
||||||
|
MenuModule.forRoot(),
|
||||||
|
ModalModule.forRoot(),
|
||||||
|
NavModule.forRoot(),
|
||||||
|
NavbarModule.forRoot(),
|
||||||
|
NoteModule.forRoot(),
|
||||||
|
OptionModule.forRoot(),
|
||||||
|
PickerModule.forRoot(),
|
||||||
|
PopoverModule.forRoot(),
|
||||||
|
RadioModule.forRoot(),
|
||||||
|
RangeModule.forRoot(),
|
||||||
|
RefresherModule.forRoot(),
|
||||||
|
ScrollModule.forRoot(),
|
||||||
|
SearchbarModule.forRoot(),
|
||||||
|
SegmentModule.forRoot(),
|
||||||
|
SelectModule.forRoot(),
|
||||||
|
ShowHideWhenModule.forRoot(),
|
||||||
|
SlidesModule.forRoot(),
|
||||||
|
SpinnerModule.forRoot(),
|
||||||
|
SplitPaneModule.forRoot(),
|
||||||
|
TabsModule.forRoot(),
|
||||||
|
ThumbnailModule.forRoot(),
|
||||||
|
ToastModule.forRoot(),
|
||||||
|
ToggleModule.forRoot(),
|
||||||
|
ToolbarModule.forRoot(),
|
||||||
|
TypographyModule.forRoot(),
|
||||||
|
VirtualScrollModule.forRoot()
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
|
|
||||||
Avatar,
|
ActionSheetModule,
|
||||||
Backdrop,
|
AlertModule,
|
||||||
Badge,
|
AppModule,
|
||||||
Button,
|
AvatarModule,
|
||||||
Card,
|
BackdropModule,
|
||||||
CardContent,
|
BadgeModule,
|
||||||
CardHeader,
|
ButtonModule,
|
||||||
CardTitle,
|
CardModule,
|
||||||
Checkbox,
|
CheckboxModule,
|
||||||
Chip,
|
ChipModule,
|
||||||
ClickBlock,
|
ClickBlockModule,
|
||||||
Col,
|
ContentModule,
|
||||||
Content,
|
DateTimeModule,
|
||||||
DateTime,
|
FabModule,
|
||||||
FabContainer,
|
GridModule,
|
||||||
FabButton,
|
IconModule,
|
||||||
FabList,
|
ImgModule,
|
||||||
Footer,
|
InfiniteScrollModule,
|
||||||
Grid,
|
InputModule,
|
||||||
Header,
|
ItemModule,
|
||||||
HideWhen,
|
LabelModule,
|
||||||
Icon,
|
ListModule,
|
||||||
Img,
|
LoadingModule,
|
||||||
InfiniteScroll,
|
MenuModule,
|
||||||
InfiniteScrollContent,
|
ModalModule,
|
||||||
IonicApp,
|
NavModule,
|
||||||
Item,
|
NavbarModule,
|
||||||
ItemContent,
|
NoteModule,
|
||||||
ItemDivider,
|
OptionModule,
|
||||||
ItemGroup,
|
PickerModule,
|
||||||
ItemOptions,
|
PopoverModule,
|
||||||
ItemReorder,
|
RadioModule,
|
||||||
ItemSliding,
|
RangeModule,
|
||||||
Label,
|
RefresherModule,
|
||||||
List,
|
ScrollModule,
|
||||||
ListHeader,
|
SearchbarModule,
|
||||||
Menu,
|
SegmentModule,
|
||||||
MenuClose,
|
SelectModule,
|
||||||
MenuToggle,
|
ShowHideWhenModule,
|
||||||
NativeInput,
|
SlidesModule,
|
||||||
Nav,
|
SpinnerModule,
|
||||||
Navbar,
|
SplitPaneModule,
|
||||||
NavPop,
|
TabsModule,
|
||||||
NavPopAnchor,
|
ThumbnailModule,
|
||||||
NavPush,
|
ToastModule,
|
||||||
NavPushAnchor,
|
ToggleModule,
|
||||||
NextInput,
|
ToolbarModule,
|
||||||
Note,
|
TypographyModule,
|
||||||
Option,
|
VirtualScrollModule
|
||||||
OverlayPortal,
|
|
||||||
PickerColumnCmp,
|
|
||||||
RadioButton,
|
|
||||||
RadioGroup,
|
|
||||||
Range,
|
|
||||||
RangeKnob,
|
|
||||||
Refresher,
|
|
||||||
RefresherContent,
|
|
||||||
Reorder,
|
|
||||||
Row,
|
|
||||||
Scroll,
|
|
||||||
Searchbar,
|
|
||||||
Segment,
|
|
||||||
SegmentButton,
|
|
||||||
Select,
|
|
||||||
ShowWhen,
|
|
||||||
Slide,
|
|
||||||
Slides,
|
|
||||||
Spinner,
|
|
||||||
SplitPane,
|
|
||||||
Tab,
|
|
||||||
Tabs,
|
|
||||||
TabButton,
|
|
||||||
TabHighlight,
|
|
||||||
TextInput,
|
|
||||||
Thumbnail,
|
|
||||||
Toggle,
|
|
||||||
Toolbar,
|
|
||||||
ToolbarItem,
|
|
||||||
ToolbarTitle,
|
|
||||||
Typography,
|
|
||||||
VirtualFooter,
|
|
||||||
VirtualHeader,
|
|
||||||
VirtualItem,
|
|
||||||
VirtualScroll,
|
|
||||||
],
|
|
||||||
declarations: [
|
|
||||||
ActionSheetCmp,
|
|
||||||
AlertCmp,
|
|
||||||
ClickBlock,
|
|
||||||
LoadingCmp,
|
|
||||||
ModalCmp,
|
|
||||||
PickerCmp,
|
|
||||||
PopoverCmp,
|
|
||||||
ToastCmp,
|
|
||||||
|
|
||||||
Avatar,
|
|
||||||
Backdrop,
|
|
||||||
Badge,
|
|
||||||
Button,
|
|
||||||
Card,
|
|
||||||
CardContent,
|
|
||||||
CardHeader,
|
|
||||||
CardTitle,
|
|
||||||
Checkbox,
|
|
||||||
Chip,
|
|
||||||
ClickBlock,
|
|
||||||
Col,
|
|
||||||
Content,
|
|
||||||
DateTime,
|
|
||||||
FabContainer,
|
|
||||||
FabButton,
|
|
||||||
FabList,
|
|
||||||
Footer,
|
|
||||||
Grid,
|
|
||||||
Header,
|
|
||||||
HideWhen,
|
|
||||||
Icon,
|
|
||||||
Img,
|
|
||||||
InfiniteScroll,
|
|
||||||
InfiniteScrollContent,
|
|
||||||
IonicApp,
|
|
||||||
Item,
|
|
||||||
ItemContent,
|
|
||||||
ItemDivider,
|
|
||||||
ItemGroup,
|
|
||||||
ItemOptions,
|
|
||||||
ItemReorder,
|
|
||||||
ItemSliding,
|
|
||||||
Label,
|
|
||||||
List,
|
|
||||||
ListHeader,
|
|
||||||
Menu,
|
|
||||||
MenuClose,
|
|
||||||
MenuToggle,
|
|
||||||
NativeInput,
|
|
||||||
Nav,
|
|
||||||
Navbar,
|
|
||||||
NavPop,
|
|
||||||
NavPopAnchor,
|
|
||||||
NavPush,
|
|
||||||
NavPushAnchor,
|
|
||||||
NextInput,
|
|
||||||
Note,
|
|
||||||
Option,
|
|
||||||
OverlayPortal,
|
|
||||||
PickerColumnCmp,
|
|
||||||
RadioButton,
|
|
||||||
RadioGroup,
|
|
||||||
Range,
|
|
||||||
RangeKnob,
|
|
||||||
Refresher,
|
|
||||||
RefresherContent,
|
|
||||||
Reorder,
|
|
||||||
Row,
|
|
||||||
Scroll,
|
|
||||||
Searchbar,
|
|
||||||
Segment,
|
|
||||||
SegmentButton,
|
|
||||||
Select,
|
|
||||||
ShowWhen,
|
|
||||||
Slide,
|
|
||||||
Slides,
|
|
||||||
Spinner,
|
|
||||||
SplitPane,
|
|
||||||
Tab,
|
|
||||||
Tabs,
|
|
||||||
TabButton,
|
|
||||||
TabHighlight,
|
|
||||||
TextInput,
|
|
||||||
Thumbnail,
|
|
||||||
Toggle,
|
|
||||||
Toolbar,
|
|
||||||
ToolbarItem,
|
|
||||||
ToolbarTitle,
|
|
||||||
Typography,
|
|
||||||
VirtualFooter,
|
|
||||||
VirtualHeader,
|
|
||||||
VirtualItem,
|
|
||||||
VirtualScroll,
|
|
||||||
],
|
|
||||||
entryComponents: [
|
|
||||||
ActionSheetCmp,
|
|
||||||
AlertCmp,
|
|
||||||
IonicApp,
|
|
||||||
LoadingCmp,
|
|
||||||
ModalCmp,
|
|
||||||
PickerCmp,
|
|
||||||
PopoverCmp,
|
|
||||||
ToastCmp
|
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class IonicModule {
|
export class IonicModule {
|
||||||
|
Reference in New Issue
Block a user