2019-08-09 19:13:18 +03:00
|
|
|
///
|
|
|
|
|
/// Copyright © 2016-2019 The Thingsboard Authors
|
|
|
|
|
///
|
|
|
|
|
/// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
/// you may not use this file except in compliance with the License.
|
|
|
|
|
/// You may obtain a copy of the License at
|
|
|
|
|
///
|
|
|
|
|
/// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
///
|
|
|
|
|
/// Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
/// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
/// See the License for the specific language governing permissions and
|
|
|
|
|
/// limitations under the License.
|
|
|
|
|
///
|
|
|
|
|
|
2019-09-19 20:10:52 +03:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
|
import { CommonModule, DatePipe } from '@angular/common';
|
|
|
|
|
import { FooterComponent } from './components/footer.component';
|
|
|
|
|
import { LogoComponent } from './components/logo.component';
|
|
|
|
|
import { TbSnackBarComponent, ToastDirective } from './components/toast.directive';
|
|
|
|
|
import { BreadcrumbComponent } from '@app/shared/components/breadcrumb.component';
|
2019-10-31 10:06:57 +02:00
|
|
|
import { NgxFlowModule, FlowInjectionToken } from '@flowjs/ngx-flow';
|
|
|
|
|
import Flow from '@flowjs/flow.js';
|
2019-08-09 19:13:18 +03:00
|
|
|
|
|
|
|
|
import {
|
2019-08-21 18:18:46 +03:00
|
|
|
MatAutocompleteModule,
|
2019-08-09 19:13:18 +03:00
|
|
|
MatButtonModule,
|
2019-08-21 18:18:46 +03:00
|
|
|
MatCardModule,
|
2019-08-09 19:13:18 +03:00
|
|
|
MatCheckboxModule,
|
2019-08-21 18:18:46 +03:00
|
|
|
MatChipsModule,
|
|
|
|
|
MatDatepickerModule,
|
|
|
|
|
MatDialogModule,
|
|
|
|
|
MatDividerModule,
|
|
|
|
|
MatExpansionModule,
|
|
|
|
|
MatGridListModule,
|
2019-08-09 19:13:18 +03:00
|
|
|
MatIconModule,
|
|
|
|
|
MatInputModule,
|
|
|
|
|
MatMenuModule,
|
|
|
|
|
MatPaginatorModule,
|
2019-08-21 18:18:46 +03:00
|
|
|
MatProgressBarModule,
|
2019-08-09 19:13:18 +03:00
|
|
|
MatProgressSpinnerModule,
|
|
|
|
|
MatRadioModule,
|
2019-08-21 18:18:46 +03:00
|
|
|
MatSelectModule,
|
|
|
|
|
MatSidenavModule,
|
2019-08-09 19:13:18 +03:00
|
|
|
MatSliderModule,
|
2019-08-21 18:18:46 +03:00
|
|
|
MatSlideToggleModule,
|
|
|
|
|
MatSnackBarModule,
|
|
|
|
|
MatSortModule,
|
2019-08-15 20:39:56 +03:00
|
|
|
MatStepperModule,
|
2019-08-21 18:18:46 +03:00
|
|
|
MatTableModule,
|
|
|
|
|
MatTabsModule,
|
|
|
|
|
MatToolbarModule,
|
|
|
|
|
MatTooltipModule
|
2019-08-09 19:13:18 +03:00
|
|
|
} from '@angular/material';
|
2019-09-19 20:10:52 +03:00
|
|
|
import { MatDatetimepickerModule, MatNativeDatetimeModule } from '@mat-datetimepicker/core';
|
|
|
|
|
import { GridsterModule } from 'angular-gridster2';
|
|
|
|
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
|
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
|
|
|
import { RouterModule } from '@angular/router';
|
|
|
|
|
import { ShareModule as ShareButtonsModule } from '@ngx-share/core';
|
|
|
|
|
import { HotkeyModule } from 'angular2-hotkeys';
|
2019-10-17 18:23:53 +03:00
|
|
|
import { ColorPickerModule } from 'ngx-color-picker';
|
2019-09-19 20:10:52 +03:00
|
|
|
import { UserMenuComponent } from '@shared/components/user-menu.component';
|
|
|
|
|
import { NospacePipe } from './pipe/nospace.pipe';
|
|
|
|
|
import { TranslateModule } from '@ngx-translate/core';
|
|
|
|
|
import { TbCheckboxComponent } from '@shared/components/tb-checkbox.component';
|
|
|
|
|
import { HelpComponent } from '@shared/components/help.component';
|
|
|
|
|
import { TbAnchorComponent } from '@shared/components/tb-anchor.component';
|
|
|
|
|
import { MillisecondsToTimeStringPipe } from '@shared/pipe/milliseconds-to-time-string.pipe';
|
|
|
|
|
import { TimewindowComponent } from '@shared/components/time/timewindow.component';
|
|
|
|
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
|
|
|
import { TimewindowPanelComponent } from '@shared/components/time/timewindow-panel.component';
|
|
|
|
|
import { TimeintervalComponent } from '@shared/components/time/timeinterval.component';
|
|
|
|
|
import { DatetimePeriodComponent } from '@shared/components/time/datetime-period.component';
|
|
|
|
|
import { EnumToArrayPipe } from '@shared/pipe/enum-to-array.pipe';
|
|
|
|
|
import { ClipboardModule } from 'ngx-clipboard';
|
2019-08-29 20:04:59 +03:00
|
|
|
import { ValueInputComponent } from '@shared/components/value-input.component';
|
2019-09-19 20:10:52 +03:00
|
|
|
import { FullscreenDirective } from '@shared/components/fullscreen.directive';
|
|
|
|
|
import { HighlightPipe } from '@shared/pipe/highlight.pipe';
|
|
|
|
|
import { DashboardAutocompleteComponent } from '@shared/components/dashboard-autocomplete.component';
|
|
|
|
|
import { EntitySubTypeAutocompleteComponent } from '@shared/components/entity/entity-subtype-autocomplete.component';
|
|
|
|
|
import { EntitySubTypeSelectComponent } from './components/entity/entity-subtype-select.component';
|
|
|
|
|
import { EntityAutocompleteComponent } from './components/entity/entity-autocomplete.component';
|
|
|
|
|
import { EntityListComponent } from '@shared/components/entity/entity-list.component';
|
|
|
|
|
import { EntityTypeSelectComponent } from './components/entity/entity-type-select.component';
|
|
|
|
|
import { EntitySelectComponent } from './components/entity/entity-select.component';
|
|
|
|
|
import { DatetimeComponent } from '@shared/components/time/datetime.component';
|
|
|
|
|
import { EntityKeysListComponent } from './components/entity/entity-keys-list.component';
|
|
|
|
|
import { SocialSharePanelComponent } from './components/socialshare-panel.component';
|
2019-08-27 20:07:09 +03:00
|
|
|
import { RelationTypeAutocompleteComponent } from '@shared/components/relation/relation-type-autocomplete.component';
|
|
|
|
|
import { EntityListSelectComponent } from './components/entity/entity-list-select.component';
|
|
|
|
|
import { JsonObjectEditComponent } from './components/json-object-edit.component';
|
2019-09-03 19:31:16 +03:00
|
|
|
import { FooterFabButtonsComponent } from '@shared/components/footer-fab-buttons.component';
|
2019-09-19 20:10:52 +03:00
|
|
|
import { CircularProgressDirective } from './components/circular-progress.directive';
|
|
|
|
|
import { MatSpinner } from '@angular/material/progress-spinner';
|
|
|
|
|
import { FabToolbarComponent, FabActionsDirective, FabTriggerDirective } from './components/fab-toolbar.component';
|
|
|
|
|
import { DashboardSelectPanelComponent } from '@shared/components/dashboard-select-panel.component';
|
|
|
|
|
import { DashboardSelectComponent } from '@shared/components/dashboard-select.component';
|
2019-09-23 20:35:31 +03:00
|
|
|
import { WidgetsBundleSelectComponent } from './components/widgets-bundle-select.component';
|
2019-09-25 19:37:29 +03:00
|
|
|
import { KeyboardShortcutPipe } from './pipe/keyboard-shortcut.pipe';
|
2019-10-10 13:00:29 +03:00
|
|
|
import { TbErrorComponent } from './components/tb-error.component';
|
|
|
|
|
import { EntityTypeListComponent } from './components/entity/entity-type-list.component';
|
|
|
|
|
import { EntitySubTypeListComponent } from './components/entity/entity-subtype-list.component';
|
2019-10-11 19:22:03 +03:00
|
|
|
import { TruncatePipe } from './pipe/truncate.pipe';
|
2019-10-17 18:23:53 +03:00
|
|
|
import { ColorPickerDialogComponent } from './components/dialog/color-picker-dialog.component';
|
|
|
|
|
import { MatChipDraggableDirective } from './components/mat-chip-draggable.directive';
|
|
|
|
|
import { ColorInputComponent } from './components/color-input.component';
|
|
|
|
|
import { JsFuncComponent } from './components/js-func.component';
|
|
|
|
|
import { JsonFormComponent } from './components/json-form/json-form.component';
|
2019-10-24 19:52:19 +03:00
|
|
|
import { MaterialIconsDialogComponent } from '@shared/components/dialog/material-icons-dialog.component';
|
|
|
|
|
import { MaterialIconSelectComponent } from '@shared/components/material-icon-select.component';
|
2019-10-31 10:06:57 +02:00
|
|
|
import { ImageInputComponent } from './components/image-input.component';
|
2019-08-09 19:13:18 +03:00
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
|
providers: [
|
|
|
|
|
DatePipe,
|
2019-08-12 19:34:23 +03:00
|
|
|
MillisecondsToTimeStringPipe,
|
|
|
|
|
EnumToArrayPipe,
|
2019-10-11 19:22:03 +03:00
|
|
|
HighlightPipe,
|
2019-10-31 10:06:57 +02:00
|
|
|
TruncatePipe,
|
|
|
|
|
{
|
|
|
|
|
provide: FlowInjectionToken,
|
|
|
|
|
useValue: Flow
|
|
|
|
|
}
|
2019-08-09 19:13:18 +03:00
|
|
|
],
|
|
|
|
|
entryComponents: [
|
|
|
|
|
TbSnackBarComponent,
|
|
|
|
|
TbAnchorComponent,
|
2019-08-12 19:34:23 +03:00
|
|
|
TimewindowPanelComponent,
|
2019-09-19 20:10:52 +03:00
|
|
|
DashboardSelectPanelComponent,
|
2019-10-17 18:23:53 +03:00
|
|
|
MatSpinner,
|
2019-10-24 19:52:19 +03:00
|
|
|
ColorPickerDialogComponent,
|
|
|
|
|
MaterialIconsDialogComponent
|
2019-08-09 19:13:18 +03:00
|
|
|
],
|
|
|
|
|
declarations: [
|
|
|
|
|
FooterComponent,
|
|
|
|
|
LogoComponent,
|
2019-09-03 19:31:16 +03:00
|
|
|
FooterFabButtonsComponent,
|
2019-08-09 19:13:18 +03:00
|
|
|
ToastDirective,
|
|
|
|
|
FullscreenDirective,
|
2019-09-19 20:10:52 +03:00
|
|
|
CircularProgressDirective,
|
2019-10-17 18:23:53 +03:00
|
|
|
MatChipDraggableDirective,
|
2019-08-09 19:13:18 +03:00
|
|
|
TbAnchorComponent,
|
|
|
|
|
HelpComponent,
|
|
|
|
|
TbCheckboxComponent,
|
|
|
|
|
TbSnackBarComponent,
|
2019-10-10 13:00:29 +03:00
|
|
|
TbErrorComponent,
|
2019-08-09 19:13:18 +03:00
|
|
|
BreadcrumbComponent,
|
|
|
|
|
UserMenuComponent,
|
2019-08-12 19:34:23 +03:00
|
|
|
TimewindowComponent,
|
|
|
|
|
TimewindowPanelComponent,
|
|
|
|
|
TimeintervalComponent,
|
2019-09-19 20:10:52 +03:00
|
|
|
DashboardSelectComponent,
|
|
|
|
|
DashboardSelectPanelComponent,
|
2019-08-12 19:34:23 +03:00
|
|
|
DatetimePeriodComponent,
|
2019-08-19 20:09:41 +03:00
|
|
|
DatetimeComponent,
|
2019-08-29 20:04:59 +03:00
|
|
|
ValueInputComponent,
|
2019-08-12 19:34:23 +03:00
|
|
|
DashboardAutocompleteComponent,
|
2019-08-13 19:58:35 +03:00
|
|
|
EntitySubTypeAutocompleteComponent,
|
|
|
|
|
EntitySubTypeSelectComponent,
|
2019-10-10 13:00:29 +03:00
|
|
|
EntitySubTypeListComponent,
|
2019-08-14 19:55:24 +03:00
|
|
|
EntityAutocompleteComponent,
|
2019-08-15 20:39:56 +03:00
|
|
|
EntityListComponent,
|
2019-08-19 20:09:41 +03:00
|
|
|
EntityTypeSelectComponent,
|
|
|
|
|
EntitySelectComponent,
|
|
|
|
|
EntityKeysListComponent,
|
2019-08-27 20:07:09 +03:00
|
|
|
EntityListSelectComponent,
|
2019-10-10 13:00:29 +03:00
|
|
|
EntityTypeListComponent,
|
2019-08-27 20:07:09 +03:00
|
|
|
RelationTypeAutocompleteComponent,
|
2019-08-20 20:42:48 +03:00
|
|
|
SocialSharePanelComponent,
|
2019-08-27 20:07:09 +03:00
|
|
|
JsonObjectEditComponent,
|
2019-10-17 18:23:53 +03:00
|
|
|
JsFuncComponent,
|
2019-09-19 20:10:52 +03:00
|
|
|
FabTriggerDirective,
|
|
|
|
|
FabActionsDirective,
|
|
|
|
|
FabToolbarComponent,
|
2019-09-23 20:35:31 +03:00
|
|
|
WidgetsBundleSelectComponent,
|
2019-10-17 18:23:53 +03:00
|
|
|
ColorPickerDialogComponent,
|
2019-10-24 19:52:19 +03:00
|
|
|
MaterialIconsDialogComponent,
|
2019-10-17 18:23:53 +03:00
|
|
|
ColorInputComponent,
|
2019-10-24 19:52:19 +03:00
|
|
|
MaterialIconSelectComponent,
|
2019-10-17 18:23:53 +03:00
|
|
|
JsonFormComponent,
|
2019-10-31 10:06:57 +02:00
|
|
|
ImageInputComponent,
|
2019-08-09 19:13:18 +03:00
|
|
|
NospacePipe,
|
2019-08-12 19:34:23 +03:00
|
|
|
MillisecondsToTimeStringPipe,
|
|
|
|
|
EnumToArrayPipe,
|
2019-09-25 19:37:29 +03:00
|
|
|
HighlightPipe,
|
2019-10-11 19:22:03 +03:00
|
|
|
TruncatePipe,
|
2019-09-25 19:37:29 +03:00
|
|
|
KeyboardShortcutPipe
|
2019-08-09 19:13:18 +03:00
|
|
|
],
|
|
|
|
|
imports: [
|
|
|
|
|
CommonModule,
|
|
|
|
|
RouterModule,
|
|
|
|
|
TranslateModule,
|
|
|
|
|
MatButtonModule,
|
|
|
|
|
MatCheckboxModule,
|
|
|
|
|
MatIconModule,
|
|
|
|
|
MatCardModule,
|
|
|
|
|
MatProgressBarModule,
|
|
|
|
|
MatInputModule,
|
|
|
|
|
MatSnackBarModule,
|
|
|
|
|
MatSidenavModule,
|
|
|
|
|
MatToolbarModule,
|
|
|
|
|
MatMenuModule,
|
|
|
|
|
MatGridListModule,
|
|
|
|
|
MatDialogModule,
|
|
|
|
|
MatSelectModule,
|
|
|
|
|
MatTooltipModule,
|
|
|
|
|
MatTableModule,
|
|
|
|
|
MatPaginatorModule,
|
|
|
|
|
MatSortModule,
|
|
|
|
|
MatProgressSpinnerModule,
|
|
|
|
|
MatDividerModule,
|
|
|
|
|
MatTabsModule,
|
|
|
|
|
MatRadioModule,
|
|
|
|
|
MatSlideToggleModule,
|
|
|
|
|
MatDatepickerModule,
|
|
|
|
|
MatNativeDatetimeModule,
|
|
|
|
|
MatDatetimepickerModule,
|
|
|
|
|
MatSliderModule,
|
|
|
|
|
MatExpansionModule,
|
|
|
|
|
MatStepperModule,
|
|
|
|
|
MatAutocompleteModule,
|
2019-08-15 20:39:56 +03:00
|
|
|
MatChipsModule,
|
2019-09-03 19:31:16 +03:00
|
|
|
GridsterModule,
|
2019-08-09 19:13:18 +03:00
|
|
|
ClipboardModule,
|
|
|
|
|
FlexLayoutModule.withConfig({addFlexToParent: false}),
|
|
|
|
|
FormsModule,
|
|
|
|
|
ReactiveFormsModule,
|
2019-08-20 20:42:48 +03:00
|
|
|
OverlayModule,
|
2019-09-19 20:10:52 +03:00
|
|
|
ShareButtonsModule,
|
2019-10-17 18:23:53 +03:00
|
|
|
HotkeyModule,
|
2019-10-31 10:06:57 +02:00
|
|
|
ColorPickerModule,
|
|
|
|
|
NgxFlowModule
|
2019-08-09 19:13:18 +03:00
|
|
|
],
|
|
|
|
|
exports: [
|
|
|
|
|
FooterComponent,
|
|
|
|
|
LogoComponent,
|
2019-09-03 19:31:16 +03:00
|
|
|
FooterFabButtonsComponent,
|
2019-08-09 19:13:18 +03:00
|
|
|
ToastDirective,
|
|
|
|
|
FullscreenDirective,
|
2019-09-19 20:10:52 +03:00
|
|
|
CircularProgressDirective,
|
2019-10-17 18:23:53 +03:00
|
|
|
MatChipDraggableDirective,
|
2019-08-09 19:13:18 +03:00
|
|
|
TbAnchorComponent,
|
|
|
|
|
HelpComponent,
|
|
|
|
|
TbCheckboxComponent,
|
2019-10-10 13:00:29 +03:00
|
|
|
TbErrorComponent,
|
2019-08-09 19:13:18 +03:00
|
|
|
BreadcrumbComponent,
|
|
|
|
|
UserMenuComponent,
|
2019-08-12 19:34:23 +03:00
|
|
|
TimewindowComponent,
|
|
|
|
|
TimewindowPanelComponent,
|
|
|
|
|
TimeintervalComponent,
|
2019-09-19 20:10:52 +03:00
|
|
|
DashboardSelectComponent,
|
2019-08-12 19:34:23 +03:00
|
|
|
DatetimePeriodComponent,
|
2019-08-19 20:09:41 +03:00
|
|
|
DatetimeComponent,
|
2019-08-12 19:34:23 +03:00
|
|
|
DashboardAutocompleteComponent,
|
2019-08-13 19:58:35 +03:00
|
|
|
EntitySubTypeAutocompleteComponent,
|
|
|
|
|
EntitySubTypeSelectComponent,
|
2019-10-10 13:00:29 +03:00
|
|
|
EntitySubTypeListComponent,
|
2019-08-14 19:55:24 +03:00
|
|
|
EntityAutocompleteComponent,
|
2019-08-15 20:39:56 +03:00
|
|
|
EntityListComponent,
|
2019-08-19 20:09:41 +03:00
|
|
|
EntityTypeSelectComponent,
|
|
|
|
|
EntitySelectComponent,
|
|
|
|
|
EntityKeysListComponent,
|
2019-08-27 20:07:09 +03:00
|
|
|
EntityListSelectComponent,
|
2019-10-10 13:00:29 +03:00
|
|
|
EntityTypeListComponent,
|
2019-08-27 20:07:09 +03:00
|
|
|
RelationTypeAutocompleteComponent,
|
2019-08-20 20:42:48 +03:00
|
|
|
SocialSharePanelComponent,
|
2019-08-27 20:07:09 +03:00
|
|
|
JsonObjectEditComponent,
|
2019-10-17 18:23:53 +03:00
|
|
|
JsFuncComponent,
|
2019-09-19 20:10:52 +03:00
|
|
|
FabTriggerDirective,
|
|
|
|
|
FabActionsDirective,
|
|
|
|
|
FabToolbarComponent,
|
2019-09-23 20:35:31 +03:00
|
|
|
WidgetsBundleSelectComponent,
|
2019-08-29 20:04:59 +03:00
|
|
|
ValueInputComponent,
|
2019-08-09 19:13:18 +03:00
|
|
|
MatButtonModule,
|
|
|
|
|
MatCheckboxModule,
|
|
|
|
|
MatIconModule,
|
|
|
|
|
MatCardModule,
|
|
|
|
|
MatProgressBarModule,
|
|
|
|
|
MatInputModule,
|
|
|
|
|
MatSnackBarModule,
|
|
|
|
|
MatSidenavModule,
|
|
|
|
|
MatToolbarModule,
|
|
|
|
|
MatMenuModule,
|
|
|
|
|
MatGridListModule,
|
|
|
|
|
MatDialogModule,
|
|
|
|
|
MatSelectModule,
|
|
|
|
|
MatTooltipModule,
|
|
|
|
|
MatTableModule,
|
|
|
|
|
MatPaginatorModule,
|
|
|
|
|
MatSortModule,
|
|
|
|
|
MatProgressSpinnerModule,
|
|
|
|
|
MatDividerModule,
|
|
|
|
|
MatTabsModule,
|
|
|
|
|
MatRadioModule,
|
|
|
|
|
MatSlideToggleModule,
|
|
|
|
|
MatDatepickerModule,
|
|
|
|
|
MatNativeDatetimeModule,
|
|
|
|
|
MatDatetimepickerModule,
|
|
|
|
|
MatSliderModule,
|
|
|
|
|
MatExpansionModule,
|
|
|
|
|
MatStepperModule,
|
|
|
|
|
MatAutocompleteModule,
|
2019-08-15 20:39:56 +03:00
|
|
|
MatChipsModule,
|
2019-09-03 19:31:16 +03:00
|
|
|
GridsterModule,
|
2019-08-09 19:13:18 +03:00
|
|
|
ClipboardModule,
|
|
|
|
|
FlexLayoutModule,
|
|
|
|
|
FormsModule,
|
|
|
|
|
ReactiveFormsModule,
|
|
|
|
|
OverlayModule,
|
2019-08-20 20:42:48 +03:00
|
|
|
ShareButtonsModule,
|
2019-09-19 20:10:52 +03:00
|
|
|
HotkeyModule,
|
2019-10-17 18:23:53 +03:00
|
|
|
ColorPickerModule,
|
|
|
|
|
ColorPickerDialogComponent,
|
2019-10-24 19:52:19 +03:00
|
|
|
MaterialIconsDialogComponent,
|
2019-10-17 18:23:53 +03:00
|
|
|
ColorInputComponent,
|
2019-10-24 19:52:19 +03:00
|
|
|
MaterialIconSelectComponent,
|
2019-10-17 18:23:53 +03:00
|
|
|
JsonFormComponent,
|
2019-10-31 10:06:57 +02:00
|
|
|
ImageInputComponent,
|
2019-08-09 19:13:18 +03:00
|
|
|
NospacePipe,
|
2019-08-12 19:34:23 +03:00
|
|
|
MillisecondsToTimeStringPipe,
|
|
|
|
|
EnumToArrayPipe,
|
|
|
|
|
HighlightPipe,
|
2019-10-11 19:22:03 +03:00
|
|
|
TruncatePipe,
|
2019-09-25 19:37:29 +03:00
|
|
|
KeyboardShortcutPipe,
|
2019-08-09 19:13:18 +03:00
|
|
|
TranslateModule
|
|
|
|
|
]
|
|
|
|
|
})
|
|
|
|
|
export class SharedModule { }
|