euv-ui 0.48.6

Cross-platform UI component library and 17-scheme design system for the euv framework with pixel-consistent rendering across Web, Android, iOS, iPadOS, macOS, Windows, and Linux.
Documentation
/// Default maximum height in logical pixels for inline scrollable Mermaid diagram viewports.
pub(crate) const MERMAID_DEFAULT_MAX_HEIGHT: f32 = 420.0;
/// Overlay stack identifier for the `EuvMermaid` fullscreen viewer modal.
pub(crate) const MERMAID_FULLSCREEN_OVERLAY_NAME: &str = "EuvMermaidFullscreen";
/// Header badge prefix displayed on Mermaid diagrams.
pub(crate) const MERMAID_BADGE_FLOWCHART: &str = "MERMAID FLOWCHART";
/// Header badge label for sequence diagrams.
pub(crate) const MERMAID_BADGE_SEQUENCE: &str = "MERMAID SEQUENCE";
/// Header badge label for state diagrams.
pub(crate) const MERMAID_BADGE_STATE: &str = "MERMAID STATE";
/// Header badge label for class diagrams.
pub(crate) const MERMAID_BADGE_CLASS: &str = "MERMAID CLASS";
/// Header badge label for entity-relationship diagrams.
pub(crate) const MERMAID_BADGE_ER: &str = "MERMAID ER";
/// Header badge label for pie charts.
pub(crate) const MERMAID_BADGE_PIE: &str = "MERMAID PIE";
/// Header badge label for Gantt timelines.
pub(crate) const MERMAID_BADGE_GANTT: &str = "MERMAID GANTT";
/// Header badge label for timeline diagrams.
pub(crate) const MERMAID_BADGE_TIMELINE: &str = "MERMAID TIMELINE";
/// Header badge label for mindmap diagrams.
pub(crate) const MERMAID_BADGE_MINDMAP: &str = "MERMAID MINDMAP";
/// Header badge label for XY charts.
pub(crate) const MERMAID_BADGE_XYCHART: &str = "MERMAID XYCHART";
/// Header badge label for Git branch graphs.
pub(crate) const MERMAID_BADGE_GITGRAPH: &str = "MERMAID GITGRAPH";
/// Button label opening fullscreen Mermaid modal.
pub(crate) const MERMAID_BTN_FULLSCREEN: &str = "Fullscreen";
/// Button label closing fullscreen Mermaid modal.
pub(crate) const MERMAID_BTN_CLOSE: &str = "Close";
/// Button label copying Mermaid source.
pub(crate) const MERMAID_BTN_COPY: &str = "Copy";
/// Button label confirming Mermaid source copy.
pub(crate) const MERMAID_BTN_COPIED: &str = "Copied";
/// Accessible label for the fullscreen Mermaid zoom-out button.
pub(crate) const MERMAID_BTN_ZOOM_OUT: &str = "Zoom Out";
/// Accessible label for the fullscreen Mermaid zoom-reset button.
pub(crate) const MERMAID_BTN_ZOOM_RESET: &str = "Reset Zoom";
/// Accessible label for the fullscreen Mermaid zoom-in button.
pub(crate) const MERMAID_BTN_ZOOM_IN: &str = "Zoom In";
/// Symbol displayed on the fullscreen zoom-out button.
pub(crate) const MERMAID_ZOOM_MINUS: &str = "-";
/// Symbol displayed on the fullscreen zoom-in button.
pub(crate) const MERMAID_ZOOM_PLUS: &str = "+";
/// Initial zoom percentage text displayed on the fullscreen reset button.
pub(crate) const MERMAID_ZOOM_INIT_LABEL: &str = "100%";
/// Minimum interactive zoom factor in fullscreen Mermaid mode.
pub(crate) const MERMAID_ZOOM_MIN: f32 = 0.5;
/// Maximum interactive zoom factor in fullscreen Mermaid mode.
pub(crate) const MERMAID_ZOOM_MAX: f32 = 2.5;
/// Zoom factor step applied per fullscreen zoom button click.
pub(crate) const MERMAID_ZOOM_STEP: f32 = 0.25;
/// Keyword identifying a Mermaid flowchart header.
pub(crate) const MERMAID_KW_FLOWCHART: &str = "flowchart";
/// Keyword identifying a Mermaid graph header.
pub(crate) const MERMAID_KW_GRAPH: &str = "graph";
/// Keyword identifying a Mermaid sequence diagram.
pub(crate) const MERMAID_KW_SEQUENCE: &str = "sequencediagram";
/// Keyword identifying a Mermaid state diagram.
pub(crate) const MERMAID_KW_STATE: &str = "statediagram";
/// Keyword identifying a Mermaid class diagram.
pub(crate) const MERMAID_KW_CLASS: &str = "classdiagram";
/// Keyword identifying a Mermaid entity-relationship diagram.
pub(crate) const MERMAID_KW_ER: &str = "erdiagram";
/// Keyword identifying a Mermaid pie chart.
pub(crate) const MERMAID_KW_PIE: &str = "pie";
/// Keyword identifying a Mermaid Gantt chart.
pub(crate) const MERMAID_KW_GANTT: &str = "gantt";
/// Keyword identifying a Mermaid timeline diagram.
pub(crate) const MERMAID_KW_TIMELINE: &str = "timeline";
/// Keyword identifying a Mermaid mindmap diagram.
pub(crate) const MERMAID_KW_MINDMAP: &str = "mindmap";
/// Keyword identifying a Mermaid XY chart diagram.
pub(crate) const MERMAID_KW_XYCHART: &str = "xychart";
/// Keyword identifying a Mermaid gitGraph diagram.
pub(crate) const MERMAID_KW_GITGRAPH: &str = "gitgraph";
/// Keyword identifying a flowchart subgraph opening.
pub(crate) const MERMAID_KW_SUBGRAPH: &str = "subgraph ";
/// Keyword identifying a flowchart inner direction directive.
pub(crate) const MERMAID_KW_DIRECTION: &str = "direction ";
/// Keyword identifying a flowchart classDef directive.
pub(crate) const MERMAID_KW_CLASSDEF: &str = "classdef ";
/// Keyword identifying a flowchart style directive.
pub(crate) const MERMAID_KW_STYLE: &str = "style ";
/// Keyword identifying a flowchart click directive.
pub(crate) const MERMAID_KW_CLICK: &str = "click ";
/// Keyword identifying a flowchart linkStyle directive.
pub(crate) const MERMAID_KW_LINKSTYLE: &str = "linkstyle ";
/// Alias separator token used in Mermaid participant and state declarations.
pub(crate) const MERMAID_ALIAS_SEP: &str = " as ";
/// Keyword identifying a Mermaid block close.
pub(crate) const MERMAID_KW_END: &str = "end";
/// Keyword identifying a sequence diagram participant.
pub(crate) const MERMAID_KW_PARTICIPANT: &str = "participant ";
/// Keyword identifying a sequence diagram actor.
pub(crate) const MERMAID_KW_ACTOR: &str = "actor ";
/// Keyword identifying a sequence diagram autonumber directive.
pub(crate) const MERMAID_KW_AUTONUMBER: &str = "autonumber";
/// Keyword identifying a sequence diagram activation directive.
pub(crate) const MERMAID_KW_ACTIVATE: &str = "activate ";
/// Keyword identifying a sequence diagram deactivation directive.
pub(crate) const MERMAID_KW_DEACTIVATE: &str = "deactivate ";
/// Keyword identifying a sequence diagram note.
pub(crate) const MERMAID_KW_NOTE: &str = "note ";
/// Keyword identifying a sequence loop block.
pub(crate) const MERMAID_KW_LOOP: &str = "loop ";
/// Keyword identifying a sequence alt block.
pub(crate) const MERMAID_KW_ALT: &str = "alt ";
/// Keyword identifying a sequence else divider.
pub(crate) const MERMAID_KW_ELSE: &str = "else";
/// Keyword identifying a sequence opt block.
pub(crate) const MERMAID_KW_OPT: &str = "opt ";
/// Keyword identifying a sequence par block.
pub(crate) const MERMAID_KW_PAR: &str = "par ";
/// Keyword identifying a sequence and divider.
pub(crate) const MERMAID_KW_AND: &str = "and";
/// Keyword identifying a sequence critical block.
pub(crate) const MERMAID_KW_CRITICAL: &str = "critical ";
/// Keyword identifying a sequence option divider.
pub(crate) const MERMAID_KW_OPTION: &str = "option";
/// Keyword identifying a sequence break block.
pub(crate) const MERMAID_KW_BREAK: &str = "break ";
/// Keyword identifying a sequence rect block.
pub(crate) const MERMAID_KW_RECT: &str = "rect ";
/// Keyword identifying a title directive.
pub(crate) const MERMAID_KW_TITLE: &str = "title ";
/// Keyword identifying a Gantt or timeline section directive.
pub(crate) const MERMAID_KW_SECTION: &str = "section ";
/// Keyword identifying a Gantt dateFormat directive.
pub(crate) const MERMAID_KW_DATE_FORMAT: &str = "dateformat";
/// Keyword identifying a Gantt axisFormat directive.
pub(crate) const MERMAID_KW_AXIS_FORMAT: &str = "axisformat";
/// Keyword identifying a Mermaid state declaration.
pub(crate) const MERMAID_KW_STATE_DECL: &str = "state ";
/// Keyword identifying a Mermaid class declaration.
pub(crate) const MERMAID_KW_CLASS_DECL: &str = "class ";
/// Keyword identifying a Mermaid x-axis declaration.
pub(crate) const MERMAID_KW_X_AXIS: &str = "x-axis";
/// Keyword identifying a Mermaid y-axis declaration.
pub(crate) const MERMAID_KW_Y_AXIS: &str = "y-axis";
/// Keyword identifying a Mermaid XY bar series.
pub(crate) const MERMAID_KW_BAR: &str = "bar";
/// Keyword identifying a Mermaid XY line series.
pub(crate) const MERMAID_KW_LINE: &str = "line";
/// Keyword identifying a Mermaid gitGraph commit command.
pub(crate) const MERMAID_KW_COMMIT: &str = "commit";
/// Keyword identifying a Mermaid gitGraph branch command.
pub(crate) const MERMAID_KW_BRANCH: &str = "branch ";
/// Keyword identifying a Mermaid gitGraph checkout command.
pub(crate) const MERMAID_KW_CHECKOUT: &str = "checkout ";
/// Keyword identifying a Mermaid gitGraph switch command.
pub(crate) const MERMAID_KW_SWITCH: &str = "switch ";
/// Keyword identifying a Mermaid gitGraph merge command.
pub(crate) const MERMAID_KW_MERGE: &str = "merge ";
/// Keyword identifying a Mermaid gitGraph cherry-pick command.
pub(crate) const MERMAID_KW_CHERRY_PICK: &str = "cherry-pick";
/// Default primary branch name for Mermaid gitGraph diagrams.
pub(crate) const MERMAID_GIT_MAIN: &str = "main";
/// Marker identifying a start or end terminal state.
pub(crate) const MERMAID_STATE_TERMINAL: &str = "[*]";
/// Stereotype marker for a state fork bar.
pub(crate) const MERMAID_STATE_FORK: &str = "<<fork>>";
/// Stereotype marker for a state join bar.
pub(crate) const MERMAID_STATE_JOIN: &str = "<<join>>";
/// Stereotype marker for a state choice diamond.
pub(crate) const MERMAID_STATE_CHOICE: &str = "<<choice>>";
/// Alternative bracket marker for state fork bar.
pub(crate) const MERMAID_STATE_FORK_ALT: &str = "[[fork]]";
/// Alternative bracket marker for state join bar.
pub(crate) const MERMAID_STATE_JOIN_ALT: &str = "[[join]]";
/// Alternative bracket marker for state choice diamond.
pub(crate) const MERMAID_STATE_CHOICE_ALT: &str = "[[choice]]";
/// Sequence note placement token for left placement.
pub(crate) const MERMAID_NOTE_LEFT_OF: &str = "left of ";
/// Sequence note placement token for right placement.
pub(crate) const MERMAID_NOTE_RIGHT_OF: &str = "right of ";
/// Sequence note placement token for spanning placement.
pub(crate) const MERMAID_NOTE_OVER: &str = "over ";
/// Sequence block label for loop.
pub(crate) const MERMAID_BLK_LOOP: &str = "loop";
/// Sequence block label for alt.
pub(crate) const MERMAID_BLK_ALT: &str = "alt";
/// Sequence block label for opt.
pub(crate) const MERMAID_BLK_OPT: &str = "opt";
/// Sequence block label for par.
pub(crate) const MERMAID_BLK_PAR: &str = "par";
/// Sequence block label for critical.
pub(crate) const MERMAID_BLK_CRITICAL: &str = "critical";
/// Sequence block label for break.
pub(crate) const MERMAID_BLK_BREAK: &str = "break";
/// Sequence block label for rect.
pub(crate) const MERMAID_BLK_RECT: &str = "rect";
/// Default Gantt section name when omitted.
pub(crate) const MERMAID_DEFAULT_SECTION: &str = "Timeline";
/// Pie chart curated categorical color palette (RGB hex).
pub(crate) const MERMAID_PIE_PALETTE: [u32; 8] = [
    0x437AED, 0x7C4DFF, 0x00BEC4, 0x44C145, 0xFF6D12, 0xC838C6, 0xCD6069, 0xF0AA0B,
];
/// Gantt task status keyword for completed bars.
pub(crate) const MERMAID_GANTT_DONE: &str = "done";
/// Gantt task status keyword for active bars.
pub(crate) const MERMAID_GANTT_ACTIVE: &str = "active";
/// Gantt task status keyword for critical-path bars.
pub(crate) const MERMAID_GANTT_CRIT: &str = "crit";
/// Gantt task status keyword for milestone diamonds.
pub(crate) const MERMAID_GANTT_MILESTONE: &str = "milestone";
/// CSS property prefix for Mermaid node background fill.
pub(crate) const MERMAID_CSS_FILL: &str = "fill";
/// CSS property prefix for Mermaid node border stroke.
pub(crate) const MERMAID_CSS_STROKE: &str = "stroke";
/// CSS property prefix for Mermaid node text color.
pub(crate) const MERMAID_CSS_COLOR: &str = "color";
/// Inline class attachment separator `:::`.
pub(crate) const MERMAID_CLASS_SEP: &str = ":::";
/// GitGraph highlight commit type keyword.
pub(crate) const MERMAID_GIT_HIGHLIGHT: &str = "HIGHLIGHT";
/// GitGraph reverse commit type keyword.
pub(crate) const MERMAID_GIT_REVERSE: &str = "REVERSE";
/// GitGraph key prefix for commit id.
pub(crate) const MERMAID_GIT_KEY_ID: &str = "id:";
/// GitGraph key prefix for commit tag.
pub(crate) const MERMAID_GIT_KEY_TAG: &str = "tag:";
/// GitGraph key prefix for commit type.
pub(crate) const MERMAID_GIT_KEY_TYPE: &str = "type:";
/// State note end keyword.
pub(crate) const MERMAID_END_NOTE: &str = "end note";
/// Named CSS colors supported by Mermaid `style` / `classDef` rules.
pub(crate) const MERMAID_NAMED_COLORS: &[(&str, u32)] = &[
    ("amber", 0xF59E0B),
    ("black", 0x09090B),
    ("blue", 0x3B82F6),
    ("cyan", 0x06B6D4),
    ("gold", 0xEAB308),
    ("gray", 0x71717A),
    ("green", 0x22C55E),
    ("grey", 0x71717A),
    ("indigo", 0x6366F1),
    ("lime", 0x84CC16),
    ("navy", 0x1E3A8A),
    ("orange", 0xF97316),
    ("pink", 0xEC4899),
    ("purple", 0xA855F7),
    ("red", 0xEF4444),
    ("rose", 0xF43F5E),
    ("sky", 0x0EA5E9),
    ("slate", 0x64748B),
    ("teal", 0x14B8A6),
    ("violet", 0x8B5CF6),
    ("white", 0xFFFFFF),
    ("yellow", 0xFACC15),
];
/// ASCII byte for `"` used when scanning quoted Mermaid labels.
pub(crate) const MERMAID_BYTE_DQUOTE: u8 = b'"';
/// ASCII byte for `%` used when stripping Mermaid `%%` comments.
pub(crate) const MERMAID_BYTE_PERCENT: u8 = b'%';
/// ASCII byte for `[` used when tracking Mermaid bracket depth.
pub(crate) const MERMAID_BYTE_LBRACKET: u8 = b'[';
/// ASCII byte for `]` used when tracking Mermaid bracket depth.
pub(crate) const MERMAID_BYTE_RBRACKET: u8 = b']';
/// ASCII byte for `(` used when tracking Mermaid parenthesis depth.
pub(crate) const MERMAID_BYTE_LPAREN: u8 = b'(';
/// ASCII byte for `)` used when tracking Mermaid parenthesis depth.
pub(crate) const MERMAID_BYTE_RPAREN: u8 = b')';
/// ASCII byte for `{` used when tracking Mermaid brace depth.
pub(crate) const MERMAID_BYTE_LBRACE: u8 = b'{';
/// ASCII byte for `}` used when tracking Mermaid brace depth.
pub(crate) const MERMAID_BYTE_RBRACE: u8 = b'}';
/// ASCII byte for `&` used when splitting Mermaid chained node groups.
pub(crate) const MERMAID_BYTE_AMP: u8 = b'&';
/// ASCII byte for `_` allowed in Mermaid Gantt task identifiers.
pub(crate) const MERMAID_BYTE_UNDERSCORE: u8 = b'_';