kempo 4.2.4 → 4.2.5

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 (861) hide show
  1. package/LICENSE.md +60 -0
  2. package/README.md +427 -0
  3. package/app-drizzle.config.js +14 -0
  4. package/app-public/.config.json +25 -0
  5. package/app-public/account/index.page.html +110 -0
  6. package/app-public/account/split2.template.html +36 -0
  7. package/app-public/default.template.html +24 -0
  8. package/app-public/forgot-password/index.page.html +79 -0
  9. package/app-public/index.page.html +16 -0
  10. package/app-public/init.js +2 -0
  11. package/app-public/kempo-global.global-disabled.html +0 -0
  12. package/app-public/kempo-global.global.html +6 -0
  13. package/app-public/login/index.page.html +51 -0
  14. package/app-public/manifest.json +87 -0
  15. package/app-public/media/hexagon.svg +22 -0
  16. package/app-public/media/icon-maskable.png +0 -0
  17. package/app-public/media/icon.svg +1 -0
  18. package/app-public/media/icon128.png +0 -0
  19. package/app-public/media/icon144.png +0 -0
  20. package/app-public/media/icon152.png +0 -0
  21. package/app-public/media/icon16-48.svg +19 -0
  22. package/app-public/media/icon16.png +0 -0
  23. package/app-public/media/icon192.png +0 -0
  24. package/app-public/media/icon256.png +0 -0
  25. package/app-public/media/icon32.png +0 -0
  26. package/app-public/media/icon384.png +0 -0
  27. package/app-public/media/icon48.png +0 -0
  28. package/app-public/media/icon512.png +0 -0
  29. package/app-public/media/icon64.png +0 -0
  30. package/app-public/media/icon72.png +0 -0
  31. package/app-public/media/icon96.png +0 -0
  32. package/app-public/media/kempo-fist.svg +21 -0
  33. package/app-public/media/nsx.jpg +0 -0
  34. package/app-public/nav.fragment.html +41 -0
  35. package/app-public/new-page.page.html +17 -0
  36. package/app-public/register/index.page.html +60 -0
  37. package/app-public/reset-password/[token]/index.html +123 -0
  38. package/app-public/reset-password/[token]/index.page.html +75 -0
  39. package/app-public/styles.css +1 -0
  40. package/app-public/test.page.html +20 -0
  41. package/app-public/verify-email/[token]/index.html +107 -0
  42. package/app-public/verify-email/[token]/index.page.html +59 -0
  43. package/app-public/verify-email/index.page.html +21 -0
  44. package/app-server/db/schema.js +19 -0
  45. package/bin/cli.js +461 -0
  46. package/dist/admin/accounts/groups/[name]/index.page.html +286 -0
  47. package/dist/admin/accounts/groups/index.page.html +171 -0
  48. package/dist/admin/accounts/permissions/index.page.html +193 -0
  49. package/dist/admin/accounts/users/[id]/index.page.html +314 -0
  50. package/dist/admin/accounts/users/index.page.html +160 -0
  51. package/dist/admin/components/AddGroupControl.js +6 -0
  52. package/dist/admin/components/AddGroupControl.js.map +1 -0
  53. package/dist/admin/components/ClearExpiredSessionsControl.js +6 -0
  54. package/dist/admin/components/ClearExpiredSessionsControl.js.map +1 -0
  55. package/dist/admin/components/FragmentEditor.js +101 -0
  56. package/dist/admin/components/FragmentEditor.js.map +1 -0
  57. package/dist/admin/components/GlobalContentEditor.js +85 -0
  58. package/dist/admin/components/GlobalContentEditor.js.map +1 -0
  59. package/dist/admin/components/GroupDeleteSelected.js +6 -0
  60. package/dist/admin/components/GroupDeleteSelected.js.map +1 -0
  61. package/dist/admin/components/GroupRemoveRecord.js +6 -0
  62. package/dist/admin/components/GroupRemoveRecord.js.map +1 -0
  63. package/dist/admin/components/Monaco.js +2 -0
  64. package/dist/admin/components/Monaco.js.map +1 -0
  65. package/dist/admin/components/PageEditor.js +138 -0
  66. package/dist/admin/components/PageEditor.js.map +1 -0
  67. package/dist/admin/components/TableRowDelete.js +4 -0
  68. package/dist/admin/components/TableRowDelete.js.map +1 -0
  69. package/dist/admin/components/TableRowLink.js +8 -0
  70. package/dist/admin/components/TableRowLink.js.map +1 -0
  71. package/dist/admin/components/TemplateEditor.js +125 -0
  72. package/dist/admin/components/TemplateEditor.js.map +1 -0
  73. package/dist/admin/components/ValueEditor.js +40 -0
  74. package/dist/admin/components/ValueEditor.js.map +1 -0
  75. package/dist/admin/components/tableControls/AddMember.js +6 -0
  76. package/dist/admin/components/tableControls/AddMember.js.map +1 -0
  77. package/dist/admin/components/tableControls/AddPermission.js +6 -0
  78. package/dist/admin/components/tableControls/AddPermission.js.map +1 -0
  79. package/dist/admin/components/tableControls/InstallExtension.js +6 -0
  80. package/dist/admin/components/tableControls/InstallExtension.js.map +1 -0
  81. package/dist/admin/components/tableControls/UninstallExtension.js +6 -0
  82. package/dist/admin/components/tableControls/UninstallExtension.js.map +1 -0
  83. package/dist/admin/content/fragments/edit/index.page.html +4 -0
  84. package/dist/admin/content/fragments/index.page.html +169 -0
  85. package/dist/admin/content/globals/edit/index.page.html +4 -0
  86. package/dist/admin/content/globals/index.page.html +152 -0
  87. package/dist/admin/content/pages/edit/index.page.html +4 -0
  88. package/dist/admin/content/pages/index.page.html +218 -0
  89. package/dist/admin/content/templates/edit/index.page.html +4 -0
  90. package/dist/admin/content/templates/index.page.html +193 -0
  91. package/dist/admin/default.template.html +9 -0
  92. package/dist/admin/extensions/index.page.html +32 -0
  93. package/dist/admin/icons/article.svg +1 -0
  94. package/dist/admin/icons/browse.svg +1 -0
  95. package/dist/admin/icons/cards_stack.svg +1 -0
  96. package/dist/admin/icons/content.svg +1 -0
  97. package/dist/admin/icons/docs.svg +1 -0
  98. package/dist/admin/icons/drive_file_move.svg +1 -0
  99. package/dist/admin/icons/extension.svg +1 -0
  100. package/dist/admin/icons/globe.svg +1 -0
  101. package/dist/admin/icons/group.svg +1 -0
  102. package/dist/admin/icons/lock.svg +1 -0
  103. package/dist/admin/icons/lock_add.svg +1 -0
  104. package/dist/admin/icons/manage-accounts.svg +1 -0
  105. package/dist/admin/icons/person.svg +1 -0
  106. package/dist/admin/icons/person_add.svg +1 -0
  107. package/dist/admin/icons/preview.svg +1 -0
  108. package/dist/admin/icons/save.svg +1 -0
  109. package/dist/admin/icons/segment.svg +1 -0
  110. package/dist/admin/icons/timer_off.svg +1 -0
  111. package/dist/admin/icons/web.svg +1 -0
  112. package/dist/admin/index.page.html +4 -0
  113. package/dist/admin/init.js +2 -0
  114. package/dist/admin/init.js.map +1 -0
  115. package/dist/admin/known-extensions.json +1 -0
  116. package/dist/admin/nav.fragment.html +20 -0
  117. package/dist/admin/settings/[owner]/[name]/index.page.html +260 -0
  118. package/dist/admin/settings/index.page.html +203 -0
  119. package/dist/kempo/api/admin-globals/DELETE.js +2 -0
  120. package/dist/kempo/api/admin-globals/DELETE.js.map +1 -0
  121. package/dist/kempo/api/admin-globals/GET.js +2 -0
  122. package/dist/kempo/api/admin-globals/GET.js.map +1 -0
  123. package/dist/kempo/api/admin-globals/POST.js +2 -0
  124. package/dist/kempo/api/admin-globals/POST.js.map +1 -0
  125. package/dist/kempo/api/admin-globals/[id]/GET.js +2 -0
  126. package/dist/kempo/api/admin-globals/[id]/GET.js.map +1 -0
  127. package/dist/kempo/api/admin-globals/[id]/PUT.js +2 -0
  128. package/dist/kempo/api/admin-globals/[id]/PUT.js.map +1 -0
  129. package/dist/kempo/api/admin-globals/[id]/disable/PUT.js +2 -0
  130. package/dist/kempo/api/admin-globals/[id]/disable/PUT.js.map +1 -0
  131. package/dist/kempo/api/admin-globals/[id]/enable/PUT.js +2 -0
  132. package/dist/kempo/api/admin-globals/[id]/enable/PUT.js.map +1 -0
  133. package/dist/kempo/api/auth/change-password/POST.js +2 -0
  134. package/dist/kempo/api/auth/change-password/POST.js.map +1 -0
  135. package/dist/kempo/api/auth/login/email/POST.js +2 -0
  136. package/dist/kempo/api/auth/login/email/POST.js.map +1 -0
  137. package/dist/kempo/api/auth/logout/POST.js +2 -0
  138. package/dist/kempo/api/auth/logout/POST.js.map +1 -0
  139. package/dist/kempo/api/auth/register/email/POST.js +2 -0
  140. package/dist/kempo/api/auth/register/email/POST.js.map +1 -0
  141. package/dist/kempo/api/auth/reset-password/POST.js +2 -0
  142. package/dist/kempo/api/auth/reset-password/POST.js.map +1 -0
  143. package/dist/kempo/api/auth/session/GET.js +2 -0
  144. package/dist/kempo/api/auth/session/GET.js.map +1 -0
  145. package/dist/kempo/api/auth/verify-email/POST.js +2 -0
  146. package/dist/kempo/api/auth/verify-email/POST.js.map +1 -0
  147. package/dist/kempo/api/extensions/DELETE.js +2 -0
  148. package/dist/kempo/api/extensions/DELETE.js.map +1 -0
  149. package/dist/kempo/api/extensions/GET.js +2 -0
  150. package/dist/kempo/api/extensions/GET.js.map +1 -0
  151. package/dist/kempo/api/extensions/POST.js +2 -0
  152. package/dist/kempo/api/extensions/POST.js.map +1 -0
  153. package/dist/kempo/api/extensions/[name]/disable/POST.js +2 -0
  154. package/dist/kempo/api/extensions/[name]/disable/POST.js.map +1 -0
  155. package/dist/kempo/api/extensions/[name]/enable/POST.js +2 -0
  156. package/dist/kempo/api/extensions/[name]/enable/POST.js.map +1 -0
  157. package/dist/kempo/api/extensions/[name]/update/POST.js +2 -0
  158. package/dist/kempo/api/extensions/[name]/update/POST.js.map +1 -0
  159. package/dist/kempo/api/extensions/[name]/update-check/GET.js +2 -0
  160. package/dist/kempo/api/extensions/[name]/update-check/GET.js.map +1 -0
  161. package/dist/kempo/api/extensions/available/GET.js +2 -0
  162. package/dist/kempo/api/extensions/available/GET.js.map +1 -0
  163. package/dist/kempo/api/extensions/known/GET.js +2 -0
  164. package/dist/kempo/api/extensions/known/GET.js.map +1 -0
  165. package/dist/kempo/api/forgot-password/POST.js +2 -0
  166. package/dist/kempo/api/forgot-password/POST.js.map +1 -0
  167. package/dist/kempo/api/fragments/DELETE.js +2 -0
  168. package/dist/kempo/api/fragments/DELETE.js.map +1 -0
  169. package/dist/kempo/api/fragments/GET.js +2 -0
  170. package/dist/kempo/api/fragments/GET.js.map +1 -0
  171. package/dist/kempo/api/fragments/POST.js +2 -0
  172. package/dist/kempo/api/fragments/POST.js.map +1 -0
  173. package/dist/kempo/api/fragments/disable/PUT.js +2 -0
  174. package/dist/kempo/api/fragments/disable/PUT.js.map +1 -0
  175. package/dist/kempo/api/fragments/enable/PUT.js +2 -0
  176. package/dist/kempo/api/fragments/enable/PUT.js.map +1 -0
  177. package/dist/kempo/api/fragments/file/GET.js +2 -0
  178. package/dist/kempo/api/fragments/file/GET.js.map +1 -0
  179. package/dist/kempo/api/fragments/file/PATCH.js +2 -0
  180. package/dist/kempo/api/fragments/file/PATCH.js.map +1 -0
  181. package/dist/kempo/api/fragments/file/PUT.js +2 -0
  182. package/dist/kempo/api/fragments/file/PUT.js.map +1 -0
  183. package/dist/kempo/api/globals/DELETE.js +2 -0
  184. package/dist/kempo/api/globals/DELETE.js.map +1 -0
  185. package/dist/kempo/api/globals/GET.js +2 -0
  186. package/dist/kempo/api/globals/GET.js.map +1 -0
  187. package/dist/kempo/api/globals/POST.js +2 -0
  188. package/dist/kempo/api/globals/POST.js.map +1 -0
  189. package/dist/kempo/api/globals/disable/PUT.js +2 -0
  190. package/dist/kempo/api/globals/disable/PUT.js.map +1 -0
  191. package/dist/kempo/api/globals/enable/PUT.js +2 -0
  192. package/dist/kempo/api/globals/enable/PUT.js.map +1 -0
  193. package/dist/kempo/api/globals/entry/GET.js +2 -0
  194. package/dist/kempo/api/globals/entry/GET.js.map +1 -0
  195. package/dist/kempo/api/globals/entry/PUT.js +2 -0
  196. package/dist/kempo/api/globals/entry/PUT.js.map +1 -0
  197. package/dist/kempo/api/groups/DELETE.js +2 -0
  198. package/dist/kempo/api/groups/DELETE.js.map +1 -0
  199. package/dist/kempo/api/groups/GET.js +2 -0
  200. package/dist/kempo/api/groups/GET.js.map +1 -0
  201. package/dist/kempo/api/groups/PATCH.js +2 -0
  202. package/dist/kempo/api/groups/PATCH.js.map +1 -0
  203. package/dist/kempo/api/groups/POST.js +2 -0
  204. package/dist/kempo/api/groups/POST.js.map +1 -0
  205. package/dist/kempo/api/groups/[name]/GET.js +2 -0
  206. package/dist/kempo/api/groups/[name]/GET.js.map +1 -0
  207. package/dist/kempo/api/groups/[name]/members/DELETE.js +2 -0
  208. package/dist/kempo/api/groups/[name]/members/DELETE.js.map +1 -0
  209. package/dist/kempo/api/groups/[name]/members/GET.js +2 -0
  210. package/dist/kempo/api/groups/[name]/members/GET.js.map +1 -0
  211. package/dist/kempo/api/groups/[name]/members/POST.js +2 -0
  212. package/dist/kempo/api/groups/[name]/members/POST.js.map +1 -0
  213. package/dist/kempo/api/groups/[name]/permissions/DELETE.js +2 -0
  214. package/dist/kempo/api/groups/[name]/permissions/DELETE.js.map +1 -0
  215. package/dist/kempo/api/groups/[name]/permissions/GET.js +2 -0
  216. package/dist/kempo/api/groups/[name]/permissions/GET.js.map +1 -0
  217. package/dist/kempo/api/groups/[name]/permissions/POST.js +2 -0
  218. package/dist/kempo/api/groups/[name]/permissions/POST.js.map +1 -0
  219. package/dist/kempo/api/pages/DELETE.js +2 -0
  220. package/dist/kempo/api/pages/DELETE.js.map +1 -0
  221. package/dist/kempo/api/pages/GET.js +2 -0
  222. package/dist/kempo/api/pages/GET.js.map +1 -0
  223. package/dist/kempo/api/pages/POST.js +2 -0
  224. package/dist/kempo/api/pages/POST.js.map +1 -0
  225. package/dist/kempo/api/pages/directories/GET.js +2 -0
  226. package/dist/kempo/api/pages/directories/GET.js.map +1 -0
  227. package/dist/kempo/api/pages/disable/PUT.js +2 -0
  228. package/dist/kempo/api/pages/disable/PUT.js.map +1 -0
  229. package/dist/kempo/api/pages/enable/PUT.js +2 -0
  230. package/dist/kempo/api/pages/enable/PUT.js.map +1 -0
  231. package/dist/kempo/api/pages/file/GET.js +2 -0
  232. package/dist/kempo/api/pages/file/GET.js.map +1 -0
  233. package/dist/kempo/api/pages/file/PATCH.js +2 -0
  234. package/dist/kempo/api/pages/file/PATCH.js.map +1 -0
  235. package/dist/kempo/api/pages/file/PUT.js +2 -0
  236. package/dist/kempo/api/pages/file/PUT.js.map +1 -0
  237. package/dist/kempo/api/pages/templates/GET.js +2 -0
  238. package/dist/kempo/api/pages/templates/GET.js.map +1 -0
  239. package/dist/kempo/api/permissions/DELETE.js +2 -0
  240. package/dist/kempo/api/permissions/DELETE.js.map +1 -0
  241. package/dist/kempo/api/permissions/GET.js +2 -0
  242. package/dist/kempo/api/permissions/GET.js.map +1 -0
  243. package/dist/kempo/api/permissions/PATCH.js +2 -0
  244. package/dist/kempo/api/permissions/PATCH.js.map +1 -0
  245. package/dist/kempo/api/permissions/POST.js +2 -0
  246. package/dist/kempo/api/permissions/POST.js.map +1 -0
  247. package/dist/kempo/api/settings/[owner]/GET.js +2 -0
  248. package/dist/kempo/api/settings/[owner]/GET.js.map +1 -0
  249. package/dist/kempo/api/settings/[owner]/[name]/DELETE.js +2 -0
  250. package/dist/kempo/api/settings/[owner]/[name]/DELETE.js.map +1 -0
  251. package/dist/kempo/api/settings/[owner]/[name]/GET.js +2 -0
  252. package/dist/kempo/api/settings/[owner]/[name]/GET.js.map +1 -0
  253. package/dist/kempo/api/settings/[owner]/[name]/POST.js +2 -0
  254. package/dist/kempo/api/settings/[owner]/[name]/POST.js.map +1 -0
  255. package/dist/kempo/api/settings/public/GET.js +2 -0
  256. package/dist/kempo/api/settings/public/GET.js.map +1 -0
  257. package/dist/kempo/api/templates/DELETE.js +2 -0
  258. package/dist/kempo/api/templates/DELETE.js.map +1 -0
  259. package/dist/kempo/api/templates/GET.js +2 -0
  260. package/dist/kempo/api/templates/GET.js.map +1 -0
  261. package/dist/kempo/api/templates/POST.js +2 -0
  262. package/dist/kempo/api/templates/POST.js.map +1 -0
  263. package/dist/kempo/api/templates/disable/PUT.js +2 -0
  264. package/dist/kempo/api/templates/disable/PUT.js.map +1 -0
  265. package/dist/kempo/api/templates/enable/PUT.js +2 -0
  266. package/dist/kempo/api/templates/enable/PUT.js.map +1 -0
  267. package/dist/kempo/api/templates/file/GET.js +2 -0
  268. package/dist/kempo/api/templates/file/GET.js.map +1 -0
  269. package/dist/kempo/api/templates/file/PATCH.js +2 -0
  270. package/dist/kempo/api/templates/file/PATCH.js.map +1 -0
  271. package/dist/kempo/api/templates/file/PUT.js +2 -0
  272. package/dist/kempo/api/templates/file/PUT.js.map +1 -0
  273. package/dist/kempo/api/user/DELETE.js +2 -0
  274. package/dist/kempo/api/user/DELETE.js.map +1 -0
  275. package/dist/kempo/api/user/GET.js +2 -0
  276. package/dist/kempo/api/user/GET.js.map +1 -0
  277. package/dist/kempo/api/user/PATCH.js +2 -0
  278. package/dist/kempo/api/user/PATCH.js.map +1 -0
  279. package/dist/kempo/api/user/[userid]/GET.js +2 -0
  280. package/dist/kempo/api/user/[userid]/GET.js.map +1 -0
  281. package/dist/kempo/api/user/[userid]/groups/DELETE.js +2 -0
  282. package/dist/kempo/api/user/[userid]/groups/DELETE.js.map +1 -0
  283. package/dist/kempo/api/user/[userid]/groups/GET.js +2 -0
  284. package/dist/kempo/api/user/[userid]/groups/GET.js.map +1 -0
  285. package/dist/kempo/api/user/[userid]/groups/POST.js +2 -0
  286. package/dist/kempo/api/user/[userid]/groups/POST.js.map +1 -0
  287. package/dist/kempo/api/user/[userid]/permissions/GET.js +2 -0
  288. package/dist/kempo/api/user/[userid]/permissions/GET.js.map +1 -0
  289. package/dist/kempo/api/user/[userid]/permissions/all/GET.js +2 -0
  290. package/dist/kempo/api/user/[userid]/permissions/all/GET.js.map +1 -0
  291. package/dist/kempo/api/user/[userid]/permissions/list/GET.js +2 -0
  292. package/dist/kempo/api/user/[userid]/permissions/list/GET.js.map +1 -0
  293. package/dist/kempo/api/user/[userid]/permissions/some/GET.js +2 -0
  294. package/dist/kempo/api/user/[userid]/permissions/some/GET.js.map +1 -0
  295. package/dist/kempo/api/user/[userid]/sessions/DELETE.js +2 -0
  296. package/dist/kempo/api/user/[userid]/sessions/DELETE.js.map +1 -0
  297. package/dist/kempo/api/user/[userid]/sessions/GET.js +2 -0
  298. package/dist/kempo/api/user/[userid]/sessions/GET.js.map +1 -0
  299. package/dist/kempo/api/user/[userid]/sessions/expired/DELETE.js +2 -0
  300. package/dist/kempo/api/user/[userid]/sessions/expired/DELETE.js.map +1 -0
  301. package/dist/kempo/api/user/create/POST.js +2 -0
  302. package/dist/kempo/api/user/create/POST.js.map +1 -0
  303. package/dist/kempo/api/user/search/GET.js +2 -0
  304. package/dist/kempo/api/user/search/GET.js.map +1 -0
  305. package/dist/kempo/components/LogoutBtn.js +2 -0
  306. package/dist/kempo/components/LogoutBtn.js.map +1 -0
  307. package/dist/kempo/components/Menu.js +17 -0
  308. package/dist/kempo/components/Menu.js.map +1 -0
  309. package/dist/kempo/components/Permission.js +2 -0
  310. package/dist/kempo/components/Permission.js.map +1 -0
  311. package/dist/kempo/components/Role.js +2 -0
  312. package/dist/kempo/components/Role.js.map +1 -0
  313. package/dist/kempo/components/UserCreatedAt.js +2 -0
  314. package/dist/kempo/components/UserCreatedAt.js.map +1 -0
  315. package/dist/kempo/components/UserEmail.js +2 -0
  316. package/dist/kempo/components/UserEmail.js.map +1 -0
  317. package/dist/kempo/components/UserEmailVerified.js +2 -0
  318. package/dist/kempo/components/UserEmailVerified.js.map +1 -0
  319. package/dist/kempo/components/UserName.js +2 -0
  320. package/dist/kempo/components/UserName.js.map +1 -0
  321. package/dist/kempo/fetch.js +2 -0
  322. package/dist/kempo/fetch.js.map +1 -0
  323. package/dist/kempo/icons/format_indent_decrease.svg +1 -0
  324. package/dist/kempo/icons/format_indent_increase.svg +1 -0
  325. package/dist/kempo/icons/format_quote.svg +1 -0
  326. package/dist/kempo/icons/redo.svg +1 -0
  327. package/dist/kempo/icons/restart_alt.svg +1 -0
  328. package/dist/kempo/icons/subscript.svg +1 -0
  329. package/dist/kempo/icons/superscript.svg +1 -0
  330. package/dist/kempo/icons/undo.svg +1 -0
  331. package/dist/kempo/sdk.js +2 -0
  332. package/dist/kempo/sdk.js.map +1 -0
  333. package/middleware/extension-scope-router.js +255 -0
  334. package/middleware/kempo-auth.js +26 -0
  335. package/package.json +46 -19
  336. package/scripts/init-db.js +211 -0
  337. package/server/db/index.js +24 -0
  338. package/server/db/migrations/0000_initial.sql +91 -0
  339. package/server/db/migrations/0001_soft_master_chief.sql +1 -0
  340. package/server/db/migrations/meta/0000_snapshot.json +588 -0
  341. package/server/db/migrations/meta/0001_snapshot.json +594 -0
  342. package/server/db/migrations/meta/_journal.json +20 -0
  343. package/server/db/schema.js +173 -0
  344. package/server/sdk.js +192 -0
  345. package/server/utils/admin-global-content/createAdminGlobalContent.js +43 -0
  346. package/server/utils/admin-global-content/deleteAdminGlobalContent.js +34 -0
  347. package/server/utils/admin-global-content/deleteAdminGlobalContentByOwner.js +26 -0
  348. package/server/utils/admin-global-content/disableAdminGlobalContent.js +33 -0
  349. package/server/utils/admin-global-content/enableAdminGlobalContent.js +33 -0
  350. package/server/utils/admin-global-content/getAdminGlobalContent.js +28 -0
  351. package/server/utils/admin-global-content/helpers.js +47 -0
  352. package/server/utils/admin-global-content/listAdminGlobalContent.js +20 -0
  353. package/server/utils/admin-global-content/updateAdminGlobalContent.js +41 -0
  354. package/server/utils/auth/changePassword.js +27 -0
  355. package/server/utils/auth/getSession.js +35 -0
  356. package/server/utils/auth/loginEmail.js +66 -0
  357. package/server/utils/auth/logout.js +16 -0
  358. package/server/utils/auth/registerEmail.js +105 -0
  359. package/server/utils/auth/requestPasswordReset.js +62 -0
  360. package/server/utils/auth/resetPassword.js +58 -0
  361. package/server/utils/auth/sendVerificationEmail.js +57 -0
  362. package/server/utils/auth/verifyEmail.js +46 -0
  363. package/server/utils/email/sendEmail.js +42 -0
  364. package/server/utils/email/sendEmailFromTemplate.js +45 -0
  365. package/server/utils/extensions/checkExtensionUpdate.js +56 -0
  366. package/server/utils/extensions/createTablesFromSchema.js +57 -0
  367. package/server/utils/extensions/disableExtension.js +26 -0
  368. package/server/utils/extensions/enableExtension.js +26 -0
  369. package/server/utils/extensions/getExtension.js +34 -0
  370. package/server/utils/extensions/installExtension.js +134 -0
  371. package/server/utils/extensions/listExtensions.js +36 -0
  372. package/server/utils/extensions/scopeCache.js +18 -0
  373. package/server/utils/extensions/uninstallExtension.js +88 -0
  374. package/server/utils/extensions/updateExtension.js +159 -0
  375. package/server/utils/fragments/createFragment.js +57 -0
  376. package/server/utils/fragments/deleteFragment.js +35 -0
  377. package/server/utils/fragments/disableFragment.js +37 -0
  378. package/server/utils/fragments/enableFragment.js +30 -0
  379. package/server/utils/fragments/getFragment.js +36 -0
  380. package/server/utils/fragments/listFragments.js +32 -0
  381. package/server/utils/fragments/moveFragment.js +54 -0
  382. package/server/utils/fragments/updateFragment.js +58 -0
  383. package/server/utils/fs/parseFrontmatter.js +13 -0
  384. package/server/utils/fs/scanDir.js +26 -0
  385. package/server/utils/global-content/createGlobalContent.js +58 -0
  386. package/server/utils/global-content/deleteGlobalContent.js +52 -0
  387. package/server/utils/global-content/disableGlobalContent.js +57 -0
  388. package/server/utils/global-content/enableGlobalContent.js +53 -0
  389. package/server/utils/global-content/getGlobalContent.js +28 -0
  390. package/server/utils/global-content/helpers.js +33 -0
  391. package/server/utils/global-content/listGlobalContent.js +24 -0
  392. package/server/utils/global-content/updateGlobalContent.js +56 -0
  393. package/server/utils/groups/addUserToGroup.js +46 -0
  394. package/server/utils/groups/createGroup.js +32 -0
  395. package/server/utils/groups/deleteGroup.js +29 -0
  396. package/server/utils/groups/getGroup.js +25 -0
  397. package/server/utils/groups/getGroupMembers.js +33 -0
  398. package/server/utils/groups/listGroups.js +21 -0
  399. package/server/utils/groups/removeUserFromGroup.js +31 -0
  400. package/server/utils/groups/updateGroup.js +54 -0
  401. package/server/utils/hooks/createHook.js +29 -0
  402. package/server/utils/hooks/deleteHook.js +19 -0
  403. package/server/utils/hooks/getHook.js +19 -0
  404. package/server/utils/hooks/listHooks.js +30 -0
  405. package/server/utils/hooks/triggerHook.js +61 -0
  406. package/server/utils/hooks/updateHook.js +27 -0
  407. package/server/utils/pages/createPage.js +60 -0
  408. package/server/utils/pages/deletePage.js +35 -0
  409. package/server/utils/pages/disablePage.js +37 -0
  410. package/server/utils/pages/enablePage.js +30 -0
  411. package/server/utils/pages/getPage.js +53 -0
  412. package/server/utils/pages/listDirectories.js +18 -0
  413. package/server/utils/pages/listPages.js +40 -0
  414. package/server/utils/pages/listTemplates.js +52 -0
  415. package/server/utils/pages/movePage.js +54 -0
  416. package/server/utils/pages/updatePage.js +74 -0
  417. package/server/utils/permissions/addPermissionToGroup.js +43 -0
  418. package/server/utils/permissions/createPermission.js +43 -0
  419. package/server/utils/permissions/currentUserHasAllPermissions.js +24 -0
  420. package/server/utils/permissions/currentUserHasPermission.js +24 -0
  421. package/server/utils/permissions/currentUserHasSomePermissions.js +24 -0
  422. package/server/utils/permissions/deletePermission.js +29 -0
  423. package/server/utils/permissions/getAllPermissions.js +21 -0
  424. package/server/utils/permissions/getPermissionsForGroups.js +26 -0
  425. package/server/utils/permissions/getUserGroups.js +31 -0
  426. package/server/utils/permissions/getUserPermission.js +30 -0
  427. package/server/utils/permissions/getUserPermissions.js +16 -0
  428. package/server/utils/permissions/removePermissionFromGroup.js +31 -0
  429. package/server/utils/permissions/updatePermission.js +33 -0
  430. package/server/utils/permissions/userHasAllPermissions.js +31 -0
  431. package/server/utils/permissions/userHasPermission.js +13 -0
  432. package/server/utils/permissions/userHasSomePermissions.js +31 -0
  433. package/server/utils/sessions/createSession.js +36 -0
  434. package/server/utils/sessions/deleteExpiredUserSessions.js +22 -0
  435. package/server/utils/sessions/deleteSession.js +16 -0
  436. package/server/utils/sessions/deleteUserSessions.js +16 -0
  437. package/server/utils/sessions/getSessionById.js +21 -0
  438. package/server/utils/sessions/getSessionByToken.js +21 -0
  439. package/server/utils/sessions/getSessions.js +19 -0
  440. package/server/utils/sessions/getUserSessions.js +30 -0
  441. package/server/utils/settings/deleteSetting.js +24 -0
  442. package/server/utils/settings/getPublicSettings.js +22 -0
  443. package/server/utils/settings/getSetting.js +25 -0
  444. package/server/utils/settings/getSettingWithMetadata.js +33 -0
  445. package/server/utils/settings/getSettingsByOwner.js +23 -0
  446. package/server/utils/settings/helpers.js +29 -0
  447. package/server/utils/settings/listSettings.js +25 -0
  448. package/server/utils/settings/setSetting.js +49 -0
  449. package/server/utils/templates/createTemplate.js +71 -0
  450. package/server/utils/templates/deleteTemplate.js +35 -0
  451. package/server/utils/templates/disableTemplate.js +37 -0
  452. package/server/utils/templates/enableTemplate.js +30 -0
  453. package/server/utils/templates/getTemplate.js +30 -0
  454. package/server/utils/templates/moveTemplate.js +54 -0
  455. package/server/utils/templates/updateTemplate.js +46 -0
  456. package/server/utils/users/createUser.js +60 -0
  457. package/server/utils/users/deleteUser.js +19 -0
  458. package/server/utils/users/findUsersByEmail.js +35 -0
  459. package/server/utils/users/findUsersByName.js +35 -0
  460. package/server/utils/users/getUserByEmail.js +26 -0
  461. package/server/utils/users/getUserById.js +27 -0
  462. package/server/utils/users/getUsers.js +26 -0
  463. package/server/utils/users/searchUsers.js +53 -0
  464. package/server/utils/users/updateUser.js +38 -0
  465. package/.gitattributes +0 -2
  466. package/LICENSE +0 -21
  467. package/dist/components/Accordion.js +0 -1
  468. package/dist/components/Card.js +0 -1
  469. package/dist/components/Collapsible.js +0 -1
  470. package/dist/components/Component.js +0 -1
  471. package/dist/components/ContentSlider.js +0 -1
  472. package/dist/components/Dialog.js +0 -1
  473. package/dist/components/DirectoryViewer.js +0 -1
  474. package/dist/components/FocusCapture.js +0 -1
  475. package/dist/components/Icon.js +0 -1
  476. package/dist/components/Import.js +0 -1
  477. package/dist/components/LazyComponent.js +0 -1
  478. package/dist/components/PersistantCollapsible.js +0 -1
  479. package/dist/components/PhotoViewer.js +0 -1
  480. package/dist/components/ReactiveComponent.js +0 -1
  481. package/dist/components/ReactiveLazyComponent.js +0 -1
  482. package/dist/components/Resize.js +0 -1
  483. package/dist/components/Search.js +0 -1
  484. package/dist/components/ShowMore.js +0 -1
  485. package/dist/components/SideMenu.js +0 -1
  486. package/dist/components/Sortable.js +0 -1
  487. package/dist/components/Split.js +0 -1
  488. package/dist/components/Stacks.js +0 -1
  489. package/dist/components/Table.js +0 -1
  490. package/dist/components/Tabs.js +0 -1
  491. package/dist/components/Tags.js +0 -1
  492. package/dist/components/ThemeSwitcher.js +0 -1
  493. package/dist/components/Timestamp.js +0 -1
  494. package/dist/components/Toast.js +0 -1
  495. package/dist/components/Toggle.js +0 -1
  496. package/dist/components/tableControls/DeleteRecord.js +0 -1
  497. package/dist/components/tableControls/DeleteSelected.js +0 -1
  498. package/dist/components/tableControls/Edit.js +0 -1
  499. package/dist/components/tableControls/ExportCSV.js +0 -1
  500. package/dist/components/tableControls/ExportJson.js +0 -1
  501. package/dist/components/tableControls/FieldSortHide.js +0 -1
  502. package/dist/components/tableControls/Filters.js +0 -1
  503. package/dist/components/tableControls/FirstPage.js +0 -1
  504. package/dist/components/tableControls/HiddenCount.js +0 -1
  505. package/dist/components/tableControls/Hide.js +0 -1
  506. package/dist/components/tableControls/LastPage.js +0 -1
  507. package/dist/components/tableControls/NextPage.js +0 -1
  508. package/dist/components/tableControls/PageSelect.js +0 -1
  509. package/dist/components/tableControls/PageSize.js +0 -1
  510. package/dist/components/tableControls/PrevPage.js +0 -1
  511. package/dist/components/tableControls/Search.js +0 -1
  512. package/dist/components/tableControls/SelectCount.js +0 -1
  513. package/dist/components/tableControls/ShowAll.js +0 -1
  514. package/dist/components/tableControls/ShowHideFields.js +0 -1
  515. package/dist/components/tableControls/TableControl.js +0 -1
  516. package/dist/kempo-hljs.css +0 -1
  517. package/dist/kempo-styles.css +0 -1
  518. package/dist/kempo-vars.css +0 -1
  519. package/dist/utils/Server.js +0 -1
  520. package/dist/utils/cli.js +0 -1
  521. package/dist/utils/cookie.js +0 -1
  522. package/dist/utils/debounce.js +0 -1
  523. package/dist/utils/drag.js +0 -1
  524. package/dist/utils/element.js +0 -1
  525. package/dist/utils/files.js +0 -1
  526. package/dist/utils/formatTimestamp.js +0 -1
  527. package/dist/utils/fs-utils.js +0 -1
  528. package/dist/utils/fuzzyMatch.js +0 -1
  529. package/dist/utils/getPreferredTheme.js +0 -1
  530. package/dist/utils/loadCss.js +0 -1
  531. package/dist/utils/loadScript.js +0 -1
  532. package/dist/utils/minify.js +0 -1
  533. package/dist/utils/object.js +0 -1
  534. package/dist/utils/raf.js +0 -1
  535. package/dist/utils/string.js +0 -1
  536. package/dist/utils/toFunction.js +0 -1
  537. package/dist/utils/type.js +0 -1
  538. package/dist/utils/waitFrames.js +0 -1
  539. package/dist/utils/watchDirectoryHandle.js +0 -1
  540. package/dist/utils/watchWindowSize.js +0 -1
  541. package/docs/components/_template.html +0 -77
  542. package/docs/components/accordion.html +0 -124
  543. package/docs/components/card.html +0 -93
  544. package/docs/components/component.html +0 -92
  545. package/docs/components/content-slider.html +0 -195
  546. package/docs/components/dialog.html +0 -247
  547. package/docs/components/directory-viewer.html +0 -92
  548. package/docs/components/focus-capture.html +0 -70
  549. package/docs/components/icon.html +0 -160
  550. package/docs/components/import.html +0 -79
  551. package/docs/components/lazy-component.html +0 -86
  552. package/docs/components/reactive-component.html +0 -71
  553. package/docs/components/reactive-lazy-component.html +0 -71
  554. package/docs/components/resize.html +0 -154
  555. package/docs/components/search.html +0 -104
  556. package/docs/components/show-more.html +0 -125
  557. package/docs/components/side-menu.html +0 -148
  558. package/docs/components/sortable.html +0 -98
  559. package/docs/components/split.html +0 -128
  560. package/docs/components/table.html +0 -314
  561. package/docs/components/tableControls.html +0 -79
  562. package/docs/components/tableCustomFields.html +0 -115
  563. package/docs/components/tableFetchRecords.html +0 -116
  564. package/docs/components/tableFieldSortHide.html +0 -77
  565. package/docs/components/tablePagination.html +0 -102
  566. package/docs/components/tableRecordEditing.html +0 -146
  567. package/docs/components/tableRecordFiltering.html +0 -77
  568. package/docs/components/tableRecordHiding.html +0 -82
  569. package/docs/components/tableRecordSearching.html +0 -77
  570. package/docs/components/tableRecordSelection.html +0 -77
  571. package/docs/components/tableRowControls.html +0 -80
  572. package/docs/components/tableSorting.html +0 -75
  573. package/docs/components/tabs.html +0 -165
  574. package/docs/components/tags.html +0 -96
  575. package/docs/components/theme-switcher.html +0 -76
  576. package/docs/components/timestamp.html +0 -88
  577. package/docs/components/toast.html +0 -330
  578. package/docs/components/toggle.html +0 -157
  579. package/docs/icons/add.svg +0 -1
  580. package/docs/icons/arrow-back.svg +0 -1
  581. package/docs/icons/arrow-down-double.svg +0 -1
  582. package/docs/icons/arrow-down.svg +0 -1
  583. package/docs/icons/arrow-forward.svg +0 -1
  584. package/docs/icons/arrow-up-double.svg +0 -1
  585. package/docs/icons/arrow-up.svg +0 -1
  586. package/docs/icons/cards.svg +0 -1
  587. package/docs/icons/check.svg +0 -1
  588. package/docs/icons/chevron-left.svg +0 -1
  589. package/docs/icons/chevron-right.svg +0 -1
  590. package/docs/icons/close.svg +0 -2
  591. package/docs/icons/compare.svg +0 -1
  592. package/docs/icons/delete.svg +0 -1
  593. package/docs/icons/drag-handle.svg +0 -1
  594. package/docs/icons/drawing2.svg +0 -124
  595. package/docs/icons/edit.svg +0 -1
  596. package/docs/icons/error.svg +0 -1
  597. package/docs/icons/export-file.svg +0 -1
  598. package/docs/icons/file-text.svg +0 -1
  599. package/docs/icons/file.svg +0 -1
  600. package/docs/icons/filter-off.svg +0 -1
  601. package/docs/icons/filter.svg +0 -1
  602. package/docs/icons/first.svg +0 -1
  603. package/docs/icons/folder-clear.svg +0 -1
  604. package/docs/icons/folder-create.svg +0 -1
  605. package/docs/icons/folder-open.svg +0 -1
  606. package/docs/icons/folder.svg +0 -1
  607. package/docs/icons/hide.svg +0 -1
  608. package/docs/icons/image.svg +0 -1
  609. package/docs/icons/label-add.svg +0 -1
  610. package/docs/icons/label.svg +0 -1
  611. package/docs/icons/last.svg +0 -1
  612. package/docs/icons/menu.svg +0 -1
  613. package/docs/icons/mode-auto.svg +0 -1
  614. package/docs/icons/mode-dark.svg +0 -1
  615. package/docs/icons/mode-light.svg +0 -1
  616. package/docs/icons/open-in-browser.svg +0 -1
  617. package/docs/icons/pause.svg +0 -1
  618. package/docs/icons/play.svg +0 -1
  619. package/docs/icons/refresh.svg +0 -1
  620. package/docs/icons/remove.svg +0 -1
  621. package/docs/icons/save.svg +0 -1
  622. package/docs/icons/search.svg +0 -1
  623. package/docs/icons/settings.svg +0 -1
  624. package/docs/icons/storage.svg +0 -1
  625. package/docs/icons/table-visibility.svg +0 -1
  626. package/docs/icons/tag.svg +0 -1
  627. package/docs/icons/tools.svg +0 -1
  628. package/docs/icons/trash-x.svg +0 -1
  629. package/docs/icons/warning.svg +0 -1
  630. package/docs/index.html +0 -21
  631. package/docs/js/nav.inc.js +0 -4
  632. package/docs/kempo/components/Accordion.js +0 -1
  633. package/docs/kempo/components/Card.js +0 -1
  634. package/docs/kempo/components/Collapsible.js +0 -1
  635. package/docs/kempo/components/Component.js +0 -1
  636. package/docs/kempo/components/ContentSlider.js +0 -1
  637. package/docs/kempo/components/Dialog.js +0 -1
  638. package/docs/kempo/components/DirectoryViewer.js +0 -1
  639. package/docs/kempo/components/FocusCapture.js +0 -1
  640. package/docs/kempo/components/Icon.js +0 -1
  641. package/docs/kempo/components/Import.js +0 -1
  642. package/docs/kempo/components/LazyComponent.js +0 -1
  643. package/docs/kempo/components/PersistantCollapsible.js +0 -1
  644. package/docs/kempo/components/PhotoViewer.js +0 -1
  645. package/docs/kempo/components/ReactiveComponent.js +0 -1
  646. package/docs/kempo/components/ReactiveLazyComponent.js +0 -1
  647. package/docs/kempo/components/Resize.js +0 -1
  648. package/docs/kempo/components/Search.js +0 -1
  649. package/docs/kempo/components/ShowMore.js +0 -1
  650. package/docs/kempo/components/SideMenu.js +0 -1
  651. package/docs/kempo/components/Sortable.js +0 -1
  652. package/docs/kempo/components/Split.js +0 -1
  653. package/docs/kempo/components/Stacks.js +0 -1
  654. package/docs/kempo/components/Table.js +0 -1
  655. package/docs/kempo/components/Tabs.js +0 -1
  656. package/docs/kempo/components/Tags.js +0 -1
  657. package/docs/kempo/components/ThemeSwitcher.js +0 -1
  658. package/docs/kempo/components/Timestamp.js +0 -1
  659. package/docs/kempo/components/Toast.js +0 -1
  660. package/docs/kempo/components/Toggle.js +0 -1
  661. package/docs/kempo/components/tableControls/DeleteRecord.js +0 -1
  662. package/docs/kempo/components/tableControls/DeleteSelected.js +0 -1
  663. package/docs/kempo/components/tableControls/Edit.js +0 -1
  664. package/docs/kempo/components/tableControls/ExportCSV.js +0 -1
  665. package/docs/kempo/components/tableControls/ExportJson.js +0 -1
  666. package/docs/kempo/components/tableControls/FieldSortHide.js +0 -1
  667. package/docs/kempo/components/tableControls/Filters.js +0 -1
  668. package/docs/kempo/components/tableControls/FirstPage.js +0 -1
  669. package/docs/kempo/components/tableControls/HiddenCount.js +0 -1
  670. package/docs/kempo/components/tableControls/Hide.js +0 -1
  671. package/docs/kempo/components/tableControls/LastPage.js +0 -1
  672. package/docs/kempo/components/tableControls/NextPage.js +0 -1
  673. package/docs/kempo/components/tableControls/PageSelect.js +0 -1
  674. package/docs/kempo/components/tableControls/PageSize.js +0 -1
  675. package/docs/kempo/components/tableControls/PrevPage.js +0 -1
  676. package/docs/kempo/components/tableControls/Search.js +0 -1
  677. package/docs/kempo/components/tableControls/SelectCount.js +0 -1
  678. package/docs/kempo/components/tableControls/ShowAll.js +0 -1
  679. package/docs/kempo/components/tableControls/ShowHideFields.js +0 -1
  680. package/docs/kempo/components/tableControls/TableControl.js +0 -1
  681. package/docs/kempo/index.js +0 -1
  682. package/docs/kempo/kempo-hljs.css +0 -1
  683. package/docs/kempo/kempo-styles.css +0 -1
  684. package/docs/kempo/kempo-vars.css +0 -1
  685. package/docs/kempo/utils/Server.js +0 -1
  686. package/docs/kempo/utils/cli.js +0 -1
  687. package/docs/kempo/utils/cookie.js +0 -1
  688. package/docs/kempo/utils/debounce.js +0 -1
  689. package/docs/kempo/utils/drag.js +0 -1
  690. package/docs/kempo/utils/element.js +0 -1
  691. package/docs/kempo/utils/files.js +0 -1
  692. package/docs/kempo/utils/formatTimestamp.js +0 -1
  693. package/docs/kempo/utils/fs-utils.js +0 -1
  694. package/docs/kempo/utils/fuzzyMatch.js +0 -1
  695. package/docs/kempo/utils/getPreferredTheme.js +0 -1
  696. package/docs/kempo/utils/loadCss.js +0 -1
  697. package/docs/kempo/utils/loadScript.js +0 -1
  698. package/docs/kempo/utils/minify.js +0 -1
  699. package/docs/kempo/utils/object.js +0 -1
  700. package/docs/kempo/utils/raf.js +0 -1
  701. package/docs/kempo/utils/string.js +0 -1
  702. package/docs/kempo/utils/toFunction.js +0 -1
  703. package/docs/kempo/utils/type.js +0 -1
  704. package/docs/kempo/utils/waitFrames.js +0 -1
  705. package/docs/kempo/utils/watchDirectoryHandle.js +0 -1
  706. package/docs/kempo/utils/watchWindowSize.js +0 -1
  707. package/docs/nav.inc.html +0 -74
  708. package/docs/search.json +0 -400
  709. package/docs/styles/_template.html +0 -26
  710. package/docs/styles/borders-spacing.html +0 -197
  711. package/docs/styles/buttons.html +0 -117
  712. package/docs/styles/colors.html +0 -69
  713. package/docs/styles/displays-layouts.html +0 -162
  714. package/docs/styles/embed-1.html +0 -40
  715. package/docs/styles/inputs.html +0 -93
  716. package/docs/styles/tables.html +0 -147
  717. package/docs/styles/typography.html +0 -120
  718. package/docs/utils/Server.html +0 -119
  719. package/docs/utils/_template.html +0 -77
  720. package/docs/utils/cli.html +0 -86
  721. package/docs/utils/cookie.html +0 -89
  722. package/docs/utils/debounce.html +0 -63
  723. package/docs/utils/drag.html +0 -87
  724. package/docs/utils/element.html +0 -126
  725. package/docs/utils/format-timestamp.html +0 -66
  726. package/docs/utils/fuzzy-match.html +0 -60
  727. package/icons/add.svg +0 -1
  728. package/icons/arrow-back.svg +0 -1
  729. package/icons/arrow-down-double.svg +0 -1
  730. package/icons/arrow-down.svg +0 -1
  731. package/icons/arrow-forward.svg +0 -1
  732. package/icons/arrow-up-double.svg +0 -1
  733. package/icons/arrow-up.svg +0 -1
  734. package/icons/cards.svg +0 -1
  735. package/icons/check.svg +0 -1
  736. package/icons/chevron-left.svg +0 -1
  737. package/icons/chevron-right.svg +0 -1
  738. package/icons/close.svg +0 -2
  739. package/icons/compare.svg +0 -1
  740. package/icons/delete.svg +0 -1
  741. package/icons/drag-handle.svg +0 -1
  742. package/icons/drawing2.svg +0 -124
  743. package/icons/edit.svg +0 -1
  744. package/icons/error.svg +0 -1
  745. package/icons/export-file.svg +0 -1
  746. package/icons/file-text.svg +0 -1
  747. package/icons/file.svg +0 -1
  748. package/icons/filter-off.svg +0 -1
  749. package/icons/filter.svg +0 -1
  750. package/icons/first.svg +0 -1
  751. package/icons/folder-clear.svg +0 -1
  752. package/icons/folder-create.svg +0 -1
  753. package/icons/folder-open.svg +0 -1
  754. package/icons/folder.svg +0 -1
  755. package/icons/hide.svg +0 -1
  756. package/icons/image.svg +0 -1
  757. package/icons/label-add.svg +0 -1
  758. package/icons/label.svg +0 -1
  759. package/icons/last.svg +0 -1
  760. package/icons/menu.svg +0 -1
  761. package/icons/mode-auto.svg +0 -1
  762. package/icons/mode-dark.svg +0 -1
  763. package/icons/mode-light.svg +0 -1
  764. package/icons/open-in-browser.svg +0 -1
  765. package/icons/pause.svg +0 -1
  766. package/icons/play.svg +0 -1
  767. package/icons/refresh.svg +0 -1
  768. package/icons/remove.svg +0 -1
  769. package/icons/save.svg +0 -1
  770. package/icons/search.svg +0 -1
  771. package/icons/settings.svg +0 -1
  772. package/icons/show.svg +0 -1
  773. package/icons/storage.svg +0 -1
  774. package/icons/table-visibility.svg +0 -1
  775. package/icons/tag.svg +0 -1
  776. package/icons/tools.svg +0 -1
  777. package/icons/trash-x.svg +0 -1
  778. package/icons/warning.svg +0 -1
  779. package/scripts/build.js +0 -154
  780. package/scripts/docs.js +0 -47
  781. package/src/components/Accordion.js +0 -182
  782. package/src/components/Card.js +0 -62
  783. package/src/components/Collapsible.js +0 -104
  784. package/src/components/Component.js +0 -110
  785. package/src/components/ContentSlider.js +0 -192
  786. package/src/components/Dialog.js +0 -338
  787. package/src/components/DirectoryViewer.js +0 -363
  788. package/src/components/FocusCapture.js +0 -31
  789. package/src/components/Icon.js +0 -119
  790. package/src/components/Import.js +0 -48
  791. package/src/components/LazyComponent.js +0 -65
  792. package/src/components/PersistantCollapsible.js +0 -44
  793. package/src/components/PhotoViewer.js +0 -358
  794. package/src/components/ReactiveComponent.js +0 -11
  795. package/src/components/ReactiveLazyComponent.js +0 -11
  796. package/src/components/Resize.js +0 -168
  797. package/src/components/Search.js +0 -140
  798. package/src/components/ShowMore.js +0 -102
  799. package/src/components/SideMenu.js +0 -150
  800. package/src/components/Sortable.js +0 -169
  801. package/src/components/Split.js +0 -164
  802. package/src/components/Table.js +0 -935
  803. package/src/components/Tabs.js +0 -349
  804. package/src/components/Tags.js +0 -224
  805. package/src/components/ThemeSwitcher.js +0 -100
  806. package/src/components/Timestamp.js +0 -28
  807. package/src/components/Toast.js +0 -424
  808. package/src/components/Toggle.js +0 -137
  809. package/src/components/tableControls/DeleteRecord.js +0 -43
  810. package/src/components/tableControls/DeleteSelected.js +0 -70
  811. package/src/components/tableControls/Edit.js +0 -84
  812. package/src/components/tableControls/ExportCSV.js +0 -91
  813. package/src/components/tableControls/ExportJson.js +0 -62
  814. package/src/components/tableControls/FieldSortHide.js +0 -77
  815. package/src/components/tableControls/Filters.js +0 -129
  816. package/src/components/tableControls/FirstPage.js +0 -69
  817. package/src/components/tableControls/HiddenCount.js +0 -37
  818. package/src/components/tableControls/Hide.js +0 -40
  819. package/src/components/tableControls/LastPage.js +0 -67
  820. package/src/components/tableControls/NextPage.js +0 -69
  821. package/src/components/tableControls/PageSelect.js +0 -89
  822. package/src/components/tableControls/PageSize.js +0 -70
  823. package/src/components/tableControls/PrevPage.js +0 -69
  824. package/src/components/tableControls/Search.js +0 -49
  825. package/src/components/tableControls/SelectCount.js +0 -42
  826. package/src/components/tableControls/ShowAll.js +0 -37
  827. package/src/components/tableControls/TableControl.js +0 -51
  828. package/src/kempo-hljs.css +0 -146
  829. package/src/kempo-styles.css +0 -952
  830. package/src/kempo-vars.css +0 -159
  831. package/src/utils/Server.js +0 -189
  832. package/src/utils/cli.js +0 -119
  833. package/src/utils/cookie.js +0 -20
  834. package/src/utils/debounce.js +0 -9
  835. package/src/utils/drag.js +0 -74
  836. package/src/utils/element.js +0 -81
  837. package/src/utils/formatTimestamp.js +0 -27
  838. package/src/utils/fs-utils.js +0 -41
  839. package/src/utils/fuzzyMatch.js +0 -60
  840. package/src/utils/getPreferredTheme.js +0 -1
  841. package/src/utils/loadCss.js +0 -10
  842. package/src/utils/loadScript.js +0 -10
  843. package/src/utils/object.js +0 -198
  844. package/src/utils/raf.js +0 -10
  845. package/src/utils/string.js +0 -66
  846. package/src/utils/toFunction.js +0 -24
  847. package/src/utils/type.js +0 -13
  848. package/src/utils/waitFrames.js +0 -17
  849. package/src/utils/watchDirectoryHandle.js +0 -18
  850. package/src/utils/watchWindowSize.js +0 -15
  851. package/test/components/SuiteList.js +0 -26
  852. package/test/components/Test.js +0 -357
  853. package/test/index.html +0 -49
  854. package/test/index.js +0 -36
  855. package/test/suite.html +0 -45
  856. package/test/suites.inc.html +0 -4
  857. package/test/tests/components/Component.test.js +0 -138
  858. package/test/tests/utils/cli.test.js +0 -113
  859. package/test/tests/utils/cookie.test.js +0 -87
  860. package/test/tests/utils/debounce.test.js +0 -71
  861. /package/{docs/icons/show.svg → dist/admin/icons/visibility.svg} +0 -0
@@ -1,70 +0,0 @@
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>FocusCapture - Components - Kempo Docs - A Web Components Solution</title>
7
- <link rel="stylesheet" href="../kempo/kempo-vars.css" /><link rel="stylesheet" href="../kempo/kempo-styles.css" />
8
- <link rel="stylesheet" href="../kempo/kempo-hljs.css" />
9
- <script type="module">
10
- import Import from '../kempo/components/Import.js';
11
- import Icon from '../kempo/components/Icon.js';
12
- import Search from '../kempo/components/Search.js';
13
- Import.addReplacement('root', '../');
14
- Icon.pathToIcons = ['../icons'];
15
- Search.searchDataUrl = '../search.json';
16
- </script>
17
- </head>
18
- <body>
19
- <k-import src="../nav.inc.html"></k-import>
20
- <h1 class="ta-center">FocusCapture</h1>
21
- <main>
22
- <details class="b r mb">
23
- <summary class="p">Table of Contents</summary>
24
- <div class="m mt0 pl">
25
- <h6>Examples</h6>
26
- <a href="#basicUsage">Basic Usage</a><br />
27
-
28
- <h6 class="mt">JavaScript Reference</h6>
29
- <a href="#constructor">Constructor</a><br />
30
- <a href="#requirements">Requirements</a><br />
31
- <a href="#attributes">Attributes</a><br />
32
- <a href="#properties">Properties</a><br />
33
- <a href="#methods">Methods</a><br />
34
- </div>
35
- </details>
36
-
37
- <h3>Description</h3>
38
- <p>The <code>FocusCapture</code> class extends the <a href="./lazy-component.html">LazyComponent</a> class and provides functionality to capture focus within the component.</p>
39
-
40
- <h3 id="basicUsage"><a href="#basicUsage" class="no-link">Basic Usage</a></h3>
41
- <p>Use the <code>FocusCapture</code> component to capture focus within the component. When the focus moves out of the component, it will automatically move back to the first focusable element inside the component.</p>
42
- <pre><code class="hljs xml"><span class="hljs-tag">&lt;<span class="hljs-name">k-focus-capture</span>&gt;</span><br /> <span class="hljs-tag">&lt;<span class="hljs-name">button</span>&gt;</span>Button 1<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span><br /> <span class="hljs-tag">&lt;<span class="hljs-name">button</span>&gt;</span>Button 2<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span><br /><span class="hljs-tag">&lt;/<span class="hljs-name">k-focus-capture</span>&gt;</span></code></pre>
43
- <k-focus-capture>
44
- <button>Button 1</button>
45
- <button>Button 2</button>
46
- </k-focus-capture>
47
-
48
- <h2 id="jsRef">JavaScript Reference</h2>
49
-
50
- <h3 id="constructor"><a href="#constructor" class="no-link">Constructor</a></h3>
51
- <h6>Extends <a href="./lazy-component.html">LazyComponent</a></h6>
52
- <h5>
53
- <code>new FocusCapture()</code>
54
- </h5>
55
-
56
- <h3 id="requirements"><a href="#requirements" class="no-link">Requirements</a></h3>
57
- <ul>
58
- <li><a href="./lazy-component.html">LazyComponent</a></li>
59
- </ul>
60
-
61
- <h3 id="attributes"><a href="#attributes" class="no-link">Attributes</a></h3>
62
- <p>The <code>FocusCapture</code> class does not introduce any new attributes beyond those provided by the <a href="./lazy-component.html">LazyComponent</a> class.</p>
63
-
64
- <h3 id="methods"><a href="#methods" class="no-link">Methods</a></h3>
65
- <p>The <code>FocusCapture</code> class does not introduce any new methods beyond those provided by the <a href="./lazy-component.html">LazyComponent</a> class.</p>
66
-
67
- </main>
68
- <script type="module" src="../kempo/components/Import.js"></script>
69
- </body>
70
- </html>
@@ -1,160 +0,0 @@
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>Icon - Components - Kempo Docs - A Web Components Solution</title>
7
- <link rel="stylesheet" href="../kempo/kempo-vars.css" /><link rel="stylesheet" href="../kempo/kempo-styles.css" />
8
- <link rel="stylesheet" href="../kempo/kempo-hljs.css" />
9
- <script type="module">
10
- import Import from '../kempo/components/Import.js';
11
- import Icon from '../kempo/components/Icon.js';
12
- import Search from '../kempo/components/Search.js';
13
- Import.addReplacement('root', '../');
14
- Icon.pathToIcons = ['../icons'];
15
- Search.searchDataUrl = '../search.json';
16
- </script>
17
- </head>
18
- <body>
19
- <k-import src="../nav.inc.html"></k-import>
20
- <h1 class="ta-center">Icon</h1>
21
- <main>
22
- <details class="b r mb">
23
- <summary class="p">Table of Contents</summary>
24
- <div class="m mt0 pl">
25
- <h6>Examples</h6>
26
- <a href="#basicUsage">Basic Usage</a><br />
27
- <a href="#explicitSource">Explicitly Set the Source</a><br />
28
- <a href="#fallbackIcon">Fallback Icon</a><br />
29
- <a href="#changingIconDirectory">Changing the Icon Directory Location</a><br />
30
- <a href="#addingIcons">Adding Icons</a><br />
31
- <a href="#updatingIconDirectoryPath">Updating the Icon Directory Path</a><br />
32
-
33
- <h6 class="mt">JavaScript Reference</h6>
34
- <a href="#constructor">Constructor</a><br />
35
- <a href="#requirements">Requirements</a><br />
36
- <a href="#attributes">Attributes</a><br />
37
- <a href="#properties">Properties</a><br />
38
- <a href="#methods">Methods</a><br />
39
- </div>
40
- </details>
41
-
42
- <h3 id="basicUsage"><a href="#basicUsage" class="no-link">Basic Usage</a></h3>
43
- <p>Create an icon using the <code>k-icon</code> component. You can specify the icon by setting the <code>name</code> or <code>src</code> attribute.</p>
44
- <pre><code class="hljs xml"><span class="hljs-tag">&lt;<span class="hljs-name">k-icon</span> <span class="hljs-attr">name</span>=<span class="hljs-string">"folder"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">k-icon</span>&gt;</span><br /><span class="hljs-tag">&lt;<span class="hljs-name">k-icon</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"/path/to/icon.svg"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">k-icon</span>&gt;</span></code></pre>
45
- <div class="row -mx mb">
46
- <div class="col d-span-6 m-span-12 px">
47
- <k-icon name="folder"></k-icon>
48
- </div>
49
- <div class="col d-span-6 m-span-12 px">
50
- <k-icon src="/path/to/icon.svg"></k-icon>
51
- </div>
52
- </div>
53
-
54
- <div class="row -mx mb">
55
- <div class="col d-span-6 m-span-12 px">
56
- <k-card label="HTML">
57
- <pre><code class="hljs xml"><span class="hljs-tag">&lt;<span class="hljs-name">k-icon</span> <span class="hljs-attr">name</span>=<span class="hljs-string">"menu"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">k-icon</span>&gt;</span><br /><span class="hljs-tag">&lt;<span class="hljs-name">k-icon</span> <span class="hljs-attr">name</span>=<span class="hljs-string">"close"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">k-icon</span>&gt;</span><br /><span class="hljs-tag">&lt;<span class="hljs-name">k-icon</span> <span class="hljs-attr">name</span>=<span class="hljs-string">"play"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">k-icon</span>&gt;</span><br /><span class="hljs-tag">&lt;<span class="hljs-name">k-icon</span> <span class="hljs-attr">name</span>=<span class="hljs-string">"pause"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">k-icon</span>&gt;</span></code></pre>
58
- </k-card>
59
- </div>
60
- <div class="col d-span-6 m-span-12 px">
61
- <k-card label="Output*">
62
- <k-icon name="menu"></k-icon>
63
- <k-icon name="close"></k-icon>
64
- <k-icon name="play"></k-icon>
65
- <k-icon name="pause"></k-icon>
66
- </k-card>
67
- </div>
68
- </div>
69
-
70
- <h3 id="explicitSource"><a href="#explicitSource" class="no-link">Explicitly Set the Source</a></h3>
71
- <p>You can use any svg file that is publically available (on your site or any other public domain) buy using the <code>src</code> attribute instead of <code>name</code>. The code will attempt to ensure compatability.</p>
72
- <div class="row -mx mb">
73
- <div class="col d-span-6 m-span-12 px">
74
- <k-card label="HTML">
75
- <pre><code class="hljs xml"><span class="hljs-tag">&lt;<span class="hljs-name">k-icon</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://fonts.gstatic.com/s/i/short-term/release/materialsymbolsoutlined/wysiwyg/default/24px.svg"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">k-icon</span>&gt;</span></code></pre>
76
- </k-card>
77
- </div>
78
- <div class="col d-span-6 m-span-12 px">
79
- <k-card label="Output*">
80
- <k-icon src="https://fonts.gstatic.com/s/i/short-term/release/materialsymbolsoutlined/wysiwyg/default/24px.svg"></k-icon>
81
- </k-card>
82
- </div>
83
- </div>
84
-
85
- <h3 id="fallbackIcon"><a href="#fallbackIcon" class="no-link">Fallback Icon</a></h3>
86
- <p>Put an SVG inside of the <code>k-icon</code> to be the fallback if one is not found that matches the provided name or source. Otherwise a <k-icon></k-icon> will be the fallback icon.</p>
87
- <div class="row -mx mb">
88
- <div class="col d-span-6 m-span-12 px">
89
- <k-card label="HTML">
90
- <pre><code class="hljs xml"><span class="hljs-tag">&lt;<span class="hljs-name">k-icon</span> <span class="hljs-attr">name</span>=<span class="hljs-string">"invalid"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">k-icon</span>&gt;</span><br /><span class="hljs-tag">&lt;<span class="hljs-name">k-icon</span> <span class="hljs-attr">name</span>=<span class="hljs-string">"invalid"</span>&gt;</span><br /> <span class="hljs-tag">&lt;<span class="hljs-name">svg</span> <span class="hljs-attr">xmlns</span>=<span class="hljs-string">"http://www.w3.org/2000/svg"</span> <span class="hljs-attr">viewBox</span>=<span class="hljs-string">"0 -960 960 960"</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">path</span> <span class="hljs-attr">fill</span>=<span class="hljs-string">"currentColor"</span> <span class="hljs-attr">d</span>=<span class="hljs-string">"M240-280h200v-80H240v80Zm400 0h80v-80h-80v80ZM240-440h200v-80H240v80Zm400 0h80v-240h-80v240ZM240-600h200v-80H240v80Zm-80 480q-33 0-56.5-23.5T80-200v-560q0-33 23.5-56.5T160-840h640q33 0 56.5 23.5T880-760v560q0 33-23.5 56.5T800-120H160Zm0-80h640v-560H160v560Zm0 0v-560 560Z"</span>/&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">svg</span>&gt;</span><br /><span class="hljs-tag">&lt;/<span class="hljs-name">k-icon</span>&gt;</span></code></pre>
91
- </k-card>
92
- </div>
93
- <div class="col d-span-6 m-span-12 px">
94
- <k-card label="Output*">
95
- <k-icon name="invalid"></k-icon>
96
- <k-icon name="invalid">
97
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path fill="currentColor" d="M240-280h200v-80H240v80Zm400 0h80v-80h-80v80ZM240-440h200v-80H240v80Zm400 0h80v-240h-80v240ZM240-600h200v-80H240v80Zm-80 480q-33 0-56.5-23.5T80-200v-560q0-33 23.5-56.5T160-840h640q33 0 56.5 23.5T880-760v560q0 33-23.5 56.5T800-120H160Zm0-80h640v-560H160v560Zm0 0v-560 560Z"/></svg>
98
- </k-icon>
99
- </k-card>
100
- </div>
101
- </div>
102
-
103
- <h3 id="changingIconDirectory"><a href="#changingIconDirectory" class="no-link">Changing the Icon Directory Location</a></h3>
104
- <p>To change the location of the directory holding the icons import the <code>Icon</code> class, and set the static member <code>pathToIcons</code> to point to the correct location, do this before icons are loaded (for example in the head of the document).</p>
105
- <pre><code class="hljs xml"><span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">type</span>=<span class="hljs-string">"module"</span>&gt;</span><span class="javascript"><br /> <span class="hljs-keyword">import</span> Icon <span class="hljs-keyword">from</span> <span class="hljs-string">'/kempo/components/Icon.js'</span>;<br /> Icon.pathToIcons = <span class="hljs-string">'./pathTo/icons'</span>;<br /></span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></code></pre>
106
-
107
- <h3 id="addingIcons"><a href="#addingIcons" class="no-link">Adding Icons</a></h3>
108
- <p>Add your SVGs to the directory, remove the <code>height</code> and <code>width</code> attributes from the <code>svg</code> tag (if you do not, the Icon component will attempt to do it for you). The height and width will be managed by CSS to match the font-size. Give all objects (path, rect, circle) a fill of <code>currentColor</code>, this will allow the icon to adapt to the font color where it is rendered.</p>
109
- <div class="row -mx mb">
110
- <div class="col d-span-6 m-span-12 px">
111
- <k-card label="Before">
112
- <pre><code class="hljs xml"><span class="hljs-tag">&lt;<span class="hljs-name">svg</span> <span class="hljs-attr">xmlns</span>=<span class="hljs-string">"http://www.w3.org/2000/svg"</span> <span class="hljs-attr">viewBox</span>=<span class="hljs-string">"0 -960 960 960"</span> <span class="hljs-attr">width</span>=<span class="hljs-string">"24"</span> <span class="hljs-attr">height</span>=<span class="hljs-string">"24"</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">path</span> <span class="hljs-attr">d</span>=<span class="hljs-string">"M480-200 240-440l56-56 184 183 184-183 56 56-240 240Zm0-240L240-680l56-56 184 183 184-183 56 56-240 240Z"</span>/&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">svg</span>&gt;</span></code></pre>
113
- </k-card>
114
- </div>
115
- <div class="col d-span-6 m-span-12 px">
116
- <k-card label="After">
117
- <pre><code class="hljs xml"><span class="hljs-tag">&lt;<span class="hljs-name">svg</span> <span class="hljs-attr">xmlns</span>=<span class="hljs-string">"http://www.w3.org/2000/svg"</span> <span class="hljs-attr">viewBox</span>=<span class="hljs-string">"0 -960 960 960"</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">path</span> <span class="hljs-attr">fill</span>=<span class="hljs-string">"currentColor"</span> <span class="hljs-attr">d</span>=<span class="hljs-string">"M480-200 240-440l56-56 184 183 184-183 56 56-240 240Zm0-240L240-680l56-56 184 183 184-183 56 56-240 240Z"</span>/&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">svg</span>&gt;</span></code></pre>
118
- </k-card>
119
- </div>
120
- </div>
121
-
122
- <h3 id="updatingIconDirectoryPath"><a href="#updatingIconDirectoryPath" class="no-link">Updating the Icon Directory Path</a></h3>
123
- <p>To change the location of the directory holding the icons, import the <code>Icon</code> class, and set the static member <code>pathToIcons</code> to point to the correct location. Do this before icons are loaded (for example, in the head of the document).</p>
124
- <pre><code class="hljs xml"><span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">type</span>=<span class="hljs-string">"module"</span>&gt;</span><span class="javascript"><br /> <span class="hljs-keyword">import</span> Icon <span class="hljs-keyword">from</span> <span class="hljs-string">'/kempo/components/Icon.js'</span>;<br /> Icon.pathToIcons = [<span class="hljs-string">'./pathTo/icons'</span>];<br /></span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></code></pre>
125
-
126
- <h2 id="jsRef">JavaScript Reference</h2>
127
-
128
- <h3 id="constructor"><a href="#constructor" class="no-link">Constructor</a></h3>
129
- <h6>Extends <a href="./component.html">Component</a></h6>
130
- <h5>
131
- <code>new Icon()</code><br />
132
- <code>new Icon(<i>string</i> name)</code>
133
- </h5>
134
-
135
- <h4>Parameters</h4>
136
- <h5><code>name<i>: string</i></code></h5>
137
- <p>The name of the icon.</p>
138
-
139
- <h3 id="requirements"><a href="#requirements" class="no-link">Requirements</a></h3>
140
- <ul>
141
- <li><a href="./component.html">Component</a></li>
142
- </ul>
143
-
144
- <h3 id="attributes"><a href="#attributes" class="no-link">Attributes</a></h3>
145
- <h5><code>name<i>: string</i></code></h5>
146
- <p>The name of the icon.</p>
147
- <h5><code>src<i>: string</i></code></h5>
148
- <p>The source URL of the icon.</p>
149
-
150
- <h3 id="properties"><a href="#properties" class="no-link">Properties</a></h3>
151
- <h5><code>pathToIcons<i>: Array</i></code></h5>
152
- <p>An array of paths to directories containing icons.</p>
153
-
154
- </main>
155
- <div style="height:33vh"></div>
156
- <script type="module" src="../kempo/components/Import.js"></script>
157
- <script type="module" src="../kempo/components/Card.js"></script>
158
- <script type="module" src="../kempo/components/Icon.js"></script>
159
- </body>
160
- </html>
@@ -1,79 +0,0 @@
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>Import - Components - Kempo Docs - A Web Components Solution</title>
7
- <link rel="stylesheet" href="../kempo/kempo-vars.css" /><link rel="stylesheet" href="../kempo/kempo-styles.css" />
8
- <link rel="stylesheet" href="../kempo/kempo-hljs.css" />
9
- <script type="module">
10
- import Import from '../kempo/components/Import.js';
11
- import Icon from '../kempo/components/Icon.js';
12
- import Search from '../kempo/components/Search.js';
13
- Import.addReplacement('root', '../');
14
- Icon.pathToIcons = ['../icons'];
15
- Search.searchDataUrl = '../search.json';
16
- </script>
17
- </head>
18
- <body>
19
- <k-import src="../nav.inc.html"></k-import>
20
- <h1 class="ta-center">Import</h1>
21
- <main>
22
- <details class="b r mb">
23
- <summary class="p">Table of Contents</summary>
24
- <div class="m mt0 pl">
25
- <h6>Examples</h6>
26
- <a href="#basicUsage">Basic Usage</a><br />
27
-
28
- <h6 class="mt">JavaScript Reference</h6>
29
- <a href="#constructor">Constructor</a><br />
30
- <a href="#requirements">Requirements</a><br />
31
- <a href="#attributes">Attributes</a><br />
32
- <a href="#properties">Properties</a><br />
33
- <a href="#methods">Methods</a><br />
34
- </div>
35
- </details>
36
-
37
- <h3>What is an import</h3>
38
- <p>Import commonly used HTML snippets.</p>
39
- <k-card label="import-me.html">
40
- <pre><code class="hljs xml"><span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span>I am html<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span></code></pre>
41
- </k-card>
42
- <k-card label="HTML">
43
- <pre><code class="hljs xml"><span class="hljs-tag">&lt;<span class="hljs-name">k-import</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"import-me.html"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">k-import</span>&gt;</span></code></pre>
44
- </k-card>
45
- <k-card label="Results">
46
- <pre><code class="hljs xml"><span class="hljs-tag">&lt;<span class="hljs-name">k-import</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"import-me.html"</span> <span class="hljs-attr">rendered</span>=<span class="hljs-string">"true"</span>&gt;</span><br /> <span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span>I am html<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span><br /><span class="hljs-tag">&lt;/<span class="hljs-name">k-import</span>&gt;</span></code></pre>
47
- </k-card>
48
-
49
- <h2 id="jsRef">JavaScript Reference</h2>
50
-
51
- <h3 id="constructor"><a href="#constructor" class="no-link">Constructor</a></h3>
52
- <h6>Extends <a href="./component.html">Component</a></h6>
53
- <h5>
54
- <code>new Import()</code>
55
- </h5>
56
-
57
- <h3 id="requirements"><a href="#requirements" class="no-link">Requirements</a></h3>
58
- <ul>
59
- <li><a href="./component.html">Component</a></li>
60
- </ul>
61
-
62
- <h3 id="attributes"><a href="#attributes" class="no-link">Attributes</a></h3>
63
- <h5><code>src<i>: string</i></code></h5>
64
- <p>The source URL of the HTML snippet to import.</p>
65
-
66
- <h3 id="properties"><a href="#properties" class="no-link">Properties</a></h3>
67
- <h5><code>src<i>: string</i></code></h5>
68
- <p>The source URL of the HTML snippet to import.</p>
69
-
70
- <h3 id="methods"><a href="#methods" class="no-link">Methods</a></h3>
71
- <h5><code>load()<i>: Promise</i></code></h5>
72
- <p>Loads the HTML snippet from the specified source URL.</p>
73
-
74
- </main>
75
- <div style="height:33vh"></div>
76
- <script type="module" src="../kempo/components/Import.js"></script>
77
- <script type="module" src="../kempo/components/Card.js"></script>
78
- </body>
79
- </html>
@@ -1,86 +0,0 @@
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>LazyComponent - Components - Kempo Docs - A Web Components Solution</title>
7
- <link rel="stylesheet" href="../kempo/kempo-vars.css" /><link rel="stylesheet" href="../kempo/kempo-styles.css" />
8
- <link rel="stylesheet" href="../kempo/kempo-hljs.css" />
9
- <script type="module">
10
- import Import from '../kempo/components/Import.js';
11
- import Icon from '../kempo/components/Icon.js';
12
- import Search from '../kempo/components/Search.js';
13
- Import.addReplacement('root', '../');
14
- Icon.pathToIcons = ['../icons'];
15
- Search.searchDataUrl = '../search.json';
16
- </script>
17
- </head>
18
- <body>
19
- <k-import src="../nav.inc.html"></k-import>
20
- <h1 class="ta-center">LazyComponent</h1>
21
- <main>
22
- <details class="b r mb">
23
- <summary class="p">Table of Contents</summary>
24
- <div class="m mt0 pl">
25
- <h6>Examples</h6>
26
- <a href="#basicUsage">Basic Usage</a><br />
27
-
28
- <h6 class="mt">JavaScript Reference</h6>
29
- <a href="#constructor">Constructor</a><br />
30
- <a href="#requirements">Requirements</a><br />
31
- <a href="#attributes">Attributes</a><br />
32
- <a href="#properties">Properties</a><br />
33
- <a href="#methods">Methods</a><br />
34
- </div>
35
- </details>
36
-
37
- <h3>Description</h3>
38
- <p>This is a base class like <a href="./component.html">Component</a> but the <code>render</code> method is not called until the element is visible (in the view), a skeleton is rendered until then.</p>
39
-
40
- <h3 id="basicUsage"><a href="#basicUsage" class="no-link">Basic Usage</a></h3>
41
- <p>Extend the <code>LazyComponent</code> class to create a lazy-loaded component. The component will render its content only when it becomes visible in the viewport.</p>
42
- <pre><code class="hljs javascript"><span class="hljs-keyword">import</span> LazyComponent <span class="hljs-keyword">from</span> <span class="hljs-string">'kempo'</span>;<br /><span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MyLazyComponent</span> <span class="hljs-keyword">extends</span> <span class="hljs-title">LazyComponent</span> </span>{<br /> <span class="hljs-keyword">constructor</span>(){<br /> <span class="hljs-keyword">super</span>();<br /> <span class="hljs-comment">// Your Constructor</span><br /> }<br /> <span class="hljs-keyword">async</span> render(force){<br /> <span class="hljs-keyword">if</span>(<span class="hljs-keyword">await</span> <span class="hljs-keyword">super</span>.render(force)){<br /> <span class="hljs-comment">// Your render logic</span><br /> <span class="hljs-keyword">return</span> <span class="hljs-literal">true</span>;<br /> }<br /> <span class="hljs-keyword">return</span> <span class="hljs-literal">false</span>;<br /> }<br />}<br /><span class="hljs-built_in">window</span>.customElements.define(<span class="hljs-string">'my-lazy-component'</span>, MyLazyComponent);</code></pre>
43
-
44
- <h3 id="basicUsage"><a href="#interval" class="no-link">In-View Interval Timeout</a></h3>
45
- <p>In addition to using intersection observes to watch for components being scrolled into view, an interval is used to check if the component suddenly become visible via a display style change to itself or a parent. The timeout of the interval can be set for all instances of your LazyComponent by chaning the static member <code>inViewIntervalTimeout</code>.</p>
46
- <pre><code class="hljs javascript"><span class="hljs-keyword">import</span> LazyComponent <span class="hljs-keyword">from</span> <span class="hljs-string">'kempo'</span>;<br /><span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MyLazyComponent</span> <span class="hljs-keyword">extends</span> <span class="hljs-title">LazyComponent</span> </span>{<br /> <span class="hljs-keyword">constructor</span>(){<br /> <span class="hljs-keyword">super</span>();<br /> <span class="hljs-comment">// Your Constructor</span><br /> }<br /> <span class="hljs-keyword">async</span> render(force){<br /> <span class="hljs-keyword">if</span>(<span class="hljs-keyword">await</span> <span class="hljs-keyword">super</span>.render(force)){<br /> <span class="hljs-comment">// Your render logic</span><br /> <span class="hljs-keyword">return</span> <span class="hljs-literal">true</span>;<br /> }<br /> <span class="hljs-keyword">return</span> <span class="hljs-literal">false</span>;<br /> }<br /><br /> <span class="hljs-keyword">static</span> inViewIntervalTimeout = <span class="hljs-number">200</span>; <span class="hljs-comment">// Change the inView checking interval to 200ms instead of the default 1000</span><br />}<br /><span class="hljs-built_in">window</span>.customElements.define(<span class="hljs-string">'my-lazy-component'</span>, MyLazyComponent);</code></pre>
47
-
48
- <h5>Individal Component interval timer overwrites</h5>
49
- <p>You can overwrite this interval timeout for individual elements by setting the <code>in-view-interval</code> attribute.</p>
50
- <pre><code class="hljs xml"><span class="hljs-tag">&lt;<span class="hljs-name">my-lazy-component</span> <span class="hljs-attr">in-view-interval</span>=<span class="hljs-string">"5000"</span>&gt;</span><br /> <span class="hljs-comment">&lt;!-- The interval to check if it is in-view (due to element/parent visibility change) is now set to check every 5 seconds --&gt;</span><br /><span class="hljs-tag">&lt;/<span class="hljs-name">my-lazy-component</span>&gt;</span></code></pre>
51
-
52
- <h2 id="jsRef">JavaScript Reference</h2>
53
-
54
- <h3 id="constructor"><a href="#constructor" class="no-link">Constructor</a></h3>
55
- <h6>Extends <a href="./component.html">Component</a></h6>
56
- <h5>
57
- <code>new LazyComponent()</code><br />
58
- <code>new LazyComponent(<i>Object</i> shadowOptions)</code>
59
- </h5>
60
- <p>This class <b class="tc-danger">cannot</b> be instantiated directly, but rather <b class="tc-success">should be</b> extended, optionally passing in the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Element/attachShadow#options" target="_blank">shadowOptions</a>.</p>
61
-
62
- <h3 id="requirements"><a href="#requirements" class="no-link">Requirements</a></h3>
63
- <ul>
64
- <li><a href="./component.html">Component</a></li>
65
- <li><a href="../utils/element.js">isInView Utility Function</a></li>
66
- <li><a href="../utils/raf.js">raf Utility Function</a></li>
67
- </ul>
68
-
69
- <h3 id="attributes"><a href="#attributes" class="no-link">Attributes</a></h3>
70
- <h5><code>unrender<i>: boolean</i></code></h5>
71
- <p>If set to <code>true</code>, the component will unrender its content when it goes out of view.</p>
72
-
73
- <h3 id="methods"><a href="#methods" class="no-link">Methods</a></h3>
74
- <h5><code>async renderSkelton()<i>: Promise</i></code></h5>
75
- <p>Renders the skeleton template of the component. This is called when the component is not yet visible in the viewport or when it goes out of view and <code>unrender</code> is set to <code>true</code>.</p>
76
-
77
- <h5><code>async inViewCallback()<i>: Promise</i></code></h5>
78
- <p>Callback method that is called when the component becomes visible in the viewport. By default, it calls the <code>render</code> method.</p>
79
-
80
- <h5><code>async outOfViewCallback()<i>: Promise</i></code></h5>
81
- <p>Callback method that is called when the component goes out of view. If <code>unrender</code> is set to <code>true</code>, it calls the <code>renderSkelton</code> method.</p>
82
-
83
- </main>
84
- <script type="module" src="../kempo/components/Import.js"></script>
85
- </body>
86
- </html>
@@ -1,71 +0,0 @@
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>ReactiveComponent - Components - Kempo Docs - A Web Components Solution</title>
7
- <link rel="stylesheet" href="../kempo/kempo-vars.css" /><link rel="stylesheet" href="../kempo/kempo-styles.css" />
8
- <link rel="stylesheet" href="../kempo/kempo-hljs.css" />
9
- <script type="module">
10
- import Import from '../kempo/components/Import.js';
11
- import Icon from '../kempo/components/Icon.js';
12
- import Search from '../kempo/components/Search.js';
13
- Import.addReplacement('root', '../');
14
- Icon.pathToIcons = ['../icons'];
15
- Search.searchDataUrl = '../search.json';
16
- </script>
17
- </head>
18
- <body>
19
- <k-import src="../nav.inc.html"></k-import>
20
- <h1 class="ta-center">ReactiveComponent</h1>
21
- <main>
22
- <details class="b r mb">
23
- <summary class="p">Table of Contents</summary>
24
- <div class="m mt0 pl">
25
- <h6>Examples</h6>
26
- <a href="#basicUsage">Basic Usage</a><br />
27
-
28
- <h6 class="mt">JavaScript Reference</h6>
29
- <a href="#constructor">Constructor</a><br />
30
- <a href="#requirements">Requirements</a><br />
31
- <a href="#attributes">Attributes</a><br />
32
- <a href="#properties">Properties</a><br />
33
- <a href="#methods">Methods</a><br />
34
- </div>
35
- </details>
36
-
37
- <h3>Description</h3>
38
- <p>The <code>ReactiveComponent</code> class extends the <a href="./component.html">Component</a> class and provides additional functionality to automatically re-render the component when specified attributes change.</p>
39
-
40
- <h3 id="basicUsage"><a href="#basicUsage" class="no-link">Basic Usage</a></h3>
41
- <p>Extend the <code>ReactiveComponent</code> class to create a component that automatically re-renders when specified attributes change.</p>
42
- <pre><code class="hljs javascript"><span class="hljs-keyword">import</span> ReactiveComponent <span class="hljs-keyword">from</span> <span class="hljs-string">'kempo'</span>;<br /><span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MyReactiveComponent</span> <span class="hljs-keyword">extends</span> <span class="hljs-title">ReactiveComponent</span> </span>{<br /> <span class="hljs-keyword">constructor</span>(){<br /> <span class="hljs-keyword">super</span>();<br /> <span class="hljs-comment">// Your Constructor</span><br /> }<br /> <span class="hljs-keyword">static</span> get renderOnChange(){<br /> <span class="hljs-keyword">return</span> [<span class="hljs-string">'my-attr'</span>];<br /> }<br /> <span class="hljs-keyword">async</span> render(force){<br /> <span class="hljs-keyword">if</span>(<span class="hljs-keyword">await</span> <span class="hljs-keyword">super</span>.render(force)){<br /> <span class="hljs-comment">// Your render logic</span><br /> <span class="hljs-keyword">return</span> <span class="hljs-literal">true</span>;<br /> }<br /> <span class="hljs-keyword">return</span> <span class="hljs-literal">false</span>;<br /> }<br />}<br /><span class="hljs-built_in">window</span>.customElements.define(<span class="hljs-string">'my-reactive-component'</span>, MyReactiveComponent);</code></pre>
43
-
44
- <h2 id="jsRef">JavaScript Reference</h2>
45
-
46
- <h3 id="constructor"><a href="#constructor" class="no-link">Constructor</a></h3>
47
- <h6>Extends <a href="./component.html">Component</a></h6>
48
- <h5>
49
- <code>new ReactiveComponent()</code>
50
- </h5>
51
-
52
- <h3 id="requirements"><a href="#requirements" class="no-link">Requirements</a></h3>
53
- <ul>
54
- <li><a href="./component.html">Component</a></li>
55
- </ul>
56
-
57
- <h3 id="attributes"><a href="#attributes" class="no-link">Attributes</a></h3>
58
- <p>The <code>ReactiveComponent</code> class does not introduce any new attributes beyond those provided by the <a href="./component.html">Component</a> class.</p>
59
-
60
- <h3 id="methods"><a href="#methods" class="no-link">Methods</a></h3>
61
- <h5><code>attributeChangedCallback(n, oV, nV)<i>: void</i></code></h5>
62
- <p>Overrides the <code>attributeChangedCallback</code> method to automatically re-render the component when specified attributes change.</p>
63
-
64
- <h3 id="properties"><a href="#properties" class="no-link">Properties</a></h3>
65
- <h5><code>static renderOnChange<i>: Array</i></code></h5>
66
- <p>An array of attribute names that should trigger a re-render when they change. This property should be overridden in your component class.</p>
67
-
68
- </main>
69
- <script type="module" src="../kempo/components/Import.js"></script>
70
- </body>
71
- </html>
@@ -1,71 +0,0 @@
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>ReactiveLazyComponent - Components - Kempo Docs - A Web Components Solution</title>
7
- <link rel="stylesheet" href="../kempo/kempo-vars.css" /><link rel="stylesheet" href="../kempo/kempo-styles.css" />
8
- <link rel="stylesheet" href="../kempo/kempo-hljs.css" />
9
- <script type="module">
10
- import Import from '../kempo/components/Import.js';
11
- import Icon from '../kempo/components/Icon.js';
12
- import Search from '../kempo/components/Search.js';
13
- Import.addReplacement('root', '../');
14
- Icon.pathToIcons = ['../icons'];
15
- Search.searchDataUrl = '../search.json';
16
- </script>
17
- </head>
18
- <body>
19
- <k-import src="../nav.inc.html"></k-import>
20
- <h1 class="ta-center">ReactiveLazyComponent</h1>
21
- <main>
22
- <details class="b r mb">
23
- <summary class="p">Table of Contents</summary>
24
- <div class="m mt0 pl">
25
- <h6>Examples</h6>
26
- <a href="#basicUsage">Basic Usage</a><br />
27
-
28
- <h6 class="mt">JavaScript Reference</h6>
29
- <a href="#constructor">Constructor</a><br />
30
- <a href="#requirements">Requirements</a><br />
31
- <a href="#attributes">Attributes</a><br />
32
- <a href="#properties">Properties</a><br />
33
- <a href="#methods">Methods</a><br />
34
- </div>
35
- </details>
36
-
37
- <h3>Description</h3>
38
- <p>The <code>ReactiveLazyComponent</code> class extends the <a href="./lazy-component.html">LazyComponent</a> class and provides additional functionality to automatically re-render the component when specified attributes change.</p>
39
-
40
- <h3 id="basicUsage"><a href="#basicUsage" class="no-link">Basic Usage</a></h3>
41
- <p>Extend the <code>ReactiveLazyComponent</code> class to create a component that automatically re-renders when specified attributes change and only renders its content when it becomes visible in the viewport.</p>
42
- <pre><code class="hljs javascript"><span class="hljs-keyword">import</span> ReactiveLazyComponent <span class="hljs-keyword">from</span> <span class="hljs-string">'kempo'</span>;<br /><span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MyReactiveLazyComponent</span> <span class="hljs-keyword">extends</span> <span class="hljs-title">ReactiveLazyComponent</span> </span>{<br /> <span class="hljs-keyword">constructor</span>(){<br /> <span class="hljs-keyword">super</span>();<br /> <span class="hljs-comment">// Your Constructor</span><br /> }<br /> <span class="hljs-keyword">static</span> get renderOnChange(){<br /> <span class="hljs-keyword">return</span> [<span class="hljs-string">'my-attr'</span>];<br /> }<br /> <span class="hljs-keyword">async</span> render(force){<br /> <span class="hljs-keyword">if</span>(<span class="hljs-keyword">await</span> <span class="hljs-keyword">super</span>.render(force)){<br /> <span class="hljs-comment">// Your render logic</span><br /> <span class="hljs-keyword">return</span> <span class="hljs-literal">true</span>;<br /> }<br /> <span class="hljs-keyword">return</span> <span class="hljs-literal">false</span>;<br /> }<br />}<br /><span class="hljs-built_in">window</span>.customElements.define(<span class="hljs-string">'my-reactive-lazy-component'</span>, MyReactiveLazyComponent);</code></pre>
43
-
44
- <h2 id="jsRef">JavaScript Reference</h2>
45
-
46
- <h3 id="constructor"><a href="#constructor" class="no-link">Constructor</a></h3>
47
- <h6>Extends <a href="./lazy-component.html">LazyComponent</a></h6>
48
- <h5>
49
- <code>new ReactiveLazyComponent()</code>
50
- </h5>
51
-
52
- <h3 id="requirements"><a href="#requirements" class="no-link">Requirements</a></h3>
53
- <ul>
54
- <li><a href="./lazy-component.html">LazyComponent</a></li>
55
- </ul>
56
-
57
- <h3 id="attributes"><a href="#attributes" class="no-link">Attributes</a></h3>
58
- <p>The <code>ReactiveLazyComponent</code> class does not introduce any new attributes beyond those provided by the <a href="./lazy-component.html">LazyComponent</a> class.</p>
59
-
60
- <h3 id="methods"><a href="#methods" class="no-link">Methods</a></h3>
61
- <h5><code>attributeChangedCallback(n, oV, nV)<i>: void</i></code></h5>
62
- <p>Overrides the <code>attributeChangedCallback</code> method to automatically re-render the component when specified attributes change.</p>
63
-
64
- <h3 id="properties"><a href="#properties" class="no-link">Properties</a></h3>
65
- <h5><code>static renderOnChange<i>: Array</i></code></h5>
66
- <p>An array of attribute names that should trigger a re-render when they change. This property should be overridden in your component class.</p>
67
-
68
- </main>
69
- <script type="module" src="../kempo/components/Import.js"></script>
70
- </body>
71
- </html>