@twobirds/microcomponents 0.1.1 → 0.1.2

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 (324) hide show
  1. package/dist/MC.min.js +33 -52
  2. package/dist/elements.min.js +1 -1
  3. package/dist/formValues.min.js +1 -1
  4. package/dist/microcomponents.min.js +1 -1
  5. package/dist/observables.min.js +1 -1
  6. package/package.json +11 -2
  7. package/.gitlab-ci.yml +0 -18
  8. package/.vscode/settings.json +0 -3
  9. package/MicroComponents.svg +0 -15
  10. package/assets/documentation/MC.md +0 -547
  11. package/assets/documentation/MicroComponents.svg +0 -15
  12. package/assets/documentation/ajaxian-1.png +0 -0
  13. package/assets/documentation/ajaxian-2.png +0 -0
  14. package/assets/documentation/ajaxian-3.png +0 -0
  15. package/assets/documentation/elements.md +0 -277
  16. package/assets/documentation/formvalues.md +0 -25
  17. package/assets/documentation/functional_requirements.md +0 -8
  18. package/assets/documentation/history.md +0 -436
  19. package/assets/documentation/klemmstein.png +0 -0
  20. package/assets/documentation/magic.md +0 -29
  21. package/assets/documentation/observables.md +0 -187
  22. package/assets/documentation/rnd0023-1.jpg +0 -0
  23. package/assets/documentation/rnd0023-2.jpg +0 -0
  24. package/assets/documentation/rnd0023-3.jpg +0 -0
  25. package/assets/documentation/tB_react.md +0 -207
  26. package/assets/documentation/usage.md +0 -142
  27. package/assets/documentation/why.md +0 -25
  28. package/assets/fiddle/MicroComponents.svg +0 -15
  29. package/assets/fiddle/fiddle.css +0 -0
  30. package/assets/fiddle/fiddle.js +0 -0
  31. package/assets/fiddle/index.html +0 -0
  32. package/assets/test/MicroComponents.svg +0 -15
  33. package/assets/test/grandparent.css +0 -16
  34. package/assets/test/myButton.css +0 -19
  35. package/assets/test/style.css +0 -8
  36. package/assets/test/test.html +0 -29
  37. package/assets/test/testform.json +0 -27
  38. package/public/.nojekyll +0 -1
  39. package/public/MC.d.ts +0 -39
  40. package/public/MC.d.ts.map +0 -1
  41. package/public/MC.js +0 -287
  42. package/public/MC.js.map +0 -1
  43. package/public/MC.min.js +0 -348
  44. package/public/MC.ts +0 -431
  45. package/public/MicroComponents.svg +0 -15
  46. package/public/documentation/MC.md +0 -547
  47. package/public/documentation/MicroComponents.svg +0 -15
  48. package/public/documentation/ajaxian-1.png +0 -0
  49. package/public/documentation/ajaxian-2.png +0 -0
  50. package/public/documentation/ajaxian-3.png +0 -0
  51. package/public/documentation/elements.md +0 -277
  52. package/public/documentation/formvalues.md +0 -25
  53. package/public/documentation/functional_requirements.md +0 -8
  54. package/public/documentation/history.md +0 -436
  55. package/public/documentation/klemmstein.png +0 -0
  56. package/public/documentation/magic.md +0 -29
  57. package/public/documentation/observables.md +0 -187
  58. package/public/documentation/rnd0023-1.jpg +0 -0
  59. package/public/documentation/rnd0023-2.jpg +0 -0
  60. package/public/documentation/rnd0023-3.jpg +0 -0
  61. package/public/documentation/tB_react.md +0 -207
  62. package/public/documentation/usage.md +0 -142
  63. package/public/documentation/why.md +0 -25
  64. package/public/elements.d.ts +0 -5
  65. package/public/elements.d.ts.map +0 -1
  66. package/public/elements.js +0 -68
  67. package/public/elements.js.map +0 -1
  68. package/public/elements.min.js +0 -1
  69. package/public/elements.ts +0 -119
  70. package/public/fiddle/MicroComponents.svg +0 -15
  71. package/public/fiddle/fiddle.css +0 -0
  72. package/public/fiddle/fiddle.js +0 -0
  73. package/public/fiddle/index.html +0 -0
  74. package/public/formValues.d.ts +0 -3
  75. package/public/formValues.d.ts.map +0 -1
  76. package/public/formValues.js +0 -162
  77. package/public/formValues.js.map +0 -1
  78. package/public/formValues.min.js +0 -1
  79. package/public/formValues.ts +0 -225
  80. package/public/helpers.d.ts +0 -14
  81. package/public/helpers.d.ts.map +0 -1
  82. package/public/helpers.js +0 -113
  83. package/public/helpers.js.map +0 -1
  84. package/public/helpers.ts +0 -149
  85. package/public/microcomponents.d.ts +0 -6
  86. package/public/microcomponents.d.ts.map +0 -1
  87. package/public/microcomponents.js +0 -7
  88. package/public/microcomponents.js.map +0 -1
  89. package/public/microcomponents.min.js +0 -1
  90. package/public/microcomponents.ts +0 -8
  91. package/public/observables.d.ts +0 -11
  92. package/public/observables.d.ts.map +0 -1
  93. package/public/observables.js +0 -244
  94. package/public/observables.js.map +0 -1
  95. package/public/observables.min.js +0 -1
  96. package/public/observables.ts +0 -416
  97. package/public/selectors._ts +0 -1269
  98. package/public/src/MC.d.ts +0 -39
  99. package/public/src/MC.d.ts.map +0 -1
  100. package/public/src/MC.js +0 -287
  101. package/public/src/MC.js.map +0 -1
  102. package/public/src/MC.ts +0 -431
  103. package/public/src/elements.d.ts +0 -5
  104. package/public/src/elements.d.ts.map +0 -1
  105. package/public/src/elements.js +0 -68
  106. package/public/src/elements.js.map +0 -1
  107. package/public/src/elements.ts +0 -119
  108. package/public/src/formValues.d.ts +0 -3
  109. package/public/src/formValues.d.ts.map +0 -1
  110. package/public/src/formValues.js +0 -162
  111. package/public/src/formValues.js.map +0 -1
  112. package/public/src/formValues.ts +0 -225
  113. package/public/src/helpers.d.ts +0 -14
  114. package/public/src/helpers.d.ts.map +0 -1
  115. package/public/src/helpers.js +0 -113
  116. package/public/src/helpers.js.map +0 -1
  117. package/public/src/helpers.ts +0 -149
  118. package/public/src/microcomponents.d.ts +0 -6
  119. package/public/src/microcomponents.d.ts.map +0 -1
  120. package/public/src/microcomponents.js +0 -7
  121. package/public/src/microcomponents.js.map +0 -1
  122. package/public/src/microcomponents.ts +0 -8
  123. package/public/src/observables.d.ts +0 -11
  124. package/public/src/observables.d.ts.map +0 -1
  125. package/public/src/observables.js +0 -244
  126. package/public/src/observables.js.map +0 -1
  127. package/public/src/observables.ts +0 -416
  128. package/public/src/selectors._ts +0 -1269
  129. package/public/src/test/grandparent.css +0 -14
  130. package/public/src/test/test/child.d.ts +0 -2
  131. package/public/src/test/test/child.d.ts.map +0 -1
  132. package/public/src/test/test/child.js +0 -26
  133. package/public/src/test/test/child.js.map +0 -1
  134. package/public/src/test/test/child.ts +0 -36
  135. package/public/src/test/test/grandchild.d.ts +0 -2
  136. package/public/src/test/test/grandchild.d.ts.map +0 -1
  137. package/public/src/test/test/grandchild.js +0 -22
  138. package/public/src/test/test/grandchild.js.map +0 -1
  139. package/public/src/test/test/grandchild.ts +0 -31
  140. package/public/src/test/test/grandparent.d.ts +0 -2
  141. package/public/src/test/test/grandparent.d.ts.map +0 -1
  142. package/public/src/test/test/grandparent.js +0 -1
  143. package/public/src/test/test/grandparent.js.map +0 -1
  144. package/public/src/test/test/grandparent.ts +0 -43
  145. package/public/src/test/test/greatgrandchild.d.ts +0 -2
  146. package/public/src/test/test/greatgrandchild.d.ts.map +0 -1
  147. package/public/src/test/test/greatgrandchild.js +0 -36
  148. package/public/src/test/test/greatgrandchild.js.map +0 -1
  149. package/public/src/test/test/greatgrandchild.ts +0 -51
  150. package/public/src/test/test/parent.d.ts +0 -2
  151. package/public/src/test/test/parent.d.ts.map +0 -1
  152. package/public/src/test/test/parent.js +0 -25
  153. package/public/src/test/test/parent.js.map +0 -1
  154. package/public/src/test/test/parent.ts +0 -35
  155. package/public/src/test/test/testform.d.ts +0 -2
  156. package/public/src/test/test/testform.d.ts.map +0 -1
  157. package/public/src/test/test/testform.js +0 -1
  158. package/public/src/test/test/testform.js.map +0 -1
  159. package/public/src/test/test/testform.ts +0 -153
  160. package/public/src/test/test/testfunction.d.ts +0 -3
  161. package/public/src/test/test/testfunction.d.ts.map +0 -1
  162. package/public/src/test/test/testfunction.js +0 -7
  163. package/public/src/test/test/testfunction.js.map +0 -1
  164. package/public/src/test/test/testfunction.ts +0 -12
  165. package/public/src/test/test/testmc.d.ts +0 -3
  166. package/public/src/test/test/testmc.d.ts.map +0 -1
  167. package/public/src/test/test/testmc.js +0 -10
  168. package/public/src/test/test/testmc.js.map +0 -1
  169. package/public/src/test/test/testmc.ts +0 -16
  170. package/public/src/test/test/testsimpleclass.d.ts +0 -3
  171. package/public/src/test/test/testsimpleclass.d.ts.map +0 -1
  172. package/public/src/test/test/testsimpleclass.js +0 -9
  173. package/public/src/test/test/testsimpleclass.js.map +0 -1
  174. package/public/src/test/test/testsimpleclass.ts +0 -15
  175. package/public/src/test/test.d.ts +0 -2
  176. package/public/src/test/test.d.ts.map +0 -1
  177. package/public/src/test/test.js +0 -72
  178. package/public/src/test/test.js.map +0 -1
  179. package/public/src/test/test.ts +0 -176
  180. package/public/src/test/testform.css +0 -47
  181. package/public/src/test/testform.html +0 -56
  182. package/public/src/test/testform.json +0 -27
  183. package/public/test/MC.d.ts +0 -39
  184. package/public/test/MC.d.ts.map +0 -1
  185. package/public/test/MC.js +0 -287
  186. package/public/test/MC.min.js +0 -348
  187. package/public/test/MC.ts +0 -431
  188. package/public/test/MicroComponents.svg +0 -15
  189. package/public/test/elements.d.ts +0 -5
  190. package/public/test/elements.d.ts.map +0 -1
  191. package/public/test/elements.js +0 -68
  192. package/public/test/elements.min.js +0 -1
  193. package/public/test/elements.ts +0 -119
  194. package/public/test/formValues.d.ts +0 -3
  195. package/public/test/formValues.d.ts.map +0 -1
  196. package/public/test/formValues.js +0 -162
  197. package/public/test/formValues.min.js +0 -1
  198. package/public/test/formValues.ts +0 -225
  199. package/public/test/grandparent.css +0 -14
  200. package/public/test/helpers.d.ts +0 -14
  201. package/public/test/helpers.d.ts.map +0 -1
  202. package/public/test/helpers.js +0 -113
  203. package/public/test/helpers.ts +0 -149
  204. package/public/test/microcomponents.d.ts +0 -6
  205. package/public/test/microcomponents.d.ts.map +0 -1
  206. package/public/test/microcomponents.js +0 -7
  207. package/public/test/microcomponents.min.js +0 -1
  208. package/public/test/microcomponents.ts +0 -8
  209. package/public/test/myButton.css +0 -19
  210. package/public/test/observables.d.ts +0 -11
  211. package/public/test/observables.d.ts.map +0 -1
  212. package/public/test/observables.js +0 -244
  213. package/public/test/observables.min.js +0 -1
  214. package/public/test/observables.ts +0 -416
  215. package/public/test/style.css +0 -8
  216. package/public/test/test/child.d.ts +0 -2
  217. package/public/test/test/child.d.ts.map +0 -1
  218. package/public/test/test/child.js +0 -26
  219. package/public/test/test/child.js.map +0 -1
  220. package/public/test/test/child.ts +0 -36
  221. package/public/test/test/grandchild.d.ts +0 -2
  222. package/public/test/test/grandchild.d.ts.map +0 -1
  223. package/public/test/test/grandchild.js +0 -22
  224. package/public/test/test/grandchild.js.map +0 -1
  225. package/public/test/test/grandchild.ts +0 -31
  226. package/public/test/test/grandparent.d.ts +0 -2
  227. package/public/test/test/grandparent.d.ts.map +0 -1
  228. package/public/test/test/grandparent.js +0 -1
  229. package/public/test/test/grandparent.js.map +0 -1
  230. package/public/test/test/grandparent.ts +0 -43
  231. package/public/test/test/greatgrandchild.d.ts +0 -2
  232. package/public/test/test/greatgrandchild.d.ts.map +0 -1
  233. package/public/test/test/greatgrandchild.js +0 -36
  234. package/public/test/test/greatgrandchild.js.map +0 -1
  235. package/public/test/test/greatgrandchild.ts +0 -51
  236. package/public/test/test/parent.d.ts +0 -2
  237. package/public/test/test/parent.d.ts.map +0 -1
  238. package/public/test/test/parent.js +0 -25
  239. package/public/test/test/parent.js.map +0 -1
  240. package/public/test/test/parent.ts +0 -35
  241. package/public/test/test/testform.d.ts +0 -2
  242. package/public/test/test/testform.d.ts.map +0 -1
  243. package/public/test/test/testform.js +0 -1
  244. package/public/test/test/testform.js.map +0 -1
  245. package/public/test/test/testform.ts +0 -153
  246. package/public/test/test/testfunction.d.ts +0 -3
  247. package/public/test/test/testfunction.d.ts.map +0 -1
  248. package/public/test/test/testfunction.js +0 -7
  249. package/public/test/test/testfunction.js.map +0 -1
  250. package/public/test/test/testfunction.ts +0 -12
  251. package/public/test/test/testmc.d.ts +0 -3
  252. package/public/test/test/testmc.d.ts.map +0 -1
  253. package/public/test/test/testmc.js +0 -10
  254. package/public/test/test/testmc.js.map +0 -1
  255. package/public/test/test/testmc.ts +0 -16
  256. package/public/test/test/testsimpleclass.d.ts +0 -3
  257. package/public/test/test/testsimpleclass.d.ts.map +0 -1
  258. package/public/test/test/testsimpleclass.js +0 -9
  259. package/public/test/test/testsimpleclass.js.map +0 -1
  260. package/public/test/test/testsimpleclass.ts +0 -15
  261. package/public/test/test.d.ts +0 -2
  262. package/public/test/test.d.ts.map +0 -1
  263. package/public/test/test.html +0 -29
  264. package/public/test/test.js +0 -72
  265. package/public/test/test.js.map +0 -1
  266. package/public/test/test.ts +0 -176
  267. package/public/test/testform.css +0 -47
  268. package/public/test/testform.html +0 -56
  269. package/public/test/testform.json +0 -27
  270. package/public/typedoc/.nojekyll +0 -1
  271. package/public/typedoc/assets/highlight.css +0 -106
  272. package/public/typedoc/assets/icons.js +0 -18
  273. package/public/typedoc/assets/icons.svg +0 -1
  274. package/public/typedoc/assets/main.js +0 -60
  275. package/public/typedoc/assets/navigation.js +0 -1
  276. package/public/typedoc/assets/search.js +0 -1
  277. package/public/typedoc/assets/style.css +0 -1493
  278. package/public/typedoc/classes/MC.DC.html +0 -13
  279. package/public/typedoc/classes/MC.MC.html +0 -3
  280. package/public/typedoc/classes/MC.McBase.html +0 -3
  281. package/public/typedoc/functions/MC.autoload.html +0 -1
  282. package/public/typedoc/functions/MC.off.html +0 -1
  283. package/public/typedoc/functions/MC.on.html +0 -1
  284. package/public/typedoc/functions/MC.one.html +0 -1
  285. package/public/typedoc/functions/MC.trigger.html +0 -1
  286. package/public/typedoc/functions/elements.defineCE.html +0 -1
  287. package/public/typedoc/functions/elements.getCE.html +0 -1
  288. package/public/typedoc/functions/formValues.formValues.html +0 -1
  289. package/public/typedoc/functions/observables.observe.html +0 -1
  290. package/public/typedoc/hierarchy.html +0 -1
  291. package/public/typedoc/index.html +0 -122
  292. package/public/typedoc/interfaces/MC.HTMLMcElement.html +0 -758
  293. package/public/typedoc/media/MicroComponents.svg +0 -15
  294. package/public/typedoc/modules/MC.html +0 -10
  295. package/public/typedoc/modules/elements.html +0 -3
  296. package/public/typedoc/modules/formValues.html +0 -2
  297. package/public/typedoc/modules/observables.html +0 -3
  298. package/public/typedoc/modules.html +0 -5
  299. package/public/typedoc/types/observables.Observable.html +0 -1
  300. package/src/MC.ts +0 -431
  301. package/src/elements.ts +0 -119
  302. package/src/formValues.ts +0 -225
  303. package/src/helpers.ts +0 -149
  304. package/src/microcomponents.ts +0 -8
  305. package/src/observables.ts +0 -416
  306. package/src/selectors._ts +0 -1269
  307. package/src/test/grandparent.css +0 -14
  308. package/src/test/test/child.ts +0 -36
  309. package/src/test/test/grandchild.ts +0 -31
  310. package/src/test/test/grandparent.ts +0 -43
  311. package/src/test/test/greatgrandchild.ts +0 -51
  312. package/src/test/test/parent.ts +0 -35
  313. package/src/test/test/testform.ts +0 -153
  314. package/src/test/test/testfunction.ts +0 -12
  315. package/src/test/test/testmc.ts +0 -16
  316. package/src/test/test/testsimpleclass.ts +0 -15
  317. package/src/test/test.ts +0 -176
  318. package/src/test/testform.css +0 -47
  319. package/src/test/testform.html +0 -56
  320. package/src/test/testform.json +0 -27
  321. package/tasks.md +0 -36
  322. package/tsconfig.json +0 -107
  323. package/typedoc.json +0 -7
  324. package/webpack.config.js +0 -346
@@ -1,56 +0,0 @@
1
- <!-- test form -->
2
- <fieldset>
3
- <legend>Inputs</legend>
4
- <label>text</label><input type="text" name="textInput" value="" />&nbsp;<strong>2wB:&nbsp;</strong>{textInput}
5
- <label>color</label><input type="color" name="colorInput" value="" />
6
- <label>date</label><input type="date" name="dateInput" value="" />
7
- <label>datetime-local</label><input type="datetime-local" name="dtlInput" value="" />
8
- <label>email</label><input type="email" name="email" value="" />
9
- <label>file</label><input type="file" name="fileInput" value="" />
10
- <label>hidden</label><input type="hidden" name="hiddenInput" value="hiddenVal" />
11
- <label>month</label><input type="month" name="month" value="" />
12
- <label>number</label><input type="number" name="number" value="" />
13
- <label>password</label><input type="password" name="passInput" value="" />
14
- <label>range</label><input type="range" name="rangeInput" value="" />
15
- <label>search</label><input type="search" name="searchInput" value="" />
16
- <label>tel</label><input type="tel" name="telInput" value="" />
17
- <label>time</label><input type="time" name="timeInput" value="" />
18
- <label>url</label><input type="url" name="urlInput" value="" />
19
- <label>week</label><input type="week" name="weekInput" value="" />
20
- </fieldset>
21
- <fieldset>
22
- <legend>Selects</legend>
23
- <label>singleSelect</label>
24
- <select name="singleSelect">
25
- <option disabled selected value> -- select -- </option>
26
- <option value="1">Option 1</option>
27
- <option value="2">Option 2</option>
28
- <option value="3">Option 3</option>
29
- <option value="4">Option 4</option>
30
- </select>
31
- <label>multiSelect</label>
32
- <select name="multiSelect" multiple="multiple" type="select-multiple">
33
- <option value="1">Option 1</option>
34
- <option value="2" selected=true>Option 2</option>
35
- <option value="3">Option 3</option>
36
- <option value="4" selected=true>Option 4</option>
37
- </select>
38
- </fieldset>
39
- <fieldset>
40
- <legend>Radiobuttons&nbsp;<strong>2wB:&nbsp;</strong>{myRadio}</legend>
41
- <label>radio1</label><input type="radio" name="myRadio" value="radio1">
42
- <label>radio2</label><input type="radio" name="myRadio" value="radio2">
43
- <label>radio3</label><input type="radio" name="myRadio" value="radio3">
44
- </fieldset>
45
- <fieldset>
46
- <legend>Checkboxes</legend>
47
- <label>cb1</label><input type="checkbox" name="cb1">
48
- <label>cb2</label><input type="checkbox" name="cb2">
49
- <label>cb3</label><input type="checkbox" name="cb3">
50
- <label>cb4</label><input type="checkbox" name="cb4">
51
- <label>cb5</label><input type="checkbox" name="cb5">
52
- </fieldset>
53
- <fieldset>
54
- <legend>TextArea</legend>
55
- <label>textArea</label><textarea name="textArea"></textarea>
56
- </fieldset>
@@ -1,27 +0,0 @@
1
- {
2
- "textInput":"Hallo Welt",
3
- "colorInput":"#eaf8f8",
4
- "dateInput":"",
5
- "dtlInput":"",
6
- "email":"",
7
- "hiddenInput":"",
8
- "hiddenVal":"",
9
- "month":"",
10
- "number":"",
11
- "passInput":"",
12
- "rangeInput":"30",
13
- "searchInput":"",
14
- "telInput":"",
15
- "timeInput":"",
16
- "urlInput":"",
17
- "weekInput":"",
18
- "myRadio":"radio3",
19
- "cb1":true,
20
- "cb2":false,
21
- "cb3":true,
22
- "cb4":false,
23
- "cb5":false,
24
- "singleSelect":"",
25
- "multiSelect":["2","4"],
26
- "textArea":"This is some example\rtext..."
27
- }
package/tasks.md DELETED
@@ -1,36 +0,0 @@
1
- ## tasks / higher prio:
2
-
3
- [.] overhaul autoload to include _mc attribute defined MCs into customElements() repository
4
-
5
- [ ] move .trigger() to McBase class / ongoing
6
-
7
- [ ] overhaul McEvents, throw out object, implement functional
8
-
9
- ## tasks / SW debts:
10
-
11
- [ ] autoload tutorial
12
-
13
- ## backlog:
14
-
15
- [ ] make skeleton project for TS site w/ ESM import
16
-
17
- [ ] test ESM import functionality in VSCode
18
-
19
- [ ] make skeleton project for TS site w/ ESM import & webpack build
20
-
21
- [ ] test ESM import functionality in VSCode
22
-
23
- [ ] make monorepo test page
24
-
25
- ## done:
26
-
27
- [x] eliminate those pesky "that" constants, check for "const" being "let" variables
28
-
29
- [x] test: use customRegistry to carry non-"web components" / check .whenDefined()
30
-
31
- [x] HF placeholder handling
32
-
33
- [x] make skeleton project for build-less JS site w/ ESM import
34
-
35
- [x] test ESM import functionality in VSCode and modular autoload
36
-
package/tsconfig.json DELETED
@@ -1,107 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- /* Visit https://aka.ms/tsconfig to read more about this file */
4
-
5
- /* Projects */
6
- // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
7
- ///////"composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
8
- // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
9
- // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
10
- // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
11
- // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
12
-
13
- /* Language and Environment */
14
- "target": "ESNext" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
15
- // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
16
- // "jsx": "preserve", /* Specify what JSX code is generated. */
17
- // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
18
- // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
19
- // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
20
- // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
21
- // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
22
- // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
23
- // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
24
- // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
25
- // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
26
-
27
- /* Modules */
28
- "module": "ESNext" /* Specify what module code is generated. */,
29
- // "module": "commonjs", /* Specify what module code is generated. */
30
- // "rootDir": "./", /* Specify the root folder within your source files. */
31
- // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
32
- //"baseUrl": "/src", /* Specify the base directory to resolve non-relative module names. */
33
- "paths": { "@/": ["/src/*"] }, /* Specify a set of entries that re-map imports to additional lookup locations. */
34
- // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
35
- // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
36
- // "types": [], /* Specify type package names to be included without being referenced in a source file. */
37
- "allowUmdGlobalAccess": true /* Allow accessing UMD globals from modules. */,
38
- // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
39
- // "resolveJsonModule": true, /* Enable importing .json files. */
40
- // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
41
-
42
- /* JavaScript Support */
43
- "allowJs": true /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */,
44
- // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
45
- // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
46
-
47
- /* Emit */
48
- "declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
49
- "declarationMap": true /* Create sourcemaps for d.ts files. */,
50
- "removeComments": true,
51
- // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
52
- "sourceMap": true /* Create source map files for emitted JavaScript files. */,
53
- // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
54
- "outDir": "./build" /* Specify an output folder for all emitted files. */,
55
- // "removeComments": true, /* Disable emitting comments. */
56
- // "noEmit": true, /* Disable emitting files from a compilation. */
57
- // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
58
- // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
59
- // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
60
- // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
61
- // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
62
- // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
63
- // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
64
- // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
65
- // "newLine": "crlf", /* Set the newline character for emitting files. */
66
- // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
67
- // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
68
- // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
69
- // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
70
- //"declarationDir": "./build/types", /* Specify the output directory for generated declaration files. */
71
- // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
72
-
73
- /* Interop Constraints */
74
- // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
75
- // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
76
- "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
77
- // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
78
- "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
79
-
80
- /* Type Checking */
81
- "strict": true /* Enable all strict type-checking options. */,
82
- // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
83
- // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
84
- // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
85
- // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
86
- // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
87
- // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
88
- // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
89
- // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
90
- // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
91
- // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
92
- // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
93
- // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
94
- // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
95
- // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
96
- // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
97
- // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
98
- // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
99
- // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
100
-
101
- /* Completeness */
102
- // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
103
- "skipLibCheck": true /* Skip type checking all .d.ts files. */
104
- },
105
- "include": ["./src"],
106
- "exclude": ["node_modules", "dist"]
107
- }
package/typedoc.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "entryPoints": ["src/MC.ts","src/elements.ts","src/observables.ts","src/formValues.ts" /*,"src/selectors.ts"*/],
3
- "out": "./public/typedoc",
4
- "readme": "README.md",
5
- "name": "Micro Components",
6
- "tsconfig": "./tsconfig.json"
7
- }
package/webpack.config.js DELETED
@@ -1,346 +0,0 @@
1
- const path = require('path');
2
-
3
- module.exports = [
4
- {
5
- entry: './build/MC.js',
6
- mode: 'production',
7
- output: {
8
- path: path.resolve(__dirname, 'dist'),
9
- filename: 'MC.min.js',
10
- libraryTarget: 'umd',
11
- library: 'MC',
12
- globalObject: 'this',
13
- },
14
- module: {
15
- rules: [
16
- {
17
- // test: /\.tsx?$/,
18
- use: [
19
- {
20
- loader: 'ts-loader',
21
- options: {
22
- transpileOnly: true, // Avoid type checking during webpack build
23
- compilerOptions: {
24
- declaration: false, // Generate .d.ts files
25
- declarationMap: false, // Generate .d.ts.map files
26
- outDir: 'build/types', // Output .d.ts and .d.ts.map to a different directory
27
- },
28
- },
29
- },
30
- ],
31
- exclude: /node_modules/,
32
- },
33
- ],
34
- },
35
- resolve: {
36
- extensions: ['.tsx', '.ts', '.js'],
37
- },
38
- optimization: {
39
- minimize: false, // Enable minification
40
- },
41
- },
42
- {
43
- entry: './build/elements.js',
44
- mode: 'production',
45
- output: {
46
- path: path.resolve(__dirname, 'dist'),
47
- filename: 'elements.min.js',
48
- libraryTarget: 'umd',
49
- library: 'elements',
50
- globalObject: 'this',
51
- },
52
- module: {
53
- rules: [
54
- {
55
- // test: /\.tsx?$/,
56
- use: [
57
- {
58
- loader: 'ts-loader',
59
- options: {
60
- transpileOnly: true, // Avoid type checking during webpack build
61
- compilerOptions: {
62
- declaration: false, // Generate .d.ts files
63
- declarationMap: false, // Generate .d.ts.map files
64
- outDir: 'build/types', // Output .d.ts and .d.ts.map to a different directory
65
- },
66
- },
67
- },
68
- ],
69
- exclude: /node_modules/,
70
- },
71
- ],
72
- },
73
- resolve: {
74
- extensions: ['.tsx', '.ts', '.js'],
75
- },
76
- optimization: {
77
- minimize: true, // Enable minification
78
- },
79
- },
80
- /*{
81
- entry: './build/selectors.js',
82
- mode: 'production',
83
- output: {
84
- path: path.resolve(__dirname, 'dist'),
85
- filename: 'selectors.min.js',
86
- libraryTarget: 'umd',
87
- library: 'selectors',
88
- globalObject: 'this',
89
- },
90
- module: {
91
- rules: [
92
- {
93
- // test: /\.tsx?$/,
94
- use: [
95
- {
96
- loader: 'ts-loader',
97
- options: {
98
- transpileOnly: true, // Avoid type checking during webpack build
99
- compilerOptions: {
100
- declaration: false, // Generate .d.ts files
101
- declarationMap: false, // Generate .d.ts.map files
102
- outDir: 'build/types', // Output .d.ts and .d.ts.map to a different directory
103
- },
104
- },
105
- },
106
- ],
107
- exclude: /node_modules/,
108
- },
109
- ],
110
- },
111
- resolve: {
112
- extensions: ['.tsx', '.ts', '.js'],
113
- },
114
- optimization: {
115
- minimize: true, // Enable minification
116
- },
117
- },*/
118
- {
119
- entry: './build/formValues.js',
120
- mode: 'production',
121
- output: {
122
- path: path.resolve(__dirname, 'dist'),
123
- filename: 'formValues.min.js',
124
- libraryTarget: 'umd',
125
- library: 'formValues',
126
- globalObject: 'this',
127
- },
128
- module: {
129
- rules: [
130
- {
131
- // test: /\.tsx?$/,
132
- use: [
133
- {
134
- loader: 'ts-loader',
135
- options: {
136
- transpileOnly: true, // Avoid type checking during webpack build
137
- compilerOptions: {
138
- declaration: false, // Generate .d.ts files
139
- declarationMap: false, // Generate .d.ts.map files
140
- outDir: 'build/types', // Output .d.ts and .d.ts.map to a different directory
141
- },
142
- },
143
- },
144
- ],
145
- exclude: /node_modules/,
146
- },
147
- ],
148
- },
149
- resolve: {
150
- extensions: ['.tsx', '.ts', '.js'],
151
- },
152
- optimization: {
153
- minimize: true, // Enable minification
154
- },
155
- },
156
- {
157
- entry: './build/observables.js',
158
- mode: 'production',
159
- output: {
160
- path: path.resolve(__dirname, 'dist'),
161
- filename: 'observables.min.js',
162
- libraryTarget: 'umd',
163
- library: 'observables',
164
- globalObject: 'this',
165
- },
166
- module: {
167
- rules: [
168
- {
169
- // test: /\.tsx?$/,
170
- use: [
171
- {
172
- loader: 'ts-loader',
173
- options: {
174
- transpileOnly: true, // Avoid type checking during webpack build
175
- compilerOptions: {
176
- declaration: false, // Generate .d.ts files
177
- declarationMap: false, // Generate .d.ts.map files
178
- outDir: 'build/types', // Output .d.ts and .d.ts.map to a different directory
179
- },
180
- },
181
- },
182
- ],
183
- exclude: /node_modules/,
184
- },
185
- ],
186
- },
187
- resolve: {
188
- extensions: ['.tsx', '.ts', '.js'],
189
- },
190
- optimization: {
191
- minimize: true, // Enable minification
192
- },
193
- },
194
- // bundle files
195
- {
196
- entry: './build/microcomponents.js',
197
- mode: 'production',
198
- output: {
199
- path: path.resolve(__dirname, 'dist'),
200
- filename: 'microcomponents.min.js',
201
- libraryTarget: 'umd',
202
- library: 'microcomponents',
203
- globalObject: 'this',
204
- },
205
- module: {
206
- rules: [
207
- {
208
- // test: /\.tsx?$/,
209
- use: [
210
- {
211
- loader: 'ts-loader',
212
- options: {
213
- transpileOnly: true, // Avoid type checking during webpack build
214
- compilerOptions: {
215
- declaration: false, // Generate .d.ts files
216
- declarationMap: false, // Generate .d.ts.map files
217
- outDir: 'build/types', // Output .d.ts and .d.ts.map to a different directory
218
- },
219
- },
220
- },
221
- ],
222
- exclude: /node_modules/,
223
- },
224
- ],
225
- },
226
- resolve: {
227
- extensions: ['.tsx', '.ts', '.js'],
228
- },
229
- optimization: {
230
- minimize: true, // Enable minification
231
- },
232
- },
233
- {
234
- entry: './build/test/test/grandparent.js',
235
- mode: 'production',
236
- output: {
237
- path: path.resolve(__dirname, 'build/test/test'),
238
- filename: 'grandparent.js',
239
- libraryTarget: 'umd',
240
- library: 'grandparent',
241
- },
242
- module: {
243
- rules: [
244
- {
245
- // test: /\.tsx?$/,
246
- use: [
247
- {
248
- loader: 'ts-loader',
249
- options: {
250
- transpileOnly: true, // Avoid type checking during webpack build
251
- compilerOptions: {
252
- declaration: false, // Generate .d.ts files
253
- declarationMap: false, // Generate .d.ts.map files
254
- outDir: 'build/types', // Output .d.ts and .d.ts.map to a different directory
255
- },
256
- },
257
- },
258
- ],
259
- exclude: /node_modules/,
260
- },
261
- ],
262
- },
263
- resolve: {
264
- extensions: ['.tsx', '.ts', '.js'],
265
- },
266
- optimization: {
267
- minimize: true, // Enable minification
268
- },
269
- },
270
- {
271
- entry: './build/test/test/testform.js',
272
- mode: 'production',
273
- output: {
274
- path: path.resolve(__dirname, 'build/test/test'),
275
- filename: 'testform.js',
276
- libraryTarget: 'umd',
277
- library: 'TestTestform',
278
- },
279
- module: {
280
- rules: [
281
- {
282
- // test: /\.tsx?$/,
283
- use: [
284
- {
285
- loader: 'ts-loader',
286
- options: {
287
- transpileOnly: true, // Avoid type checking during webpack build
288
- compilerOptions: {
289
- declaration: false, // Generate .d.ts files
290
- declarationMap: false, // Generate .d.ts.map files
291
- outDir: 'build/types', // Output .d.ts and .d.ts.map to a different directory
292
- },
293
- },
294
- },
295
- ],
296
- exclude: /node_modules/,
297
- },
298
- ],
299
- },
300
- resolve: {
301
- extensions: ['.tsx', '.ts', '.js'],
302
- },
303
- optimization: {
304
- minimize: true, // Enable minification
305
- },
306
- },
307
- /*
308
- {
309
- entry: './build/test/default.js',
310
- mode: 'production',
311
- output: {
312
- path: path.resolve(__dirname, 'public/test'),
313
- filename: 'default.js',
314
- libraryTarget: 'umd',
315
- library: 'default',
316
- },
317
- module: {
318
- rules: [
319
- {
320
- // test: /\.tsx?$/,
321
- use: [
322
- {
323
- loader: 'ts-loader',
324
- options: {
325
- transpileOnly: true, // Avoid type checking during webpack build
326
- compilerOptions: {
327
- declaration: false, // Generate .d.ts files
328
- declarationMap: false, // Generate .d.ts.map files
329
- outDir: 'build/types', // Output .d.ts and .d.ts.map to a different directory
330
- },
331
- },
332
- },
333
- ],
334
- exclude: /node_modules/,
335
- },
336
- ],
337
- },
338
- resolve: {
339
- extensions: ['.tsx', '.ts', '.js'],
340
- },
341
- optimization: {
342
- minimize: true, // Enable minification
343
- },
344
- },
345
- */
346
- ];