using adas_core.Domain.Enums; using MongoDB.Bson; namespace adas_core.Domain.Models.MongoModels; #region HomeConfig public class CardConfig { public ObjectId Id { get; set; } public List? Rows { get; set; } } public class RowCardConfig { // Dynamic cells de nurse y Dynamic Obs de monitoring public List? Cells { get; set; } public double? GrowPriority { get; set; } public DisplayConfigEnums.CellType Type { get; set; } public string? Border { get; set; } public string? BorderRadius { get; set; } public string? Title { get; set; } public string? Size { get; set; } public string? MarginTop { get; set; } public string? MarginBottom { get; set; } public string? MarginLeft { get; set; } public string? MarginRight { get; set; } public string? BgColor { get; set; } public string? PaddingTop { get; set; } public string? PaddingBottom { get; set; } public string? PaddingLeft { get; set; } public string? PaddingRight { get; set; } } public class Cell { public ChartSettings? ChartSettings { get; set; } public List? TextRules { get; set; } public DisplayConfigEnums.CellType Type { get; set; } public string? SubType { get; set; } public double? Size { get; set; } public List? SubObs { get; set; } public bool? HideName { get; set; } public bool? IsStatic { get; set; } public double? GrowPriority { get; set; } public string? Border { get; set; } public string? BorderRadius { get; set; } public string? Name { get; set; } public bool IsVisible { get; set; } = true; public bool? IsColumn { get; set; } public string? BgColor { get; set; } public string? Title { get; set; } public string? ValuePathNested { get; set; } public List? ValuePathKey { get; set; } public List? IconValueList { get; set; } public string? PaddingTop { get; set; } public string? PaddingBottom { get; set; } public string? PaddingLeft { get; set; } public string? PaddingRight { get; set; } public string? Color { get; set; } public string? BackgroundColor { get; set; } public bool? ShowIcon { get; set; } public string? FlexBasis { get; set; } public string? Grow { get; set; } public string? Shrink { get; set; } public bool? ShowTitle { get; set; } public DialogConfig? DialogConfig { get; set; } public bool? IndicatorHorizontal { get; set; } public bool? ShowIndicator { get; set; } public bool? OnlyNumber { get; set; } public bool? ShowArrow { get; set; } public string? GraphConf { get; set; } public List? Names { get; set; } public List? ObservationName { get; set; } public List?>? ObservationTitle { get; set; } public DisplayConfigEnums.DirectionEnum? Direction { get; set; } } public class ChartSettings { public LegendLayoutConfig? LegendLayoutConfig { get; set; } public decimal? LegendGrowPriority { get; set; } public decimal? ChartGrowPriority { get; set; } } public class DialogConfig { public bool? IsDraggable { get; set; } public MedicalConfig? MedicalConfig { get; set; } } public class MedicalConfig { public bool HasFinalizeTime { get; set; } public bool HasStartTime { get; set; } } public class IconValueList { public double? MinValue { get; set; } public double? MaxValue { get; set; } public float? Width { get; set; } public float? Height { get; set; } public List? IconList { get; set; } } public class HomeConfig { public string? MinColumnSize { get; set; } public int ColumnsPerBreakpoint { get; set; } public string? BreakpointSize { get; set; } public string? CardAspectRatioHeight { get; set; } public string? CardAspectRatioWidth { get; set; } } #endregion