kempo-ui 0.3.5 → 0.3.7
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/AGENTS.md +2 -1
- package/dist/components/Aside.js +1 -1
- package/dist/components/Main.js +1 -1
- package/docs/components/accordion.html +240 -8
- package/docs/components/aside-items.html +13 -9
- package/docs/components/aside-menu.html +13 -9
- package/docs/components/aside-push.html +11 -6
- package/docs/components/aside.html +289 -115
- package/docs/components/card.html +238 -7
- package/docs/components/color-picker.html +245 -14
- package/docs/components/content-slider.html +240 -8
- package/docs/components/context.html +241 -7
- package/docs/components/dialog.html +238 -7
- package/docs/components/dropdown.html +238 -7
- package/docs/components/filter-list.html +239 -10
- package/docs/components/focus-capture.html +241 -10
- package/docs/components/html-editor.html +266 -35
- package/docs/components/hybrid-component.html +238 -6
- package/docs/components/icon.html +239 -9
- package/docs/components/import.html +239 -8
- package/docs/components/light-component.html +239 -7
- package/docs/components/nav.html +240 -8
- package/docs/components/photo-viewer.html +239 -9
- package/docs/components/resize.html +240 -9
- package/docs/components/shadow-component.html +239 -7
- package/docs/components/show-more.html +237 -8
- package/docs/components/sortable.html +239 -8
- package/docs/components/spinner.html +237 -6
- package/docs/components/split.html +241 -10
- package/docs/components/table.html +241 -11
- package/docs/components/tableControls.html +240 -7
- package/docs/components/tableCustomFields.html +241 -8
- package/docs/components/tableFetchRecords.html +239 -7
- package/docs/components/tableFieldSortHide.html +239 -7
- package/docs/components/tablePagination.html +246 -13
- package/docs/components/tablePlaceholder.html +241 -8
- package/docs/components/tableRecordEditing.html +241 -8
- package/docs/components/tableRecordFiltering.html +239 -7
- package/docs/components/tableRecordHiding.html +241 -9
- package/docs/components/tableRecordSearching.html +239 -7
- package/docs/components/tableRecordSelection.html +240 -7
- package/docs/components/tableRowControls.html +241 -8
- package/docs/components/tableServerSync.html +245 -11
- package/docs/components/tableSorting.html +239 -7
- package/docs/components/tabs.html +240 -7
- package/docs/components/tags.html +239 -7
- package/docs/components/theme-select.html +239 -7
- package/docs/components/theme-switcher.html +240 -8
- package/docs/components/timestamp.html +239 -8
- package/docs/components/toast.html +240 -8
- package/docs/components/toggle.html +240 -9
- package/docs/components/tree.html +239 -8
- package/docs/index.html +244 -6
- package/docs/prod.config.json +0 -4
- package/docs/src/components/Aside.js +1 -1
- package/docs/src/components/Main.js +1 -1
- package/docs/utils/context.html +237 -6
- package/docs/utils/cookie.html +251 -21
- package/docs/utils/debounce.html +236 -5
- package/docs/utils/drag.html +236 -5
- package/docs/utils/elevation.html +238 -6
- package/docs/utils/formatTimestamp.html +239 -9
- package/docs/utils/object.html +236 -5
- package/docs/utils/propConverters.html +233 -3
- package/docs/utils/string.html +236 -5
- package/docs/utils/theme.html +237 -6
- package/docs/utils/toTitleCase.html +239 -9
- package/docs/utils/type.html +236 -5
- package/docs/utils/wait.html +236 -5
- package/docs-src/.config.js +16 -0
- package/docs-src/bare.template.html +16 -0
- package/docs-src/components/accordion.page.html +201 -0
- package/docs-src/components/aside-items.page.html +36 -0
- package/docs-src/components/aside-menu.page.html +36 -0
- package/docs-src/components/aside-push.page.html +20 -0
- package/docs-src/components/aside.page.html +494 -0
- package/docs-src/components/card.page.html +78 -0
- package/docs-src/components/color-picker.page.html +559 -0
- package/docs-src/components/content-slider.page.html +266 -0
- package/docs-src/components/context.page.html +214 -0
- package/docs-src/components/dialog.page.html +365 -0
- package/docs-src/components/dropdown.page.html +300 -0
- package/docs-src/components/filter-list.page.html +117 -0
- package/docs-src/components/focus-capture.page.html +97 -0
- package/docs-src/components/html-editor.page.html +423 -0
- package/docs-src/components/hybrid-component.page.html +96 -0
- package/docs-src/components/icon.page.html +208 -0
- package/docs-src/components/import.page.html +76 -0
- package/docs-src/components/light-component.page.html +99 -0
- package/docs-src/components/nav.page.html +106 -0
- package/docs-src/components/photo-viewer.page.html +253 -0
- package/docs-src/components/resize.page.html +161 -0
- package/docs-src/components/shadow-component.page.html +84 -0
- package/docs-src/components/show-more.page.html +113 -0
- package/docs-src/components/sortable.page.html +117 -0
- package/docs-src/components/spinner.page.html +197 -0
- package/docs-src/components/split.page.html +195 -0
- package/docs-src/components/table.page.html +283 -0
- package/docs-src/components/tableControls.page.html +64 -0
- package/docs-src/components/tableCustomFields.page.html +124 -0
- package/docs-src/components/tableFetchRecords.page.html +95 -0
- package/docs-src/components/tableFieldSortHide.page.html +56 -0
- package/docs-src/components/tablePagination.page.html +85 -0
- package/docs-src/components/tablePlaceholder.page.html +73 -0
- package/docs-src/components/tableRecordEditing.page.html +161 -0
- package/docs-src/components/tableRecordFiltering.page.html +69 -0
- package/docs-src/components/tableRecordHiding.page.html +65 -0
- package/docs-src/components/tableRecordSearching.page.html +56 -0
- package/docs-src/components/tableRecordSelection.page.html +60 -0
- package/docs-src/components/tableRowControls.page.html +62 -0
- package/docs-src/components/tableServerSync.page.html +129 -0
- package/docs-src/components/tableSorting.page.html +54 -0
- package/docs-src/components/tabs.page.html +201 -0
- package/docs-src/components/tags.page.html +157 -0
- package/docs-src/components/theme-select.page.html +106 -0
- package/docs-src/components/theme-switcher.page.html +122 -0
- package/docs-src/components/timestamp.page.html +109 -0
- package/docs-src/components/toast.page.html +338 -0
- package/docs-src/components/toggle.page.html +177 -0
- package/docs-src/components/tree.page.html +356 -0
- package/docs-src/default.template.html +28 -0
- package/docs-src/index.page.html +312 -0
- package/docs-src/nav.fragment.html +228 -0
- package/docs-src/utils/context.page.html +143 -0
- package/docs-src/utils/cookie.page.html +128 -0
- package/docs-src/utils/debounce.page.html +42 -0
- package/docs-src/utils/drag.page.html +64 -0
- package/docs-src/utils/elevation.page.html +144 -0
- package/docs-src/utils/formatTimestamp.page.html +76 -0
- package/docs-src/utils/object.page.html +76 -0
- package/docs-src/utils/propConverters.page.html +73 -0
- package/docs-src/utils/string.page.html +66 -0
- package/docs-src/utils/theme.page.html +136 -0
- package/docs-src/utils/toTitleCase.page.html +52 -0
- package/docs-src/utils/type.page.html +31 -0
- package/docs-src/utils/wait.page.html +31 -0
- package/package.json +4 -4
- package/scripts/build.js +5 -0
- package/scripts/docs.js +5 -52
- package/src/components/Aside.js +12 -1
- package/src/components/Main.js +1 -1
- package/tests/components/Aside.browser-test.js +75 -0
- package/docs/dev.config.json +0 -20
- package/docs/nav-1.inc.html +0 -168
- package/docs/nav.inc.html +0 -168
- package/docs/nav.inc.js +0 -70
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<page pageName="Wait Utilities" title="Wait Utilities - Kempo UI">
|
|
2
|
+
<content location="header"></content>
|
|
3
|
+
<content>
|
|
4
|
+
<h1>Wait Utilities</h1>
|
|
5
|
+
|
|
6
|
+
<k-accordion persistent-id="toc" class="b r mb">
|
|
7
|
+
<k-accordion-header for-panel="toc-panel">Table of Contents</k-accordion-header>
|
|
8
|
+
<k-accordion-panel name="toc-panel">
|
|
9
|
+
<div class="m ">
|
|
10
|
+
<h6>Functions</h6>
|
|
11
|
+
<a href="#wait">wait</a><br />
|
|
12
|
+
<a href="#waitFrames">waitFrames</a><br />
|
|
13
|
+
</div>
|
|
14
|
+
</k-accordion-panel>
|
|
15
|
+
</k-accordion>
|
|
16
|
+
|
|
17
|
+
<h3>Description</h3>
|
|
18
|
+
<p>The wait utilities module provides functions for creating delays and waiting for animation frames, useful for timing operations and animations.</p>
|
|
19
|
+
|
|
20
|
+
<h3 id="wait"><a href="#wait" class="no-link">wait</a></h3>
|
|
21
|
+
<p>Creates a promise that resolves after a specified number of milliseconds.</p>
|
|
22
|
+
<pre><code class="hljs javascript"><span class="hljs-keyword">import</span> { wait } <span class="hljs-keyword">from</span> <span class="hljs-string">'../src/utils/wait.js'</span>;<br /><br /><span class="hljs-comment">// Wait for 1 second</span><br />await wait(<span class="hljs-number">1000</span>);<br /><span class="hljs-variable language_">console</span>.<span class="hljs-title function_">log</span>(<span class="hljs-string">'This runs after 1 second'</span>);</code></pre>
|
|
23
|
+
|
|
24
|
+
<h3 id="waitFrames"><a href="#waitFrames" class="no-link">waitFrames</a></h3>
|
|
25
|
+
<p>Creates a promise that resolves after a specified number of animation frames.</p>
|
|
26
|
+
<pre><code class="hljs javascript"><span class="hljs-keyword">import</span> { waitFrames } <span class="hljs-keyword">from</span> <span class="hljs-string">'../src/utils/wait.js'</span>;<br /><br /><span class="hljs-comment">// Wait for 2 animation frames</span><br />await waitFrames(<span class="hljs-number">2</span>);<br /><span class="hljs-variable language_">console</span>.<span class="hljs-title function_">log</span>(<span class="hljs-string">'This runs after 2 frames'</span>);</code></pre>
|
|
27
|
+
</content>
|
|
28
|
+
<content location="scripts">
|
|
29
|
+
<script type="module" src="{{pathToRoot}}src/components/Accordion.js"></script>
|
|
30
|
+
</content>
|
|
31
|
+
</page>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kempo-ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Lit based web-component library",
|
|
6
6
|
"main": "index.js",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "node scripts/build.js",
|
|
15
|
-
"
|
|
16
|
-
"dev": "
|
|
15
|
+
"docs": "npx kempo-server --root docs --config docs/prod.config.json",
|
|
16
|
+
"dev": "npx kempo-server --root docs-src --port 8083",
|
|
17
17
|
"icon": "node bin/icon.js",
|
|
18
18
|
"geticon": "node bin/get_icon.js",
|
|
19
19
|
"listicons": "node bin/list_icons.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"highlight.js": "^11.11.1",
|
|
38
38
|
"js-beautify": "^1.15.4",
|
|
39
|
-
"kempo-server": "^
|
|
39
|
+
"kempo-server": "^3.0.3",
|
|
40
40
|
"kempo-testing-framework": "^1.4.4",
|
|
41
41
|
"terser": "^5.43.1"
|
|
42
42
|
},
|
package/scripts/build.js
CHANGED
|
@@ -95,4 +95,9 @@ await copyDir('./dist', './docs/src/');
|
|
|
95
95
|
console.log('Copying icons/ to docs/icons/');
|
|
96
96
|
await copyDir('./icons', './docs/icons/');
|
|
97
97
|
|
|
98
|
+
console.log('Pre-rendering docs-src → docs...');
|
|
99
|
+
import { renderDir } from 'kempo-server/templating';
|
|
100
|
+
const count = await renderDir('./docs-src', './docs');
|
|
101
|
+
console.log(`Rendered ${count} pages`);
|
|
102
|
+
|
|
98
103
|
console.log('Build Complete');
|
package/scripts/docs.js
CHANGED
|
@@ -1,69 +1,22 @@
|
|
|
1
1
|
import { dirname, join } from 'path';
|
|
2
2
|
import { fileURLToPath } from 'url';
|
|
3
|
-
import { spawn } from 'child_process';
|
|
4
3
|
import { getArgs, runChildNodeProcessScript } from 'kempo-server/utils/cli';
|
|
5
4
|
|
|
6
5
|
const __filename = fileURLToPath(import.meta.url);
|
|
7
6
|
const __dirname = dirname(__filename);
|
|
8
7
|
|
|
9
|
-
/*
|
|
10
|
-
Configuration
|
|
11
|
-
*/
|
|
12
8
|
const options = getArgs({
|
|
13
|
-
|
|
14
|
-
b: 'build',
|
|
15
|
-
s: 'src'
|
|
9
|
+
b: 'build'
|
|
16
10
|
});
|
|
17
11
|
|
|
18
|
-
const {
|
|
19
|
-
port = 8083,
|
|
20
|
-
build = null,
|
|
21
|
-
src = false
|
|
22
|
-
} = options;
|
|
12
|
+
const { build = false } = options;
|
|
23
13
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
*/
|
|
27
|
-
if(build === null ? !src : build === 'true' || build === true){
|
|
28
|
-
console.log('Building component files...');
|
|
14
|
+
if(build === 'true' || build === true){
|
|
15
|
+
console.log('Building component files...');
|
|
29
16
|
await runChildNodeProcessScript(join(__dirname, 'build.js'));
|
|
30
|
-
console.log('
|
|
17
|
+
console.log('Build complete!');
|
|
31
18
|
}
|
|
32
19
|
|
|
33
|
-
/*
|
|
34
|
-
Server Startup
|
|
35
|
-
*/
|
|
36
|
-
const rootDir = 'docs';
|
|
37
|
-
const configFile = src ?
|
|
38
|
-
join(__dirname, '../docs/dev.config.json') :
|
|
39
|
-
join(__dirname, '../docs/prod.config.json');
|
|
40
|
-
|
|
41
|
-
console.log(`Starting kempo-server on port ${port}`);
|
|
42
|
-
console.log(`Root: ${rootDir}`);
|
|
43
|
-
console.log(`Config: ${configFile}`);
|
|
44
|
-
|
|
45
|
-
const serverArgs = [
|
|
46
|
-
'kempo-server',
|
|
47
|
-
'--root', rootDir,
|
|
48
|
-
'--port', port.toString(),
|
|
49
|
-
'--config', configFile
|
|
50
|
-
];
|
|
51
|
-
|
|
52
|
-
const serverProcess = spawn('npx', serverArgs, {
|
|
53
|
-
stdio: 'inherit',
|
|
54
|
-
shell: true
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
serverProcess.on('error', err => {
|
|
58
|
-
console.error('Failed to start server:', err.message);
|
|
59
|
-
process.exit(1);
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
process.on('SIGINT', () => {
|
|
63
|
-
serverProcess.kill();
|
|
64
|
-
process.exit(0);
|
|
65
|
-
});
|
|
66
|
-
|
|
67
20
|
process.on('SIGTERM', () => {
|
|
68
21
|
serverProcess.kill();
|
|
69
22
|
process.exit(0);
|
package/src/components/Aside.js
CHANGED
|
@@ -10,7 +10,8 @@ export default class Aside extends ShadowComponent {
|
|
|
10
10
|
side: { type: String, reflect: true },
|
|
11
11
|
main: { type: String, reflect: true },
|
|
12
12
|
overlayClose: { type: Boolean, reflect: true, attribute: 'overlay-close', converter: boolTrueFalse },
|
|
13
|
-
escClose: { type: Boolean, reflect: true, attribute: 'esc-close', converter: boolTrueFalse }
|
|
13
|
+
escClose: { type: Boolean, reflect: true, attribute: 'esc-close', converter: boolTrueFalse },
|
|
14
|
+
persistentId: { type: String, reflect: true, attribute: 'persistent-id' }
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
constructor() {
|
|
@@ -20,6 +21,7 @@ export default class Aside extends ShadowComponent {
|
|
|
20
21
|
this.main = 'overlay';
|
|
21
22
|
this.overlayClose = true;
|
|
22
23
|
this.escClose = true;
|
|
24
|
+
this.persistentId = null;
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
/*
|
|
@@ -39,6 +41,11 @@ export default class Aside extends ShadowComponent {
|
|
|
39
41
|
updated(changedProperties) {
|
|
40
42
|
super.updated(changedProperties);
|
|
41
43
|
|
|
44
|
+
if(changedProperties.has('persistentId') && this.persistentId && window?.localStorage) {
|
|
45
|
+
const saved = window.localStorage.getItem(`aside-persistent-id-${this.persistentId}`);
|
|
46
|
+
if(saved) this.state = saved;
|
|
47
|
+
}
|
|
48
|
+
|
|
42
49
|
if(changedProperties.has('state')) {
|
|
43
50
|
const prev = changedProperties.get('state');
|
|
44
51
|
|
|
@@ -61,6 +68,10 @@ export default class Aside extends ShadowComponent {
|
|
|
61
68
|
this.dispatchEvent(new CustomEvent('aside_state_change', { detail }));
|
|
62
69
|
window.dispatchEvent(new CustomEvent('aside_state_change', { detail }));
|
|
63
70
|
this.inert = this.state === 'offscreen';
|
|
71
|
+
|
|
72
|
+
if(this.persistentId && window?.localStorage) {
|
|
73
|
+
window.localStorage.setItem(`aside-persistent-id-${this.persistentId}`, this.state);
|
|
74
|
+
}
|
|
64
75
|
}
|
|
65
76
|
}
|
|
66
77
|
|
package/src/components/Main.js
CHANGED
|
@@ -15,7 +15,7 @@ export default class Main extends ShadowComponent {
|
|
|
15
15
|
window.addEventListener('aside_state_change', this.handleAsideChange);
|
|
16
16
|
|
|
17
17
|
document.querySelectorAll('k-aside[main="push"]').forEach(aside => {
|
|
18
|
-
if(aside.state !== 'offscreen') {
|
|
18
|
+
if(aside.state !== 'offscreen' && typeof aside.getTargetWidth === 'function') {
|
|
19
19
|
const width = aside.getTargetWidth(aside.state);
|
|
20
20
|
if(width > 0) {
|
|
21
21
|
this.widthMap.set(aside, { side: aside.side || 'left', width });
|
|
@@ -452,6 +452,81 @@ export default {
|
|
|
452
452
|
pass('Dispatches offscreen event on disconnect');
|
|
453
453
|
},
|
|
454
454
|
|
|
455
|
+
/*
|
|
456
|
+
Persistent ID
|
|
457
|
+
*/
|
|
458
|
+
'persistentId: should default to null': async ({pass, fail}) => {
|
|
459
|
+
const aside = await createAside();
|
|
460
|
+
if(aside.persistentId !== null) {
|
|
461
|
+
cleanup(aside);
|
|
462
|
+
return fail(`Expected persistentId null, got ${aside.persistentId}`);
|
|
463
|
+
}
|
|
464
|
+
cleanup(aside);
|
|
465
|
+
pass('persistentId defaults to null');
|
|
466
|
+
},
|
|
467
|
+
|
|
468
|
+
'persistentId: should save state to localStorage on state change': async ({pass, fail}) => {
|
|
469
|
+
const id = `test-aside-save-${Date.now()}`;
|
|
470
|
+
const key = `aside-persistent-id-${id}`;
|
|
471
|
+
localStorage.removeItem(key);
|
|
472
|
+
const aside = await createAside({ main: 'push', state: 'offscreen' });
|
|
473
|
+
aside.persistentId = id;
|
|
474
|
+
await aside.updateComplete;
|
|
475
|
+
aside.expand();
|
|
476
|
+
await aside.updateComplete;
|
|
477
|
+
const saved = localStorage.getItem(key);
|
|
478
|
+
localStorage.removeItem(key);
|
|
479
|
+
cleanup(aside);
|
|
480
|
+
if(saved !== 'expanded') return fail(`Expected "expanded" in localStorage, got "${saved}"`);
|
|
481
|
+
pass('persistentId saves state to localStorage');
|
|
482
|
+
},
|
|
483
|
+
|
|
484
|
+
'persistentId: should restore state from localStorage on connect': async ({pass, fail}) => {
|
|
485
|
+
const id = `test-aside-restore-${Date.now()}`;
|
|
486
|
+
const key = `aside-persistent-id-${id}`;
|
|
487
|
+
localStorage.setItem(key, 'expanded');
|
|
488
|
+
const aside = document.createElement('k-aside');
|
|
489
|
+
aside.setAttribute('main', 'push');
|
|
490
|
+
aside.setAttribute('state', 'offscreen');
|
|
491
|
+
aside.setAttribute('persistent-id', id);
|
|
492
|
+
document.body.appendChild(aside);
|
|
493
|
+
await aside.updateComplete;
|
|
494
|
+
// Wait for the property change to apply
|
|
495
|
+
await new Promise(r => setTimeout(r, 50));
|
|
496
|
+
const state = aside.state;
|
|
497
|
+
localStorage.removeItem(key);
|
|
498
|
+
cleanup(aside);
|
|
499
|
+
if(state !== 'expanded') return fail(`Expected restored state "expanded", got "${state}"`);
|
|
500
|
+
pass('persistentId restores state from localStorage');
|
|
501
|
+
},
|
|
502
|
+
|
|
503
|
+
'persistentId: should save collapsed state': async ({pass, fail}) => {
|
|
504
|
+
const id = `test-aside-collapsed-${Date.now()}`;
|
|
505
|
+
const key = `aside-persistent-id-${id}`;
|
|
506
|
+
localStorage.removeItem(key);
|
|
507
|
+
const aside = await createAside({ main: 'push', state: 'offscreen' });
|
|
508
|
+
aside.persistentId = id;
|
|
509
|
+
await aside.updateComplete;
|
|
510
|
+
aside.collapse();
|
|
511
|
+
await aside.updateComplete;
|
|
512
|
+
const saved = localStorage.getItem(key);
|
|
513
|
+
localStorage.removeItem(key);
|
|
514
|
+
cleanup(aside);
|
|
515
|
+
if(saved !== 'collapsed') return fail(`Expected "collapsed" in localStorage, got "${saved}"`);
|
|
516
|
+
pass('persistentId saves collapsed state');
|
|
517
|
+
},
|
|
518
|
+
|
|
519
|
+
'persistentId: should not save state when not set': async ({pass, fail}) => {
|
|
520
|
+
const aside = await createAside({ main: 'push', state: 'offscreen' });
|
|
521
|
+
const keysBefore = Object.keys(localStorage).filter(k => k.startsWith('aside-persistent-id-'));
|
|
522
|
+
aside.expand();
|
|
523
|
+
await aside.updateComplete;
|
|
524
|
+
const keysAfter = Object.keys(localStorage).filter(k => k.startsWith('aside-persistent-id-'));
|
|
525
|
+
cleanup(aside);
|
|
526
|
+
if(keysAfter.length > keysBefore.length) return fail('Should not save to localStorage when persistentId is null');
|
|
527
|
+
pass('Does not save to localStorage without persistentId');
|
|
528
|
+
},
|
|
529
|
+
|
|
455
530
|
/*
|
|
456
531
|
AsideItem
|
|
457
532
|
*/
|
package/docs/dev.config.json
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"customRoutes": {
|
|
3
|
-
"/icons/**": "../icons/**",
|
|
4
|
-
"/src/**": "../src/**"
|
|
5
|
-
},
|
|
6
|
-
"middleware": {
|
|
7
|
-
"security": {
|
|
8
|
-
"enabled": true,
|
|
9
|
-
"headers": {
|
|
10
|
-
"X-Content-Type-Options": "nosniff",
|
|
11
|
-
"X-Frame-Options": "SAMEORIGIN",
|
|
12
|
-
"X-XSS-Protection": "1; mode=block"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"logging": {
|
|
16
|
-
"enabled": true,
|
|
17
|
-
"includeResponseTime": true
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
package/docs/nav-1.inc.html
DELETED
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
<k-nav
|
|
2
|
-
fixed
|
|
3
|
-
class="bg-primary"
|
|
4
|
-
>
|
|
5
|
-
<button
|
|
6
|
-
id="toggleNavSideMenu"
|
|
7
|
-
class="link"
|
|
8
|
-
>
|
|
9
|
-
<k-icon name="menu"></k-icon>
|
|
10
|
-
</button>
|
|
11
|
-
<a
|
|
12
|
-
href="../"
|
|
13
|
-
class="d-if ph"
|
|
14
|
-
style="align-items: center"
|
|
15
|
-
>
|
|
16
|
-
<img src="../media/icon32.png" alt="Kempo UI Icon" class="pr" />
|
|
17
|
-
Kempo UI
|
|
18
|
-
</a>
|
|
19
|
-
<div style="position:relative;margin:0 .25rem;align-self:center;" theme="light">
|
|
20
|
-
<input id="navSearchInput" type="search" placeholder="Search docs..." autocomplete="off" style="width:11rem;" />
|
|
21
|
-
<div id="navSearchDropdown" hidden theme="light" 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);">
|
|
22
|
-
<k-filter-list id="navSearchList" style="display:block;padding:.25rem 0;">
|
|
23
|
-
<k-filter-item filter-keywords="accordion components"><a href="../components/accordion.html">Accordion<br><small>Component</small></a></k-filter-item>
|
|
24
|
-
<k-filter-item filter-keywords="aside sidebar components"><a href="../components/aside.html">Aside<br><small>Component</small></a></k-filter-item>
|
|
25
|
-
<k-filter-item filter-keywords="card components"><a href="../components/card.html">Card<br><small>Component</small></a></k-filter-item>
|
|
26
|
-
<k-filter-item filter-keywords="color picker colorpicker components"><a href="../components/color-picker.html">Color Picker<br><small>Component</small></a></k-filter-item>
|
|
27
|
-
<k-filter-item filter-keywords="content slider components"><a href="../components/content-slider.html">Content Slider<br><small>Component</small></a></k-filter-item>
|
|
28
|
-
<k-filter-item filter-keywords="context state global components"><a href="../components/context.html">Context<br><small>Component</small></a></k-filter-item>
|
|
29
|
-
<k-filter-item filter-keywords="dialog modal popup components"><a href="../components/dialog.html">Dialog<br><small>Component</small></a></k-filter-item>
|
|
30
|
-
<k-filter-item filter-keywords="dropdown select components"><a href="../components/dropdown.html">Dropdown<br><small>Component</small></a></k-filter-item>
|
|
31
|
-
<k-filter-item filter-keywords="filter list filterlist components"><a href="../components/filter-list.html">Filter List<br><small>Component</small></a></k-filter-item>
|
|
32
|
-
<k-filter-item filter-keywords="focus capture focuscapture components"><a href="../components/focus-capture.html">Focus Capture<br><small>Component</small></a></k-filter-item>
|
|
33
|
-
<k-filter-item filter-keywords="html editor components"><a href="../components/html-editor.html">HTML Editor<br><small>Component</small></a></k-filter-item>
|
|
34
|
-
<k-filter-item filter-keywords="icon components"><a href="../components/icon.html">Icon<br><small>Component</small></a></k-filter-item>
|
|
35
|
-
<k-filter-item filter-keywords="import components"><a href="../components/import.html">Import<br><small>Component</small></a></k-filter-item>
|
|
36
|
-
<k-filter-item filter-keywords="nav navbar navigation components"><a href="../components/nav.html">Nav<br><small>Component</small></a></k-filter-item>
|
|
37
|
-
<k-filter-item filter-keywords="photo viewer photoviewer components"><a href="../components/photo-viewer.html">Photo Viewer<br><small>Component</small></a></k-filter-item>
|
|
38
|
-
<k-filter-item filter-keywords="resize components"><a href="../components/resize.html">Resize<br><small>Component</small></a></k-filter-item>
|
|
39
|
-
<k-filter-item filter-keywords="show more showmore components"><a href="../components/show-more.html">Show More<br><small>Component</small></a></k-filter-item>
|
|
40
|
-
<k-filter-item filter-keywords="sortable drag drop sort components"><a href="../components/sortable.html">Sortable<br><small>Component</small></a></k-filter-item>
|
|
41
|
-
<k-filter-item filter-keywords="spinner loading components"><a href="../components/spinner.html">Spinner<br><small>Component</small></a></k-filter-item>
|
|
42
|
-
<k-filter-item filter-keywords="split pane components"><a href="../components/split.html">Split<br><small>Component</small></a></k-filter-item>
|
|
43
|
-
<k-filter-item filter-keywords="table data grid components"><a href="../components/table.html">Table<br><small>Component</small></a></k-filter-item>
|
|
44
|
-
<k-filter-item filter-keywords="table controls advanced example"><a href="../components/tableControls.html">Table — Controls<br><small>Advanced Example</small></a></k-filter-item>
|
|
45
|
-
<k-filter-item filter-keywords="table custom fields advanced example"><a href="../components/tableCustomFields.html">Table — Custom Fields<br><small>Advanced Example</small></a></k-filter-item>
|
|
46
|
-
<k-filter-item filter-keywords="table fetch records advanced example"><a href="../components/tableFetchRecords.html">Table — Fetch Records<br><small>Advanced Example</small></a></k-filter-item>
|
|
47
|
-
<k-filter-item filter-keywords="table field sort hide advanced example"><a href="../components/tableFieldSortHide.html">Table — Field Sort & Hide<br><small>Advanced Example</small></a></k-filter-item>
|
|
48
|
-
<k-filter-item filter-keywords="table pagination advanced example"><a href="../components/tablePagination.html">Table — Pagination<br><small>Advanced Example</small></a></k-filter-item>
|
|
49
|
-
<k-filter-item filter-keywords="table record editing advanced example"><a href="../components/tableRecordEditing.html">Table — Record Editing<br><small>Advanced Example</small></a></k-filter-item>
|
|
50
|
-
<k-filter-item filter-keywords="table record filtering advanced example"><a href="../components/tableRecordFiltering.html">Table — Record Filtering<br><small>Advanced Example</small></a></k-filter-item>
|
|
51
|
-
<k-filter-item filter-keywords="table record hiding advanced example"><a href="../components/tableRecordHiding.html">Table — Record Hiding<br><small>Advanced Example</small></a></k-filter-item>
|
|
52
|
-
<k-filter-item filter-keywords="table record searching advanced example"><a href="../components/tableRecordSearching.html">Table — Record Searching<br><small>Advanced Example</small></a></k-filter-item>
|
|
53
|
-
<k-filter-item filter-keywords="table record selection advanced example"><a href="../components/tableRecordSelection.html">Table — Record Selection<br><small>Advanced Example</small></a></k-filter-item>
|
|
54
|
-
<k-filter-item filter-keywords="table row controls advanced example"><a href="../components/tableRowControls.html">Table — Row Controls<br><small>Advanced Example</small></a></k-filter-item>
|
|
55
|
-
<k-filter-item filter-keywords="table server sync advanced example"><a href="../components/tableServerSync.html">Table — Server Sync<br><small>Advanced Example</small></a></k-filter-item>
|
|
56
|
-
<k-filter-item filter-keywords="table sorting advanced example"><a href="../components/tableSorting.html">Table — Sorting<br><small>Advanced Example</small></a></k-filter-item>
|
|
57
|
-
<k-filter-item filter-keywords="tabs tab panel components"><a href="../components/tabs.html">Tabs<br><small>Component</small></a></k-filter-item>
|
|
58
|
-
<k-filter-item filter-keywords="tags tag input components"><a href="../components/tags.html">Tags<br><small>Component</small></a></k-filter-item>
|
|
59
|
-
<k-filter-item filter-keywords="theme select dropdown dark light components"><a href="../components/theme-select.html">Theme Select<br><small>Component</small></a></k-filter-item>
|
|
60
|
-
<k-filter-item filter-keywords="theme switcher dark light components"><a href="../components/theme-switcher.html">Theme Switcher<br><small>Component</small></a></k-filter-item>
|
|
61
|
-
<k-filter-item filter-keywords="timestamp date time components"><a href="../components/timestamp.html">Timestamp<br><small>Component</small></a></k-filter-item>
|
|
62
|
-
<k-filter-item filter-keywords="toast notification alert components"><a href="../components/toast.html">Toast<br><small>Component</small></a></k-filter-item>
|
|
63
|
-
<k-filter-item filter-keywords="toggle switch checkbox components"><a href="../components/toggle.html">Toggle<br><small>Component</small></a></k-filter-item>
|
|
64
|
-
<k-filter-item filter-keywords="tree treeview components"><a href="../components/tree.html">Tree<br><small>Component</small></a></k-filter-item>
|
|
65
|
-
<k-filter-item filter-keywords="shadow component base"><a href="../components/shadow-component.html">Shadow Component<br><small>Base Component</small></a></k-filter-item>
|
|
66
|
-
<k-filter-item filter-keywords="light component base"><a href="../components/light-component.html">Light Component<br><small>Base Component</small></a></k-filter-item>
|
|
67
|
-
<k-filter-item filter-keywords="hybrid component base"><a href="../components/hybrid-component.html">Hybrid Component<br><small>Base Component</small></a></k-filter-item>
|
|
68
|
-
<k-filter-item filter-keywords="cookie utils utility"><a href="../utils/cookie.html">cookie<br><small>Utility</small></a></k-filter-item>
|
|
69
|
-
<k-filter-item filter-keywords="context utils utility"><a href="../utils/context.html">context<br><small>Utility</small></a></k-filter-item>
|
|
70
|
-
<k-filter-item filter-keywords="debounce utils utility"><a href="../utils/debounce.html">debounce<br><small>Utility</small></a></k-filter-item>
|
|
71
|
-
<k-filter-item filter-keywords="drag utils utility"><a href="../utils/drag.html">drag<br><small>Utility</small></a></k-filter-item>
|
|
72
|
-
<k-filter-item filter-keywords="elevation z-index stacking utils"><a href="../utils/elevation.html">elevation<br><small>Utility</small></a></k-filter-item>
|
|
73
|
-
<k-filter-item filter-keywords="formattimestamp timestamp format date time utils utility"><a href="../utils/formatTimestamp.html">formatTimestamp<br><small>Utility</small></a></k-filter-item>
|
|
74
|
-
<k-filter-item filter-keywords="object utils utility"><a href="../utils/object.html">object<br><small>Utility</small></a></k-filter-item>
|
|
75
|
-
<k-filter-item filter-keywords="propconverters prop converters utils utility"><a href="../utils/propConverters.html">propConverters<br><small>Utility</small></a></k-filter-item>
|
|
76
|
-
<k-filter-item filter-keywords="string utils utility"><a href="../utils/string.html">string<br><small>Utility</small></a></k-filter-item>
|
|
77
|
-
<k-filter-item filter-keywords="theme utils utility"><a href="../utils/theme.html">theme<br><small>Utility</small></a></k-filter-item>
|
|
78
|
-
<k-filter-item filter-keywords="type utils utility"><a href="../utils/type.html">type<br><small>Utility</small></a></k-filter-item>
|
|
79
|
-
<k-filter-item filter-keywords="wait async utils utility"><a href="../utils/wait.html">wait<br><small>Utility</small></a></k-filter-item>
|
|
80
|
-
</k-filter-list>
|
|
81
|
-
</div>
|
|
82
|
-
</div>
|
|
83
|
-
<div class="flex"></div>
|
|
84
|
-
<a href="https://github.com/dustinpoissant/kempo-ui?tab=License-1-ov-file#creative-commons-attribution-noncommercial-sharealike-20" target="_blank"><k-icon name="license"></k-icont></a>
|
|
85
|
-
<a href="https://www.npmjs.com/package/kempo-ui" target="_blank"><k-icon name="npm"></k-icont></a>
|
|
86
|
-
<a href="https://github.com/dustinpoissant/kempo-ui" target="_blank"><k-icon name="github-mark"></k-icont></a>
|
|
87
|
-
<k-theme-switcher></k-theme-switcher>
|
|
88
|
-
</k-nav>
|
|
89
|
-
<div style="width: 100%; height: 4rem;"></div>
|
|
90
|
-
<k-aside
|
|
91
|
-
id="navSideMenu"
|
|
92
|
-
main="overlay"
|
|
93
|
-
state="offscreen"
|
|
94
|
-
>
|
|
95
|
-
<menu>
|
|
96
|
-
<a href="../" class="ta-center bb mb r0">
|
|
97
|
-
<h1 class="tc-primary">Kempo UI</h1>
|
|
98
|
-
<img src="../media/icon128.png" alt="Kempo UI Icon" />
|
|
99
|
-
</a>
|
|
100
|
-
<div class="pl mb">
|
|
101
|
-
<h3>Components</h3>
|
|
102
|
-
<a href="../components/accordion.html">Accordion</a>
|
|
103
|
-
<a href="../components/aside.html">Aside</a>
|
|
104
|
-
<a href="../components/card.html">Card</a>
|
|
105
|
-
<a href="../components/color-picker.html">ColorPicker</a>
|
|
106
|
-
<a href="../components/content-slider.html">Content Slider</a>
|
|
107
|
-
<a href="../components/context.html">Context</a>
|
|
108
|
-
<a href="../components/dialog.html">Dialog</a>
|
|
109
|
-
<a href="../components/dropdown.html">Dropdown</a>
|
|
110
|
-
<a href="../components/filter-list.html">Filter List</a>
|
|
111
|
-
<a href="../components/focus-capture.html">FocusCapture</a>
|
|
112
|
-
<a href="../components/html-editor.html">HTML Editor</a>
|
|
113
|
-
<a href="../components/icon.html">Icon</a>
|
|
114
|
-
<a href="../components/import.html">Import</a>
|
|
115
|
-
<a href="../components/nav.html">Nav</a>
|
|
116
|
-
<a href="../components/photo-viewer.html">Photo Viewer</a>
|
|
117
|
-
<a href="../components/resize.html">Resize</a>
|
|
118
|
-
<a href="../components/show-more.html">Show More</a>
|
|
119
|
-
<a href="../components/sortable.html">Sortable</a>
|
|
120
|
-
<a href="../components/spinner.html">Spinner</a>
|
|
121
|
-
<a href="../components/split.html">Split</a>
|
|
122
|
-
<a href="../components/table.html">Table</a>
|
|
123
|
-
<a href="../components/tabs.html">Tabs</a>
|
|
124
|
-
<a href="../components/tags.html">Tags</a>
|
|
125
|
-
<a href="../components/theme-select.html">Theme Select</a>
|
|
126
|
-
<a href="../components/theme-switcher.html">Theme Switcher</a>
|
|
127
|
-
<a href="../components/timestamp.html">Timestamp</a>
|
|
128
|
-
<a href="../components/toast.html">Toast</a>
|
|
129
|
-
<a href="../components/toggle.html">Toggle</a>
|
|
130
|
-
<a href="../components/tree.html">Tree</a>
|
|
131
|
-
</div>
|
|
132
|
-
|
|
133
|
-
<h5 class="mb0">Base Components</h5>
|
|
134
|
-
<div class="pl mb">
|
|
135
|
-
<a href="../components/shadow-component.html">Shadow Component</a>
|
|
136
|
-
<a href="../components/light-component.html">Light Component</a>
|
|
137
|
-
<a href="../components/hybrid-component.html">Hybrid Component</a>
|
|
138
|
-
</div>
|
|
139
|
-
|
|
140
|
-
<h5 class="mb0">Utils</h5>
|
|
141
|
-
<div class="pl mb">
|
|
142
|
-
<a href="../utils/cookie.html">cookie</a>
|
|
143
|
-
<a href="../utils/context.html">context</a>
|
|
144
|
-
<a href="../utils/debounce.html">debounce</a>
|
|
145
|
-
<a href="../utils/drag.html">drag</a>
|
|
146
|
-
<a href="../utils/elevation.html">elevation</a>
|
|
147
|
-
<a href="../utils/formatTimestamp.html">formatTimestamp</a>
|
|
148
|
-
<a href="../utils/object.html">object</a>
|
|
149
|
-
<a href="../utils/propConverters.html">propConverters</a>
|
|
150
|
-
<a href="../utils/string.html">string</a>
|
|
151
|
-
<a href="../utils/theme.html">theme</a>
|
|
152
|
-
<a href="../utils/type.html">type</a>
|
|
153
|
-
<a href="../utils/wait.html">wait</a>
|
|
154
|
-
</div>
|
|
155
|
-
</menu>
|
|
156
|
-
</k-aside>
|
|
157
|
-
<style>
|
|
158
|
-
#navSearchList a{display:block;padding:.25rem .5rem;border-radius:var(--radius);text-decoration:none;color:var(--tc);}
|
|
159
|
-
#navSearchList a:hover{background:rgba(128,128,128,.15);}
|
|
160
|
-
#navSearchList a small{display:block;color:var(--tc_muted);}
|
|
161
|
-
</style>
|
|
162
|
-
<script src="../src/components/Nav.js" type="module"></script>
|
|
163
|
-
<script src="../src/components/FilterList.js" type="module"></script>
|
|
164
|
-
<script src="../src/components/FilterItem.js" type="module"></script>
|
|
165
|
-
<script src="../src/components/Aside.js" type="module"></script>
|
|
166
|
-
<script src="../src/components/Icon.js" type="module"></script>
|
|
167
|
-
<script src="../src/components/ThemeSwitcher.js" type="module"></script>
|
|
168
|
-
<script src="../nav.inc.js" type="module"></script>
|