|
|
@ -42,6 +42,7 @@ import { enumerable } from '@shared/decorators/enumerable'; |
|
|
import { UtilsService } from '@core/services/utils.service'; |
|
|
import { UtilsService } from '@core/services/utils.service'; |
|
|
import { TbPopoverComponent } from '@shared/components/popover.component'; |
|
|
import { TbPopoverComponent } from '@shared/components/popover.component'; |
|
|
import { ComponentStyle, iconStyle, textStyle } from '@shared/models/widget-settings.models'; |
|
|
import { ComponentStyle, iconStyle, textStyle } from '@shared/models/widget-settings.models'; |
|
|
|
|
|
import { TbContextMenuEvent } from '@shared/models/jquery-event.models'; |
|
|
|
|
|
|
|
|
export interface WidgetsData { |
|
|
export interface WidgetsData { |
|
|
widgets: Array<Widget>; |
|
|
widgets: Array<Widget>; |
|
|
@ -56,11 +57,11 @@ export interface ContextMenuItem { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
export interface DashboardContextMenuItem extends ContextMenuItem { |
|
|
export interface DashboardContextMenuItem extends ContextMenuItem { |
|
|
action: (contextMenuEvent: MouseEvent) => void; |
|
|
action: (contextMenuEvent: TbContextMenuEvent) => void; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
export interface WidgetContextMenuItem extends ContextMenuItem { |
|
|
export interface WidgetContextMenuItem extends ContextMenuItem { |
|
|
action: (contextMenuEvent: MouseEvent, widget: Widget) => void; |
|
|
action: (contextMenuEvent: TbContextMenuEvent, widget: Widget) => void; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
export interface DashboardCallbacks { |
|
|
export interface DashboardCallbacks { |
|
|
@ -94,7 +95,7 @@ export interface IDashboardComponent { |
|
|
highlightWidget(widgetId: string, delay?: number); |
|
|
highlightWidget(widgetId: string, delay?: number); |
|
|
selectWidget(widgetId: string, delay?: number); |
|
|
selectWidget(widgetId: string, delay?: number); |
|
|
getSelectedWidget(): Widget; |
|
|
getSelectedWidget(): Widget; |
|
|
getEventGridPosition(event: Event): WidgetPosition; |
|
|
getEventGridPosition(event: TbContextMenuEvent | KeyboardEvent): WidgetPosition; |
|
|
notifyGridsterOptionsChanged(); |
|
|
notifyGridsterOptionsChanged(); |
|
|
pauseChangeNotifications(); |
|
|
pauseChangeNotifications(); |
|
|
resumeChangeNotifications(); |
|
|
resumeChangeNotifications(); |
|
|
|