Maksym Tsymbarov
1 week ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
9 additions and
6 deletions
-
ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/get-value-action-settings.component.ts
-
ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/set-value-action-settings.component.ts
-
ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/widget-action-settings.component.ts
|
|
|
@ -135,7 +135,7 @@ export class GetValueActionSettingsComponent implements OnInit, ControlValueAcce |
|
|
|
renderer: this.renderer, |
|
|
|
componentType: GetValueActionSettingsPanelComponent, |
|
|
|
hostView: this.viewContainerRef, |
|
|
|
preferredPlacement: ['leftTopOnly', 'leftOnly', 'leftBottomOnly'], |
|
|
|
preferredPlacement: 'leftBottom', |
|
|
|
context: { |
|
|
|
getValueSettings: this.modelValue, |
|
|
|
panelTitle: this.panelTitle, |
|
|
|
@ -147,7 +147,8 @@ export class GetValueActionSettingsComponent implements OnInit, ControlValueAcce |
|
|
|
targetDevice: this.targetDevice, |
|
|
|
widgetType: this.widgetType |
|
|
|
}, |
|
|
|
isModal: true |
|
|
|
isModal: true, |
|
|
|
overlayStyle: { maxHeight: '70vh', height: '100%' } |
|
|
|
}); |
|
|
|
getValueSettingsPanelPopover.tbComponentRef.instance.popover = getValueSettingsPanelPopover; |
|
|
|
getValueSettingsPanelPopover.tbComponentRef.instance.getValueSettingsApplied.subscribe((getValueSettings) => { |
|
|
|
|
|
|
|
@ -121,7 +121,7 @@ export class SetValueActionSettingsComponent implements OnInit, ControlValueAcce |
|
|
|
renderer: this.renderer, |
|
|
|
componentType: SetValueActionSettingsPanelComponent, |
|
|
|
hostView: this.viewContainerRef, |
|
|
|
preferredPlacement: ['leftTopOnly', 'leftOnly', 'leftBottomOnly'], |
|
|
|
preferredPlacement: 'leftBottom', |
|
|
|
context: { |
|
|
|
setValueSettings: this.modelValue, |
|
|
|
panelTitle: this.panelTitle, |
|
|
|
@ -130,7 +130,8 @@ export class SetValueActionSettingsComponent implements OnInit, ControlValueAcce |
|
|
|
targetDevice: this.targetDevice, |
|
|
|
widgetType: this.widgetType |
|
|
|
}, |
|
|
|
isModal: true |
|
|
|
isModal: true, |
|
|
|
overlayStyle: { maxHeight: '70vh', height: '100%' } |
|
|
|
}); |
|
|
|
setValueSettingsPanelPopover.tbComponentRef.instance.popover = setValueSettingsPanelPopover; |
|
|
|
setValueSettingsPanelPopover.tbComponentRef.instance.setValueSettingsApplied.subscribe((setValueSettings) => { |
|
|
|
|
|
|
|
@ -120,7 +120,7 @@ export class WidgetActionSettingsComponent implements OnInit, ControlValueAccess |
|
|
|
renderer: this.renderer, |
|
|
|
componentType: WidgetActionSettingsPanelComponent, |
|
|
|
hostView: this.viewContainerRef, |
|
|
|
preferredPlacement: ['leftTopOnly', 'leftOnly', 'leftBottomOnly'], |
|
|
|
preferredPlacement: 'leftBottom', |
|
|
|
context: { |
|
|
|
widgetAction: this.modelValue, |
|
|
|
panelTitle: this.panelTitle, |
|
|
|
@ -128,7 +128,8 @@ export class WidgetActionSettingsComponent implements OnInit, ControlValueAccess |
|
|
|
callbacks: this.callbacks, |
|
|
|
additionalWidgetActionTypes: this.additionalWidgetActionTypes |
|
|
|
}, |
|
|
|
isModal: true |
|
|
|
isModal: true, |
|
|
|
overlayStyle: { maxHeight: '70vh', height: '100%' } |
|
|
|
}); |
|
|
|
widgetActionSettingsPanelPopover.tbComponentRef.instance.widgetActionApplied.subscribe((widgetAction) => { |
|
|
|
widgetActionSettingsPanelPopover.hide(); |
|
|
|
|