kempo 2.9.2 → 2.10.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.
Files changed (125) hide show
  1. package/dist/components/Accordion.js +1 -1
  2. package/dist/components/Dialog.js +1 -1
  3. package/dist/components/DirectoryViewer.js +1 -1
  4. package/dist/components/FocusCapture.js +1 -1
  5. package/dist/components/Icon.js +1 -1
  6. package/dist/components/Search.js +1 -1
  7. package/dist/components/Table.js +1 -1
  8. package/dist/components/Timestamp.js +1 -1
  9. package/dist/components/Toggle.js +1 -1
  10. package/dist/components/tableControls/DeleteSelected.js +1 -1
  11. package/dist/components/tableControls/Edit.js +1 -0
  12. package/dist/components/tableControls/Filters.js +1 -0
  13. package/dist/components/tableControls/HiddenCount.js +1 -0
  14. package/dist/components/tableControls/Hide.js +1 -0
  15. package/dist/components/tableControls/PageSelect.js +1 -1
  16. package/dist/components/tableControls/PageSize.js +1 -1
  17. package/dist/components/tableControls/ShowAll.js +1 -0
  18. package/dist/index.js +1 -1
  19. package/dist/kempo-styles.css +1 -1
  20. package/dist/kempo-vars.css +1 -1
  21. package/dist/utils/formatTimestamp.js +1 -1
  22. package/docs/components/_template.html +9 -0
  23. package/docs/components/accordion.html +52 -12
  24. package/docs/components/card.html +68 -8
  25. package/docs/components/component.html +6 -0
  26. package/docs/components/content-slider.html +8 -0
  27. package/docs/components/dialog.html +145 -5
  28. package/docs/components/directory-viewer.html +51 -40
  29. package/docs/components/focus-capture.html +68 -0
  30. package/docs/components/icon.html +76 -5
  31. package/docs/components/import.html +47 -0
  32. package/docs/components/lazy-component.html +45 -15
  33. package/docs/components/reactive-component.html +69 -0
  34. package/docs/components/reactive-lazy-component.html +69 -0
  35. package/docs/components/resize.html +52 -3
  36. package/docs/components/search.html +102 -0
  37. package/docs/components/show-more.html +54 -5
  38. package/docs/components/{sidemenu.html → side-menu.html} +56 -3
  39. package/docs/components/split.html +57 -16
  40. package/docs/components/table.html +90 -189
  41. package/docs/components/tableControls.html +91 -0
  42. package/docs/components/tableCustomFields.html +112 -0
  43. package/docs/components/tablePagination.html +92 -0
  44. package/docs/components/tableRecordEditing.html +144 -0
  45. package/docs/components/tableRecordFiltering.html +82 -0
  46. package/docs/components/tableRecordHiding.html +84 -0
  47. package/docs/components/tableRecordSelection.html +86 -0
  48. package/docs/components/tableRowControls.html +103 -0
  49. package/docs/components/tabs.html +72 -4
  50. package/docs/components/tags.html +94 -0
  51. package/docs/components/theme-switcher.html +74 -0
  52. package/docs/components/timestamp.html +86 -0
  53. package/docs/components/toggle.html +37 -34
  54. package/docs/icons/check.svg +1 -0
  55. package/docs/icons/hide.svg +1 -0
  56. package/docs/icons/show.svg +1 -0
  57. package/docs/index.html +5 -0
  58. package/docs/kempo/components/Accordion.js +1 -1
  59. package/docs/kempo/components/Dialog.js +1 -1
  60. package/docs/kempo/components/DirectoryViewer.js +1 -1
  61. package/docs/kempo/components/FocusCapture.js +1 -1
  62. package/docs/kempo/components/Icon.js +1 -1
  63. package/docs/kempo/components/Search.js +1 -1
  64. package/docs/kempo/components/Table.js +1 -1
  65. package/docs/kempo/components/Timestamp.js +1 -1
  66. package/docs/kempo/components/Toggle.js +1 -1
  67. package/docs/kempo/components/tableControls/DeleteSelected.js +1 -1
  68. package/docs/kempo/components/tableControls/Edit.js +1 -0
  69. package/docs/kempo/components/tableControls/Filters.js +1 -0
  70. package/docs/kempo/components/tableControls/HiddenCount.js +1 -0
  71. package/docs/kempo/components/tableControls/Hide.js +1 -0
  72. package/docs/kempo/components/tableControls/PageSelect.js +1 -1
  73. package/docs/kempo/components/tableControls/PageSize.js +1 -1
  74. package/docs/kempo/components/tableControls/ShowAll.js +1 -0
  75. package/docs/kempo/index.js +1 -1
  76. package/docs/kempo/kempo-styles.css +1 -1
  77. package/docs/kempo/kempo-vars.css +1 -1
  78. package/docs/kempo/utils/formatTimestamp.js +1 -1
  79. package/docs/nav-1.inc.html +16 -2
  80. package/docs/nav.inc.html +10 -2
  81. package/docs/search.json +281 -23
  82. package/docs/styles/_template.html +6 -0
  83. package/docs/styles/borders-spacing.html +6 -0
  84. package/docs/styles/buttons.html +6 -0
  85. package/docs/styles/colors.html +6 -0
  86. package/docs/styles/displays-layouts.html +6 -0
  87. package/docs/styles/embed-1.html +6 -0
  88. package/docs/styles/inputs.html +6 -0
  89. package/docs/styles/tables.html +6 -0
  90. package/docs/styles/typography.html +6 -0
  91. package/docs/{components/stacks.html → utils/_template.html} +11 -30
  92. package/docs/utils/cli.html +84 -0
  93. package/docs/utils/cookie.html +87 -0
  94. package/docs/utils/debounce.html +61 -0
  95. package/docs/utils/drag.html +85 -0
  96. package/docs/utils/element.html +124 -0
  97. package/docs/utils/format-timestamp.html +64 -0
  98. package/docs/utils/fuzzy-match.html +60 -0
  99. package/icons/check.svg +1 -0
  100. package/icons/hide.svg +1 -0
  101. package/icons/show.svg +1 -0
  102. package/package.json +1 -1
  103. package/src/components/Accordion.js +0 -1
  104. package/src/components/Dialog.js +15 -6
  105. package/src/components/DirectoryViewer.js +21 -92
  106. package/src/components/FocusCapture.js +2 -1
  107. package/src/components/Icon.js +3 -1
  108. package/src/components/Search.js +4 -1
  109. package/src/components/Table.js +469 -139
  110. package/src/components/Timestamp.js +7 -4
  111. package/src/components/Toggle.js +3 -0
  112. package/src/components/tableControls/DeleteSelected.js +36 -22
  113. package/src/components/tableControls/Edit.js +88 -0
  114. package/src/components/tableControls/Filters.js +128 -0
  115. package/src/components/tableControls/HiddenCount.js +42 -0
  116. package/src/components/tableControls/Hide.js +43 -0
  117. package/src/components/tableControls/PageSelect.js +54 -30
  118. package/src/components/tableControls/PageSize.js +33 -16
  119. package/src/components/tableControls/ShowAll.js +40 -0
  120. package/src/kempo-styles.css +7 -0
  121. package/src/kempo-vars.css +2 -0
  122. package/src/utils/formatTimestamp.js +26 -10
  123. package/docs/table.html +0 -0
  124. package/src/components/Stacks.js +0 -79
  125. package/src/utils/files.js +0 -15
package/docs/search.json CHANGED
@@ -10,20 +10,18 @@
10
10
  "header"
11
11
  ]
12
12
  },
13
- "/components/component.html": {
14
- "name": "Components > Component",
13
+ "/components/card.html": {
14
+ "name": "Components > Card",
15
15
  "terms": [
16
- "component",
17
- "base",
18
- "root",
19
- "framework",
20
- "parent"
16
+ "card",
17
+ "box",
18
+ "content",
19
+ "panel"
21
20
  ]
22
21
  },
23
- "/components/lazy-component.html": {
24
- "name": "Components > LazyComponent",
22
+ "/components/component.html": {
23
+ "name": "Components > Component",
25
24
  "terms": [
26
- "lazy",
27
25
  "component",
28
26
  "base",
29
27
  "root",
@@ -39,16 +37,86 @@
39
37
  "photos"
40
38
  ]
41
39
  },
42
- "/components/directoryviewer.html": {
40
+ "/components/dialog.html": {
41
+ "name": "Components > Dialog",
42
+ "terms": [
43
+ "dialog",
44
+ "modal",
45
+ "popup",
46
+ "overlay",
47
+ "window"
48
+ ]
49
+ },
50
+ "/components/directory-viewer.html": {
43
51
  "name": "Components > DirectoryViewer",
44
52
  "terms": [
45
53
  "directory",
46
- "viewer",
54
+ "viewer",
47
55
  "pwa",
48
56
  "folder",
49
57
  "file"
50
58
  ]
51
59
  },
60
+ "/components/focus-capture.html": {
61
+ "name": "Components > FocusCapture",
62
+ "terms": [
63
+ "focus",
64
+ "capture",
65
+ "trap",
66
+ "keyboard",
67
+ "navigation"
68
+ ]
69
+ },
70
+ "/components/icon.html": {
71
+ "name": "Components > Icon",
72
+ "terms": [
73
+ "icon",
74
+ "symbol",
75
+ "image",
76
+ "graphic"
77
+ ]
78
+ },
79
+ "/components/import.html": {
80
+ "name": "Components > Import",
81
+ "terms": [
82
+ "import",
83
+ "html",
84
+ "snippet",
85
+ "include"
86
+ ]
87
+ },
88
+ "/components/lazy-component.html": {
89
+ "name": "Components > LazyComponent",
90
+ "terms": [
91
+ "lazy",
92
+ "component",
93
+ "base",
94
+ "root",
95
+ "framework",
96
+ "parent"
97
+ ]
98
+ },
99
+ "/components/reactive-component.html": {
100
+ "name": "Components > ReactiveComponent",
101
+ "terms": [
102
+ "reactive",
103
+ "component",
104
+ "dynamic",
105
+ "update",
106
+ "render"
107
+ ]
108
+ },
109
+ "/components/reactive-lazy-component.html": {
110
+ "name": "Components > ReactiveLazyComponent",
111
+ "terms": [
112
+ "reactive",
113
+ "lazy",
114
+ "component",
115
+ "dynamic",
116
+ "update",
117
+ "render"
118
+ ]
119
+ },
52
120
  "/components/resize.html": {
53
121
  "name": "Components > Resize",
54
122
  "terms": [
@@ -59,6 +127,36 @@
59
127
  "height"
60
128
  ]
61
129
  },
130
+ "/components/search.html": {
131
+ "name": "Components > Search",
132
+ "terms": [
133
+ "search",
134
+ "find",
135
+ "query",
136
+ "input",
137
+ "results"
138
+ ]
139
+ },
140
+ "/components/show-more.html": {
141
+ "name": "Components > ShowMore",
142
+ "terms": [
143
+ "show more",
144
+ "expand",
145
+ "collapse",
146
+ "toggle",
147
+ "content"
148
+ ]
149
+ },
150
+ "/components/side-menu.html": {
151
+ "name": "Components > SideMenu",
152
+ "terms": [
153
+ "side menu",
154
+ "navigation",
155
+ "drawer",
156
+ "slide",
157
+ "menu"
158
+ ]
159
+ },
62
160
  "/components/split.html": {
63
161
  "name": "Components > Split",
64
162
  "terms": [
@@ -68,17 +166,6 @@
68
166
  "content"
69
167
  ]
70
168
  },
71
- "/components/stacks.html": {
72
- "name": "Components > Stacks",
73
- "terms": [
74
- "component",
75
- "stacks",
76
- "content",
77
- "layout",
78
- "collapsible",
79
- "panel"
80
- ]
81
- },
82
169
  "/components/table.html": {
83
170
  "name": "Components > Table",
84
171
  "terms": [
@@ -98,6 +185,46 @@
98
185
  "content"
99
186
  ]
100
187
  },
188
+ "/components/tags.html": {
189
+ "name": "Components > Tags",
190
+ "terms": [
191
+ "tags",
192
+ "labels",
193
+ "input",
194
+ "add",
195
+ "remove"
196
+ ]
197
+ },
198
+ "/components/theme-switcher.html": {
199
+ "name": "Components > ThemeSwitcher",
200
+ "terms": [
201
+ "theme",
202
+ "switcher",
203
+ "toggle",
204
+ "dark mode",
205
+ "light mode"
206
+ ]
207
+ },
208
+ "/components/timestamp.html": {
209
+ "name": "Components > Timestamp",
210
+ "terms": [
211
+ "timestamp",
212
+ "date",
213
+ "time",
214
+ "format",
215
+ "locale"
216
+ ]
217
+ },
218
+ "/components/toggle.html": {
219
+ "name": "Components > Toggle",
220
+ "terms": [
221
+ "toggle",
222
+ "switch",
223
+ "on",
224
+ "off",
225
+ "button"
226
+ ]
227
+ },
101
228
  "/styles/borders-spacing.html": {
102
229
  "name": "Styles > Borders and Spacing",
103
230
  "terms": [
@@ -109,6 +236,32 @@
109
236
  "radius"
110
237
  ]
111
238
  },
239
+ "/styles/buttons.html": {
240
+ "name": "Styles > Buttons",
241
+ "terms": [
242
+ "styles",
243
+ "buttons",
244
+ "button",
245
+ "input",
246
+ "submit",
247
+ "reset",
248
+ "link"
249
+ ]
250
+ },
251
+ "/styles/colors.html": {
252
+ "name": "Styles > Colors",
253
+ "terms": [
254
+ "styles",
255
+ "colors",
256
+ "background",
257
+ "text",
258
+ "primary",
259
+ "secondary",
260
+ "success",
261
+ "warning",
262
+ "danger"
263
+ ]
264
+ },
112
265
  "/styles/displays-layouts.html": {
113
266
  "name": "Styles > Displays and Layout",
114
267
  "terms": [
@@ -124,6 +277,29 @@
124
277
  "columns"
125
278
  ]
126
279
  },
280
+ "/styles/inputs.html": {
281
+ "name": "Styles > Inputs",
282
+ "terms": [
283
+ "styles",
284
+ "inputs",
285
+ "input",
286
+ "textarea",
287
+ "select",
288
+ "checkbox",
289
+ "radio"
290
+ ]
291
+ },
292
+ "/styles/tables.html": {
293
+ "name": "Styles > Tables",
294
+ "terms": [
295
+ "styles",
296
+ "tables",
297
+ "table",
298
+ "rows",
299
+ "columns",
300
+ "data"
301
+ ]
302
+ },
127
303
  "/styles/typography.html": {
128
304
  "name": "Styles > Typography",
129
305
  "terms": [
@@ -138,5 +314,87 @@
138
314
  "sup",
139
315
  "sub"
140
316
  ]
317
+ },
318
+ "/utils/clie.html": {
319
+ "name": "Styles > Typography",
320
+ "terms": [
321
+ "command",
322
+ "line",
323
+ "interface",
324
+ "cli",
325
+ "node",
326
+ "terminal",
327
+ "script",
328
+ "util"
329
+ ]
330
+ },
331
+ "/utils/cookie.html": {
332
+ "name": "Utils > Cookie",
333
+ "terms": [
334
+ "cookie",
335
+ "cookies",
336
+ "save",
337
+ "get",
338
+ "delete",
339
+ "browser",
340
+ "storage",
341
+ "util"
342
+ ]
343
+ },
344
+ "/utils/debounce.html": {
345
+ "name": "Utils > Debounce",
346
+ "terms": [
347
+ "debounce",
348
+ "delay",
349
+ "throttle",
350
+ "function",
351
+ "timeout",
352
+ "wait",
353
+ "util"
354
+ ]
355
+ },
356
+ "/utils/drag.html": {
357
+ "name": "Utils > Drag",
358
+ "terms": [
359
+ "drag",
360
+ "draggable",
361
+ "move",
362
+ "mouse",
363
+ "event",
364
+ "callback",
365
+ "util"
366
+ ]
367
+ },
368
+ "/utils/element.html": {
369
+ "name": "Utils > Element",
370
+ "terms": [
371
+ "element",
372
+ "dom",
373
+ "event",
374
+ "visibility",
375
+ "property",
376
+ "focus",
377
+ "util"
378
+ ]
379
+ },
380
+ "/utils/format-timestamp.html": {
381
+ "name": "Utils > Format Timestamp",
382
+ "terms": [
383
+ "format",
384
+ "timestamp",
385
+ "date",
386
+ "time",
387
+ "util"
388
+ ]
389
+ },
390
+ "/utils/fuzzy-match.html": {
391
+ "name": "Utils > Fuzzy Match",
392
+ "terms": [
393
+ "fuzzy",
394
+ "match",
395
+ "string",
396
+ "comparison",
397
+ "util"
398
+ ]
141
399
  }
142
400
  }
@@ -6,6 +6,12 @@
6
6
  <title>Template - Components - Kempo Docs - A Web Components Solution</title>
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
+ <script type="module">
10
+ import Icon from '../kempo/components/Icon.js';
11
+ import Search from '../kempo/components/Search.js';
12
+ Icon.pathToIcons = ['../icons'];
13
+ Search.searchDataUrl = '../search.json';
14
+ </script>
9
15
  </head>
10
16
  <body>
11
17
  <k-import src="../nav-1.inc.html"></k-import>
@@ -6,6 +6,12 @@
6
6
  <title>Borders and Spacing - Kempo - A Web Components Solution</title>
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
+ <script type="module">
10
+ import Icon from '../kempo/components/Icon.js';
11
+ import Search from '../kempo/components/Search.js';
12
+ Icon.pathToIcons = ['../icons'];
13
+ Search.searchDataUrl = '../search.json';
14
+ </script>
9
15
  </head>
10
16
  <body>
11
17
  <k-import src="../nav-1.inc.html"></k-import>
@@ -6,6 +6,12 @@
6
6
  <title>Buttons - Components - Kempo Docs - A Web Components Solution</title>
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
+ <script type="module">
10
+ import Icon from '../kempo/components/Icon.js';
11
+ import Search from '../kempo/components/Search.js';
12
+ Icon.pathToIcons = ['../icons'];
13
+ Search.searchDataUrl = '../search.json';
14
+ </script>
9
15
  </head>
10
16
  <body>
11
17
  <k-import src="../nav-1.inc.html"></k-import>
@@ -6,6 +6,12 @@
6
6
  <title>Colors - Components - Kempo Docs - A Web Components Solution</title>
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
+ <script type="module">
10
+ import Icon from '../kempo/components/Icon.js';
11
+ import Search from '../kempo/components/Search.js';
12
+ Icon.pathToIcons = ['../icons'];
13
+ Search.searchDataUrl = '../search.json';
14
+ </script>
9
15
  </head>
10
16
  <body>
11
17
  <k-import src="../nav-1.inc.html"></k-import>
@@ -6,6 +6,12 @@
6
6
  <title>Displays and Layouts - Kempo - A Web Components Solution</title>
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
+ <script type="module">
10
+ import Icon from '../kempo/components/Icon.js';
11
+ import Search from '../kempo/components/Search.js';
12
+ Icon.pathToIcons = ['../icons'];
13
+ Search.searchDataUrl = '../search.json';
14
+ </script>
9
15
  </head>
10
16
  <body>
11
17
  <k-import src="../nav-1.inc.html"></k-import>
@@ -5,6 +5,12 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>Template - Components - Kempo Docs - A Web Components Solution</title>
7
7
  <link rel="stylesheet" href="../kempo/kempo-vars.css" /><link rel="stylesheet" href="../kempo/kempo-styles.css" />
8
+ <script type="module">
9
+ import Icon from '../kempo/components/Icon.js';
10
+ import Search from '../kempo/components/Search.js';
11
+ Icon.pathToIcons = ['../icons'];
12
+ Search.searchDataUrl = '../search.json';
13
+ </script>
8
14
  <style>
9
15
  body {
10
16
  overflow: auto;
@@ -6,6 +6,12 @@
6
6
  <title>Inputs - Components - Kempo Docs - A Web Components Solution</title>
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
+ <script type="module">
10
+ import Icon from '../kempo/components/Icon.js';
11
+ import Search from '../kempo/components/Search.js';
12
+ Icon.pathToIcons = ['../icons'];
13
+ Search.searchDataUrl = '../search.json';
14
+ </script>
9
15
  </head>
10
16
  <body>
11
17
  <k-import src="../nav-1.inc.html"></k-import>
@@ -6,6 +6,12 @@
6
6
  <title>Table - Components - Kempo Docs - A Web Components Solution</title>
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
+ <script type="module">
10
+ import Icon from '../kempo/components/Icon.js';
11
+ import Search from '../kempo/components/Search.js';
12
+ Icon.pathToIcons = ['../icons'];
13
+ Search.searchDataUrl = '../search.json';
14
+ </script>
9
15
  </head>
10
16
  <body>
11
17
  <k-import src="../nav-1.inc.html"></k-import>
@@ -5,6 +5,12 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>Typography - Kempo - A Web Components Solution</title>
7
7
  <link rel="stylesheet" href="../kempo/kempo-vars.css" /><link rel="stylesheet" href="../kempo/kempo-styles.css" />
8
+ <script type="module">
9
+ import Icon from '../kempo/components/Icon.js';
10
+ import Search from '../kempo/components/Search.js';
11
+ Icon.pathToIcons = ['../icons'];
12
+ Search.searchDataUrl = '../search.json';
13
+ </script>
8
14
  </head>
9
15
  <body>
10
16
  <k-import src="../nav-1.inc.html"></k-import>
@@ -3,20 +3,29 @@
3
3
  <head>
4
4
  <meta charset="UTF-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Stacks - Components - Kempo Docs - A Web Components Solution</title>
6
+ <title>Template - Utils - Kempo Docs - A Web Components Solution</title>
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
+ <script type="module">
10
+ import Icon from '../kempo/components/Icon.js';
11
+ import Search from '../kempo/components/Search.js';
12
+ Icon.pathToIcons = ['../icons'];
13
+ Search.searchDataUrl = '../search.json';
14
+ </script>
9
15
  </head>
10
16
  <body>
11
17
  <k-import src="../nav-1.inc.html"></k-import>
12
- <h1 class="ta-center">Stacks</h1>
18
+ <h1 class="ta-center">Template</h1>
13
19
  <main>
14
20
  <details
15
21
  class="b r mb"
16
22
  >
17
23
  <summary class="p">Table of Contents</summary>
18
24
  <div class="m mt0 pl">
25
+ <h6>Examples</h6>
19
26
  <a href="#basicUsage">Basic Usage</a><br />
27
+
28
+ <h6 class="mt">JavaScript Reference</h6>
20
29
  <a href="#constructor">Constructor</a><br />
21
30
  <a href="#requirements">Requirements</a><br />
22
31
  <a href="#attributes">Attributes</a><br />
@@ -29,33 +38,6 @@
29
38
  <p>description</p>
30
39
 
31
40
  <h3 id="basicUsage"><a href="#basicUsage" class="no-link">Basic Usage</a></h3>
32
- <k-stacks
33
- style="
34
- height: 20rem;
35
- "
36
- >
37
- <k-stack-panel
38
- class="b r"
39
- stack="1"
40
- style="background: #633"
41
- >
42
- <p>Panel 1</p>
43
- </k-stack-panel>
44
- <k-stack-panel
45
- class="b r"
46
- stack="1"
47
- style="background: #363;"
48
- >
49
- <p>Panel 2</p>
50
- </k-stack-panel>
51
- <k-stack-panel
52
- class="b r"
53
- stack="1"
54
- style="background: #336;"
55
- >
56
- <p>Panel 3</p>
57
- </k-stack-panel>
58
- </k-stacks>
59
41
 
60
42
  <h2 id="jsRef">JavaScript Refrerence</h2>
61
43
 
@@ -89,6 +71,5 @@
89
71
 
90
72
  </main>
91
73
  <script type="module" src="../kempo/components/Import.js"></script>
92
- <script type="module" src="../kempo/components/Stacks.js"></script>
93
74
  </body>
94
75
  </html>
@@ -0,0 +1,84 @@
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>CLI - Utils - Kempo Docs - A Web Components Solution</title>
7
+ <link rel="stylesheet" href="../kempo/kempo-vars.css" />
8
+ <link rel="stylesheet" href="../kempo/kempo-styles.css" />
9
+ <link rel="stylesheet" href="../kempo/kempo-hljs.css" />
10
+ <script type="module">
11
+ import Icon from '../kempo/components/Icon.js';
12
+ import Search from '../kempo/components/Search.js';
13
+ Icon.pathToIcons = ['../icons'];
14
+ Search.searchDataUrl = '../search.json';
15
+ </script>
16
+ </head>
17
+ <body>
18
+ <k-import src="../nav-1.inc.html"></k-import>
19
+ <h1 class="ta-center">CLI</h1>
20
+ <main>
21
+ <details class="b r mb">
22
+ <summary class="p">Table of Contents</summary>
23
+ <div class="m mt0 pl">
24
+ <h6>Examples</h6>
25
+ <a href="#basicUsage">Basic Usage</a><br />
26
+
27
+ <h6 class="mt">JavaScript Reference</h6>
28
+ <a href="#getArgs">getArgs</a><br />
29
+ <a href="#runChildProcess">runChildProcess</a><br />
30
+ <a href="#runChildNodeProcess">runChildNodeProcess</a><br />
31
+ </div>
32
+ </details>
33
+
34
+ <h3>Description</h3>
35
+ <p>The CLI utility provides command-line interface functionalities for Kempo.</p>
36
+
37
+ <h3 id="basicUsage"><a href="#basicUsage" class="no-link">Basic Usage</a></h3>
38
+ <pre><code class="language-js">import { getArgs, runChildProcess, runChildNodeProcess } from '../src/utils/cli.js';
39
+
40
+ const args = getArgs();
41
+ console.log(args);
42
+
43
+ runChildProcess('echo Hello World').then(console.log).catch(console.error);
44
+
45
+ runChildNodeProcess('path/to/script.js', { debug: true }).then(console.log).catch(console.error);</code></pre>
46
+
47
+ <h2 id="jsRef">JavaScript Reference</h2>
48
+
49
+ <h3 id="getArgs"><a href="#getArgs" class="no-link">getArgs</a></h3>
50
+ <h5>
51
+ <code>getArgs(<i>shortMap</i> config)</code>
52
+ </h5>
53
+ <h4>Parameters</h4>
54
+ <h5><code>shortMap<i>: object</i></code></h5>
55
+ <p>Mapping of short argument names to long argument names.</p>
56
+ <h4>Returns</h4>
57
+ <p>An object containing the parsed arguments.</p>
58
+
59
+ <h3 id="runChildProcess"><a href="#runChildProcess" class="no-link">runChildProcess</a></h3>
60
+ <h5>
61
+ <code>runChildProcess(<i>command</i> string)</code>
62
+ </h5>
63
+ <h4>Parameters</h4>
64
+ <h5><code>command<i>: string</i></code></h5>
65
+ <p>The command to run in the child process.</p>
66
+ <h4>Returns</h4>
67
+ <p>A promise that resolves when the child process exits successfully, and rejects if it exits with an error.</p>
68
+
69
+ <h3 id="runChildNodeProcess"><a href="#runChildNodeProcess" class="no-link">runChildNodeProcess</a></h3>
70
+ <h5>
71
+ <code>runChildNodeProcess(<i>scriptPath</i> string, <i>argsObj</i> object)</code>
72
+ </h5>
73
+ <h4>Parameters</h4>
74
+ <h5><code>scriptPath<i>: string</i></code></h5>
75
+ <p>The path to the Node.js script to run.</p>
76
+ <h5><code>argsObj<i>: object</i></code></h5>
77
+ <p>An object containing the arguments to pass to the script.</p>
78
+ <h4>Returns</h4>
79
+ <p>A promise that resolves when the child process exits successfully, and rejects if it exits with an error.</p>
80
+
81
+ </main>
82
+ <script type="module" src="../kempo/components/Import.js"></script>
83
+ </body>
84
+ </html>