-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdemo.html
More file actions
357 lines (318 loc) · 11.4 KB
/
demo.html
File metadata and controls
357 lines (318 loc) · 11.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
<!doctype html>
<html>
<head>
<title>ui-toolkit</title>
<link rel="import" href="./polymer.html">
<link rel="import" href="./ui-toolkit.html">
<script>
function inline(e) {
var holder = document.createElement('div');
holder.innerHTML = e.path[0].import.body.innerHTML;
holder.children.array().forEach(function(child) {
e.path[0].parentNode.appendChild(child);
})
}
</script>
<style>
body {
font-family: "Helvetica Neue", "Helvetica", Arial;
}
ui-overlay {
min-width: 5em;
min-height: 5em;
background-color: rgba(239, 39, 45, 0.5);
border: 1px solid rgba(0, 0, 0, 0.04);
}
ui-toolbar {
position: relative;
}
.sidebar {
padding: 0.33em;
}
section {
margin: 1em;
}
form {
max-width: 30em;
}
section h1 {
margin-top: 0;
}
nav {
position: relative;
}
.redbox {
background-color: red;
display: inline-block;
box-sizing: border-box;
border: .25em solid white;
padding: 1em;
}
</style>
</head>
<body unresolved>
<container>
<h1>ui-toolkit</h1>
<hr/>
<h2>Buttons</h2>
<box>
<link rel="import" href="./demo/ui-button.html" onload="inline(event)">
</box>
<h2>Switches</h2>
<box>
<link rel="import" href="./demo/ui-switch.html" onload="inline(event)">
</box>
<h2>Checks</h2>
<box>
<link rel="import" href="./demo/ui-check.html" onload="inline(event)">
</box>
<h2>Flags</h2>
<box layout horizontal center justified>
<link rel="import" href="./demo/ui-fast-picker.html" onload="inline(event)">
</box>
<h2>Tabs</h2>
<box layout horizontal center justified>
<link rel="import" href="./demo/ui-tab.html" onload="inline(event)">
</box>
<h2>Inputs</h2>
<box>
<link rel="import" href="./demo/ui-input.html" onload="inline(event)">
</box>
<h2>Typeaheads</h2>
<box>
<link rel="import" href="./demo/ui-typeahead.html" onload="inline(event)">
</box>
<h2>Sidebar</h2>
<box>
<p>Hit the hamburger in the upper left.</p>
<ui-sidebar>
<ui-toc></ui-toc>
</ui-sidebar>
</box>
<h2>Overlays</h2>
<box>
<ui-overlay detail="hi">
<div overlay class="shady">A</div>
</ui-overlay>
<ui-overlay hover>
<div overlay class="shady">B</div>
</ui-overlay>
</box>
<h2>Sparklines</h2>
<box>
<link rel="import" href="./demo/ui-sparkline.html" onload="inline(event)">
</box>
<h2>Tooltips</h2>
<box>
<link rel="import" href="./demo/ui-tooltip.html" onload="inline(event)">
</box>
<h2>Toolbars</h2>
<box>
<link rel="import" href="./demo/ui-toolbar.html" onload="inline(event)">
</box>
<h2>Resizers</h2>
<box>
<link rel="import" href="./demo/ui-resizebox.html" onload="inline(event)">
</box>
<h2>Navigation</h2>
<box>
<link rel="import" href="./demo/ui-navigation.html" onload="inline(event)">
</box>
<h2>Loader Progress</h2>
<box>
<p>Look up :)</p>
<ui-progress id="loader"></ui-progress>
<ui-button onclick="document.querySelector('#loader').start();">
Start
</ui-button>
<ui-button onclick="document.querySelector('#loader').stop();">
Stop
</ui-button>
</box>
<h2>Toast Messages</h2>
<box>
<ui-toast id="toast">
You are indeed a fine human being!
</ui-toast>
<ui-button onclick="document.querySelector('#toast').show();">
Toast Me!
</ui-button>
</box>
<h2>Modals</h2>
<box>
<link rel="import" href="./demo/ui-modal.html" onload="inline(event)">
</box>
<h2>Hotkeys</h2>
<box>
<section>
<p>Press Shift+/ for an awesome alert!</p>
<ui-hotkey key="shift+/" id="shiftslash"></ui-hotkey>
<p>Press Control+B to trigger the bomb from the toolbar above!</p>
<p>Press Alt+B to trigger the burger from the toolbar above!</p>
</section>
</box>
<h2>Typography</h2>
<box>
<h1><code><h1></code> - Main Page, Use Once</h1>
<hr/>
<h2><code><h2></code> - Sections</h2>
<hr/>
<h3><code><h3></code> - SubSections</h3>
<hr/>
<h4><code><h4></code> - Details</h4>
<hr/>
<h5><code><h5></code> - Anyone Every Use This?</h5>
<hr/>
<h6><code><h6></code> - This Was a Mystery to Me!</h6>
<hr/>
<p><code><p></code>All paragraphs are wrapped in p tags. Additionally, p elements can be wrapped with a blockquote element if the p element is indeed a quote. Historically, blockquote has been used purely to force indents, but this is now achieved using CSS. Reserve blockquote for quotes.</p>
<hr/>
<h1><code><h1></code><a>Link Heading</a></h1>
<hr/>
<ul>
<li><code><a></code> - <a href="#">This is a text link</a></li>
<li><code><strong></code> - <strong>Strong is used to indicate strong importance</strong></li>
<li><code><em></code> - <em>This text has added emphasis</em></li>
<li><code><b></code> - The <b>b element</b> is stylistically different text from normal text, without any special importance</li>
<li><code><i></code> - The <i>i element is text that is set off from the normal text</i></li>
<li><code><u></code> - The <u>u element</u> is text with an unarticulated, though explicitly rendered, non-textual annotation</li>
<li><code><del> & <ins></code> - This text is <del>deleted</del> and <ins>This text is inserted</ins></li>
<li><code><s></code> - <s>This text has a strikethrough</s></li>
<li><code><sup></code> - Superscript<sup>®</sup></li>
<li><code><sub></code> - Subscript for things like H<sub>2</sub>O</li>
<li><code><abbr></code> - Abbreviation: <abbr title="HyperText Markup Language">HTML</abbr></li>
<li><code><kbd></code> - Keybord input: <kbd>Cmd</kbd></li>
<li><code><q></code> - <q cite="https://developer.mozilla.org/en-US/docs/HTML/Element/q">This text is a short inline quotation</q></li>
<li><code><cite></code> - <cite>This is a citation</cite></li>
<li><code><dfn></code> - The <dfn>dfn element</dfn> indicates a definition.</li>
<li><code><mark></code> - The <mark>mark element</mark> indicates a highlight</li>
<li><code><var></code> - The <var>var element</var> defines a variable</li>
<li>
<code><address></code>
<br><br>
<address>
Address Name<br>
1234 Main St.<br>
Anywhere, US 12345
</address>
</li>
<li>
<code><tel></code> - <a class="tel" href="tel:+18008519530">1-800-851-9530</a>
</li>
<li>
<code><time></code> - <time datetime="2013-05-22" pubdate="">03 Jul 2014</time>
</li>
<li>
<code><blockquote></code>
<br><br>
<blockquote>
One small step for man, one giant leap for mankind.
</blockquote>
</li>
<li><code><info></code> - <info>This text is informative.</info></li>
<li><code><error></code> - <error>This text is an error.</error></li>
<li><code><success></code> - <success>This text is success.</success></li>
</ul>
</box>
<h2>Lists</h2>
<box>
<ul>
<li><ui-check>Collect Underpants</ui-check></li>
<li><ui-check>???</ui-check></li>
<li><ui-check>Profit</ui-check></li>
</box>
<h2>Pills</h2>
<box>
<link rel="import" href="./demo/ui-pill.html" onload="inline(event)">
</box>
<h2>Code</h2>
<box>
<link rel="import" href="./demo/ui-code.html" onload="inline(event)">
</box>
<h2>Markdown</h2>
<box>
<link rel="import" href="./demo/ui-markdown.html" onload="inline(event)">
</box>
<h2>Ui Grid</h2>
<box>
<link rel="import" href="./demo/ui-grid.html" onload="inline(event)">
</box>
<h2>Ui Filterable Grid</h2>
<box>
<link rel="import" href="./demo/ui-filtered-grid.html" onload="inline(event)">
</box>
<h2>Export To CSV</h2>
<box>
<link rel="import" href="./demo/ui-export-to-csv.html" onload="inline(event)">
</box>
<h2>GLG Current User</h2>
<box>
<link rel="import" href="./demo/glg-current-user.html" onload="inline(event)">
</box>
<h2>GLG Tagger</h2>
<box>
<glg-tag-cm cmid="603070" src="https://services.glgresearch.com/8D2270A3-epiquery"></glg-tag-cm>
</box>
<h2>UI Stats - Chart</h2>
<box>
<ui-stats-chart name="Annual CM Application Breakdown by Week" limit="30" groupBy="week" width="54.5em"
src="https://query.glgroup.com/councilApplicant/getStats.mustache" type="area"
cols="[{'id':'date', 'type':'date'}, {'id':'applied'}, {'id':'accepted'}, {'id':'paid'}]">
</ui-stats-chart>
<ui-stats-chart name="2 Dimensional Array, Typed"
data="[ ['2015-03-01', 12], ['2015-04-01', 14], ['2015-05-01', 9], ['2015-06-01', 44], ['2015-07-01', 16], ['2015-08-01', 18] ]"
cols="[{'type':'date'}, {'type':'number'}]">
</ui-stats-chart>
<ui-stats-chart name="Object Array (Columns)" type="column"
data="[ {'color':'blue', 'count':3}, {'color':'white', 'count':11}, {'color':'yellow', 'count':2}, {'color':'red', 'count':5} ]"
cols="[{'id':'color', 'type':'string'}, {'id':'count'}]">
</ui-stats-chart>
</box>
<h2>UI Stats - Number</h2>
<box>
<ui-stats-number name="CM Applications Last 7 Days" src="https://query.glgroup.com/councilApplicant/getStats.mustache"
property="applied" limit="7" function="sum">
</ui-stats-number>
<ui-stats-number name="Money In The Bank" units="$" value="101.25">
</ui-stats-number>
<ui-stats-number name="Money Saved" data="[95, 100]">
</ui-stats-number>
</box>
<h2>GLG Compliance Indicator</h2>
<box>
<glg-compliance-blinky cmId="527313" projectId="1994800"></glg-compliance-blinky>
</box>
<link rel="import" href="./demo/standard_attributes.md" onload="inline(event)">
<script>
document.addEventListener('polymer-ready', function() {
console.log("Hello from ui-toolkit. We %c\u2764%c you!", "color: red; font-size: large", "color: black; font-size: normal;");
var shiftSlash = document.querySelector('#shiftslash');
shiftSlash.addEventListener('click', function(e) {
console.log('Shift+/: ', e);
alert('Shift+/ pressed!');
});
document.querySelector('ui-sidebar').hide();
});
</script>
<script>
document.querySelector("#dialog").addEventListener('click', function() {
document.querySelector('ui-modal').show()
})
</script>
<script>
document.querySelector('#options').model = {options: [
{ icon: 'fax', caption: 'Fax?'},
{ icon: 'phone', caption: 'Phone'},
{ icon: 'envelope', caption: 'Snail'}
]
};
setTimeout(function(){
document.querySelector('ui-toolbar-picker').value = {
icon: 'sun-o',
caption: 'Pick Me!'
}
});
</script>
</container>
</body>
</html>