-
@@ -378,6 +378,7 @@ export class TbPopoverComponent implements OnDestroy, OnInit {
tbOverlayClassName!: string;
tbOverlayStyle: { [klass: string]: any } = {};
tbPopoverInnerStyle: { [klass: string]: any } = {};
+ tbPopoverInnerContentStyle: { [klass: string]: any } = {};
tbBackdrop = false;
tbMouseEnterDelay?: number;
tbMouseLeaveDelay?: number;
diff --git a/ui-ngx/src/app/shared/components/popover.service.ts b/ui-ngx/src/app/shared/components/popover.service.ts
index 5eee6b8daf..4b7e67a575 100644
--- a/ui-ngx/src/app/shared/components/popover.service.ts
+++ b/ui-ngx/src/app/shared/components/popover.service.ts
@@ -71,17 +71,19 @@ export class TbPopoverService {
componentType: Type, preferredPlacement: PopoverPreferredPlacement = 'top',
hideOnClickOutside = true, injector?: Injector, context?: any, overlayStyle: any = {},
popoverStyle: any = {}, style?: any,
- showCloseButton = true, visibleFn: (visible: boolean) => void = () => {}): TbPopoverComponent {
+ showCloseButton = true, visibleFn: (visible: boolean) => void = () => {},
+ popoverContentStyle: any = {}): TbPopoverComponent {
const componentRef = this.createPopoverRef(hostView);
return this.displayPopoverWithComponentRef(componentRef, trigger, renderer, componentType, preferredPlacement, hideOnClickOutside,
- injector, context, overlayStyle, popoverStyle, style, showCloseButton, visibleFn);
+ injector, context, overlayStyle, popoverStyle, style, showCloseButton, visibleFn, popoverContentStyle);
}
displayPopoverWithComponentRef(componentRef: ComponentRef, trigger: Element, renderer: Renderer2,
componentType: Type, preferredPlacement: PopoverPreferredPlacement = 'top',
hideOnClickOutside = true, injector?: Injector, context?: any, overlayStyle: any = {},
popoverStyle: any = {}, style?: any, showCloseButton = true,
- visibleFn: (visible: boolean) => void = () => {}): TbPopoverComponent {
+ visibleFn: (visible: boolean) => void = () => {},
+ popoverContentStyle: any = {}): TbPopoverComponent {
const component = componentRef.instance;
this.popoverWithTriggers.push({
trigger,
@@ -99,6 +101,7 @@ export class TbPopoverService {
component.tbComponentContext = context;
component.tbOverlayStyle = overlayStyle;
component.tbPopoverInnerStyle = popoverStyle;
+ component.tbPopoverInnerContentStyle = popoverContentStyle;
component.tbComponentStyle = style;
component.tbHideOnClickOutside = hideOnClickOutside;
component.tbShowCloseButton = showCloseButton;
diff --git a/ui-ngx/src/app/shared/shared.module.ts b/ui-ngx/src/app/shared/shared.module.ts
index 71f121ab17..567b80ed83 100644
--- a/ui-ngx/src/app/shared/shared.module.ts
+++ b/ui-ngx/src/app/shared/shared.module.ts
@@ -178,15 +178,15 @@ import { TemplateAutocompleteComponent } from '@shared/components/notification/t
import { SlackConversationAutocompleteComponent } from '@shared/components/slack-conversation-autocomplete.component';
import { DateAgoPipe } from '@shared/pipe/date-ago.pipe';
import {
- TbBreakPointsProvider,
- MdLgLayoutDirective,
+ GtMdLgLayoutAlignDirective,
+ GtMdLgLayoutDirective,
+ GtMdLgLayoutGapDirective,
+ GtMdLgShowHideDirective,
MdLgLayoutAlignDirective,
+ MdLgLayoutDirective,
MdLgLayoutGapDirective,
MdLgShowHideDirective,
- GtMdLgLayoutDirective,
- GtMdLgLayoutAlignDirective,
- GtMdLgLayoutGapDirective,
- GtMdLgShowHideDirective
+ TbBreakPointsProvider
} from '@shared/layout/layout.directives';
import { ColorPickerComponent } from '@shared/components/color-picker/color-picker.component';
import { ResourceAutocompleteComponent } from '@shared/components/resource/resource-autocomplete.component';
@@ -218,6 +218,7 @@ import { EmbedImageDialogComponent } from '@shared/components/image/embed-image-
import { ImageGalleryDialogComponent } from '@shared/components/image/image-gallery-dialog.component';
import { RuleChainSelectPanelComponent } from '@shared/components/rule-chain/rule-chain-select-panel.component';
import { WidgetButtonComponent } from '@shared/components/button/widget-button.component';
+import { HexInputComponent } from '@shared/components/color-picker/hex-input.component';
export function MarkedOptionsFactory(markedOptionsService: MarkedOptionsService) {
return markedOptionsService;
@@ -416,7 +417,8 @@ export function MarkedOptionsFactory(markedOptionsService: MarkedOptionsService)
MultipleGalleryImageInputComponent,
EmbedImageDialogComponent,
ImageGalleryDialogComponent,
- WidgetButtonComponent
+ WidgetButtonComponent,
+ HexInputComponent
],
imports: [
CommonModule,