@twobirds/microcomponents 0.0.66 → 0.0.68

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 (202) hide show
  1. package/.vscode/settings.json +1 -1
  2. package/README.md +11 -7
  3. package/assets/documentation/formvalues.md +26 -0
  4. package/assets/{test.html → test/test.html} +7 -7
  5. package/dist/microcomponents.d.ts +0 -1
  6. package/dist/microcomponents.d.ts.map +1 -1
  7. package/dist/microcomponents.min.js +1 -1
  8. package/dist/microcomponents.ts +1 -1
  9. package/package.json +5 -4
  10. package/public/MC.d.ts +36 -0
  11. package/public/MC.d.ts.map +1 -0
  12. package/public/MC.ts +605 -0
  13. package/public/McEvent.d.ts +15 -0
  14. package/public/McEvent.d.ts.map +1 -0
  15. package/public/McEvent.ts +96 -0
  16. package/public/MicroComponents.svg +15 -0
  17. package/public/documentation/MC.md +588 -0
  18. package/public/documentation/ajaxian-1.png +0 -0
  19. package/public/documentation/ajaxian-2.png +0 -0
  20. package/public/documentation/ajaxian-3.png +0 -0
  21. package/public/documentation/elements.md +278 -0
  22. package/public/documentation/formvalues.md +26 -0
  23. package/public/documentation/functional_requirements.md +8 -0
  24. package/public/documentation/history.md +436 -0
  25. package/public/documentation/magic.md +29 -0
  26. package/public/documentation/observables.md +107 -0
  27. package/public/documentation/rnd0023-1.jpg +0 -0
  28. package/public/documentation/rnd0023-2.jpg +0 -0
  29. package/public/documentation/rnd0023-3.jpg +0 -0
  30. package/public/documentation/tB_react.md +207 -0
  31. package/public/documentation/usage.md +142 -0
  32. package/public/documentation/why.md +25 -0
  33. package/public/elements.d.ts +5 -0
  34. package/public/elements.d.ts.map +1 -0
  35. package/public/elements.ts +76 -0
  36. package/public/fiddle/MicroComponents.svg +15 -0
  37. package/public/fiddle/fiddle.css +0 -0
  38. package/public/fiddle/fiddle.js +0 -0
  39. package/public/fiddle/index.html +0 -0
  40. package/public/formValues.d.ts +3 -0
  41. package/public/formValues.d.ts.map +1 -0
  42. package/public/formValues.ts +233 -0
  43. package/public/helpers.d.ts +14 -0
  44. package/public/helpers.d.ts.map +1 -0
  45. package/public/helpers.ts +149 -0
  46. package/public/microcomponents.d.ts +7 -0
  47. package/public/microcomponents.d.ts.map +1 -0
  48. package/public/microcomponents.es3.d.ts +2 -0
  49. package/public/microcomponents.es3.d.ts.map +1 -0
  50. package/public/microcomponents.js +0 -1
  51. package/public/microcomponents.js.map +1 -1
  52. package/public/microcomponents.min.js +1 -1
  53. package/public/microcomponents.ts +8 -0
  54. package/public/observables.d.ts +10 -0
  55. package/public/observables.d.ts.map +1 -0
  56. package/public/observables.ts +401 -0
  57. package/public/selectors.d.ts +108 -0
  58. package/public/selectors.d.ts.map +1 -0
  59. package/public/selectors.ts +1634 -0
  60. package/public/src/MC.ts +605 -0
  61. package/public/src/McEvent.ts +96 -0
  62. package/public/src/elements.ts +76 -0
  63. package/public/src/formValues.ts +233 -0
  64. package/public/src/helpers.ts +149 -0
  65. package/public/src/microcomponents.ts +8 -0
  66. package/public/src/observables.ts +401 -0
  67. package/public/src/selectors.ts +1634 -0
  68. package/public/src/test.ts +193 -0
  69. package/public/test/MC.d.ts +36 -0
  70. package/public/test/MC.d.ts.map +1 -0
  71. package/public/test/MC.js +378 -0
  72. package/public/test/MC.js.map +1 -0
  73. package/public/test/MC.ts +605 -0
  74. package/public/test/McEvent.d.ts +15 -0
  75. package/public/test/McEvent.d.ts.map +1 -0
  76. package/public/test/McEvent.js +71 -0
  77. package/public/test/McEvent.js.map +1 -0
  78. package/public/test/McEvent.ts +96 -0
  79. package/public/test/MicroComponents.svg +15 -0
  80. package/public/test/elements.d.ts +5 -0
  81. package/public/test/elements.d.ts.map +1 -0
  82. package/public/test/elements.js +48 -0
  83. package/public/test/elements.js.map +1 -0
  84. package/public/test/elements.ts +76 -0
  85. package/public/test/formValues.d.ts +3 -0
  86. package/public/test/formValues.d.ts.map +1 -0
  87. package/public/test/formValues.js +168 -0
  88. package/public/test/formValues.js.map +1 -0
  89. package/public/test/formValues.ts +233 -0
  90. package/public/test/grandparent.css +13 -0
  91. package/public/test/helpers.d.ts +14 -0
  92. package/public/test/helpers.d.ts.map +1 -0
  93. package/public/test/helpers.js +113 -0
  94. package/public/test/helpers.js.map +1 -0
  95. package/public/test/helpers.ts +149 -0
  96. package/public/test/microcomponents.d.ts +7 -0
  97. package/public/test/microcomponents.d.ts.map +1 -0
  98. package/public/test/microcomponents.es3.d.ts +2 -0
  99. package/public/test/microcomponents.es3.d.ts.map +1 -0
  100. package/public/test/microcomponents.es3.js +303 -0
  101. package/public/test/microcomponents.es3.js.map +1 -0
  102. package/public/test/microcomponents.js +8 -0
  103. package/public/test/microcomponents.js.map +1 -0
  104. package/public/test/microcomponents.min.js +1 -0
  105. package/public/test/microcomponents.ts +8 -0
  106. package/public/test/my-tag.css +19 -0
  107. package/public/test/observables.d.ts +10 -0
  108. package/public/test/observables.d.ts.map +1 -0
  109. package/public/test/observables.js +250 -0
  110. package/public/test/observables.js.map +1 -0
  111. package/public/test/observables.ts +401 -0
  112. package/public/test/selectors.d.ts +108 -0
  113. package/public/test/selectors.d.ts.map +1 -0
  114. package/public/test/selectors.js +971 -0
  115. package/public/test/selectors.js.map +1 -0
  116. package/public/test/selectors.ts +1634 -0
  117. package/public/test/test/child.d.ts +2 -0
  118. package/public/test/test/child.d.ts.map +1 -0
  119. package/public/test/test/child.js +15 -0
  120. package/public/test/test/child.js.map +1 -0
  121. package/public/test/test/grandchild.d.ts +2 -0
  122. package/public/test/test/grandchild.d.ts.map +1 -0
  123. package/public/test/test/grandchild.js +15 -0
  124. package/public/test/test/grandchild.js.map +1 -0
  125. package/public/test/test/grandparent.d.ts +2 -0
  126. package/public/test/test/grandparent.d.ts.map +1 -0
  127. package/public/test/test/grandparent.js +1 -0
  128. package/public/test/test/grandparent.js.map +1 -0
  129. package/public/test/test/greatgrandchild.d.ts +2 -0
  130. package/public/test/test/greatgrandchild.d.ts.map +1 -0
  131. package/public/test/test/greatgrandchild.js +29 -0
  132. package/public/test/test/greatgrandchild.js.map +1 -0
  133. package/public/test/test/parent.d.ts +2 -0
  134. package/public/test/test/parent.d.ts.map +1 -0
  135. package/public/test/test/parent.js +15 -0
  136. package/public/test/test/parent.js.map +1 -0
  137. package/public/test/test/testform.d.ts +2 -0
  138. package/public/test/test/testform.d.ts.map +1 -0
  139. package/public/test/test/testform.js +1 -0
  140. package/public/test/test/testform.js.map +1 -0
  141. package/public/test/test/testmc.d.ts +6 -0
  142. package/public/test/test/testmc.d.ts.map +1 -0
  143. package/public/test/test/testmc.js +10 -0
  144. package/public/test/test/testmc.js.map +1 -0
  145. package/public/test/test.d.ts +2 -0
  146. package/public/test/test.d.ts.map +1 -0
  147. package/public/test/test.html +27 -0
  148. package/public/test/test.ts +193 -0
  149. package/public/typedoc/.nojekyll +1 -0
  150. package/public/{classes → typedoc/classes}/MC.DC.html +2 -2
  151. package/public/{classes → typedoc/classes}/MC.MC.html +2 -2
  152. package/public/{classes → typedoc/classes}/MC.McBase.html +2 -2
  153. package/public/{classes → typedoc/classes}/MC.McEvent.html +2 -2
  154. package/public/{functions → typedoc/functions}/MC.addListener.html +1 -1
  155. package/public/{functions → typedoc/functions}/MC.autoload.html +1 -1
  156. package/public/{functions → typedoc/functions}/MC.removeListener.html +1 -1
  157. package/public/{functions → typedoc/functions}/elements.defineCE.html +1 -1
  158. package/public/{functions → typedoc/functions}/elements.getCE.html +1 -1
  159. package/public/{functions → typedoc/functions}/formValues.formValues.html +1 -1
  160. package/public/{functions → typedoc/functions}/observables.observe.html +1 -1
  161. package/public/{functions → typedoc/functions}/selectors._d.html +1 -1
  162. package/public/{functions → typedoc/functions}/selectors._t.html +1 -1
  163. package/public/{index.html → typedoc/index.html} +9 -7
  164. package/public/{interfaces → typedoc/interfaces}/MC.HTMLMcElement.html +2 -2
  165. package/public/{interfaces → typedoc/interfaces}/selectors.DSelector.html +2 -2
  166. package/public/{interfaces → typedoc/interfaces}/selectors.TSelector.html +2 -2
  167. package/public/typedoc/media/MicroComponents.svg +15 -0
  168. package/public/{modules → typedoc/modules}/MC.html +1 -1
  169. package/public/{modules → typedoc/modules}/elements.html +1 -1
  170. package/public/{modules → typedoc/modules}/formValues.html +1 -1
  171. package/public/{modules → typedoc/modules}/observables.html +1 -1
  172. package/public/{modules → typedoc/modules}/selectors.html +1 -1
  173. package/public/{types → typedoc/types}/observables.Observable.html +1 -1
  174. package/public/{types → typedoc/types}/selectors.selection.html +1 -1
  175. package/public/{types → typedoc/types}/selectors.singleSelector.html +1 -1
  176. package/src/microcomponents.ts +1 -1
  177. package/src/test/{child.ts → test/child.ts} +1 -1
  178. package/src/test/{grandchild.ts → test/grandchild.ts} +1 -1
  179. package/src/test/{grandparent.ts → test/grandparent.ts} +1 -1
  180. package/src/test/{greatgrandchild.ts → test/greatgrandchild.ts} +1 -1
  181. package/src/test/{parent.ts → test/parent.ts} +1 -1
  182. package/src/test/{testform.ts → test/testform.ts} +1 -1
  183. package/src/test/test/testmc.ts +12 -0
  184. package/tsconfig.json +2 -2
  185. package/typedoc.json +1 -1
  186. package/webpack.config.js +4 -4
  187. package/assets/3d.html +0 -42
  188. package/src/test/testmc.ts +0 -18
  189. /package/{public/media → assets/test}/MicroComponents.svg +0 -0
  190. /package/assets/{grandparent.css → test/grandparent.css} +0 -0
  191. /package/assets/{my-tag.css → test/my-tag.css} +0 -0
  192. /package/public/{test.js → test/test.js} +0 -0
  193. /package/public/{test.js.map → test/test.js.map} +0 -0
  194. /package/public/{assets → typedoc/assets}/highlight.css +0 -0
  195. /package/public/{assets → typedoc/assets}/icons.js +0 -0
  196. /package/public/{assets → typedoc/assets}/icons.svg +0 -0
  197. /package/public/{assets → typedoc/assets}/main.js +0 -0
  198. /package/public/{assets → typedoc/assets}/navigation.js +0 -0
  199. /package/public/{assets → typedoc/assets}/search.js +0 -0
  200. /package/public/{assets → typedoc/assets}/style.css +0 -0
  201. /package/public/{hierarchy.html → typedoc/hierarchy.html} +0 -0
  202. /package/public/{modules.html → typedoc/modules.html} +0 -0
@@ -1 +1 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>$d | Micro Components</title><meta name="description" content="Documentation for Micro Components"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">Micro Components</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">Micro Components</a></li><li><a href="../modules/selectors.html">selectors</a></li><li><a href="selectors._d.html">$d</a></li></ul><h1>Function $d</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="_d" class="tsd-anchor"></a><span class="tsd-kind-call-signature">$d</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">selection</span>, <span class="tsd-kind-parameter">element</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/selectors.DSelector.html" class="tsd-signature-type tsd-kind-interface">DSelector</a><a href="#_d" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">selection</span>: <a href="../types/selectors.selection.html" class="tsd-signature-type tsd-kind-type-alias">selection</a></span></li><li><span><span class="tsd-kind-parameter">element</span>: <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> = document</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <a href="../interfaces/selectors.DSelector.html" class="tsd-signature-type tsd-kind-interface">DSelector</a></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/b1455042f8eaf1e00ddc23aaacde30095fd8d90b/src/selectors.ts#L1610">src/selectors.ts:1610</a></li></ul></aside></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>Micro Components</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>$d | Micro Components</title><meta name="description" content="Documentation for Micro Components"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">Micro Components</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">Micro Components</a></li><li><a href="../modules/selectors.html">selectors</a></li><li><a href="selectors._d.html">$d</a></li></ul><h1>Function $d</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="_d" class="tsd-anchor"></a><span class="tsd-kind-call-signature">$d</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">selection</span>, <span class="tsd-kind-parameter">element</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/selectors.DSelector.html" class="tsd-signature-type tsd-kind-interface">DSelector</a><a href="#_d" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">selection</span>: <a href="../types/selectors.selection.html" class="tsd-signature-type tsd-kind-type-alias">selection</a></span></li><li><span><span class="tsd-kind-parameter">element</span>: <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> = document</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <a href="../interfaces/selectors.DSelector.html" class="tsd-signature-type tsd-kind-interface">DSelector</a></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/ebe09346b9f8b57f4f1d2e65f00e93c5a545ab9c/src/selectors.ts#L1610">src/selectors.ts:1610</a></li></ul></aside></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>Micro Components</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
@@ -1 +1 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>$t | Micro Components</title><meta name="description" content="Documentation for Micro Components"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">Micro Components</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">Micro Components</a></li><li><a href="../modules/selectors.html">selectors</a></li><li><a href="selectors._t.html">$t</a></li></ul><h1>Function $t</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="_t" class="tsd-anchor"></a><span class="tsd-kind-call-signature">$t</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">selection</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">element</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/selectors.TSelector.html" class="tsd-signature-type tsd-kind-interface">TSelector</a><a href="#_t" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">selection</span>: <a href="../types/selectors.selection.html" class="tsd-signature-type tsd-kind-type-alias">selection</a></span></li><li><span><span class="tsd-kind-parameter">element</span>: <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> = document</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <a href="../interfaces/selectors.TSelector.html" class="tsd-signature-type tsd-kind-interface">TSelector</a></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/b1455042f8eaf1e00ddc23aaacde30095fd8d90b/src/selectors.ts#L1628">src/selectors.ts:1628</a></li></ul></aside></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>Micro Components</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>$t | Micro Components</title><meta name="description" content="Documentation for Micro Components"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">Micro Components</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">Micro Components</a></li><li><a href="../modules/selectors.html">selectors</a></li><li><a href="selectors._t.html">$t</a></li></ul><h1>Function $t</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="_t" class="tsd-anchor"></a><span class="tsd-kind-call-signature">$t</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">selection</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">element</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/selectors.TSelector.html" class="tsd-signature-type tsd-kind-interface">TSelector</a><a href="#_t" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">selection</span>: <a href="../types/selectors.selection.html" class="tsd-signature-type tsd-kind-type-alias">selection</a></span></li><li><span><span class="tsd-kind-parameter">element</span>: <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> = document</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <a href="../interfaces/selectors.TSelector.html" class="tsd-signature-type tsd-kind-interface">TSelector</a></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/ebe09346b9f8b57f4f1d2e65f00e93c5a545ab9c/src/selectors.ts#L1628">src/selectors.ts:1628</a></li></ul></aside></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>Micro Components</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
@@ -1,26 +1,28 @@
1
1
  <!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Micro Components</title><meta name="description" content="Documentation for Micro Components"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script defer src="assets/main.js"></script><script async src="assets/icons.js" id="tsd-icons-script"></script><script async src="assets/search.js" id="tsd-search-script"></script><script async src="assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base="."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">Micro Components</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><h1>Micro Components</h1></div><div class="tsd-panel tsd-typography"><p><img src="media/MicroComponents.svg" alt="logo"></p>
2
2
  <a id="md:micro-components" class="tsd-anchor"></a><h2 class="tsd-anchor-link">MICRO COMPONENTS<a href="#md:micro-components" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h2><p><strong>This code aims at improving Javascript modularity and encapsulation</strong>.</p>
3
3
  <p>Using micro components enforces <strong>DRY, KISS and SOLID</strong> principles in Javascript programming.</p>
4
- <a id="md:think-building-blocks" class="tsd-anchor"></a><h2 class="tsd-anchor-link">Think <strong>Building Blocks</strong><a href="#md:think-building-blocks" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h2><p>In general this is a <strong>HTML / Web Standards first</strong> system. There is almost no abstraction, especially not for templating, except state binding to the DOM.</p>
4
+ <p>Also you should embrace <strong>DIY</strong> (Do It Yourself) <strong>over Toolchains</strong> as much as possible.</p>
5
+ <a id="md:think-building-blocks" class="tsd-anchor"></a><h2 class="tsd-anchor-link">Think <strong>Building Blocks</strong><a href="#md:think-building-blocks" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h2><p>In general this is a <strong>HTML / Web Standards first</strong> system. There is almost no abstraction, especially not for templating, except state binding to the DOM via simple placeholders.</p>
5
6
  <p>When coding with this system, you create classes that extend either the <strong><a href="https://gitlab.com/twoBirds/microcomponents/-/blob/main/assets/documentation/MC.md?ref_type=heads#mc-class-extends-mcbase" target="_blank" class="external">MC</a></strong> or <strong><a href="https://gitlab.com/twoBirds/microcomponents/-/blob/main/assets/documentation/MC.md?ref_type=heads#dc-class-extends-mcbase" target="_blank" class="external">DC</a></strong> superclasses provided here. These classes provide the structure you need to build your wonderland. You can attach instances of your custom code to any HTMLElement, and there can be as many as you want connected to a single HTML tag.</p>
6
7
  <p>In an almost literal sense they work like childrens building blocks, where a chest full of unassuming parts lets you compose whatever functionality lies in your imagination.</p>
7
- <p>Also you can easily define native JS custom elements, and since these are just another instance of DC, you can enhance them even at runtime, as they are displayed in the browser.</p>
8
- <p>This systems <strong>modular</strong> approach gives you full control over your software, without the need to rely on other frameworks. On the other hand, its <strong>minimalistic</strong> stance enables you to use the resulting functionality in any other framework, and makes the <strong>learning curve neglectable</strong>.</p>
9
- <a id="md:status" class="tsd-anchor"></a><h2 class="tsd-anchor-link">Status<a href="#md:status" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h2><p><strong>WIP</strong>. Should be done soon. In <a href="https://twobirds.gitlab.io/microcomponents/test.html" target="_blank" class="external">manual testing</a>, also working a lot on the documentation.</p>
8
+ <p>Also you can easily define native JS custom elements. Since these are just another instance of a DC internally, you can enhance them even at runtime, as they are displayed in the browser.</p>
9
+ <p>This systems <strong>modular</strong> approach gives you full control over your software, without the need to rely on other frameworks.</p>
10
+ <p>On the other hand, its <strong>minimalistic</strong> stance enables you to use the resulting functionality in any other framework, and makes the <strong>learning curve neglectable</strong>.</p>
11
+ <a id="md:status" class="tsd-anchor"></a><h2 class="tsd-anchor-link">Status<a href="#md:status" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h2><p><strong>WIP</strong>. Should be done soon. In <a href="https://twobirds.gitlab.io/microcomponents/test/test.html" target="_blank" class="external">manual testing</a>, also working a lot on the documentation.</p>
10
12
  <a id="md:general" class="tsd-anchor"></a><h2 class="tsd-anchor-link">General<a href="#md:general" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h2><ul>
11
13
  <li><strong>This is a low-level OOP approach to Javascript programming.</strong> It aims at proving that strict OOP is a valid alternative to other frameworks functional approaches.</li>
12
- <li>You can use it in vanilla JS or Typescript coding environments.</li>
14
+ <li>You can use it <strong>Vanilla JS or Typescript</strong>.</li>
13
15
  </ul>
14
16
  <p>This repository exports 5 independent functionalities:</p>
15
17
  <ol>
16
18
  <li><strong><a href="https://gitlab.com/twoBirds/microcomponents/-/blob/main/assets/documentation/MC.md?ref_type=heads" target="_blank" class="external">Micro Components</a></strong> contains the <strong>MC</strong> and <strong>DC</strong> classes you can use as super classes.</li>
17
19
  <li><strong><a href="https://gitlab.com/twoBirds/microcomponents/-/blob/main/assets/documentation/elements.md?ref_type=heads" target="_blank" class="external">Elements</a></strong> lets you define and use your own native web components. Uses (1).</li>
18
20
  <li><strong><a href="https://gitlab.com/twoBirds/microcomponents/-/blob/main/assets/documentation/observables.md?ref_type=heads" target="_blank" class="external">Observables</a></strong> add <strong>observability</strong> and <strong>run time type safety</strong> to object properties. Also they provide <strong>1-way binding</strong> to placeholders in your template HTML.</li>
19
- <li>(wip) <strong>FormValues</strong> gives you <strong>2-way binding</strong> between a HTML form and an observable object. Uses (3).</li>
21
+ <li><strong><a href="https://gitlab.com/twoBirds/microcomponents/-/blob/main/assets/documentation/formvalues.md?ref_type=heads" target="_blank" class="external">Fomvalues</a></strong> gives you <strong>2-way binding</strong> between a HTML form and an observable object. Uses (3).</li>
20
22
  <li>(wip) <strong>Selectors</strong> provide chainable jQuery like selectors for both the DOM and micro components.</li>
21
23
  </ol>
22
24
  <p>Also there is a bundle file that contains all of the above.</p>
23
- <p>Check the <a href="https://twobirds.gitlab.io/microcomponents/modules.html" target="_blank" class="external">typedoc API reference</a> if you want to drill into the source code.</p>
25
+ <p>Check the <a href="https://twobirds.gitlab.io/microcomponents/typedoc/index.html" target="_blank" class="external">typedoc API reference</a> if you want to drill into the source code.</p>
24
26
  <p>To see what can be done, go to <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/main/assets/documentation/magic.md?ref_type=heads" target="_blank" class="external">additional concepts</a> which shows what it already has been used for.</p>
25
27
  <a id="md:simple-usage-example" class="tsd-anchor"></a><h2 class="tsd-anchor-link">Simple Usage Example<a href="#md:simple-usage-example" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h2><p><strong>Micro Components</strong> can be added to to a DOM element like this:</p>
26
28
  <p>before:</p>