@altopelago/sansa 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,138 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>SANSA Mutate Workbench</title>
7
+ <link rel="stylesheet" href="./styles.css">
8
+ </head>
9
+ <body>
10
+ <main class="app-shell">
11
+ <header class="topbar">
12
+ <div>
13
+ <h1>SANSA Mutate Workbench</h1>
14
+ </div>
15
+ <div class="topbar-actions">
16
+ <select id="exampleSelect" aria-label="Example mutation"></select>
17
+ <button id="resetButton" type="button">Reset</button>
18
+ <button id="planButton" type="button">Plan</button>
19
+ <button id="applyButton" type="button">Apply</button>
20
+ </div>
21
+ </header>
22
+
23
+ <section class="workspace" aria-label="SANSA Mutate workspace">
24
+ <section class="panel source-panel">
25
+ <div class="panel-head">
26
+ <label for="sourceInput">AEON Source</label>
27
+ <span id="sourceStatus">default aeon</span>
28
+ </div>
29
+ <div class="source-tabs" role="tablist" aria-label="Source views">
30
+ <button id="sourceTabInput" type="button" role="tab" aria-selected="true" aria-controls="sourceInput" data-source-tab="input">Source</button>
31
+ <button id="sourceTabResult" type="button" role="tab" aria-selected="false" aria-controls="sourceResultOutput" data-source-tab="result">Source Result</button>
32
+ </div>
33
+ <div class="source-view">
34
+ <textarea id="sourceInput" spellcheck="false"></textarea>
35
+ <pre id="sourceResultOutput" class="hidden" tabindex="0"></pre>
36
+ </div>
37
+ </section>
38
+
39
+ <section class="panel request-panel">
40
+ <div class="panel-head">
41
+ <label id="requestInputLabel" for="requestInput">Mutation Request JSON</label>
42
+ <span id="requestStatus">example loaded</span>
43
+ </div>
44
+ <textarea id="requestInput" spellcheck="false"></textarea>
45
+
46
+ <div class="mode-row" role="group" aria-label="Input format">
47
+ <label>
48
+ <input type="radio" name="requestKind" value="structured" checked>
49
+ Structured JSON
50
+ </label>
51
+ <label>
52
+ <input type="radio" name="requestKind" value="instruction">
53
+ Instruction
54
+ </label>
55
+ </div>
56
+
57
+ <div class="mode-row" role="group" aria-label="Output format">
58
+ <label>
59
+ <input type="radio" name="outputMode" value="text" checked>
60
+ Text
61
+ </label>
62
+ <label>
63
+ <input type="radio" name="outputMode" value="json">
64
+ JSON
65
+ </label>
66
+ <label class="select-label">
67
+ Target
68
+ <select id="targetFormat" aria-label="Target format">
69
+ <option value="aeon" selected>AEON</option>
70
+ <option value="json">JSON</option>
71
+ </select>
72
+ </label>
73
+ </div>
74
+
75
+ <div class="mode-row" role="group" aria-label="Apply options">
76
+ <label>
77
+ <input type="checkbox" id="requireAtomic" checked>
78
+ Atomic
79
+ </label>
80
+ <label>
81
+ <input type="checkbox" id="recheckPreconditions" checked>
82
+ Recheck
83
+ </label>
84
+ <label>
85
+ <input type="checkbox" id="enforcePolicy">
86
+ Policy
87
+ </label>
88
+ </div>
89
+
90
+ <div class="budget-row" role="group" aria-label="Mutation budgets">
91
+ <label>
92
+ Operations
93
+ <input type="number" id="maxOperations" min="0" step="1" inputmode="numeric">
94
+ </label>
95
+ <label>
96
+ Preconditions
97
+ <input type="number" id="maxPreconditions" min="0" step="1" inputmode="numeric">
98
+ </label>
99
+ <label>
100
+ Value Nodes
101
+ <input type="number" id="maxValueNodes" min="0" step="1" inputmode="numeric">
102
+ </label>
103
+ <label>
104
+ Value Depth
105
+ <input type="number" id="maxValueDepth" min="0" step="1" inputmode="numeric">
106
+ </label>
107
+ <label>
108
+ String Length
109
+ <input type="number" id="maxStringLength" min="0" step="1" inputmode="numeric">
110
+ </label>
111
+ <label>
112
+ Position Limit
113
+ <input type="number" id="maxPositionIndex" min="0" step="1" inputmode="numeric">
114
+ </label>
115
+ </div>
116
+
117
+ <div class="detail-tabs" role="tablist" aria-label="Mutation detail views">
118
+ <button id="detailTabDiagnostics" type="button" role="tab" aria-selected="true" aria-controls="resultOutput" data-detail-tab="diagnostics">
119
+ Diagnostics
120
+ <span id="resultStatus">ready</span>
121
+ </button>
122
+ <button id="detailTabPolicy" type="button" role="tab" aria-selected="false" aria-controls="policyInput" data-detail-tab="policy" class="hidden">
123
+ Policy
124
+ <span id="policyStatus">disabled</span>
125
+ </button>
126
+ </div>
127
+
128
+ <div class="detail-view">
129
+ <pre id="resultOutput" tabindex="0"></pre>
130
+ <textarea id="policyInput" class="hidden" spellcheck="false"></textarea>
131
+ </div>
132
+ </section>
133
+ </section>
134
+ </main>
135
+
136
+ <script type="module" src="./app.js"></script>
137
+ </body>
138
+ </html>