kempo 2.15.1 → 3.0.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/Import.js +1 -1
- package/dist/components/Tabs.js +1 -1
- package/docs/components/_template.html +3 -1
- package/docs/components/accordion.html +3 -1
- package/docs/components/card.html +3 -1
- package/docs/components/component.html +3 -1
- package/docs/components/content-slider.html +3 -1
- package/docs/components/dialog.html +3 -1
- package/docs/components/directory-viewer.html +3 -1
- package/docs/components/focus-capture.html +3 -1
- package/docs/components/import.html +3 -1
- package/docs/components/lazy-component.html +3 -1
- package/docs/components/reactive-component.html +3 -1
- package/docs/components/reactive-lazy-component.html +3 -1
- package/docs/components/resize.html +3 -1
- package/docs/components/search.html +3 -1
- package/docs/components/show-more.html +3 -1
- package/docs/components/side-menu.html +3 -1
- package/docs/components/sortable.html +3 -1
- package/docs/components/split.html +3 -1
- package/docs/components/table.html +3 -1
- package/docs/components/tableControls.html +3 -1
- package/docs/components/tableCustomFields.html +3 -1
- package/docs/components/tableFetchRecords.html +3 -1
- package/docs/components/tableFieldSortHide.html +3 -1
- package/docs/components/tablePagination.html +3 -1
- package/docs/components/tableRecordEditing.html +3 -1
- package/docs/components/tableRecordFiltering.html +3 -1
- package/docs/components/tableRecordHiding.html +3 -1
- package/docs/components/tableRecordSearching.html +3 -1
- package/docs/components/tableRecordSelection.html +3 -1
- package/docs/components/tableRowControls.html +3 -1
- package/docs/components/tableSorting.html +3 -1
- package/docs/components/tabs.html +3 -1
- package/docs/components/tags.html +3 -1
- package/docs/components/theme-switcher.html +3 -1
- package/docs/components/timestamp.html +3 -1
- package/docs/components/toggle.html +3 -1
- package/docs/js/nav.inc.js +4 -0
- package/docs/kempo/components/Import.js +1 -1
- package/docs/kempo/components/Tabs.js +1 -1
- package/docs/nav.inc.html +1 -6
- package/docs/styles/_template.html +3 -1
- package/docs/styles/borders-spacing.html +3 -1
- package/docs/styles/buttons.html +3 -1
- package/docs/styles/colors.html +3 -1
- package/docs/styles/displays-layouts.html +3 -1
- package/docs/styles/embed-1.html +2 -0
- package/docs/styles/inputs.html +3 -1
- package/docs/styles/tables.html +3 -1
- package/docs/styles/typography.html +3 -1
- package/docs/utils/_template.html +3 -1
- package/docs/utils/cli.html +3 -1
- package/docs/utils/cookie.html +3 -1
- package/docs/utils/debounce.html +3 -1
- package/docs/utils/drag.html +3 -1
- package/docs/utils/element.html +3 -1
- package/docs/utils/format-timestamp.html +3 -1
- package/docs/utils/fuzzy-match.html +1 -1
- package/package.json +1 -1
- package/src/components/Import.js +27 -8
- package/docs/nav-1.inc.html +0 -84
|
@@ -1 +1 @@
|
|
|
1
|
-
import Component from"./Component.js";export default class Import extends Component{constructor(
|
|
1
|
+
import Component from"./Component.js";export default class Import extends Component{constructor(e=""){super(),this.registerAttribute("src",e)}attributeChangedCallback(e,t,r){"src"===e&&t!==r&&this.render(!0)}async render(e){const t=this.src;if(t&&await super.render(e)){let e=await(await fetch(t)).text();for(const[t,r]of Object.entries(Import.replacements))e=e.replace(new RegExp(`%%${t}%%`,"g"),r);const r=document.createElement("template");r.innerHTML=e;const n=Array.from(r.content.querySelectorAll("script[src]"));n.forEach((e=>e.remove())),this.innerHTML=r.innerHTML;for(const e of n){const t=document.createElement("script");Array.from(e.attributes).forEach((e=>{t.setAttribute(e.name,e.value)})),console.log("Adding script with src:",t.src),await new Promise(((e,r)=>{t.onload=e,t.onerror=r,this.appendChild(t)}))}return!0}return!1}get shadowStyles(){return"\n :host {\n display: contents;\n }\n "}static replacements={root:"./"};static addReplacement(e,t){this.replacements={...this.replacements,[e]:t}}static observedAttributes=[...super.observedAttributes,"src"]}window.customElements.define("k-import",Import);
|
package/dist/components/Tabs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import Component from"./Component.js";import{dispatchEvent}from"../utils/element.js";const clickHandler=Symbol();export class Tab extends Component{constructor(){super(),this[clickHandler]=()=>{this.active||(this.tabs.active=this.for)},this.slot="tabs",this.registerAttribute("active",!1)}connectedCallback(){super.connectedCallback(),this.shadowRoot.getElementById("button").addEventListener("click",this[clickHandler])}get for(){const t=this.getAttribute("for");return t||this?.tabs.tabs.indexOf(this)}set for(t){t?this.setAttribute("for",t):this.removeAttribute("for")}get tabs(){return"K-TABS"===this.parentElement.tagName?this.parentElement:null}get shadowTemplate(){return`\n <button id="button">\n ${super.shadowTemplate}\n </button>\n `}get shadowStyles(){return"\n :host {\n margin-bottom: -1px;\n }\n #button {\n padding: var(--spacer_h);\n background-color: transparent;\n border: none;\n cursor: inherit;\n box-shadow: none;\n color: inherit;\n }\n :host(:not([active])) #button {\n cursor: pointer;\n }\n :host([active]){\n border-bottom: 2px solid var(--c_primary);\n margin-bottom: -1px;\n }\n :host([active]) #button {\n color: var(--tc_primary);\n }\n "}}window.customElements.define("k-tab",Tab);export class TabContent extends Component{constructor(){super(),this.registerAttribute("active",!1)}get tabs(){return"K-TABS"===this.parentElement.tagName?this.parentElement:null}get name(){const t=this.getAttribute("name");return t||this?.tabs.contents.indexOf(this)}set name(t){t?this.setAttribute("name",t):this.removeAttribute("name")}get shadowStyles(){return`\n ${super.shadowStyles}\n :host {\n display: block;\n height: 100%;\n max-height: 100%;\n flex: 1 1 auto;\n overflow: hidden;\n }\n :host([active]) {\n display: block;\n }\n :host(:not([active])) {\n display: none;\n }\n `}}window.customElements.define("k-tab-content",TabContent);export class Tabs extends Component{constructor(){super(),this.registerAttribute("active","")}async connectedCallback(){await super.connectedCallback(),this.active||(this.active=`${this.querySelectorAll("k-tab-content")[0].name}`);const t=this.shadowRoot.getElementById("tabs");t.addEventListener("scroll",this.updateScrollIndicators.bind(this)),this.updateScrollIndicators(),new ResizeObserver((()=>this.updateScrollIndicators())).observe(t)}updateScrollIndicators(){const t=this.shadowRoot.getElementById("tabs"),e=this.shadowRoot.getElementById("scroll-left"),n=this.shadowRoot.getElementById("scroll-right"),
|
|
1
|
+
import Component from"./Component.js";import{dispatchEvent}from"../utils/element.js";const clickHandler=Symbol();export class Tab extends Component{constructor(){super(),this[clickHandler]=()=>{this.active||(this.tabs.active=this.for)},this.slot="tabs",this.registerAttribute("active",!1)}connectedCallback(){super.connectedCallback(),this.shadowRoot.getElementById("button").addEventListener("click",this[clickHandler])}get for(){const t=this.getAttribute("for");return t||this?.tabs.tabs.indexOf(this)}set for(t){t?this.setAttribute("for",t):this.removeAttribute("for")}get tabs(){return"K-TABS"===this.parentElement.tagName?this.parentElement:null}get shadowTemplate(){return`\n <button id="button">\n ${super.shadowTemplate}\n </button>\n `}get shadowStyles(){return"\n :host {\n margin-bottom: -1px;\n flex: 0 0 auto; /* Important: prevent shrinking and growing */\n }\n #button {\n padding: var(--spacer_h);\n background-color: transparent;\n border: none;\n cursor: inherit;\n box-shadow: none;\n color: inherit;\n white-space: nowrap; /* Prevent text wrapping */\n }\n :host(:not([active])) #button {\n cursor: pointer;\n }\n :host([active]){\n border-bottom: 2px solid var(--c_primary);\n margin-bottom: -1px;\n }\n :host([active]) #button {\n color: var(--tc_primary);\n }\n "}}window.customElements.define("k-tab",Tab);export class TabContent extends Component{constructor(){super(),this.registerAttribute("active",!1)}get tabs(){return"K-TABS"===this.parentElement.tagName?this.parentElement:null}get name(){const t=this.getAttribute("name");return t||this?.tabs.contents.indexOf(this)}set name(t){t?this.setAttribute("name",t):this.removeAttribute("name")}get shadowStyles(){return`\n ${super.shadowStyles}\n :host {\n display: block;\n height: 100%;\n max-height: 100%;\n flex: 1 1 auto;\n overflow: hidden;\n }\n :host([active]) {\n display: block;\n }\n :host(:not([active])) {\n display: none;\n }\n `}}window.customElements.define("k-tab-content",TabContent);export class Tabs extends Component{constructor(){super(),this.registerAttribute("active","")}async connectedCallback(){await super.connectedCallback(),this.active||(this.active=`${this.querySelectorAll("k-tab-content")[0].name}`);const t=this.shadowRoot.getElementById("tabs");t.addEventListener("scroll",this.updateScrollIndicators.bind(this)),this.updateScrollIndicators(),new ResizeObserver((()=>this.updateScrollIndicators())).observe(t);const e=this.shadowRoot.getElementById("scroll-left"),n=this.shadowRoot.getElementById("scroll-right");e.addEventListener("click",(()=>{t.scrollBy({left:-200,behavior:"smooth"})})),n.addEventListener("click",(()=>{t.scrollBy({left:200,behavior:"smooth"})}))}updateScrollIndicators(){const t=this.shadowRoot.getElementById("tabs"),e=this.shadowRoot.getElementById("scroll-left"),n=this.shadowRoot.getElementById("scroll-right"),o=t.scrollLeft>0,s=t.scrollLeft<t.scrollWidth-t.clientWidth;e.classList.toggle("visible",o),n.classList.toggle("visible",s)}attributeChangedCallback(t,e,n){if("active"===t){const t=this.getActiveTab();t&&(t.active=!1);const e=this.getActiveContent();e&&(e.active=!1);const o=this.getTab(n);o&&(o.active=!0);const s=this.getContent(n);s&&(s.active=!0),dispatchEvent(this,"tab",{tab:n})}}get contents(){return[...this.querySelectorAll(":scope > k-tab-content")]}get tabs(){return[...this.querySelectorAll(":scope > k-tab")]}getTab(t){let e;if("string"==typeof t&&(e=this.querySelector(`k-tab[for="${t}"]`)),!e){let n=parseInt(t);n||(n=0),e=this.querySelectorAll("k-tab")[n]}return e}getActiveTab(){return this.querySelector(':scope > k-tab[active="true"]')}getContent(t){let e;if("string"==typeof t&&(e=this.querySelector(`k-tab-content[name="${t}"]`)),!e){let n=parseInt(t);n||(n=0),e=this.querySelectorAll("k-tab-content")[n]}return e}getActiveContent(){return this.querySelector(':scope > k-tab-content[active="true"]')}get shadowTemplate(){return`\n <div id="wrapper">\n <div id="tabs-container">\n <div id="scroll-left" class="scroll-indicator">\n <svg class="arrow" width="20" height="20" viewBox="0 0 20 20" fill="none">\n <path d="M12 15L7 10L12 5" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>\n </svg>\n </div>\n <div id="tabs">\n <slot name="tabs"></slot>\n </div>\n <div id="scroll-right" class="scroll-indicator">\n <svg class="arrow" width="20" height="20" viewBox="0 0 20 20" fill="none">\n <path d="M8 15L13 10L8 5" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>\n </svg>\n </div>\n </div>\n <div id="contents">\n ${super.shadowTemplate}\n </div>\n </div>\n `}get shadowStyles(){return`\n ${super.shadowStyles}\n :host {\n display: block;\n width: 100%;\n }\n #wrapper {\n display: flex;\n flex-direction: column;\n width: 100%;\n min-width: 0;\n }\n #tabs-container {\n position: relative;\n border-bottom: 1px solid var(--c_border);\n }\n #tabs {\n display: flex;\n overflow-x: auto;\n overflow-y: hidden;\n }\n #tabs ::slotted(*) {\n flex: 0 0 auto;\n }\n .scroll-indicator {\n position: absolute;\n top: 0;\n bottom: 0;\n width: 72px;\n pointer-events: none;\n opacity: 0;\n transition: opacity 0.2s;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n padding-bottom: 2px;\n }\n .scroll-indicator .arrow {\n color: var(--tc_base);\n z-index: 1;\n }\n .scroll-indicator.visible {\n opacity: 1;\n }\n #scroll-left {\n left: 0;\n background: linear-gradient(90deg, \n var(--c_bg) 0%,\n var(--c_bg) 30%,\n transparent 100%\n );\n }\n #scroll-right {\n right: 0;\n justify-content: flex-end;\n background: linear-gradient(-90deg, \n var(--c_bg) 0%,\n var(--c_bg) 30%,\n transparent 100%\n );\n }\n `}static observedAttributes=[...super.observedAttributes,"active"]}window.customElements.define("k-tabs",Tabs);export class TabSpacer extends Component{constructor(){super(),this.slot="tabs"}get shadowStyles(){return`\n ${super.shadowStyles}\n :host {\n flex: 1 1 auto;\n height: 1px;\n }\n `}}window.customElements.define("k-tab-spacer",TabSpacer);export default{Tab:Tab,TabContent:TabContent,Tabs:Tabs,TabSpacer:TabSpacer};
|
|
@@ -7,14 +7,16 @@
|
|
|
7
7
|
<link rel="stylesheet" href="../kempo/kempo-vars.css" /><link rel="stylesheet" href="../kempo/kempo-styles.css" />
|
|
8
8
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
9
9
|
<script type="module">
|
|
10
|
+
import Import from '../kempo/components/Import.js';
|
|
10
11
|
import Icon from '../kempo/components/Icon.js';
|
|
11
12
|
import Search from '../kempo/components/Search.js';
|
|
13
|
+
Import.addReplacement('root', '../');
|
|
12
14
|
Icon.pathToIcons = ['../icons'];
|
|
13
15
|
Search.searchDataUrl = '../search.json';
|
|
14
16
|
</script>
|
|
15
17
|
</head>
|
|
16
18
|
<body>
|
|
17
|
-
<k-import src="../nav
|
|
19
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
18
20
|
<h1 class="ta-center">Template</h1>
|
|
19
21
|
<main>
|
|
20
22
|
<details
|
|
@@ -7,14 +7,16 @@
|
|
|
7
7
|
<link rel="stylesheet" href="../kempo/kempo-vars.css" /><link rel="stylesheet" href="../kempo/kempo-styles.css" />
|
|
8
8
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
9
9
|
<script type="module">
|
|
10
|
+
import Import from '../kempo/components/Import.js';
|
|
10
11
|
import Icon from '../kempo/components/Icon.js';
|
|
11
12
|
import Search from '../kempo/components/Search.js';
|
|
13
|
+
Import.addReplacement('root', '../');
|
|
12
14
|
Icon.pathToIcons = ['../icons'];
|
|
13
15
|
Search.searchDataUrl = '../search.json';
|
|
14
16
|
</script>
|
|
15
17
|
</head>
|
|
16
18
|
<body>
|
|
17
|
-
<k-import src="../nav
|
|
19
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
18
20
|
<h1 class="ta-center">Accordion</h1>
|
|
19
21
|
<main>
|
|
20
22
|
<details
|
|
@@ -7,14 +7,16 @@
|
|
|
7
7
|
<link rel="stylesheet" href="../kempo/kempo-vars.css" /><link rel="stylesheet" href="../kempo/kempo-styles.css" />
|
|
8
8
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
9
9
|
<script type="module">
|
|
10
|
+
import Import from '../kempo/components/Import.js';
|
|
10
11
|
import Icon from '../kempo/components/Icon.js';
|
|
11
12
|
import Search from '../kempo/components/Search.js';
|
|
13
|
+
Import.addReplacement('root', '../');
|
|
12
14
|
Icon.pathToIcons = ['../icons'];
|
|
13
15
|
Search.searchDataUrl = '../search.json';
|
|
14
16
|
</script>
|
|
15
17
|
</head>
|
|
16
18
|
<body>
|
|
17
|
-
<k-import src="../nav
|
|
19
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
18
20
|
<h1 class="ta-center">Card</h1>
|
|
19
21
|
<main>
|
|
20
22
|
<details class="b r mb">
|
|
@@ -7,14 +7,16 @@
|
|
|
7
7
|
<link rel="stylesheet" href="../kempo/kempo-vars.css" /><link rel="stylesheet" href="../kempo/kempo-styles.css" />
|
|
8
8
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
9
9
|
<script type="module">
|
|
10
|
+
import Import from '../kempo/components/Import.js';
|
|
10
11
|
import Icon from '../kempo/components/Icon.js';
|
|
11
12
|
import Search from '../kempo/components/Search.js';
|
|
13
|
+
Import.addReplacement('root', '../');
|
|
12
14
|
Icon.pathToIcons = ['../icons'];
|
|
13
15
|
Search.searchDataUrl = '../search.json';
|
|
14
16
|
</script>
|
|
15
17
|
</head>
|
|
16
18
|
<body>
|
|
17
|
-
<k-import src="../nav
|
|
19
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
18
20
|
<h1 class="ta-center">Component</h1>
|
|
19
21
|
<main>
|
|
20
22
|
<details
|
|
@@ -7,14 +7,16 @@
|
|
|
7
7
|
<link rel="stylesheet" href="../kempo/kempo-vars.css" /><link rel="stylesheet" href="../kempo/kempo-styles.css" />
|
|
8
8
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
9
9
|
<script type="module">
|
|
10
|
+
import Import from '../kempo/components/Import.js';
|
|
10
11
|
import Icon from '../kempo/components/Icon.js';
|
|
11
12
|
import Search from '../kempo/components/Search.js';
|
|
13
|
+
Import.addReplacement('root', '../');
|
|
12
14
|
Icon.pathToIcons = ['../icons'];
|
|
13
15
|
Search.searchDataUrl = '../search.json';
|
|
14
16
|
</script>
|
|
15
17
|
</head>
|
|
16
18
|
<body>
|
|
17
|
-
<k-import src="../nav
|
|
19
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
18
20
|
<h1 class="ta-center">Content Slider</h1>
|
|
19
21
|
<main>
|
|
20
22
|
<details
|
|
@@ -7,14 +7,16 @@
|
|
|
7
7
|
<link rel="stylesheet" href="../kempo/kempo-vars.css" /><link rel="stylesheet" href="../kempo/kempo-styles.css" />
|
|
8
8
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
9
9
|
<script type="module">
|
|
10
|
+
import Import from '../kempo/components/Import.js';
|
|
10
11
|
import Icon from '../kempo/components/Icon.js';
|
|
11
12
|
import Search from '../kempo/components/Search.js';
|
|
13
|
+
Import.addReplacement('root', '../');
|
|
12
14
|
Icon.pathToIcons = ['../icons'];
|
|
13
15
|
Search.searchDataUrl = '../search.json';
|
|
14
16
|
</script>
|
|
15
17
|
</head>
|
|
16
18
|
<body>
|
|
17
|
-
<k-import src="../nav
|
|
19
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
18
20
|
<main>
|
|
19
21
|
<h1 class="ta-center">Dialog</h1>
|
|
20
22
|
|
|
@@ -7,14 +7,16 @@
|
|
|
7
7
|
<link rel="stylesheet" href="../kempo/kempo-vars.css" /><link rel="stylesheet" href="../kempo/kempo-styles.css" />
|
|
8
8
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
9
9
|
<script type="module">
|
|
10
|
+
import Import from '../kempo/components/Import.js';
|
|
10
11
|
import Icon from '../kempo/components/Icon.js';
|
|
11
12
|
import Search from '../kempo/components/Search.js';
|
|
13
|
+
Import.addReplacement('root', '../');
|
|
12
14
|
Icon.pathToIcons = ['../icons'];
|
|
13
15
|
Search.searchDataUrl = '../search.json';
|
|
14
16
|
</script>
|
|
15
17
|
</head>
|
|
16
18
|
<body>
|
|
17
|
-
<k-import src="../nav
|
|
19
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
18
20
|
<h1 class="ta-center">Directory Viewer</h1>
|
|
19
21
|
<main>
|
|
20
22
|
<details class="b r mb">
|
|
@@ -7,14 +7,16 @@
|
|
|
7
7
|
<link rel="stylesheet" href="../kempo/kempo-vars.css" /><link rel="stylesheet" href="../kempo/kempo-styles.css" />
|
|
8
8
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
9
9
|
<script type="module">
|
|
10
|
+
import Import from '../kempo/components/Import.js';
|
|
10
11
|
import Icon from '../kempo/components/Icon.js';
|
|
11
12
|
import Search from '../kempo/components/Search.js';
|
|
13
|
+
Import.addReplacement('root', '../');
|
|
12
14
|
Icon.pathToIcons = ['../icons'];
|
|
13
15
|
Search.searchDataUrl = '../search.json';
|
|
14
16
|
</script>
|
|
15
17
|
</head>
|
|
16
18
|
<body>
|
|
17
|
-
<k-import src="../nav
|
|
19
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
18
20
|
<h1 class="ta-center">FocusCapture</h1>
|
|
19
21
|
<main>
|
|
20
22
|
<details class="b r mb">
|
|
@@ -7,14 +7,16 @@
|
|
|
7
7
|
<link rel="stylesheet" href="../kempo/kempo-vars.css" /><link rel="stylesheet" href="../kempo/kempo-styles.css" />
|
|
8
8
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
9
9
|
<script type="module">
|
|
10
|
+
import Import from '../kempo/components/Import.js';
|
|
10
11
|
import Icon from '../kempo/components/Icon.js';
|
|
11
12
|
import Search from '../kempo/components/Search.js';
|
|
13
|
+
Import.addReplacement('root', '../');
|
|
12
14
|
Icon.pathToIcons = ['../icons'];
|
|
13
15
|
Search.searchDataUrl = '../search.json';
|
|
14
16
|
</script>
|
|
15
17
|
</head>
|
|
16
18
|
<body>
|
|
17
|
-
<k-import src="../nav
|
|
19
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
18
20
|
<h1 class="ta-center">Import</h1>
|
|
19
21
|
<main>
|
|
20
22
|
<details class="b r mb">
|
|
@@ -7,14 +7,16 @@
|
|
|
7
7
|
<link rel="stylesheet" href="../kempo/kempo-vars.css" /><link rel="stylesheet" href="../kempo/kempo-styles.css" />
|
|
8
8
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
9
9
|
<script type="module">
|
|
10
|
+
import Import from '../kempo/components/Import.js';
|
|
10
11
|
import Icon from '../kempo/components/Icon.js';
|
|
11
12
|
import Search from '../kempo/components/Search.js';
|
|
13
|
+
Import.addReplacement('root', '../');
|
|
12
14
|
Icon.pathToIcons = ['../icons'];
|
|
13
15
|
Search.searchDataUrl = '../search.json';
|
|
14
16
|
</script>
|
|
15
17
|
</head>
|
|
16
18
|
<body>
|
|
17
|
-
<k-import src="../nav
|
|
19
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
18
20
|
<h1 class="ta-center">LazyComponent</h1>
|
|
19
21
|
<main>
|
|
20
22
|
<details class="b r mb">
|
|
@@ -7,14 +7,16 @@
|
|
|
7
7
|
<link rel="stylesheet" href="../kempo/kempo-vars.css" /><link rel="stylesheet" href="../kempo/kempo-styles.css" />
|
|
8
8
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
9
9
|
<script type="module">
|
|
10
|
+
import Import from '../kempo/components/Import.js';
|
|
10
11
|
import Icon from '../kempo/components/Icon.js';
|
|
11
12
|
import Search from '../kempo/components/Search.js';
|
|
13
|
+
Import.addReplacement('root', '../');
|
|
12
14
|
Icon.pathToIcons = ['../icons'];
|
|
13
15
|
Search.searchDataUrl = '../search.json';
|
|
14
16
|
</script>
|
|
15
17
|
</head>
|
|
16
18
|
<body>
|
|
17
|
-
<k-import src="../nav
|
|
19
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
18
20
|
<h1 class="ta-center">ReactiveComponent</h1>
|
|
19
21
|
<main>
|
|
20
22
|
<details class="b r mb">
|
|
@@ -7,14 +7,16 @@
|
|
|
7
7
|
<link rel="stylesheet" href="../kempo/kempo-vars.css" /><link rel="stylesheet" href="../kempo/kempo-styles.css" />
|
|
8
8
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
9
9
|
<script type="module">
|
|
10
|
+
import Import from '../kempo/components/Import.js';
|
|
10
11
|
import Icon from '../kempo/components/Icon.js';
|
|
11
12
|
import Search from '../kempo/components/Search.js';
|
|
13
|
+
Import.addReplacement('root', '../');
|
|
12
14
|
Icon.pathToIcons = ['../icons'];
|
|
13
15
|
Search.searchDataUrl = '../search.json';
|
|
14
16
|
</script>
|
|
15
17
|
</head>
|
|
16
18
|
<body>
|
|
17
|
-
<k-import src="../nav
|
|
19
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
18
20
|
<h1 class="ta-center">ReactiveLazyComponent</h1>
|
|
19
21
|
<main>
|
|
20
22
|
<details class="b r mb">
|
|
@@ -7,14 +7,16 @@
|
|
|
7
7
|
<link rel="stylesheet" href="../kempo/kempo-vars.css" /><link rel="stylesheet" href="../kempo/kempo-styles.css" />
|
|
8
8
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
9
9
|
<script type="module">
|
|
10
|
+
import Import from '../kempo/components/Import.js';
|
|
10
11
|
import Icon from '../kempo/components/Icon.js';
|
|
11
12
|
import Search from '../kempo/components/Search.js';
|
|
13
|
+
Import.addReplacement('root', '../');
|
|
12
14
|
Icon.pathToIcons = ['../icons'];
|
|
13
15
|
Search.searchDataUrl = '../search.json';
|
|
14
16
|
</script>
|
|
15
17
|
</head>
|
|
16
18
|
<body>
|
|
17
|
-
<k-import src="../nav
|
|
19
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
18
20
|
<h1 class="ta-center">Resize</h1>
|
|
19
21
|
<main>
|
|
20
22
|
<details class="b r mb">
|
|
@@ -8,14 +8,16 @@
|
|
|
8
8
|
<link rel="stylesheet" href="../kempo/kempo-styles.css" />
|
|
9
9
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
10
10
|
<script type="module">
|
|
11
|
+
import Import from '../kempo/components/Import.js';
|
|
11
12
|
import Icon from '../kempo/components/Icon.js';
|
|
12
13
|
import Search from '../kempo/components/Search.js';
|
|
14
|
+
Import.addReplacement('root', '../');
|
|
13
15
|
Icon.pathToIcons = ['../icons'];
|
|
14
16
|
Search.searchDataUrl = '../search.json';
|
|
15
17
|
</script>
|
|
16
18
|
</head>
|
|
17
19
|
<body>
|
|
18
|
-
<k-import src="../nav
|
|
20
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
19
21
|
<h1 class="ta-center">Search</h1>
|
|
20
22
|
<main>
|
|
21
23
|
<details class="b r mb">
|
|
@@ -7,14 +7,16 @@
|
|
|
7
7
|
<link rel="stylesheet" href="../kempo/kempo-vars.css" /><link rel="stylesheet" href="../kempo/kempo-styles.css" />
|
|
8
8
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
9
9
|
<script type="module">
|
|
10
|
+
import Import from '../kempo/components/Import.js';
|
|
10
11
|
import Icon from '../kempo/components/Icon.js';
|
|
11
12
|
import Search from '../kempo/components/Search.js';
|
|
13
|
+
Import.addReplacement('root', '../');
|
|
12
14
|
Icon.pathToIcons = ['../icons'];
|
|
13
15
|
Search.searchDataUrl = '../search.json';
|
|
14
16
|
</script>
|
|
15
17
|
</head>
|
|
16
18
|
<body>
|
|
17
|
-
<k-import src="../nav
|
|
19
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
18
20
|
<main>
|
|
19
21
|
<h1 class="ta-center">Show More</h1>
|
|
20
22
|
<details class="b r mb">
|
|
@@ -7,14 +7,16 @@
|
|
|
7
7
|
<link rel="stylesheet" href="../kempo/kempo-vars.css" /><link rel="stylesheet" href="../kempo/kempo-styles.css" />
|
|
8
8
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
9
9
|
<script type="module">
|
|
10
|
+
import Import from '../kempo/components/Import.js';
|
|
10
11
|
import Icon from '../kempo/components/Icon.js';
|
|
11
12
|
import Search from '../kempo/components/Search.js';
|
|
13
|
+
Import.addReplacement('root', '../');
|
|
12
14
|
Icon.pathToIcons = ['../icons'];
|
|
13
15
|
Search.searchDataUrl = '../search.json';
|
|
14
16
|
</script>
|
|
15
17
|
</head>
|
|
16
18
|
<body>
|
|
17
|
-
<k-import src="../nav
|
|
19
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
18
20
|
<h1 class="ta-center">SideMenu</h1>
|
|
19
21
|
<main>
|
|
20
22
|
<details class="b r mb">
|
|
@@ -7,14 +7,16 @@
|
|
|
7
7
|
<link rel="stylesheet" href="../kempo/kempo-vars.css" /><link rel="stylesheet" href="../kempo/kempo-styles.css" />
|
|
8
8
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
9
9
|
<script type="module">
|
|
10
|
+
import Import from '../kempo/components/Import.js';
|
|
10
11
|
import Icon from '../kempo/components/Icon.js';
|
|
11
12
|
import Search from '../kempo/components/Search.js';
|
|
13
|
+
Import.addReplacement('root', '../');
|
|
12
14
|
Icon.pathToIcons = ['../icons'];
|
|
13
15
|
Search.searchDataUrl = '../search.json';
|
|
14
16
|
</script>
|
|
15
17
|
</head>
|
|
16
18
|
<body>
|
|
17
|
-
<k-import src="../nav
|
|
19
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
18
20
|
<h1 class="ta-center">Sortable</h1>
|
|
19
21
|
<main>
|
|
20
22
|
<details
|
|
@@ -7,14 +7,16 @@
|
|
|
7
7
|
<link rel="stylesheet" href="../kempo/kempo-vars.css" /><link rel="stylesheet" href="../kempo/kempo-styles.css" />
|
|
8
8
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
9
9
|
<script type="module">
|
|
10
|
+
import Import from '../kempo/components/Import.js';
|
|
10
11
|
import Icon from '../kempo/components/Icon.js';
|
|
11
12
|
import Search from '../kempo/components/Search.js';
|
|
13
|
+
Import.addReplacement('root', '../');
|
|
12
14
|
Icon.pathToIcons = ['../icons'];
|
|
13
15
|
Search.searchDataUrl = '../search.json';
|
|
14
16
|
</script>
|
|
15
17
|
</head>
|
|
16
18
|
<body>
|
|
17
|
-
<k-import src="../nav
|
|
19
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
18
20
|
<h1 class="ta-center">Split</h1>
|
|
19
21
|
<main>
|
|
20
22
|
<details class="b r mb">
|
|
@@ -9,8 +9,10 @@
|
|
|
9
9
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
10
10
|
<script type="module" src="../kempo/components/Table.js"></script>
|
|
11
11
|
<script type="module">
|
|
12
|
+
import Import from '../kempo/components/Import.js';
|
|
12
13
|
import Icon from '../kempo/components/Icon.js';
|
|
13
14
|
import Search from '../kempo/components/Search.js';
|
|
15
|
+
Import.addReplacement('root', '../');
|
|
14
16
|
Icon.pathToIcons = ['../icons'];
|
|
15
17
|
Search.searchDataUrl = '../search.json';
|
|
16
18
|
</script>
|
|
@@ -54,7 +56,7 @@
|
|
|
54
56
|
</script>
|
|
55
57
|
</head>
|
|
56
58
|
<body>
|
|
57
|
-
<k-import src="../nav
|
|
59
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
58
60
|
<h1 class="ta-center">Table</h1>
|
|
59
61
|
<main>
|
|
60
62
|
<details
|
|
@@ -9,8 +9,10 @@
|
|
|
9
9
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
10
10
|
<script type="module" src="../kempo/components/Table.js"></script>
|
|
11
11
|
<script type="module">
|
|
12
|
+
import Import from '../kempo/components/Import.js';
|
|
12
13
|
import Icon from '../kempo/components/Icon.js';
|
|
13
14
|
import Search from '../kempo/components/Search.js';
|
|
15
|
+
Import.addReplacement('root', '../');
|
|
14
16
|
Icon.pathToIcons = ['../icons'];
|
|
15
17
|
Search.searchDataUrl = '../search.json';
|
|
16
18
|
</script>
|
|
@@ -53,7 +55,7 @@
|
|
|
53
55
|
</script>
|
|
54
56
|
</head>
|
|
55
57
|
<body>
|
|
56
|
-
<k-import src="../nav
|
|
58
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
57
59
|
<h1 class="ta-center">Table - Top and Bottom Controls</h1>
|
|
58
60
|
<main>
|
|
59
61
|
|
|
@@ -9,8 +9,10 @@
|
|
|
9
9
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
10
10
|
<script type="module" src="../kempo/components/Table.js"></script>
|
|
11
11
|
<script type="module">
|
|
12
|
+
import Import from '../kempo/components/Import.js';
|
|
12
13
|
import Icon from '../kempo/components/Icon.js';
|
|
13
14
|
import Search from '../kempo/components/Search.js';
|
|
15
|
+
Import.addReplacement('root', '../');
|
|
14
16
|
Icon.pathToIcons = ['../icons'];
|
|
15
17
|
Search.searchDataUrl = '../search.json';
|
|
16
18
|
</script>
|
|
@@ -53,7 +55,7 @@
|
|
|
53
55
|
</script>
|
|
54
56
|
</head>
|
|
55
57
|
<body>
|
|
56
|
-
<k-import src="../nav
|
|
58
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
57
59
|
<h1 class="ta-center">Table - Custom Fields</h1>
|
|
58
60
|
<main>
|
|
59
61
|
|
|
@@ -9,8 +9,10 @@
|
|
|
9
9
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
10
10
|
<script type="module" src="../kempo/components/Table.js"></script>
|
|
11
11
|
<script type="module">
|
|
12
|
+
import Import from '../kempo/components/Import.js';
|
|
12
13
|
import Icon from '../kempo/components/Icon.js';
|
|
13
14
|
import Search from '../kempo/components/Search.js';
|
|
15
|
+
Import.addReplacement('root', '../');
|
|
14
16
|
Icon.pathToIcons = ['../icons'];
|
|
15
17
|
Search.searchDataUrl = '../search.json';
|
|
16
18
|
</script>
|
|
@@ -53,7 +55,7 @@
|
|
|
53
55
|
</script>
|
|
54
56
|
</head>
|
|
55
57
|
<body>
|
|
56
|
-
<k-import src="../nav
|
|
58
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
57
59
|
<h1 class="ta-center">Table - Fetch Records</h1>
|
|
58
60
|
<main>
|
|
59
61
|
<a href="./table.html"><h5>Back to Table Component Documentation</h5></a>
|
|
@@ -9,8 +9,10 @@
|
|
|
9
9
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
10
10
|
<script type="module" src="../kempo/components/Table.js"></script>
|
|
11
11
|
<script type="module">
|
|
12
|
+
import Import from '../kempo/components/Import.js';
|
|
12
13
|
import Icon from '../kempo/components/Icon.js';
|
|
13
14
|
import Search from '../kempo/components/Search.js';
|
|
15
|
+
Import.addReplacement('root', '../');
|
|
14
16
|
Icon.pathToIcons = ['../icons'];
|
|
15
17
|
Search.searchDataUrl = '../search.json';
|
|
16
18
|
</script>
|
|
@@ -53,7 +55,7 @@
|
|
|
53
55
|
</script>
|
|
54
56
|
</head>
|
|
55
57
|
<body>
|
|
56
|
-
<k-import src="../nav
|
|
58
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
57
59
|
<h1 class="ta-center">Table - Field Sort and Hide</h1>
|
|
58
60
|
<main>
|
|
59
61
|
|
|
@@ -9,8 +9,10 @@
|
|
|
9
9
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
10
10
|
<script type="module" src="../kempo/components/Table.js"></script>
|
|
11
11
|
<script type="module">
|
|
12
|
+
import Import from '../kempo/components/Import.js';
|
|
12
13
|
import Icon from '../kempo/components/Icon.js';
|
|
13
14
|
import Search from '../kempo/components/Search.js';
|
|
15
|
+
Import.addReplacement('root', '../');
|
|
14
16
|
Icon.pathToIcons = ['../icons'];
|
|
15
17
|
Search.searchDataUrl = '../search.json';
|
|
16
18
|
</script>
|
|
@@ -53,7 +55,7 @@
|
|
|
53
55
|
</script>
|
|
54
56
|
</head>
|
|
55
57
|
<body>
|
|
56
|
-
<k-import src="../nav
|
|
58
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
57
59
|
<h1 class="ta-center">Table - Pagination</h1>
|
|
58
60
|
<main>
|
|
59
61
|
<a href="./table.html"><h5>Back to Table Component Documentation</h5></a>
|
|
@@ -9,8 +9,10 @@
|
|
|
9
9
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
10
10
|
<script type="module" src="../kempo/components/Table.js"></script>
|
|
11
11
|
<script type="module">
|
|
12
|
+
import Import from '../kempo/components/Import.js';
|
|
12
13
|
import Icon from '../kempo/components/Icon.js';
|
|
13
14
|
import Search from '../kempo/components/Search.js';
|
|
15
|
+
Import.addReplacement('root', '../');
|
|
14
16
|
Icon.pathToIcons = ['../icons'];
|
|
15
17
|
Search.searchDataUrl = '../search.json';
|
|
16
18
|
</script>
|
|
@@ -53,7 +55,7 @@
|
|
|
53
55
|
</script>
|
|
54
56
|
</head>
|
|
55
57
|
<body>
|
|
56
|
-
<k-import src="../nav
|
|
58
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
57
59
|
<h1 class="ta-center">Table - Record Editing</h1>
|
|
58
60
|
<main>
|
|
59
61
|
<a href="./table.html"><h5>Back to Table Component Documentation</h5></a>
|
|
@@ -9,8 +9,10 @@
|
|
|
9
9
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
10
10
|
<script type="module" src="../kempo/components/Table.js"></script>
|
|
11
11
|
<script type="module">
|
|
12
|
+
import Import from '../kempo/components/Import.js';
|
|
12
13
|
import Icon from '../kempo/components/Icon.js';
|
|
13
14
|
import Search from '../kempo/components/Search.js';
|
|
15
|
+
Import.addReplacement('root', '../');
|
|
14
16
|
Icon.pathToIcons = ['../icons'];
|
|
15
17
|
Search.searchDataUrl = '../search.json';
|
|
16
18
|
</script>
|
|
@@ -53,7 +55,7 @@
|
|
|
53
55
|
</script>
|
|
54
56
|
</head>
|
|
55
57
|
<body>
|
|
56
|
-
<k-import src="../nav
|
|
58
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
57
59
|
<h1 class="ta-center">Table - Record Filerting</h1>
|
|
58
60
|
<main>
|
|
59
61
|
|
|
@@ -9,8 +9,10 @@
|
|
|
9
9
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
10
10
|
<script type="module" src="../kempo/components/Table.js"></script>
|
|
11
11
|
<script type="module">
|
|
12
|
+
import Import from '../kempo/components/Import.js';
|
|
12
13
|
import Icon from '../kempo/components/Icon.js';
|
|
13
14
|
import Search from '../kempo/components/Search.js';
|
|
15
|
+
Import.addReplacement('root', '../');
|
|
14
16
|
Icon.pathToIcons = ['../icons'];
|
|
15
17
|
Search.searchDataUrl = '../search.json';
|
|
16
18
|
</script>
|
|
@@ -53,7 +55,7 @@
|
|
|
53
55
|
</script>
|
|
54
56
|
</head>
|
|
55
57
|
<body>
|
|
56
|
-
<k-import src="../nav
|
|
58
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
57
59
|
<h1 class="ta-center">Table - Record Hiding</h1>
|
|
58
60
|
<main>
|
|
59
61
|
|
|
@@ -9,8 +9,10 @@
|
|
|
9
9
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
10
10
|
<script type="module" src="../kempo/components/Table.js"></script>
|
|
11
11
|
<script type="module">
|
|
12
|
+
import Import from '../kempo/components/Import.js';
|
|
12
13
|
import Icon from '../kempo/components/Icon.js';
|
|
13
14
|
import Search from '../kempo/components/Search.js';
|
|
15
|
+
Import.addReplacement('root', '../');
|
|
14
16
|
Icon.pathToIcons = ['../icons'];
|
|
15
17
|
Search.searchDataUrl = '../search.json';
|
|
16
18
|
</script>
|
|
@@ -53,7 +55,7 @@
|
|
|
53
55
|
</script>
|
|
54
56
|
</head>
|
|
55
57
|
<body>
|
|
56
|
-
<k-import src="../nav
|
|
58
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
57
59
|
<h1 class="ta-center">Table - Record Searching</h1>
|
|
58
60
|
<main>
|
|
59
61
|
|
|
@@ -9,8 +9,10 @@
|
|
|
9
9
|
<link rel="stylesheet" href="../kempo/kempo-hljs.css" />
|
|
10
10
|
<script type="module" src="../kempo/components/Table.js"></script>
|
|
11
11
|
<script type="module">
|
|
12
|
+
import Import from '../kempo/components/Import.js';
|
|
12
13
|
import Icon from '../kempo/components/Icon.js';
|
|
13
14
|
import Search from '../kempo/components/Search.js';
|
|
15
|
+
Import.addReplacement('root', '../');
|
|
14
16
|
Icon.pathToIcons = ['../icons'];
|
|
15
17
|
Search.searchDataUrl = '../search.json';
|
|
16
18
|
</script>
|
|
@@ -53,7 +55,7 @@
|
|
|
53
55
|
</script>
|
|
54
56
|
</head>
|
|
55
57
|
<body>
|
|
56
|
-
<k-import src="../nav
|
|
58
|
+
<k-import src="../nav.inc.html"></k-import>
|
|
57
59
|
<h1 class="ta-center">Table - Record Selection</h1>
|
|
58
60
|
<main>
|
|
59
61
|
<a href="./table.html"><h5>Back to Table Component Documentation</h5></a>
|