using adas_core.Domain.Enums; using MongoDB.Bson; namespace adas_core.Domain.Models.MongoModels; #region HomeConfig /// /// Represents a configuration class for defining the properties and settings of a card. /// /// /// This class is intended to be used as a data container or settings holder for card-related configurations. /// public class CardConfig { public ObjectId Id { get; set; } public List? Rows { get; set; } } /// /// Represents configuration settings for a row card component. /// /// /// This type is intended to be used as a data container to define the visual or behavioral properties of a row card. /// 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; } } /// /// Represents a single cell, typically used as an individual unit within a larger structured data model such as a grid, table, or matrix. /// 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; } } /// /// Represents the configuration settings used to control the appearance and behavior of a chart. /// public class ChartSettings { public LegendLayoutConfig? LegendLayoutConfig { get; set; } public decimal? LegendGrowPriority { get; set; } public decimal? ChartGrowPriority { get; set; } } /// /// Represents configuration settings for a dialog, providing a centralized structure to manage dialog-related options and parameters. /// public class DialogConfig { public bool? IsDraggable { get; set; } public MedicalConfig? MedicalConfig { get; set; } } /// /// Represents a configuration class for medical-related settings and parameters. /// /// /// Serves as a container for medical configuration data, providing a centralized structure to manage and access medical settings within the application. /// public class MedicalConfig { public bool HasFinalizeTime { get; set; } public bool HasStartTime { get; set; } } /// /// Represents a list of icon values, providing a collection structure for managing and accessing icon-related data. /// 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; } } /// /// Represents the configuration settings for the home page or home component. /// 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