kempo-ui 0.3.16 → 0.4.0
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.
- package/dist/components/Progress.js +86 -0
- package/dist/components/Spinner.js +2 -2
- package/docs/components/accordion.html +3 -0
- package/docs/components/aside.html +3 -0
- package/docs/components/card.html +3 -0
- package/docs/components/code-editor.html +3 -0
- package/docs/components/color-picker.html +3 -0
- package/docs/components/combobox.html +3 -0
- package/docs/components/content-slider.html +3 -0
- package/docs/components/context.html +3 -0
- package/docs/components/dialog.html +3 -0
- package/docs/components/dropdown.html +3 -0
- package/docs/components/filter-list.html +3 -0
- package/docs/components/focus-capture.html +3 -0
- package/docs/components/html-editor.html +3 -0
- package/docs/components/hybrid-component.html +3 -0
- package/docs/components/icon.html +3 -0
- package/docs/components/import.html +3 -0
- package/docs/components/light-component.html +3 -0
- package/docs/components/nav-spacer.html +3 -0
- package/docs/components/nav.html +3 -0
- package/docs/components/photo-viewer.html +3 -0
- package/docs/components/progress.html +625 -0
- package/docs/components/resize.html +3 -0
- package/docs/components/shadow-component.html +3 -0
- package/docs/components/show-more.html +3 -0
- package/docs/components/sortable.html +3 -0
- package/docs/components/spinner.html +3 -0
- package/docs/components/split.html +3 -0
- package/docs/components/table.html +3 -0
- package/docs/components/tableControls.html +3 -0
- package/docs/components/tableCustomFields.html +3 -0
- package/docs/components/tableFetchRecords.html +3 -0
- package/docs/components/tableFieldSortHide.html +3 -0
- package/docs/components/tablePagination.html +3 -0
- package/docs/components/tablePlaceholder.html +3 -0
- package/docs/components/tableRecordEditing.html +3 -0
- package/docs/components/tableRecordFiltering.html +3 -0
- package/docs/components/tableRecordHiding.html +3 -0
- package/docs/components/tableRecordSearching.html +3 -0
- package/docs/components/tableRecordSelection.html +3 -0
- package/docs/components/tableRowControls.html +3 -0
- package/docs/components/tableServerSync.html +3 -0
- package/docs/components/tableSorting.html +3 -0
- package/docs/components/tabs.html +3 -0
- package/docs/components/tags.html +3 -0
- package/docs/components/theme-select.html +3 -0
- package/docs/components/theme-switcher.html +3 -0
- package/docs/components/timestamp.html +3 -0
- package/docs/components/toast.html +3 -0
- package/docs/components/toggle.html +3 -0
- package/docs/components/tree.html +3 -0
- package/docs/index.html +9 -0
- package/docs/src/components/Progress.js +86 -0
- package/docs/src/components/Spinner.js +2 -2
- package/docs/utils/context.html +3 -0
- package/docs/utils/cookie.html +3 -0
- package/docs/utils/debounce.html +3 -0
- package/docs/utils/drag.html +3 -0
- package/docs/utils/elevation.html +3 -0
- package/docs/utils/formatTimestamp.html +3 -0
- package/docs/utils/object.html +3 -0
- package/docs/utils/propConverters.html +3 -0
- package/docs/utils/string.html +3 -0
- package/docs/utils/theme.html +3 -0
- package/docs/utils/toTitleCase.html +3 -0
- package/docs/utils/type.html +3 -0
- package/docs/utils/wait.html +3 -0
- package/docs-src/components/progress.page.html +182 -0
- package/docs-src/index.page.html +6 -0
- package/docs-src/nav.fragment.html +3 -0
- package/package.json +3 -3
- package/src/components/Progress.js +148 -0
- package/src/components/Spinner.js +19 -18
- package/tests/components/Progress.browser-test.js +444 -0
|
@@ -0,0 +1,625 @@
|
|
|
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.0">
|
|
6
|
+
<title>Progress - Components - Kempo Docs - A Web Components Solution</title>
|
|
7
|
+
<link rel="icon" type="image/png" sizes="48x48" href="../media/icon48.png">
|
|
8
|
+
<link rel="manifest" href="../manifest.json" />
|
|
9
|
+
<link rel="stylesheet" href="../kempo-vars.css" />
|
|
10
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/kempo-css@2/dist/kempo.min.css" />
|
|
11
|
+
<link rel="stylesheet" href="../kempo-hljs.css" />
|
|
12
|
+
<link rel="stylesheet" href="../styles.css" />
|
|
13
|
+
<script>window.litDisableBundleWarning = true;</script>
|
|
14
|
+
|
|
15
|
+
</head>
|
|
16
|
+
<body>
|
|
17
|
+
|
|
18
|
+
<k-nav
|
|
19
|
+
fixed
|
|
20
|
+
class="bg-primary"
|
|
21
|
+
>
|
|
22
|
+
<button
|
|
23
|
+
id="toggleNavSideMenu"
|
|
24
|
+
class="link"
|
|
25
|
+
>
|
|
26
|
+
<k-icon name="menu"></k-icon>
|
|
27
|
+
</button>
|
|
28
|
+
<a
|
|
29
|
+
href="../"
|
|
30
|
+
class="d-if ph"
|
|
31
|
+
style="align-items: center"
|
|
32
|
+
>
|
|
33
|
+
<img
|
|
34
|
+
src="../media/icon32.png"
|
|
35
|
+
alt="Kempo UI Icon"
|
|
36
|
+
class="pr"
|
|
37
|
+
/>
|
|
38
|
+
Kempo UI
|
|
39
|
+
</a>
|
|
40
|
+
<div
|
|
41
|
+
style="position:relative;margin:0 .25rem;align-self:center;"
|
|
42
|
+
theme="light"
|
|
43
|
+
>
|
|
44
|
+
<input
|
|
45
|
+
id="navSearchInput"
|
|
46
|
+
type="search"
|
|
47
|
+
placeholder="Search docs..."
|
|
48
|
+
autocomplete="off"
|
|
49
|
+
style="width:11rem;"
|
|
50
|
+
/>
|
|
51
|
+
<div
|
|
52
|
+
id="navSearchDropdown"
|
|
53
|
+
hidden
|
|
54
|
+
theme="light"
|
|
55
|
+
style="position:absolute;top:calc(100% + 4px);left:0;width:min(480px,90vw);max-height:70vh;background:var(--c_bg);border:1px solid var(--c_border);border-radius:var(--radius);overflow:auto;z-index:9999;box-shadow:0 4px 12px rgba(0,0,0,.3);"
|
|
56
|
+
>
|
|
57
|
+
<k-filter-list
|
|
58
|
+
id="navSearchList"
|
|
59
|
+
style="display:block;padding:.25rem 0;"
|
|
60
|
+
>
|
|
61
|
+
<k-filter-item filter-keywords="accordion components"><a
|
|
62
|
+
href="../components/accordion.html">Accordion<br><small>Component</small></a></k-filter-item>
|
|
63
|
+
<k-filter-item filter-keywords="aside sidebar components"><a
|
|
64
|
+
href="../components/aside.html">Aside<br><small>Component</small></a></k-filter-item>
|
|
65
|
+
<k-filter-item filter-keywords="card components"><a
|
|
66
|
+
href="../components/card.html">Card<br><small>Component</small></a></k-filter-item>
|
|
67
|
+
<k-filter-item filter-keywords="code editor codeeditor monaco components"><a
|
|
68
|
+
href="../components/code-editor.html"
|
|
69
|
+
>Code Editor<br><small>Component</small></a></k-filter-item>
|
|
70
|
+
<k-filter-item filter-keywords="combobox combo box search autocomplete components"><a
|
|
71
|
+
href="../components/combobox.html"
|
|
72
|
+
>Combobox<br><small>Component</small></a></k-filter-item>
|
|
73
|
+
<k-filter-item filter-keywords="color picker colorpicker components"><a
|
|
74
|
+
href="../components/color-picker.html"
|
|
75
|
+
>Color Picker<br><small>Component</small></a></k-filter-item>
|
|
76
|
+
<k-filter-item filter-keywords="content slider components"><a
|
|
77
|
+
href="../components/content-slider.html"
|
|
78
|
+
>Content Slider<br><small>Component</small></a></k-filter-item>
|
|
79
|
+
<k-filter-item filter-keywords="context state global components"><a
|
|
80
|
+
href="../components/context.html"
|
|
81
|
+
>Context<br><small>Component</small></a></k-filter-item>
|
|
82
|
+
<k-filter-item filter-keywords="dialog modal popup components"><a
|
|
83
|
+
href="../components/dialog.html">Dialog<br><small>Component</small></a></k-filter-item>
|
|
84
|
+
<k-filter-item filter-keywords="dropdown select components"><a
|
|
85
|
+
href="../components/dropdown.html">Dropdown<br><small>Component</small></a></k-filter-item>
|
|
86
|
+
<k-filter-item filter-keywords="filter list filterlist components"><a
|
|
87
|
+
href="../components/filter-list.html"
|
|
88
|
+
>Filter List<br><small>Component</small></a></k-filter-item>
|
|
89
|
+
<k-filter-item filter-keywords="focus capture focuscapture components"><a
|
|
90
|
+
href="../components/focus-capture.html"
|
|
91
|
+
>Focus Capture<br><small>Component</small></a></k-filter-item>
|
|
92
|
+
<k-filter-item filter-keywords="html editor components"><a
|
|
93
|
+
href="../components/html-editor.html">HTML
|
|
94
|
+
Editor<br><small>Component</small></a></k-filter-item>
|
|
95
|
+
<k-filter-item filter-keywords="icon components"><a
|
|
96
|
+
href="../components/icon.html">Icon<br><small>Component</small></a></k-filter-item>
|
|
97
|
+
<k-filter-item filter-keywords="import components"><a
|
|
98
|
+
href="../components/import.html">Import<br><small>Component</small></a></k-filter-item>
|
|
99
|
+
<k-filter-item filter-keywords="nav navbar navigation components"><a
|
|
100
|
+
href="../components/nav.html">Nav<br><small>Component</small></a></k-filter-item>
|
|
101
|
+
<k-filter-item filter-keywords="nav spacer navbar spacer navspacer components"><a
|
|
102
|
+
href="../components/nav-spacer.html"
|
|
103
|
+
>Nav Spacer<br><small>Component</small></a></k-filter-item>
|
|
104
|
+
<k-filter-item filter-keywords="photo viewer photoviewer components"><a
|
|
105
|
+
href="../components/photo-viewer.html"
|
|
106
|
+
>Photo Viewer<br><small>Component</small></a></k-filter-item>
|
|
107
|
+
<k-filter-item filter-keywords="progress loading components"><a
|
|
108
|
+
href="../components/progress.html">Progress<br><small>Component</small></a></k-filter-item>
|
|
109
|
+
<k-filter-item filter-keywords="resize components"><a
|
|
110
|
+
href="../components/resize.html">Resize<br><small>Component</small></a></k-filter-item>
|
|
111
|
+
<k-filter-item filter-keywords="show more showmore components"><a
|
|
112
|
+
href="../components/show-more.html"
|
|
113
|
+
>Show More<br><small>Component</small></a></k-filter-item>
|
|
114
|
+
<k-filter-item filter-keywords="sortable drag drop sort components"><a
|
|
115
|
+
href="../components/sortable.html"
|
|
116
|
+
>Sortable<br><small>Component</small></a></k-filter-item>
|
|
117
|
+
<k-filter-item filter-keywords="spinner loading components"><a
|
|
118
|
+
href="../components/spinner.html">Spinner<br><small>Component</small></a></k-filter-item>
|
|
119
|
+
<k-filter-item filter-keywords="split pane components"><a
|
|
120
|
+
href="../components/split.html">Split<br><small>Component</small></a></k-filter-item>
|
|
121
|
+
<k-filter-item filter-keywords="table data grid components"><a
|
|
122
|
+
href="../components/table.html">Table<br><small>Component</small></a></k-filter-item>
|
|
123
|
+
<k-filter-item filter-keywords="table controls advanced example"><a
|
|
124
|
+
href="../components/tableControls.html"
|
|
125
|
+
>Table — Controls<br><small>Advanced Example</small></a></k-filter-item>
|
|
126
|
+
<k-filter-item filter-keywords="table custom fields advanced example"><a
|
|
127
|
+
href="../components/tableCustomFields.html"
|
|
128
|
+
>Table — Custom Fields<br><small>Advanced Example</small></a></k-filter-item>
|
|
129
|
+
<k-filter-item filter-keywords="table fetch records advanced example"><a
|
|
130
|
+
href="../components/tableFetchRecords.html"
|
|
131
|
+
>Table — Fetch Records<br><small>Advanced Example</small></a></k-filter-item>
|
|
132
|
+
<k-filter-item filter-keywords="table field sort hide advanced example"><a
|
|
133
|
+
href="../components/tableFieldSortHide.html"
|
|
134
|
+
>Table — Field Sort & Hide<br><small>Advanced Example</small></a></k-filter-item>
|
|
135
|
+
<k-filter-item filter-keywords="table pagination advanced example"><a
|
|
136
|
+
href="../components/tablePagination.html"
|
|
137
|
+
>Table — Pagination<br><small>Advanced Example</small></a></k-filter-item>
|
|
138
|
+
<k-filter-item filter-keywords="table record editing advanced example"><a
|
|
139
|
+
href="../components/tableRecordEditing.html"
|
|
140
|
+
>Table — Record Editing<br><small>Advanced Example</small></a></k-filter-item>
|
|
141
|
+
<k-filter-item filter-keywords="table record filtering advanced example"><a
|
|
142
|
+
href="../components/tableRecordFiltering.html"
|
|
143
|
+
>Table — Record Filtering<br><small>Advanced Example</small></a></k-filter-item>
|
|
144
|
+
<k-filter-item filter-keywords="table record hiding advanced example"><a
|
|
145
|
+
href="../components/tableRecordHiding.html"
|
|
146
|
+
>Table — Record Hiding<br><small>Advanced Example</small></a></k-filter-item>
|
|
147
|
+
<k-filter-item filter-keywords="table record searching advanced example"><a
|
|
148
|
+
href="../components/tableRecordSearching.html"
|
|
149
|
+
>Table — Record Searching<br><small>Advanced Example</small></a></k-filter-item>
|
|
150
|
+
<k-filter-item filter-keywords="table record selection advanced example"><a
|
|
151
|
+
href="../components/tableRecordSelection.html"
|
|
152
|
+
>Table — Record Selection<br><small>Advanced Example</small></a></k-filter-item>
|
|
153
|
+
<k-filter-item filter-keywords="table row controls advanced example"><a
|
|
154
|
+
href="../components/tableRowControls.html"
|
|
155
|
+
>Table — Row Controls<br><small>Advanced Example</small></a></k-filter-item>
|
|
156
|
+
<k-filter-item filter-keywords="table server sync advanced example"><a
|
|
157
|
+
href="../components/tableServerSync.html"
|
|
158
|
+
>Table — Server Sync<br><small>Advanced Example</small></a></k-filter-item>
|
|
159
|
+
<k-filter-item filter-keywords="table sorting advanced example"><a
|
|
160
|
+
href="../components/tableSorting.html"
|
|
161
|
+
>Table — Sorting<br><small>Advanced Example</small></a></k-filter-item>
|
|
162
|
+
<k-filter-item filter-keywords="table placeholder advanced example"><a
|
|
163
|
+
href="../components/tablePlaceholder.html"
|
|
164
|
+
>Table — Placeholder<br><small>Advanced Example</small></a></k-filter-item>
|
|
165
|
+
<k-filter-item filter-keywords="tabs tab panel components"><a
|
|
166
|
+
href="../components/tabs.html">Tabs<br><small>Component</small></a></k-filter-item>
|
|
167
|
+
<k-filter-item filter-keywords="tags tag input components"><a
|
|
168
|
+
href="../components/tags.html">Tags<br><small>Component</small></a></k-filter-item>
|
|
169
|
+
<k-filter-item filter-keywords="theme select dropdown dark light components"><a
|
|
170
|
+
href="../components/theme-select.html"
|
|
171
|
+
>Theme Select<br><small>Component</small></a></k-filter-item>
|
|
172
|
+
<k-filter-item filter-keywords="theme switcher dark light components"><a
|
|
173
|
+
href="../components/theme-switcher.html"
|
|
174
|
+
>Theme Switcher<br><small>Component</small></a></k-filter-item>
|
|
175
|
+
<k-filter-item filter-keywords="timestamp date time components"><a
|
|
176
|
+
href="../components/timestamp.html"
|
|
177
|
+
>Timestamp<br><small>Component</small></a></k-filter-item>
|
|
178
|
+
<k-filter-item filter-keywords="toast notification alert components"><a
|
|
179
|
+
href="../components/toast.html"
|
|
180
|
+
>Toast<br><small>Component</small></a></k-filter-item>
|
|
181
|
+
<k-filter-item filter-keywords="toggle switch checkbox components"><a
|
|
182
|
+
href="../components/toggle.html"
|
|
183
|
+
>Toggle<br><small>Component</small></a></k-filter-item>
|
|
184
|
+
<k-filter-item filter-keywords="tree treeview components"><a
|
|
185
|
+
href="../components/tree.html">Tree<br><small>Component</small></a></k-filter-item>
|
|
186
|
+
<k-filter-item filter-keywords="shadow component base"><a
|
|
187
|
+
href="../components/shadow-component.html"
|
|
188
|
+
>Shadow Component<br><small>Base Component</small></a></k-filter-item>
|
|
189
|
+
<k-filter-item filter-keywords="light component base"><a
|
|
190
|
+
href="../components/light-component.html">Light Component<br><small>Base
|
|
191
|
+
Component</small></a></k-filter-item>
|
|
192
|
+
<k-filter-item filter-keywords="hybrid component base"><a
|
|
193
|
+
href="../components/hybrid-component.html"
|
|
194
|
+
>Hybrid Component<br><small>Base Component</small></a></k-filter-item>
|
|
195
|
+
<k-filter-item filter-keywords="cookie utils utility"><a
|
|
196
|
+
href="../utils/cookie.html">cookie<br><small>Utility</small></a></k-filter-item>
|
|
197
|
+
<k-filter-item filter-keywords="context utils utility"><a
|
|
198
|
+
href="../utils/context.html">context<br><small>Utility</small></a></k-filter-item>
|
|
199
|
+
<k-filter-item filter-keywords="debounce utils utility"><a
|
|
200
|
+
href="../utils/debounce.html">debounce<br><small>Utility</small></a></k-filter-item>
|
|
201
|
+
<k-filter-item filter-keywords="drag utils utility"><a
|
|
202
|
+
href="../utils/drag.html">drag<br><small>Utility</small></a></k-filter-item>
|
|
203
|
+
<k-filter-item filter-keywords="elevation z-index stacking utils"><a
|
|
204
|
+
href="../utils/elevation.html">elevation<br><small>Utility</small></a></k-filter-item>
|
|
205
|
+
<k-filter-item filter-keywords="formattimestamp timestamp format date time utils utility"><a
|
|
206
|
+
href="../utils/formatTimestamp.html"
|
|
207
|
+
>formatTimestamp<br><small>Utility</small></a></k-filter-item>
|
|
208
|
+
<k-filter-item filter-keywords="object utils utility"><a
|
|
209
|
+
href="../utils/object.html">object<br><small>Utility</small></a></k-filter-item>
|
|
210
|
+
<k-filter-item filter-keywords="propconverters prop converters utils utility"><a
|
|
211
|
+
href="../utils/propConverters.html"
|
|
212
|
+
>propConverters<br><small>Utility</small></a></k-filter-item>
|
|
213
|
+
<k-filter-item filter-keywords="string utils utility"><a
|
|
214
|
+
href="../utils/string.html">string<br><small>Utility</small></a></k-filter-item>
|
|
215
|
+
<k-filter-item filter-keywords="theme utils utility"><a
|
|
216
|
+
href="../utils/theme.html">theme<br><small>Utility</small></a></k-filter-item>
|
|
217
|
+
<k-filter-item filter-keywords="type utils utility"><a
|
|
218
|
+
href="../utils/type.html">type<br><small>Utility</small></a></k-filter-item>
|
|
219
|
+
<k-filter-item filter-keywords="wait async utils utility"><a
|
|
220
|
+
href="../utils/wait.html">wait<br><small>Utility</small></a></k-filter-item>
|
|
221
|
+
</k-filter-list>
|
|
222
|
+
</div>
|
|
223
|
+
</div>
|
|
224
|
+
<div class="flex"></div>
|
|
225
|
+
<a
|
|
226
|
+
href="https://github.com/dustinpoissant/kempo-ui?tab=License-1-ov-file#creative-commons-attribution-noncommercial-sharealike-20"
|
|
227
|
+
target="_blank"
|
|
228
|
+
><k-icon name="license"></k-icon></a>
|
|
229
|
+
<a
|
|
230
|
+
href="https://www.npmjs.com/package/kempo-ui"
|
|
231
|
+
target="_blank"
|
|
232
|
+
><k-icon name="npm"></k-icon></a>
|
|
233
|
+
<a
|
|
234
|
+
href="https://github.com/dustinpoissant/kempo-ui"
|
|
235
|
+
target="_blank"
|
|
236
|
+
><k-icon name="github-mark"></k-icon></a>
|
|
237
|
+
<k-theme-switcher
|
|
238
|
+
class="mr"
|
|
239
|
+
style="
|
|
240
|
+
--padding: 0.5rem;
|
|
241
|
+
--c_active: var(--tc_on_primary);
|
|
242
|
+
--tc_active: var(--c_primary);
|
|
243
|
+
--c_inactive__hover: rgba(255, 255, 255, 0.1);
|
|
244
|
+
"
|
|
245
|
+
></k-theme-switcher>
|
|
246
|
+
</k-nav>
|
|
247
|
+
<div style="width: 100%; height: 4rem;"></div>
|
|
248
|
+
<k-aside
|
|
249
|
+
id="navSideMenu"
|
|
250
|
+
main="overlay"
|
|
251
|
+
state="offscreen"
|
|
252
|
+
>
|
|
253
|
+
<menu>
|
|
254
|
+
<a
|
|
255
|
+
href="../"
|
|
256
|
+
class="ta-center bb mb r0"
|
|
257
|
+
>
|
|
258
|
+
<h1 class="tc-primary">Kempo UI</h1>
|
|
259
|
+
<img
|
|
260
|
+
src="../media/icon128.png"
|
|
261
|
+
alt="Kempo UI Icon"
|
|
262
|
+
/>
|
|
263
|
+
</a>
|
|
264
|
+
|
|
265
|
+
<div class="pl mb">
|
|
266
|
+
<h3>Components</h3>
|
|
267
|
+
<a href="../components/accordion.html">Accordion</a>
|
|
268
|
+
<a href="../components/aside.html">Aside</a>
|
|
269
|
+
<a href="../components/card.html">Card</a>
|
|
270
|
+
<a href="../components/code-editor.html">Code Editor</a>
|
|
271
|
+
<a href="../components/combobox.html">Combobox</a>
|
|
272
|
+
<a href="../components/color-picker.html">ColorPicker</a>
|
|
273
|
+
<a href="../components/content-slider.html">Content Slider</a>
|
|
274
|
+
<a href="../components/context.html">Context</a>
|
|
275
|
+
<a href="../components/dialog.html">Dialog</a>
|
|
276
|
+
<a href="../components/dropdown.html">Dropdown</a>
|
|
277
|
+
<a href="../components/filter-list.html">Filter List</a>
|
|
278
|
+
<a href="../components/focus-capture.html">FocusCapture</a>
|
|
279
|
+
<a href="../components/html-editor.html">HTML Editor</a>
|
|
280
|
+
<a href="../components/icon.html">Icon</a>
|
|
281
|
+
<a href="../components/import.html">Import</a>
|
|
282
|
+
<a href="../components/nav.html">Nav</a>
|
|
283
|
+
<a href="../components/nav-spacer.html">Nav Spacer</a>
|
|
284
|
+
<a href="../components/photo-viewer.html">Photo Viewer</a>
|
|
285
|
+
<a href="../components/progress.html">Progress</a>
|
|
286
|
+
<a href="../components/resize.html">Resize</a>
|
|
287
|
+
<a href="../components/show-more.html">Show More</a>
|
|
288
|
+
<a href="../components/sortable.html">Sortable</a>
|
|
289
|
+
<a href="../components/spinner.html">Spinner</a>
|
|
290
|
+
<a href="../components/split.html">Split</a>
|
|
291
|
+
<a href="../components/table.html">Table</a>
|
|
292
|
+
<a href="../components/tabs.html">Tabs</a>
|
|
293
|
+
<a href="../components/tags.html">Tags</a>
|
|
294
|
+
<a href="../components/theme-select.html">Theme Select</a>
|
|
295
|
+
<a href="../components/theme-switcher.html">Theme Switcher</a>
|
|
296
|
+
<a href="../components/timestamp.html">Timestamp</a>
|
|
297
|
+
<a href="../components/toast.html">Toast</a>
|
|
298
|
+
<a href="../components/toggle.html">Toggle</a>
|
|
299
|
+
<a href="../components/tree.html">Tree</a>
|
|
300
|
+
</div>
|
|
301
|
+
|
|
302
|
+
<h5 class="mb0">Base Components</h5>
|
|
303
|
+
<div class="pl mb">
|
|
304
|
+
<a href="../components/shadow-component.html">Shadow Component</a>
|
|
305
|
+
<a href="../components/light-component.html">Light Component</a>
|
|
306
|
+
<a href="../components/hybrid-component.html">Hybrid Component</a>
|
|
307
|
+
</div>
|
|
308
|
+
|
|
309
|
+
<h5 class="mb0">Utils</h5>
|
|
310
|
+
<div class="pl mb">
|
|
311
|
+
<a href="../utils/cookie.html">cookie</a>
|
|
312
|
+
<a href="../utils/context.html">context</a>
|
|
313
|
+
<a href="../utils/debounce.html">debounce</a>
|
|
314
|
+
<a href="../utils/drag.html">drag</a>
|
|
315
|
+
<a href="../utils/elevation.html">elevation</a>
|
|
316
|
+
<a href="../utils/formatTimestamp.html">formatTimestamp</a>
|
|
317
|
+
<a href="../utils/object.html">object</a>
|
|
318
|
+
<a href="../utils/propConverters.html">propConverters</a>
|
|
319
|
+
<a href="../utils/string.html">string</a>
|
|
320
|
+
<a href="../utils/theme.html">theme</a>
|
|
321
|
+
<a href="../utils/type.html">type</a>
|
|
322
|
+
<a href="../utils/wait.html">wait</a>
|
|
323
|
+
</div>
|
|
324
|
+
</menu>
|
|
325
|
+
</k-aside>
|
|
326
|
+
<style>
|
|
327
|
+
#navSearchList a {
|
|
328
|
+
display: block;
|
|
329
|
+
padding: .25rem .5rem;
|
|
330
|
+
border-radius: var(--radius);
|
|
331
|
+
text-decoration: none;
|
|
332
|
+
color: var(--tc);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
#navSearchList a:hover {
|
|
336
|
+
background: rgba(128, 128, 128, .15);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
#navSearchList a small {
|
|
340
|
+
display: block;
|
|
341
|
+
color: var(--tc_muted);
|
|
342
|
+
}
|
|
343
|
+
</style>
|
|
344
|
+
<script
|
|
345
|
+
src="../src/components/Nav.js"
|
|
346
|
+
type="module"
|
|
347
|
+
></script>
|
|
348
|
+
<script
|
|
349
|
+
src="../src/components/FilterList.js"
|
|
350
|
+
type="module"
|
|
351
|
+
></script>
|
|
352
|
+
<script
|
|
353
|
+
src="../src/components/FilterItem.js"
|
|
354
|
+
type="module"
|
|
355
|
+
></script>
|
|
356
|
+
<script
|
|
357
|
+
src="../src/components/Aside.js"
|
|
358
|
+
type="module"
|
|
359
|
+
></script>
|
|
360
|
+
<script
|
|
361
|
+
src="../src/components/Icon.js"
|
|
362
|
+
type="module"
|
|
363
|
+
></script>
|
|
364
|
+
<script
|
|
365
|
+
src="../src/components/ThemeSwitcher.js"
|
|
366
|
+
type="module"
|
|
367
|
+
></script>
|
|
368
|
+
<script type="module">
|
|
369
|
+
import debounce from '../src/utils/debounce.js';
|
|
370
|
+
|
|
371
|
+
document.getElementById('toggleNavSideMenu').addEventListener('click', async () => {
|
|
372
|
+
await window.customElements.whenDefined('k-aside');
|
|
373
|
+
document.getElementById('navSideMenu').toggle();
|
|
374
|
+
});
|
|
375
|
+
|
|
376
|
+
document.addEventListener('click', function (e) {
|
|
377
|
+
if (e.target.matches('a[href^="#"]')) {
|
|
378
|
+
e.preventDefault();
|
|
379
|
+
const targetId = e.target.getAttribute('href').replace('#', '');
|
|
380
|
+
const target = document.getElementById(targetId);
|
|
381
|
+
if (target) {
|
|
382
|
+
target.scrollIntoView({ behavior: 'smooth' });
|
|
383
|
+
const url = window.location.pathname + window.location.search + '#' + targetId;
|
|
384
|
+
history.replaceState(null, '', url);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
|
|
389
|
+
/*
|
|
390
|
+
Nav Search
|
|
391
|
+
*/
|
|
392
|
+
const searchInput = document.getElementById('navSearchInput');
|
|
393
|
+
const searchDropdown = document.getElementById('navSearchDropdown');
|
|
394
|
+
let navSearchList = null;
|
|
395
|
+
|
|
396
|
+
const openSearch = async () => {
|
|
397
|
+
await customElements.whenDefined('k-filter-list');
|
|
398
|
+
if (!navSearchList) navSearchList = document.getElementById('navSearchList');
|
|
399
|
+
navSearchList.filter(searchInput.value);
|
|
400
|
+
searchDropdown.hidden = false;
|
|
401
|
+
};
|
|
402
|
+
|
|
403
|
+
const closeSearch = () => {
|
|
404
|
+
searchDropdown.hidden = true;
|
|
405
|
+
navSearchList?.clearFocus();
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
searchInput.addEventListener('focus', openSearch);
|
|
409
|
+
|
|
410
|
+
searchInput.addEventListener('input', debounce(e => {
|
|
411
|
+
navSearchList?.filter(e.target.value);
|
|
412
|
+
}, 150));
|
|
413
|
+
|
|
414
|
+
searchInput.addEventListener('keydown', e => {
|
|
415
|
+
if (e.key === 'Escape') {
|
|
416
|
+
searchInput.value = '';
|
|
417
|
+
searchInput.blur();
|
|
418
|
+
closeSearch();
|
|
419
|
+
} else if (e.key === 'ArrowDown' || e.key === 'ArrowUp' || e.key === 'Enter') {
|
|
420
|
+
navSearchList?.handleKeydown(e);
|
|
421
|
+
}
|
|
422
|
+
});
|
|
423
|
+
|
|
424
|
+
searchInput.addEventListener('blur', () => {
|
|
425
|
+
setTimeout(closeSearch, 150);
|
|
426
|
+
});
|
|
427
|
+
|
|
428
|
+
document.addEventListener('keydown', e => {
|
|
429
|
+
let active = document.activeElement;
|
|
430
|
+
while (active?.shadowRoot?.activeElement) active = active.shadowRoot.activeElement;
|
|
431
|
+
const tag = active?.tagName;
|
|
432
|
+
if (tag === 'INPUT' || tag === 'TEXTAREA' || active?.isContentEditable) return;
|
|
433
|
+
if (e.metaKey || e.ctrlKey || e.altKey) return;
|
|
434
|
+
if (e.key.length === 1) {
|
|
435
|
+
searchInput.focus();
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
</script>
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
<k-main>
|
|
442
|
+
|
|
443
|
+
<h1 class="ta-center">Progress</h1>
|
|
444
|
+
|
|
445
|
+
<k-accordion persistent-id="toc" class="b r mb">
|
|
446
|
+
<k-accordion-header for-panel="toc-panel">Table of Contents</k-accordion-header>
|
|
447
|
+
<k-accordion-panel name="toc-panel">
|
|
448
|
+
<div class="m">
|
|
449
|
+
<h6>Examples</h6>
|
|
450
|
+
<a href="#basicUsage">Basic Usage</a><br />
|
|
451
|
+
<a href="#offset">Offset</a><br />
|
|
452
|
+
<a href="#color">Color</a><br />
|
|
453
|
+
<a href="#label">Label</a><br />
|
|
454
|
+
<a href="#styles">Styles</a><br />
|
|
455
|
+
<a href="#multiple">Multiple Bars</a><br />
|
|
456
|
+
<a href="#indeterminate">Indeterminate</a><br />
|
|
457
|
+
|
|
458
|
+
<h6 class="mt"><a href="#jsRef" class="no-link">JavaScript Reference</a></h6>
|
|
459
|
+
<a href="#constructor">Constructor</a><br />
|
|
460
|
+
<a href="#requirements">Requirements</a><br />
|
|
461
|
+
<a href="#attributes">Attributes</a><br />
|
|
462
|
+
</div>
|
|
463
|
+
</k-accordion-panel>
|
|
464
|
+
</k-accordion>
|
|
465
|
+
|
|
466
|
+
<h3 id="basicUsage"><a href="#basicUsage" class="no-link">Basic Usage</a></h3>
|
|
467
|
+
<p>Create a progress bar using the <code>k-progress</code> component, set the size with the <code>percentage</code> attribute.</p>
|
|
468
|
+
<div class="row -mx">
|
|
469
|
+
<div class="col m-span-12 px">
|
|
470
|
+
<k-card label="HTML">
|
|
471
|
+
<pre><code class="hljs xml"><span class="hljs-tag"><<span class="hljs-name">k-progress</span> <span class="hljs-attr">percentage</span>=<span class="hljs-string">"50"</span>></span><span class="hljs-tag"></<span class="hljs-name">k-progress</span>></span></code></pre>
|
|
472
|
+
</k-card>
|
|
473
|
+
</div>
|
|
474
|
+
<div class="col m-span-12 px">
|
|
475
|
+
<k-card label="Output">
|
|
476
|
+
<k-progress percentage="50"></k-progress>
|
|
477
|
+
</k-card>
|
|
478
|
+
</div>
|
|
479
|
+
</div>
|
|
480
|
+
|
|
481
|
+
<h3 id="offset"><a href="#offset" class="no-link">Offset</a></h3>
|
|
482
|
+
<p>Set the bar offset with the <code>offset</code> attribute.</p>
|
|
483
|
+
<div class="row -mx">
|
|
484
|
+
<div class="col m-span-12 px">
|
|
485
|
+
<k-card label="HTML">
|
|
486
|
+
<pre><code class="hljs xml"><span class="hljs-tag"><<span class="hljs-name">k-progress</span> <span class="hljs-attr">percentage</span>=<span class="hljs-string">"50"</span> <span class="hljs-attr">offset</span>=<span class="hljs-string">"25"</span>></span><span class="hljs-tag"></<span class="hljs-name">k-progress</span>></span></code></pre>
|
|
487
|
+
</k-card>
|
|
488
|
+
</div>
|
|
489
|
+
<div class="col m-span-12 px">
|
|
490
|
+
<k-card label="Output">
|
|
491
|
+
<k-progress percentage="50" offset="25"></k-progress>
|
|
492
|
+
</k-card>
|
|
493
|
+
</div>
|
|
494
|
+
</div>
|
|
495
|
+
|
|
496
|
+
<h3 id="color"><a href="#color" class="no-link">Color</a></h3>
|
|
497
|
+
<p>Set the color with the <code>color</code> attribute.</p>
|
|
498
|
+
<div class="row -mx">
|
|
499
|
+
<div class="col m-span-12 px">
|
|
500
|
+
<k-card label="HTML">
|
|
501
|
+
<pre><code class="hljs xml"><span class="hljs-tag"><<span class="hljs-name">k-progress</span> <span class="hljs-attr">percentage</span>=<span class="hljs-string">"50"</span> <span class="hljs-attr">color</span>=<span class="hljs-string">"green"</span>></span><span class="hljs-tag"></<span class="hljs-name">k-progress</span>></span></code></pre>
|
|
502
|
+
</k-card>
|
|
503
|
+
</div>
|
|
504
|
+
<div class="col m-span-12 px">
|
|
505
|
+
<k-card label="Output">
|
|
506
|
+
<k-progress percentage="50" color="green"></k-progress>
|
|
507
|
+
</k-card>
|
|
508
|
+
</div>
|
|
509
|
+
</div>
|
|
510
|
+
|
|
511
|
+
<h3 id="label"><a href="#label" class="no-link">Label</a></h3>
|
|
512
|
+
<p>Add a <code>label</code> attribute to see the percentage label added to the bar.</p>
|
|
513
|
+
<div class="row -mx">
|
|
514
|
+
<div class="col m-span-12 px">
|
|
515
|
+
<k-card label="HTML">
|
|
516
|
+
<pre><code class="hljs xml"><span class="hljs-tag"><<span class="hljs-name">k-progress</span> <span class="hljs-attr">percentage</span>=<span class="hljs-string">"33"</span> <span class="hljs-attr">label</span>></span><span class="hljs-tag"></<span class="hljs-name">k-progress</span>></span></code></pre>
|
|
517
|
+
</k-card>
|
|
518
|
+
</div>
|
|
519
|
+
<div class="col m-span-12 px">
|
|
520
|
+
<k-card label="Output">
|
|
521
|
+
<k-progress percentage="33" label></k-progress>
|
|
522
|
+
</k-card>
|
|
523
|
+
</div>
|
|
524
|
+
</div>
|
|
525
|
+
|
|
526
|
+
<h3 id="styles"><a href="#styles" class="no-link">Styles</a></h3>
|
|
527
|
+
<p>You can do quite a bit of customization with the css.</p>
|
|
528
|
+
<div class="row -mx">
|
|
529
|
+
<div class="col m-span-12 px">
|
|
530
|
+
<k-card label="HTML">
|
|
531
|
+
<pre><code class="hljs xml"><span class="hljs-tag"><<span class="hljs-name">k-progress</span><br /> <span class="hljs-attr">style</span>=<span class="hljs-string">"<br /> --radius: 0;<br /> height: 3rem;<br /> color: pink;<br /> font-size: 3rem;<br /> background-color: #ccf;<br /> "</span><br /> <span class="hljs-attr">percentage</span>=<span class="hljs-string">"33"</span><br /> <span class="hljs-attr">label</span><br />></span><span class="hljs-tag"></<span class="hljs-name">k-progress</span>></span></code></pre>
|
|
532
|
+
</k-card>
|
|
533
|
+
</div>
|
|
534
|
+
<div class="col m-span-12 px">
|
|
535
|
+
<k-card label="Output">
|
|
536
|
+
<k-progress
|
|
537
|
+
style="
|
|
538
|
+
--radius: 0;
|
|
539
|
+
height: 3rem;
|
|
540
|
+
color: pink;
|
|
541
|
+
font-size: 3rem;
|
|
542
|
+
background-color: #ccf;
|
|
543
|
+
"
|
|
544
|
+
percentage="33"
|
|
545
|
+
label
|
|
546
|
+
></k-progress>
|
|
547
|
+
</k-card>
|
|
548
|
+
</div>
|
|
549
|
+
</div>
|
|
550
|
+
|
|
551
|
+
<h3 id="multiple"><a href="#multiple" class="no-link">Multiple Bars</a></h3>
|
|
552
|
+
<p>Use a pipe-delimited (<code>|</code>) list in <code>percentage</code>, <code>color</code>, and <code>offset</code> to make multiple bars.</p>
|
|
553
|
+
<div class="row -mx">
|
|
554
|
+
<div class="col m-span-12 px">
|
|
555
|
+
<k-card label="HTML">
|
|
556
|
+
<pre><code class="hljs xml"><span class="hljs-tag"><<span class="hljs-name">k-progress</span><br /> <span class="hljs-attr">percentage</span>=<span class="hljs-string">"25|25"</span><br /> <span class="hljs-attr">color</span>=<span class="hljs-string">"blue|red"</span><br /> <span class="hljs-attr">offset</span>=<span class="hljs-string">"0|50"</span><br />></span><span class="hljs-tag"></<span class="hljs-name">k-progress</span>></span></code></pre>
|
|
557
|
+
</k-card>
|
|
558
|
+
</div>
|
|
559
|
+
<div class="col m-span-12 px">
|
|
560
|
+
<k-card label="Output">
|
|
561
|
+
<k-progress
|
|
562
|
+
percentage="25|25"
|
|
563
|
+
color="blue|red"
|
|
564
|
+
offset="0|50"
|
|
565
|
+
></k-progress>
|
|
566
|
+
</k-card>
|
|
567
|
+
</div>
|
|
568
|
+
</div>
|
|
569
|
+
|
|
570
|
+
<h3 id="indeterminate"><a href="#indeterminate" class="no-link">Indeterminate</a></h3>
|
|
571
|
+
<p>Use the <code>indeterminate</code> attribute to add infinite animations to the progress bar. set the speed by giving it a value of the animation time (defualt = <code>2s</code>)</p>
|
|
572
|
+
<div class="row -mx">
|
|
573
|
+
<div class="col m-span-12 px">
|
|
574
|
+
<k-card label="HTML">
|
|
575
|
+
<pre><code class="hljs xml"><span class="hljs-tag"><<span class="hljs-name">k-progress</span> <span class="hljs-attr">indeterminate</span> ></span><span class="hljs-tag"></<span class="hljs-name">k-progress</span>></span><br /><span class="hljs-tag"><<span class="hljs-name">br</span> /></span><br /><span class="hljs-tag"><<span class="hljs-name">k-progress</span> <span class="hljs-attr">indeterminate</span>=<span class="hljs-string">"1s"</span> ></span><span class="hljs-tag"></<span class="hljs-name">k-progress</span>></span><br /><span class="hljs-tag"><<span class="hljs-name">br</span> /></span><br /><span class="hljs-tag"><<span class="hljs-name">k-progress</span> <span class="hljs-attr">indeterminate</span>=<span class="hljs-string">"4s"</span> <span class="hljs-attr">color</span>=<span class="hljs-string">"linear-gradient(to right, var(--c_secondary) 0%, var(--c_primary) 100%)"</span> ></span><span class="hljs-tag"></<span class="hljs-name">k-progress</span>></span></code></pre>
|
|
576
|
+
</k-card>
|
|
577
|
+
</div>
|
|
578
|
+
<div class="col m-span-12 px">
|
|
579
|
+
<k-card label="Output">
|
|
580
|
+
<k-progress indeterminate ></k-progress>
|
|
581
|
+
<br />
|
|
582
|
+
<k-progress indeterminate="1s" ></k-progress>
|
|
583
|
+
<br />
|
|
584
|
+
<k-progress indeterminate="4s" color="linear-gradient(to right, var(--c_secondary) 0%, var(--c_primary) 100%)" ></k-progress>
|
|
585
|
+
</k-card>
|
|
586
|
+
</div>
|
|
587
|
+
</div>
|
|
588
|
+
|
|
589
|
+
<h2 id="jsRef"><a href="#jsRef" class="no-link">JavaScript Reference</a></h2>
|
|
590
|
+
|
|
591
|
+
<h3 id="constructor"><a href="#constructor" class="no-link">Constructor</a></h3>
|
|
592
|
+
<h6>Extends <a href="./shadow-component.html">ShadowComponent</a></h6>
|
|
593
|
+
<h5><code>new Progress()</code></h5>
|
|
594
|
+
|
|
595
|
+
<h3 id="requirements"><a href="#requirements" class="no-link">Requirements</a></h3>
|
|
596
|
+
<ul>
|
|
597
|
+
<li><a href="./shadow-component.html">ShadowComponent</a></li>
|
|
598
|
+
</ul>
|
|
599
|
+
|
|
600
|
+
<h3 id="attributes"><a href="#attributes" class="no-link">Attributes</a></h3>
|
|
601
|
+
<h5><code>percentage<i>: string</i></code></h5>
|
|
602
|
+
<p>The progress percentage(s). Accepts values from <code>0</code> to <code>100</code>. Use pipe-delimited (<code>|</code>) values for multiple bars. Default is <code>25</code>.</p>
|
|
603
|
+
|
|
604
|
+
<h5><code>offset<i>: string</i></code></h5>
|
|
605
|
+
<p>The offset position for the bar(s). Use pipe-delimited (<code>|</code>) values to match the number of bars in <code>percentage</code>. Default is <code>0</code>.</p>
|
|
606
|
+
|
|
607
|
+
<h5><code>color<i>: string</i></code></h5>
|
|
608
|
+
<p>The fill color for the bar(s). Supports any CSS color value including hex, rgb, variables, and gradients. Use pipe-delimited (<code>|</code>) values for multiple bars. Default is <code>var(--c_primary)</code>.</p>
|
|
609
|
+
|
|
610
|
+
<h5><code>label<i>: boolean</i></code></h5>
|
|
611
|
+
<p>When present, displays the percentage value inside the progress bar.</p>
|
|
612
|
+
|
|
613
|
+
<h5><code>indeterminate<i>: string</i></code></h5>
|
|
614
|
+
<p>When present, creates an animated indeterminate progress bar. Optionally set the animation duration (e.g., <code>indeterminate="1s"</code>, <code>indeterminate="4s"</code>). Default duration is <code>2s</code>.</p>
|
|
615
|
+
|
|
616
|
+
</k-main>
|
|
617
|
+
<div style="height:33vh"></div>
|
|
618
|
+
<script type="module" src="../src/components/Main.js"></script>
|
|
619
|
+
|
|
620
|
+
<script type="module" src="../src/components/Progress.js"></script>
|
|
621
|
+
<script type="module" src="../src/components/Accordion.js"></script>
|
|
622
|
+
<script type="module" src="../src/components/Card.js"></script>
|
|
623
|
+
|
|
624
|
+
</body>
|
|
625
|
+
</html>
|
|
@@ -104,6 +104,8 @@
|
|
|
104
104
|
<k-filter-item filter-keywords="photo viewer photoviewer components"><a
|
|
105
105
|
href="../components/photo-viewer.html"
|
|
106
106
|
>Photo Viewer<br><small>Component</small></a></k-filter-item>
|
|
107
|
+
<k-filter-item filter-keywords="progress loading components"><a
|
|
108
|
+
href="../components/progress.html">Progress<br><small>Component</small></a></k-filter-item>
|
|
107
109
|
<k-filter-item filter-keywords="resize components"><a
|
|
108
110
|
href="../components/resize.html">Resize<br><small>Component</small></a></k-filter-item>
|
|
109
111
|
<k-filter-item filter-keywords="show more showmore components"><a
|
|
@@ -280,6 +282,7 @@
|
|
|
280
282
|
<a href="../components/nav.html">Nav</a>
|
|
281
283
|
<a href="../components/nav-spacer.html">Nav Spacer</a>
|
|
282
284
|
<a href="../components/photo-viewer.html">Photo Viewer</a>
|
|
285
|
+
<a href="../components/progress.html">Progress</a>
|
|
283
286
|
<a href="../components/resize.html">Resize</a>
|
|
284
287
|
<a href="../components/show-more.html">Show More</a>
|
|
285
288
|
<a href="../components/sortable.html">Sortable</a>
|