|
|
|
@ -14,14 +14,14 @@ |
|
|
|
/// limitations under the License.
|
|
|
|
///
|
|
|
|
|
|
|
|
import { NgModule, Type } from '@angular/core'; |
|
|
|
import { |
|
|
|
QrCodeWidgetSettingsComponent |
|
|
|
} from '@home/components/widget/lib/settings/cards/qrcode-widget-settings.component'; |
|
|
|
import { NgModule } from '@angular/core'; |
|
|
|
import { CommonModule } from '@angular/common'; |
|
|
|
import { SharedModule } from '@shared/shared.module'; |
|
|
|
import { WidgetService } from '@core/http/widget.service'; |
|
|
|
import { SharedHomeComponentsModule } from '@home/components/shared-home-components.module'; |
|
|
|
import { IWidgetSettingsComponent } from '@shared/models/widget.models'; |
|
|
|
import { |
|
|
|
QrCodeWidgetSettingsComponent |
|
|
|
} from '@home/components/widget/lib/settings/cards/qrcode-widget-settings.component'; |
|
|
|
import { |
|
|
|
TimeseriesTableWidgetSettingsComponent |
|
|
|
} from '@home/components/widget/lib/settings/cards/timeseries-table-widget-settings.component'; |
|
|
|
@ -366,7 +366,7 @@ import { |
|
|
|
UnreadNotificationWidgetSettingsComponent |
|
|
|
} from '@home/components/widget/lib/settings/cards/unread-notification-widget-settings.component'; |
|
|
|
import { |
|
|
|
ScadaSymbolWidgetSettingsComponent |
|
|
|
ScadaSymbolWidgetSettingsComponent |
|
|
|
} from '@home/components/widget/lib/settings/scada/scada-symbol-widget-settings.component'; |
|
|
|
import { |
|
|
|
SegmentedButtonWidgetSettingsComponent |
|
|
|
@ -643,105 +643,7 @@ import { |
|
|
|
] |
|
|
|
}) |
|
|
|
export class WidgetSettingsModule { |
|
|
|
constructor(private widgetService: WidgetService) { |
|
|
|
this.widgetService.registerWidgetSettingsComponents(this.constructor) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
export const widgetSettingsComponentsMap: {[key: string]: Type<IWidgetSettingsComponent>} = { |
|
|
|
'tb-qrcode-widget-settings': QrCodeWidgetSettingsComponent, |
|
|
|
'tb-mobile-app-qr-code-widget-settings': MobileAppQrCodeWidgetSettingsComponent, |
|
|
|
'tb-timeseries-table-widget-settings': TimeseriesTableWidgetSettingsComponent, |
|
|
|
'tb-timeseries-table-key-settings': TimeseriesTableKeySettingsComponent, |
|
|
|
'tb-timeseries-table-latest-key-settings': TimeseriesTableLatestKeySettingsComponent, |
|
|
|
'tb-markdown-widget-settings': MarkdownWidgetSettingsComponent, |
|
|
|
'tb-label-widget-settings': LabelWidgetSettingsComponent, |
|
|
|
'tb-simple-card-widget-settings': SimpleCardWidgetSettingsComponent, |
|
|
|
'tb-dashboard-state-widget-settings': DashboardStateWidgetSettingsComponent, |
|
|
|
'tb-entities-hierarchy-widget-settings': EntitiesHierarchyWidgetSettingsComponent, |
|
|
|
'tb-html-card-widget-settings': HtmlCardWidgetSettingsComponent, |
|
|
|
'tb-entities-table-widget-settings': EntitiesTableWidgetSettingsComponent, |
|
|
|
'tb-entities-table-key-settings': EntitiesTableKeySettingsComponent, |
|
|
|
'tb-alarms-table-widget-settings': AlarmsTableWidgetSettingsComponent, |
|
|
|
'tb-alarms-table-key-settings': AlarmsTableKeySettingsComponent, |
|
|
|
'tb-analogue-radial-gauge-widget-settings': AnalogueRadialGaugeWidgetSettingsComponent, |
|
|
|
'tb-analogue-linear-gauge-widget-settings': AnalogueLinearGaugeWidgetSettingsComponent, |
|
|
|
'tb-analogue-compass-widget-settings': AnalogueCompassWidgetSettingsComponent, |
|
|
|
'tb-digital-gauge-widget-settings': DigitalGaugeWidgetSettingsComponent, |
|
|
|
'tb-flot-line-widget-settings': FlotLineWidgetSettingsComponent, |
|
|
|
'tb-flot-bar-widget-settings': FlotBarWidgetSettingsComponent, |
|
|
|
'tb-flot-line-key-settings': FlotLineKeySettingsComponent, |
|
|
|
'tb-flot-bar-key-settings': FlotBarKeySettingsComponent, |
|
|
|
'tb-flot-latest-key-settings': FlotLatestKeySettingsComponent, |
|
|
|
'tb-flot-pie-widget-settings': FlotPieWidgetSettingsComponent, |
|
|
|
'tb-flot-pie-key-settings': FlotPieKeySettingsComponent, |
|
|
|
'tb-chart-widget-settings': ChartWidgetSettingsComponent, |
|
|
|
'tb-doughnut-chart-widget-settings': DoughnutChartWidgetSettingsComponent, |
|
|
|
'tb-round-switch-widget-settings': RoundSwitchWidgetSettingsComponent, |
|
|
|
'tb-switch-control-widget-settings': SwitchControlWidgetSettingsComponent, |
|
|
|
'tb-slide-toggle-widget-settings': SlideToggleWidgetSettingsComponent, |
|
|
|
'tb-persistent-table-widget-settings': PersistentTableWidgetSettingsComponent, |
|
|
|
'tb-update-device-attribute-widget-settings': UpdateDeviceAttributeWidgetSettingsComponent, |
|
|
|
'tb-send-rpc-widget-settings': SendRpcWidgetSettingsComponent, |
|
|
|
'tb-led-indicator-widget-settings': LedIndicatorWidgetSettingsComponent, |
|
|
|
'tb-knob-control-widget-settings': KnobControlWidgetSettingsComponent, |
|
|
|
'tb-rpc-terminal-widget-settings': RpcTerminalWidgetSettingsComponent, |
|
|
|
'tb-rpc-shell-widget-settings': RpcShellWidgetSettingsComponent, |
|
|
|
'tb-date-range-navigator-widget-settings': DateRangeNavigatorWidgetSettingsComponent, |
|
|
|
'tb-edge-quick-overview-widget-settings': EdgeQuickOverviewWidgetSettingsComponent, |
|
|
|
'tb-gateway-config-widget-settings': GatewayConfigWidgetSettingsComponent, |
|
|
|
'tb-gateway-config-single-device-widget-settings': GatewayConfigSingleDeviceWidgetSettingsComponent, |
|
|
|
'tb-gateway-events-widget-settings': GatewayEventsWidgetSettingsComponent, |
|
|
|
'tb-gpio-control-widget-settings': GpioControlWidgetSettingsComponent, |
|
|
|
'tb-gpio-panel-widget-settings': GpioPanelWidgetSettingsComponent, |
|
|
|
'tb-navigation-card-widget-settings': NavigationCardWidgetSettingsComponent, |
|
|
|
'tb-navigation-cards-widget-settings': NavigationCardsWidgetSettingsComponent, |
|
|
|
'tb-device-claiming-widget-settings': DeviceClaimingWidgetSettingsComponent, |
|
|
|
'tb-update-integer-attribute-widget-settings': UpdateIntegerAttributeWidgetSettingsComponent, |
|
|
|
'tb-update-double-attribute-widget-settings': UpdateDoubleAttributeWidgetSettingsComponent, |
|
|
|
'tb-update-string-attribute-widget-settings': UpdateStringAttributeWidgetSettingsComponent, |
|
|
|
'tb-update-boolean-attribute-widget-settings': UpdateBooleanAttributeWidgetSettingsComponent, |
|
|
|
'tb-update-image-attribute-widget-settings': UpdateImageAttributeWidgetSettingsComponent, |
|
|
|
'tb-update-date-attribute-widget-settings': UpdateDateAttributeWidgetSettingsComponent, |
|
|
|
'tb-update-location-attribute-widget-settings': UpdateLocationAttributeWidgetSettingsComponent, |
|
|
|
'tb-update-json-attribute-widget-settings': UpdateJsonAttributeWidgetSettingsComponent, |
|
|
|
'tb-photo-camera-input-widget-settings': PhotoCameraInputWidgetSettingsComponent, |
|
|
|
'tb-update-multiple-attributes-widget-settings': UpdateMultipleAttributesWidgetSettingsComponent, |
|
|
|
'tb-update-multiple-attributes-key-settings': UpdateMultipleAttributesKeySettingsComponent, |
|
|
|
'tb-map-widget-settings': MapWidgetSettingsComponent, |
|
|
|
'tb-route-map-widget-settings': RouteMapWidgetSettingsComponent, |
|
|
|
'tb-trip-animation-widget-settings': TripAnimationWidgetSettingsComponent, |
|
|
|
'tb-gateway-logs-settings': GatewayLogsSettingsComponent, |
|
|
|
'tb-gateway-service-rpc-settings':GatewayServiceRPCSettingsComponent, |
|
|
|
'tb-doc-links-widget-settings': DocLinksWidgetSettingsComponent, |
|
|
|
'tb-quick-links-widget-settings': QuickLinksWidgetSettingsComponent, |
|
|
|
'tb-value-card-widget-settings': ValueCardWidgetSettingsComponent, |
|
|
|
'tb-aggregated-value-card-key-settings': AggregatedValueCardKeySettingsComponent, |
|
|
|
'tb-aggregated-value-card-widget-settings': AggregatedValueCardWidgetSettingsComponent, |
|
|
|
'tb-alarm-count-widget-settings': AlarmCountWidgetSettingsComponent, |
|
|
|
'tb-entity-count-widget-settings': EntityCountWidgetSettingsComponent, |
|
|
|
'tb-battery-level-widget-settings': BatteryLevelWidgetSettingsComponent, |
|
|
|
'tb-wind-speed-direction-widget-settings': WindSpeedDirectionWidgetSettingsComponent, |
|
|
|
'tb-signal-strength-widget-settings': SignalStrengthWidgetSettingsComponent, |
|
|
|
'tb-value-chart-card-widget-settings': ValueChartCardWidgetSettingsComponent, |
|
|
|
'tb-progress-bar-widget-settings': ProgressBarWidgetSettingsComponent, |
|
|
|
'tb-liquid-level-card-widget-settings': LiquidLevelCardWidgetSettingsComponent, |
|
|
|
'tb-doughnut-widget-settings': DoughnutWidgetSettingsComponent, |
|
|
|
'tb-range-chart-widget-settings': RangeChartWidgetSettingsComponent, |
|
|
|
'tb-bar-chart-with-labels-widget-settings': BarChartWithLabelsWidgetSettingsComponent, |
|
|
|
'tb-single-switch-widget-settings': SingleSwitchWidgetSettingsComponent, |
|
|
|
'tb-action-button-widget-settings': ActionButtonWidgetSettingsComponent, |
|
|
|
'tb-segmented-button-widget-settings': SegmentedButtonWidgetSettingsComponent, |
|
|
|
'tb-command-button-widget-settings': CommandButtonWidgetSettingsComponent, |
|
|
|
'tb-power-button-widget-settings': PowerButtonWidgetSettingsComponent, |
|
|
|
'tb-slider-widget-settings': SliderWidgetSettingsComponent, |
|
|
|
'tb-toggle-button-widget-settings': ToggleButtonWidgetSettingsComponent, |
|
|
|
'tb-time-series-chart-key-settings': TimeSeriesChartKeySettingsComponent, |
|
|
|
'tb-time-series-chart-widget-settings': TimeSeriesChartWidgetSettingsComponent, |
|
|
|
'tb-status-widget-settings': StatusWidgetSettingsComponent, |
|
|
|
'tb-pie-chart-widget-settings': PieChartWidgetSettingsComponent, |
|
|
|
'tb-bar-chart-widget-settings': BarChartWidgetSettingsComponent, |
|
|
|
'tb-polar-area-chart-widget-settings': PolarAreaChartWidgetSettingsComponent, |
|
|
|
'tb-radar-chart-widget-settings': RadarChartWidgetSettingsComponent, |
|
|
|
'tb-label-card-widget-settings': LabelCardWidgetSettingsComponent, |
|
|
|
'tb-label-value-card-widget-settings': LabelValueCardWidgetSettingsComponent, |
|
|
|
'tb-unread-notification-widget-settings': UnreadNotificationWidgetSettingsComponent, |
|
|
|
'tb-scada-symbol-widget-settings': ScadaSymbolWidgetSettingsComponent |
|
|
|
}; |
|
|
|
|