aurelia/aurelia

View on GitHub
docs/images/validation/seq-validation-controller.svg

Summary

Maintainability
Test Coverage
<svg id="mermaid-1585176836618" width="100%" xmlns="http://www.w3.org/2000/svg" height="100%" style="max-width:950px;" viewBox="-150 -10 950 893"><style>#mermaid-1585176836618 .label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);color:#333}#mermaid-1585176836618 .label text{fill:#333}#mermaid-1585176836618 .node rect,#mermaid-1585176836618 .node circle,#mermaid-1585176836618 .node ellipse,#mermaid-1585176836618 .node polygon{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-1585176836618 .node .label{text-align:center}#mermaid-1585176836618 .node.clickable{cursor:pointer}#mermaid-1585176836618 .arrowheadPath{fill:#333}#mermaid-1585176836618 .edgePath .path{stroke:#333;stroke-width:1.5px}#mermaid-1585176836618 .edgeLabel{background-color:#e8e8e8;text-align:center}#mermaid-1585176836618 .cluster rect{fill:#ffffde;stroke:#aa3;stroke-width:1px}#mermaid-1585176836618 .cluster text{fill:#333}#mermaid-1585176836618 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#ffffde;border:1px solid #aa3;border-radius:2px;pointer-events:none;z-index:100}#mermaid-1585176836618 .actor{stroke:#ccf;fill:#ECECFF}#mermaid-1585176836618 text.actor{fill:#000;stroke:none}#mermaid-1585176836618 .actor-line{stroke:grey}#mermaid-1585176836618 .messageLine0{stroke-width:1.5;stroke-dasharray:'2 2';stroke:#333}#mermaid-1585176836618 .messageLine1{stroke-width:1.5;stroke-dasharray:'2 2';stroke:#333}#mermaid-1585176836618 #arrowhead{fill:#333}#mermaid-1585176836618 .sequenceNumber{fill:#fff}#mermaid-1585176836618 #sequencenumber{fill:#333}#mermaid-1585176836618 #crosshead path{fill:#333 !important;stroke:#333 !important}#mermaid-1585176836618 .messageText{fill:#333;stroke:none}#mermaid-1585176836618 .labelBox{stroke:#ccf;fill:#ECECFF}#mermaid-1585176836618 .labelText{fill:#000;stroke:none}#mermaid-1585176836618 .loopText{fill:#000;stroke:none}#mermaid-1585176836618 .loopLine{stroke-width:2;stroke-dasharray:'2 2';stroke:#ccf}#mermaid-1585176836618 .note{stroke:#aa3;fill:#fff5ad}#mermaid-1585176836618 .noteText{fill:black;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:14px}#mermaid-1585176836618 .activation0{fill:#f4f4f4;stroke:#666}#mermaid-1585176836618 .activation1{fill:#f4f4f4;stroke:#666}#mermaid-1585176836618 .activation2{fill:#f4f4f4;stroke:#666}#mermaid-1585176836618 .mermaid-main-font{font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-1585176836618 .section{stroke:none;opacity:0.2}#mermaid-1585176836618 .section0{fill:rgba(102,102,255,0.49)}#mermaid-1585176836618 .section2{fill:#fff400}#mermaid-1585176836618 .section1,#mermaid-1585176836618 .section3{fill:#fff;opacity:0.2}#mermaid-1585176836618 .sectionTitle0{fill:#333}#mermaid-1585176836618 .sectionTitle1{fill:#333}#mermaid-1585176836618 .sectionTitle2{fill:#333}#mermaid-1585176836618 .sectionTitle3{fill:#333}#mermaid-1585176836618 .sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-1585176836618 .grid .tick{stroke:#d3d3d3;opacity:0.3;shape-rendering:crispEdges}#mermaid-1585176836618 .grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-1585176836618 .grid path{stroke-width:0}#mermaid-1585176836618 .today{fill:none;stroke:red;stroke-width:2px}#mermaid-1585176836618 .task{stroke-width:2}#mermaid-1585176836618 .taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-1585176836618 .taskText:not([font-size]){font-size:11px}#mermaid-1585176836618 .taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-1585176836618 .taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}#mermaid-1585176836618 .task.clickable{cursor:pointer}#mermaid-1585176836618 .taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-1585176836618 .taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-1585176836618 .taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-1585176836618 .taskText0,#mermaid-1585176836618 .taskText1,#mermaid-1585176836618 .taskText2,#mermaid-1585176836618 .taskText3{fill:#fff}#mermaid-1585176836618 .task0,#mermaid-1585176836618 .task1,#mermaid-1585176836618 .task2,#mermaid-1585176836618 .task3{fill:#8a90dd;stroke:#534fbc}#mermaid-1585176836618 .taskTextOutside0,#mermaid-1585176836618 .taskTextOutside2{fill:#000}#mermaid-1585176836618 .taskTextOutside1,#mermaid-1585176836618 .taskTextOutside3{fill:#000}#mermaid-1585176836618 .active0,#mermaid-1585176836618 .active1,#mermaid-1585176836618 .active2,#mermaid-1585176836618 .active3{fill:#bfc7ff;stroke:#534fbc}#mermaid-1585176836618 .activeText0,#mermaid-1585176836618 .activeText1,#mermaid-1585176836618 .activeText2,#mermaid-1585176836618 .activeText3{fill:#000 !important}#mermaid-1585176836618 .done0,#mermaid-1585176836618 .done1,#mermaid-1585176836618 .done2,#mermaid-1585176836618 .done3{stroke:grey;fill:#d3d3d3;stroke-width:2}#mermaid-1585176836618 .doneText0,#mermaid-1585176836618 .doneText1,#mermaid-1585176836618 .doneText2,#mermaid-1585176836618 .doneText3{fill:#000 !important}#mermaid-1585176836618 .crit0,#mermaid-1585176836618 .crit1,#mermaid-1585176836618 .crit2,#mermaid-1585176836618 .crit3{stroke:#f88;fill:red;stroke-width:2}#mermaid-1585176836618 .activeCrit0,#mermaid-1585176836618 .activeCrit1,#mermaid-1585176836618 .activeCrit2,#mermaid-1585176836618 .activeCrit3{stroke:#f88;fill:#bfc7ff;stroke-width:2}#mermaid-1585176836618 .doneCrit0,#mermaid-1585176836618 .doneCrit1,#mermaid-1585176836618 .doneCrit2,#mermaid-1585176836618 .doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}#mermaid-1585176836618 .milestone{transform:rotate(45deg) scale(0.8, 0.8)}#mermaid-1585176836618 .milestoneText{font-style:italic}#mermaid-1585176836618 .doneCritText0,#mermaid-1585176836618 .doneCritText1,#mermaid-1585176836618 .doneCritText2,#mermaid-1585176836618 .doneCritText3{fill:#000 !important}#mermaid-1585176836618 .activeCritText0,#mermaid-1585176836618 .activeCritText1,#mermaid-1585176836618 .activeCritText2,#mermaid-1585176836618 .activeCritText3{fill:#000 !important}#mermaid-1585176836618 .titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-1585176836618 g.classGroup text{fill:#9370db;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}#mermaid-1585176836618 g.classGroup text .title{font-weight:bolder}#mermaid-1585176836618 g.classGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-1585176836618 g.classGroup line{stroke:#9370db;stroke-width:1}#mermaid-1585176836618 .classLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}#mermaid-1585176836618 .classLabel .label{fill:#9370db;font-size:10px}#mermaid-1585176836618 .relation{stroke:#9370db;stroke-width:1;fill:none}#mermaid-1585176836618 #compositionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-1585176836618 #compositionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-1585176836618 #aggregationStart{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-1585176836618 #aggregationEnd{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-1585176836618 #dependencyStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-1585176836618 #dependencyEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-1585176836618 #extensionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-1585176836618 #extensionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-1585176836618 .commit-id,#mermaid-1585176836618 .commit-msg,#mermaid-1585176836618 .branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-1585176836618 .pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-1585176836618 .slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-1585176836618 g.stateGroup text{fill:#9370db;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-1585176836618 g.stateGroup text{fill:#9370db;stroke:none;font-size:10px}#mermaid-1585176836618 g.stateGroup .state-title{font-weight:bolder;fill:#000}#mermaid-1585176836618 g.stateGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-1585176836618 g.stateGroup line{stroke:#9370db;stroke-width:1}#mermaid-1585176836618 .transition{stroke:#9370db;stroke-width:1;fill:none}#mermaid-1585176836618 .stateGroup .composit{fill:white;border-bottom:1px}#mermaid-1585176836618 .state-note{stroke:#aa3;fill:#fff5ad}#mermaid-1585176836618 .state-note text{fill:black;stroke:none;font-size:10px}#mermaid-1585176836618 .stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}#mermaid-1585176836618 .stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}:root{--mermaid-font-family: '"trebuchet ms", verdana, arial';--mermaid-font-family: "Comic Sans MS", "Comic Sans", cursive}

:root { --mermaid-font-family: "trebuchet ms", verdana, arial;}</style><style>#mermaid-1585176836618 {
    color: rgb(0, 0, 0);
    font: 16px "trebuchet ms", verdana, arial;
  }</style><g></g><g><line id="actor0" x1="75" y1="5" x2="75" y2="882" class="actor-line" stroke-width="0.5px" stroke="#999"></line><rect x="0" y="0" fill="#eaeaea" stroke="#666" width="150" height="65" rx="3" ry="3" class="actor"></rect><text x="75" y="32.5" dominant-baseline="central" alignment-baseline="central" class="actor" style="text-anchor: middle; font-size: 14px;"><tspan x="75" dy="0">VM/BB</tspan></text></g><g><line id="actor1" x1="275" y1="5" x2="275" y2="882" class="actor-line" stroke-width="0.5px" stroke="#999"></line><rect x="200" y="0" fill="#eaeaea" stroke="#666" width="150" height="65" rx="3" ry="3" class="actor"></rect><text x="275" y="32.5" dominant-baseline="central" alignment-baseline="central" class="actor" style="text-anchor: middle; font-size: 14px;"><tspan x="275" dy="0">ValidationController</tspan></text></g><g><line id="actor2" x1="475" y1="5" x2="475" y2="882" class="actor-line" stroke-width="0.5px" stroke="#999"></line><rect x="400" y="0" fill="#eaeaea" stroke="#666" width="150" height="65" rx="3" ry="3" class="actor"></rect><text x="475" y="32.5" dominant-baseline="central" alignment-baseline="central" class="actor" style="text-anchor: middle; font-size: 14px;"><tspan x="475" dy="0">Validator</tspan></text></g><g><line id="actor3" x1="675" y1="5" x2="675" y2="882" class="actor-line" stroke-width="0.5px" stroke="#999"></line><rect x="600" y="0" fill="#eaeaea" stroke="#666" width="150" height="65" rx="3" ry="3" class="actor"></rect><text x="675" y="32.5" dominant-baseline="central" alignment-baseline="central" class="actor" style="text-anchor: middle; font-size: 14px;"><tspan x="675" dy="0">Subscriber</tspan></text></g><defs><marker id="arrowhead" refX="5" refY="2" markerWidth="6" markerHeight="4" orient="auto"><path d="M 0,0 V 4 L6,2 Z"></path></marker></defs><defs><marker id="crosshead" markerWidth="15" markerHeight="8" orient="auto" refX="16" refY="4"><path fill="black" stroke="#000000" stroke-width="1px" d="M 9,2 V 6 L16,4 Z" style="stroke-dasharray: 0, 0;"></path><path fill="none" stroke="#000000" stroke-width="1px" d="M 0,1 L 6,7 M 6,1 L 0,7" style="stroke-dasharray: 0, 0;"></path></marker></defs><defs><marker id="sequencenumber" refX="15" refY="15" markerWidth="60" markerHeight="40" orient="auto"><circle cx="15" cy="15" r="6"></circle></marker></defs><g><rect x="-100" y="75" fill="#EDF2AE" stroke="#666" width="150" height="52" rx="0" ry="0" class="note"></rect><text x="-104" y="99" class="noteText"><tspan x="-84">ViewModel or</tspan></text><text x="-104" y="115" class="noteText"><tspan x="-84">BindingBehavior</tspan></text></g><g><text x="175" y="155" class="messageText" style="text-anchor: middle;">validate(instruction?) (async)</text><line x1="75" y1="162" x2="275" y2="162" class="messageLine0" stroke-width="2" stroke="black" marker-end="url(#arrowhead)" style="fill: none;"></line></g><g><text x="375" y="215" class="messageText" style="text-anchor: middle;">validate(instruction) (async)</text><line x1="275" y1="222" x2="475" y2="222" class="messageLine0" stroke-width="2" stroke="black" marker-end="url(#arrowhead)" style="fill: none;"></line></g><g><text x="375" y="250" class="messageText" style="text-anchor: middle;">Validation results</text><line x1="475" y1="257" x2="275" y2="257" class="messageLine0" stroke-width="2" stroke="black" marker-end="url(#arrowhead)" style="fill: none;"></line></g><g><text x="275" y="330" class="messageText" style="text-anchor: middle;">create instruction for binding</text><path d="M 275,337 C 335,327 335,367 275,357" class="messageLine0" stroke-width="2" stroke="black" marker-end="url(#arrowhead)" style="fill: none;"></path></g><g><text x="375" y="395" class="messageText" style="text-anchor: middle;">validate(instruction_binding) (async)</text><line x1="275" y1="402" x2="475" y2="402" class="messageLine0" stroke-width="2" stroke="black" marker-end="url(#arrowhead)" style="fill: none;"></line></g><g><text x="375" y="430" class="messageText" style="text-anchor: middle;">Validation results</text><line x1="475" y1="437" x2="275" y2="437" class="messageLine0" stroke-width="2" stroke="black" marker-end="url(#arrowhead)" style="fill: none;"></line></g><g><line x1="159.375" y1="287" x2="485" y2="287" class="loopLine"></line><line x1="485" y1="287" x2="485" y2="447" class="loopLine"></line><line x1="159.375" y1="447" x2="485" y2="447" class="loopLine"></line><line x1="159.375" y1="287" x2="159.375" y2="447" class="loopLine"></line><polygon points="159.375,287 209.375,287 209.375,300 200.975,307 159.375,307" class="labelBox"></polygon><text x="166.875" y="302" class="labelText"><tspan x="166.875">loop</tspan></text><text x="322.1875" y="302" class="loopText" style="text-anchor: middle;"><tspan x="322.1875">[ every binding ]</tspan></text></g><g><text x="275" y="500" class="messageText" style="text-anchor: middle;">create instruction for object</text><path d="M 275,507 C 335,497 335,537 275,527" class="messageLine0" stroke-width="2" stroke="black" marker-end="url(#arrowhead)" style="fill: none;"></path></g><g><text x="375" y="565" class="messageText" style="text-anchor: middle;">validate(instruction_object) (async)</text><line x1="275" y1="572" x2="475" y2="572" class="messageLine0" stroke-width="2" stroke="black" marker-end="url(#arrowhead)" style="fill: none;"></line></g><g><text x="375" y="600" class="messageText" style="text-anchor: middle;">Validation results</text><line x1="475" y1="607" x2="275" y2="607" class="messageLine0" stroke-width="2" stroke="black" marker-end="url(#arrowhead)" style="fill: none;"></line></g><g><line x1="162.109375" y1="457" x2="485" y2="457" class="loopLine"></line><line x1="485" y1="457" x2="485" y2="617" class="loopLine"></line><line x1="162.109375" y1="617" x2="485" y2="617" class="loopLine"></line><line x1="162.109375" y1="457" x2="162.109375" y2="617" class="loopLine"></line><polygon points="162.109375,457 212.109375,457 212.109375,470 203.709375,477 162.109375,477" class="labelBox"></polygon><text x="169.609375" y="472" class="labelText"><tspan x="169.609375">loop</tspan></text><text x="323.5546875" y="472" class="loopText" style="text-anchor: middle;"><tspan x="323.5546875">[ every object ]</tspan></text></g><g><line x1="149.375" y1="172" x2="495" y2="172" class="loopLine"></line><line x1="495" y1="172" x2="495" y2="627" class="loopLine"></line><line x1="149.375" y1="627" x2="495" y2="627" class="loopLine"></line><line x1="149.375" y1="172" x2="149.375" y2="627" class="loopLine"></line><line x1="149.375" y1="267" x2="495" y2="267" class="loopLine" style="stroke-dasharray: 3, 3;"></line><polygon points="149.375,172 199.375,172 199.375,185 190.975,192 149.375,192" class="labelBox"></polygon><text x="156.875" y="187" class="labelText"><tspan x="156.875">alt</tspan></text><text x="322.1875" y="187" class="loopText" style="text-anchor: middle;"><tspan x="322.1875">[ instruction present ]</tspan></text><text x="322.1875" y="282" class="loopText" style="text-anchor: middle;"><tspan x="322.1875">[ not present ]</tspan></text></g><g><text x="275" y="655" class="messageText" style="text-anchor: middle;">process the results in terms of old and new results</text><path d="M 275,662 C 335,652 335,692 275,682" class="messageLine0" stroke-width="2" stroke="black" marker-end="url(#arrowhead)" style="fill: none;"></path></g><g><text x="475" y="745" class="messageText" style="text-anchor: middle;">notify</text><line x1="275" y1="752" x2="675" y2="752" class="messageLine0" stroke-width="2" stroke="black" marker-end="url(#arrowhead)" style="fill: none;"></line></g><g><line x1="265" y1="702" x2="685" y2="702" class="loopLine"></line><line x1="685" y1="702" x2="685" y2="762" class="loopLine"></line><line x1="265" y1="762" x2="685" y2="762" class="loopLine"></line><line x1="265" y1="702" x2="265" y2="762" class="loopLine"></line><polygon points="265,702 315,702 315,715 306.6,722 265,722" class="labelBox"></polygon><text x="272.5" y="717" class="labelText"><tspan x="272.5">loop</tspan></text><text x="475" y="717" class="loopText" style="text-anchor: middle;"><tspan x="475">[ every subscriber ]</tspan></text></g><g><text x="175" y="790" class="messageText" style="text-anchor: middle;">result</text><line x1="275" y1="797" x2="75" y2="797" class="messageLine0" stroke-width="2" stroke="black" marker-end="url(#arrowhead)" style="fill: none;"></line></g><g><rect x="0" y="817" fill="#eaeaea" stroke="#666" width="150" height="65" rx="3" ry="3" class="actor"></rect><text x="75" y="849.5" dominant-baseline="central" alignment-baseline="central" class="actor" style="text-anchor: middle; font-size: 14px;"><tspan x="75" dy="0">VM/BB</tspan></text></g><g><rect x="200" y="817" fill="#eaeaea" stroke="#666" width="150" height="65" rx="3" ry="3" class="actor"></rect><text x="275" y="849.5" dominant-baseline="central" alignment-baseline="central" class="actor" style="text-anchor: middle; font-size: 14px;"><tspan x="275" dy="0">ValidationController</tspan></text></g><g><rect x="400" y="817" fill="#eaeaea" stroke="#666" width="150" height="65" rx="3" ry="3" class="actor"></rect><text x="475" y="849.5" dominant-baseline="central" alignment-baseline="central" class="actor" style="text-anchor: middle; font-size: 14px;"><tspan x="475" dy="0">Validator</tspan></text></g><g><rect x="600" y="817" fill="#eaeaea" stroke="#666" width="150" height="65" rx="3" ry="3" class="actor"></rect><text x="675" y="849.5" dominant-baseline="central" alignment-baseline="central" class="actor" style="text-anchor: middle; font-size: 14px;"><tspan x="675" dy="0">Subscriber</tspan></text></g></svg>