@public-ui/themes 1.1.7-rc.10

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 (315) hide show
  1. package/LICENSE +287 -0
  2. package/README.md +38 -0
  3. package/assets/bund/bund.css +41 -0
  4. package/assets/bund/font/BundesSans-Web-Black.ttf +0 -0
  5. package/assets/bund/font/BundesSans-Web-Black.woff +0 -0
  6. package/assets/bund/font/BundesSans-Web-Black.woff2 +0 -0
  7. package/assets/bund/font/BundesSans-Web-BlackItalic.ttf +0 -0
  8. package/assets/bund/font/BundesSans-Web-BlackItalic.woff +0 -0
  9. package/assets/bund/font/BundesSans-Web-BlackItalic.woff2 +0 -0
  10. package/assets/bund/font/BundesSans-Web-Bold.ttf +0 -0
  11. package/assets/bund/font/BundesSans-Web-Bold.woff +0 -0
  12. package/assets/bund/font/BundesSans-Web-Bold.woff2 +0 -0
  13. package/assets/bund/font/BundesSans-Web-BoldItalic.ttf +0 -0
  14. package/assets/bund/font/BundesSans-Web-BoldItalic.woff +0 -0
  15. package/assets/bund/font/BundesSans-Web-BoldItalic.woff2 +0 -0
  16. package/assets/bund/font/BundesSans-Web-Light.ttf +0 -0
  17. package/assets/bund/font/BundesSans-Web-Light.woff +0 -0
  18. package/assets/bund/font/BundesSans-Web-Light.woff2 +0 -0
  19. package/assets/bund/font/BundesSans-Web-LightItalic.ttf +0 -0
  20. package/assets/bund/font/BundesSans-Web-LightItalic.woff +0 -0
  21. package/assets/bund/font/BundesSans-Web-LightItalic.woff2 +0 -0
  22. package/assets/bund/font/BundesSans-Web-Medium.ttf +0 -0
  23. package/assets/bund/font/BundesSans-Web-Medium.woff +0 -0
  24. package/assets/bund/font/BundesSans-Web-Medium.woff2 +0 -0
  25. package/assets/bund/font/BundesSans-Web-MediumItalic.ttf +0 -0
  26. package/assets/bund/font/BundesSans-Web-MediumItalic.woff +0 -0
  27. package/assets/bund/font/BundesSans-Web-MediumItalic.woff2 +0 -0
  28. package/assets/bund/font/BundesSans-Web-Regular.ttf +0 -0
  29. package/assets/bund/font/BundesSans-Web-Regular.woff +0 -0
  30. package/assets/bund/font/BundesSans-Web-Regular.woff2 +0 -0
  31. package/assets/bund/font/BundesSans-Web-RegularItalic.ttf +0 -0
  32. package/assets/bund/font/BundesSans-Web-RegularItalic.woff +0 -0
  33. package/assets/bund/font/BundesSans-Web-RegularItalic.woff2 +0 -0
  34. package/assets/bund/font/bundessansweb-bold-woff-data.woff +0 -0
  35. package/assets/bund/font/bundessansweb-regular-woff-data.woff +0 -0
  36. package/assets/bund/font/bundesserifweb-regular-woff-data.woff +0 -0
  37. package/assets/bund/forms.js +310 -0
  38. package/assets/bund/svg/itzbund.svg +13 -0
  39. package/assets/codicons/codicon.css +553 -0
  40. package/assets/codicons/codicon.csv +408 -0
  41. package/assets/codicons/codicon.html +3767 -0
  42. package/assets/codicons/codicon.svg +1 -0
  43. package/assets/codicons/codicon.ttf +0 -0
  44. package/assets/fontawesome-free/v5/LICENSE.txt +34 -0
  45. package/assets/fontawesome-free/v5/css/all.css +4616 -0
  46. package/assets/fontawesome-free/v5/css/all.min.css +5 -0
  47. package/assets/fontawesome-free/v5/css/brands.css +15 -0
  48. package/assets/fontawesome-free/v5/css/brands.min.css +5 -0
  49. package/assets/fontawesome-free/v5/css/fontawesome.css +4582 -0
  50. package/assets/fontawesome-free/v5/css/fontawesome.min.css +5 -0
  51. package/assets/fontawesome-free/v5/css/regular.css +15 -0
  52. package/assets/fontawesome-free/v5/css/regular.min.css +5 -0
  53. package/assets/fontawesome-free/v5/css/solid.css +16 -0
  54. package/assets/fontawesome-free/v5/css/solid.min.css +5 -0
  55. package/assets/fontawesome-free/v5/css/svg-with-js.css +371 -0
  56. package/assets/fontawesome-free/v5/css/svg-with-js.min.css +5 -0
  57. package/assets/fontawesome-free/v5/css/v4-shims.css +2172 -0
  58. package/assets/fontawesome-free/v5/css/v4-shims.min.css +5 -0
  59. package/assets/fontawesome-free/v5/webfonts/fa-brands-400.eot +0 -0
  60. package/assets/fontawesome-free/v5/webfonts/fa-brands-400.svg +3717 -0
  61. package/assets/fontawesome-free/v5/webfonts/fa-brands-400.ttf +0 -0
  62. package/assets/fontawesome-free/v5/webfonts/fa-brands-400.woff +0 -0
  63. package/assets/fontawesome-free/v5/webfonts/fa-brands-400.woff2 +0 -0
  64. package/assets/fontawesome-free/v5/webfonts/fa-regular-400.eot +0 -0
  65. package/assets/fontawesome-free/v5/webfonts/fa-regular-400.svg +801 -0
  66. package/assets/fontawesome-free/v5/webfonts/fa-regular-400.ttf +0 -0
  67. package/assets/fontawesome-free/v5/webfonts/fa-regular-400.woff +0 -0
  68. package/assets/fontawesome-free/v5/webfonts/fa-regular-400.woff2 +0 -0
  69. package/assets/fontawesome-free/v5/webfonts/fa-solid-900.eot +0 -0
  70. package/assets/fontawesome-free/v5/webfonts/fa-solid-900.svg +5034 -0
  71. package/assets/fontawesome-free/v5/webfonts/fa-solid-900.ttf +0 -0
  72. package/assets/fontawesome-free/v5/webfonts/fa-solid-900.woff +0 -0
  73. package/assets/fontawesome-free/v5/webfonts/fa-solid-900.woff2 +0 -0
  74. package/assets/fontawesome-free/v6/LICENSE.txt +165 -0
  75. package/assets/fontawesome-free/v6/css/all.css +7831 -0
  76. package/assets/fontawesome-free/v6/css/all.min.css +6 -0
  77. package/assets/fontawesome-free/v6/css/brands.css +1432 -0
  78. package/assets/fontawesome-free/v6/css/brands.min.css +6 -0
  79. package/assets/fontawesome-free/v6/css/fontawesome.css +6338 -0
  80. package/assets/fontawesome-free/v6/css/fontawesome.min.css +6 -0
  81. package/assets/fontawesome-free/v6/css/regular.css +19 -0
  82. package/assets/fontawesome-free/v6/css/regular.min.css +6 -0
  83. package/assets/fontawesome-free/v6/css/solid.css +19 -0
  84. package/assets/fontawesome-free/v6/css/solid.min.css +6 -0
  85. package/assets/fontawesome-free/v6/css/svg-with-js.css +634 -0
  86. package/assets/fontawesome-free/v6/css/svg-with-js.min.css +6 -0
  87. package/assets/fontawesome-free/v6/css/v4-font-face.css +26 -0
  88. package/assets/fontawesome-free/v6/css/v4-font-face.min.css +6 -0
  89. package/assets/fontawesome-free/v6/css/v4-shims.css +2146 -0
  90. package/assets/fontawesome-free/v6/css/v4-shims.min.css +6 -0
  91. package/assets/fontawesome-free/v6/css/v5-font-face.css +22 -0
  92. package/assets/fontawesome-free/v6/css/v5-font-face.min.css +6 -0
  93. package/assets/fontawesome-free/v6/webfonts/fa-brands-400.ttf +0 -0
  94. package/assets/fontawesome-free/v6/webfonts/fa-brands-400.woff2 +0 -0
  95. package/assets/fontawesome-free/v6/webfonts/fa-regular-400.ttf +0 -0
  96. package/assets/fontawesome-free/v6/webfonts/fa-regular-400.woff2 +0 -0
  97. package/assets/fontawesome-free/v6/webfonts/fa-solid-900.ttf +0 -0
  98. package/assets/fontawesome-free/v6/webfonts/fa-solid-900.woff2 +0 -0
  99. package/assets/fontawesome-free/v6/webfonts/fa-v4compatibility.ttf +0 -0
  100. package/assets/fontawesome-free/v6/webfonts/fa-v4compatibility.woff2 +0 -0
  101. package/assets/icofont/demo.html +18942 -0
  102. package/assets/icofont/fonts/icofont.eot +0 -0
  103. package/assets/icofont/fonts/icofont.svg +2105 -0
  104. package/assets/icofont/fonts/icofont.ttf +0 -0
  105. package/assets/icofont/fonts/icofont.woff +0 -0
  106. package/assets/icofont/fonts/icofont.woff2 +0 -0
  107. package/assets/icofont/icofont.css +10757 -0
  108. package/assets/icofont/icofont.min.css +7 -0
  109. package/assets/noto-sans/fonts/NotoSans-Black.ttf +0 -0
  110. package/assets/noto-sans/fonts/NotoSans-BlackItalic.ttf +0 -0
  111. package/assets/noto-sans/fonts/NotoSans-Bold.ttf +0 -0
  112. package/assets/noto-sans/fonts/NotoSans-BoldItalic.ttf +0 -0
  113. package/assets/noto-sans/fonts/NotoSans-ExtraBold.ttf +0 -0
  114. package/assets/noto-sans/fonts/NotoSans-ExtraBoldItalic.ttf +0 -0
  115. package/assets/noto-sans/fonts/NotoSans-ExtraLight.ttf +0 -0
  116. package/assets/noto-sans/fonts/NotoSans-ExtraLightItalic.ttf +0 -0
  117. package/assets/noto-sans/fonts/NotoSans-Italic.ttf +0 -0
  118. package/assets/noto-sans/fonts/NotoSans-Light.ttf +0 -0
  119. package/assets/noto-sans/fonts/NotoSans-LightItalic.ttf +0 -0
  120. package/assets/noto-sans/fonts/NotoSans-Medium.ttf +0 -0
  121. package/assets/noto-sans/fonts/NotoSans-MediumItalic.ttf +0 -0
  122. package/assets/noto-sans/fonts/NotoSans-Regular.ttf +0 -0
  123. package/assets/noto-sans/fonts/NotoSans-SemiBold.ttf +0 -0
  124. package/assets/noto-sans/fonts/NotoSans-SemiBoldItalic.ttf +0 -0
  125. package/assets/noto-sans/fonts/NotoSans-Thin.ttf +0 -0
  126. package/assets/noto-sans/fonts/NotoSans-ThinItalic.ttf +0 -0
  127. package/assets/noto-sans/fonts/OFL.txt +93 -0
  128. package/assets/noto-sans/noto-sans.css +11 -0
  129. package/assets/roboto/LICENSE.txt +202 -0
  130. package/assets/roboto/Roboto-Black.ttf +0 -0
  131. package/assets/roboto/Roboto-BlackItalic.ttf +0 -0
  132. package/assets/roboto/Roboto-Bold.ttf +0 -0
  133. package/assets/roboto/Roboto-BoldItalic.ttf +0 -0
  134. package/assets/roboto/Roboto-Italic.ttf +0 -0
  135. package/assets/roboto/Roboto-Light.ttf +0 -0
  136. package/assets/roboto/Roboto-LightItalic.ttf +0 -0
  137. package/assets/roboto/Roboto-Medium.ttf +0 -0
  138. package/assets/roboto/Roboto-MediumItalic.ttf +0 -0
  139. package/assets/roboto/Roboto-Regular.ttf +0 -0
  140. package/assets/roboto/Roboto-Thin.ttf +0 -0
  141. package/assets/roboto/Roboto-ThinItalic.ttf +0 -0
  142. package/assets/roboto/roboto.css +27 -0
  143. package/cjs/index.d.ts +2 -0
  144. package/cjs/index.js +19 -0
  145. package/cjs/index.js.map +1 -0
  146. package/cjs/themes/bamf.d.ts +1 -0
  147. package/cjs/themes/bamf.js +8 -0
  148. package/cjs/themes/bamf.js.map +1 -0
  149. package/cjs/themes/bmf.d.ts +1 -0
  150. package/cjs/themes/bmf.js +39 -0
  151. package/cjs/themes/bmf.js.map +1 -0
  152. package/cjs/themes/bpa.d.ts +1 -0
  153. package/cjs/themes/bpa.js +35 -0
  154. package/cjs/themes/bpa.js.map +1 -0
  155. package/cjs/themes/bzst.d.ts +1 -0
  156. package/cjs/themes/bzst.js +24 -0
  157. package/cjs/themes/bzst.js.map +1 -0
  158. package/cjs/themes/bzst2.d.ts +1 -0
  159. package/cjs/themes/bzst2.js +28 -0
  160. package/cjs/themes/bzst2.js.map +1 -0
  161. package/cjs/themes/desy.d.ts +1 -0
  162. package/cjs/themes/desy.js +38 -0
  163. package/cjs/themes/desy.js.map +1 -0
  164. package/cjs/themes/hh.d.ts +1 -0
  165. package/cjs/themes/hh.js +36 -0
  166. package/cjs/themes/hh.js.map +1 -0
  167. package/cjs/themes/index.d.ts +12 -0
  168. package/cjs/themes/index.js +29 -0
  169. package/cjs/themes/index.js.map +1 -0
  170. package/cjs/themes/itvsh.d.ts +1 -0
  171. package/cjs/themes/itvsh.js +12 -0
  172. package/cjs/themes/itvsh.js.map +1 -0
  173. package/cjs/themes/itzbund.d.ts +1 -0
  174. package/cjs/themes/itzbund.js +35 -0
  175. package/cjs/themes/itzbund.js.map +1 -0
  176. package/cjs/themes/mapz.d.ts +1 -0
  177. package/cjs/themes/mapz.js +39 -0
  178. package/cjs/themes/mapz.js.map +1 -0
  179. package/cjs/themes/nxt.d.ts +1 -0
  180. package/cjs/themes/nxt.js +37 -0
  181. package/cjs/themes/nxt.js.map +1 -0
  182. package/cjs/themes/zoll.d.ts +1 -0
  183. package/cjs/themes/zoll.js +8 -0
  184. package/cjs/themes/zoll.js.map +1 -0
  185. package/cjs/translations/de.d.ts +1 -0
  186. package/cjs/translations/de.js +30 -0
  187. package/cjs/translations/de.js.map +1 -0
  188. package/cjs/translations/en.d.ts +1 -0
  189. package/cjs/translations/en.js +30 -0
  190. package/cjs/translations/en.js.map +1 -0
  191. package/cjs/translations/index.d.ts +2 -0
  192. package/cjs/translations/index.js +19 -0
  193. package/cjs/translations/index.js.map +1 -0
  194. package/esm/index.d.ts +2 -0
  195. package/esm/index.js +3 -0
  196. package/esm/index.js.map +1 -0
  197. package/esm/themes/bamf.d.ts +1 -0
  198. package/esm/themes/bamf.js +5 -0
  199. package/esm/themes/bamf.js.map +1 -0
  200. package/esm/themes/bmf.d.ts +1 -0
  201. package/esm/themes/bmf.js +36 -0
  202. package/esm/themes/bmf.js.map +1 -0
  203. package/esm/themes/bpa.d.ts +1 -0
  204. package/esm/themes/bpa.js +32 -0
  205. package/esm/themes/bpa.js.map +1 -0
  206. package/esm/themes/bzst.d.ts +1 -0
  207. package/esm/themes/bzst.js +21 -0
  208. package/esm/themes/bzst.js.map +1 -0
  209. package/esm/themes/bzst2.d.ts +1 -0
  210. package/esm/themes/bzst2.js +25 -0
  211. package/esm/themes/bzst2.js.map +1 -0
  212. package/esm/themes/desy.d.ts +1 -0
  213. package/esm/themes/desy.js +35 -0
  214. package/esm/themes/desy.js.map +1 -0
  215. package/esm/themes/hh.d.ts +1 -0
  216. package/esm/themes/hh.js +33 -0
  217. package/esm/themes/hh.js.map +1 -0
  218. package/esm/themes/index.d.ts +12 -0
  219. package/esm/themes/index.js +13 -0
  220. package/esm/themes/index.js.map +1 -0
  221. package/esm/themes/itvsh.d.ts +1 -0
  222. package/esm/themes/itvsh.js +9 -0
  223. package/esm/themes/itvsh.js.map +1 -0
  224. package/esm/themes/itzbund.d.ts +1 -0
  225. package/esm/themes/itzbund.js +32 -0
  226. package/esm/themes/itzbund.js.map +1 -0
  227. package/esm/themes/mapz.d.ts +1 -0
  228. package/esm/themes/mapz.js +36 -0
  229. package/esm/themes/mapz.js.map +1 -0
  230. package/esm/themes/nxt.d.ts +1 -0
  231. package/esm/themes/nxt.js +34 -0
  232. package/esm/themes/nxt.js.map +1 -0
  233. package/esm/themes/zoll.d.ts +1 -0
  234. package/esm/themes/zoll.js +5 -0
  235. package/esm/themes/zoll.js.map +1 -0
  236. package/esm/translations/de.d.ts +1 -0
  237. package/esm/translations/de.js +27 -0
  238. package/esm/translations/de.js.map +1 -0
  239. package/esm/translations/en.d.ts +1 -0
  240. package/esm/translations/en.js +27 -0
  241. package/esm/translations/en.js.map +1 -0
  242. package/esm/translations/index.d.ts +2 -0
  243. package/esm/translations/index.js +3 -0
  244. package/esm/translations/index.js.map +1 -0
  245. package/package.json +68 -0
  246. package/reports/KoliBri-BF-BITV_BMF.xlsx +0 -0
  247. package/reports/KoliBri-BF-BITV_MAPZ.xlsx +0 -0
  248. package/types/index.d.ts +2 -0
  249. package/types/themes/bamf.d.ts +1 -0
  250. package/types/themes/bmf.d.ts +1 -0
  251. package/types/themes/bpa.d.ts +1 -0
  252. package/types/themes/bzst.d.ts +1 -0
  253. package/types/themes/bzst2.d.ts +1 -0
  254. package/types/themes/desy.d.ts +1 -0
  255. package/types/themes/hh.d.ts +1 -0
  256. package/types/themes/index.d.ts +12 -0
  257. package/types/themes/itvsh.d.ts +1 -0
  258. package/types/themes/itzbund.d.ts +1 -0
  259. package/types/themes/mapz.d.ts +1 -0
  260. package/types/themes/nxt.d.ts +1 -0
  261. package/types/themes/zoll.d.ts +1 -0
  262. package/types/translations/de.d.ts +1 -0
  263. package/types/translations/en.d.ts +1 -0
  264. package/types/translations/index.d.ts +2 -0
  265. package/umd/index.d.ts +2 -0
  266. package/umd/index.js +29 -0
  267. package/umd/index.js.map +1 -0
  268. package/umd/themes/bamf.d.ts +1 -0
  269. package/umd/themes/bamf.js +18 -0
  270. package/umd/themes/bamf.js.map +1 -0
  271. package/umd/themes/bmf.d.ts +1 -0
  272. package/umd/themes/bmf.js +49 -0
  273. package/umd/themes/bmf.js.map +1 -0
  274. package/umd/themes/bpa.d.ts +1 -0
  275. package/umd/themes/bpa.js +45 -0
  276. package/umd/themes/bpa.js.map +1 -0
  277. package/umd/themes/bzst.d.ts +1 -0
  278. package/umd/themes/bzst.js +34 -0
  279. package/umd/themes/bzst.js.map +1 -0
  280. package/umd/themes/bzst2.d.ts +1 -0
  281. package/umd/themes/bzst2.js +38 -0
  282. package/umd/themes/bzst2.js.map +1 -0
  283. package/umd/themes/desy.d.ts +1 -0
  284. package/umd/themes/desy.js +48 -0
  285. package/umd/themes/desy.js.map +1 -0
  286. package/umd/themes/hh.d.ts +1 -0
  287. package/umd/themes/hh.js +46 -0
  288. package/umd/themes/hh.js.map +1 -0
  289. package/umd/themes/index.d.ts +12 -0
  290. package/umd/themes/index.js +39 -0
  291. package/umd/themes/index.js.map +1 -0
  292. package/umd/themes/itvsh.d.ts +1 -0
  293. package/umd/themes/itvsh.js +22 -0
  294. package/umd/themes/itvsh.js.map +1 -0
  295. package/umd/themes/itzbund.d.ts +1 -0
  296. package/umd/themes/itzbund.js +45 -0
  297. package/umd/themes/itzbund.js.map +1 -0
  298. package/umd/themes/mapz.d.ts +1 -0
  299. package/umd/themes/mapz.js +49 -0
  300. package/umd/themes/mapz.js.map +1 -0
  301. package/umd/themes/nxt.d.ts +1 -0
  302. package/umd/themes/nxt.js +47 -0
  303. package/umd/themes/nxt.js.map +1 -0
  304. package/umd/themes/zoll.d.ts +1 -0
  305. package/umd/themes/zoll.js +18 -0
  306. package/umd/themes/zoll.js.map +1 -0
  307. package/umd/translations/de.d.ts +1 -0
  308. package/umd/translations/de.js +40 -0
  309. package/umd/translations/de.js.map +1 -0
  310. package/umd/translations/en.d.ts +1 -0
  311. package/umd/translations/en.js +40 -0
  312. package/umd/translations/en.js.map +1 -0
  313. package/umd/translations/index.d.ts +2 -0
  314. package/umd/translations/index.js +29 -0
  315. package/umd/translations/index.js.map +1 -0
@@ -0,0 +1,310 @@
1
+ !(function (t, e) {
2
+ 'object' == typeof exports && 'undefined' != typeof module
3
+ ? e(exports, require('loglevel'))
4
+ : 'function' == typeof define && define.amd
5
+ ? define(['exports', 'loglevel'], e)
6
+ : e(((t = 'undefined' != typeof globalThis ? globalThis : t || self).LEANUP = {}), t.loglevel);
7
+ })(this, function (t, e) {
8
+ 'use strict';
9
+ class r {
10
+ constructor() {}
11
+ static getInstance() {
12
+ return this._instance instanceof r == !1 && (this._instance = new r()), this._instance;
13
+ }
14
+ isNumber(t) {
15
+ return !1 === isNaN(t) && 'number' == typeof t;
16
+ }
17
+ isArray(t, e = 0) {
18
+ return Array.isArray(t) && t.length >= e;
19
+ }
20
+ isObject(t) {
21
+ return 'object' == typeof t && null !== t && !1 === this.isArray(t);
22
+ }
23
+ isString(t, e = 0) {
24
+ return 'string' == typeof t && t.length >= e;
25
+ }
26
+ }
27
+ r._instance = null;
28
+ const n = r.getInstance(),
29
+ s = [];
30
+ class i {
31
+ constructor() {}
32
+ static getInstance() {
33
+ return this._instance instanceof i == !1 && (this._instance = new i()), this._instance;
34
+ }
35
+ log(t, r) {
36
+ switch (
37
+ (n.isObject(r.refObject) &&
38
+ 'function' == typeof r.refObject.constructor &&
39
+ n.isString(r.refObject.constructor.name) &&
40
+ (r.className = `[${r.refObject.constructor.name}]:`),
41
+ s.push({ date: new Date().toUTCString(), level: t, message: r }),
42
+ t)
43
+ ) {
44
+ case 'trace':
45
+ e.trace(r);
46
+ break;
47
+ case 'debug':
48
+ e.debug(r);
49
+ break;
50
+ case 'info':
51
+ e.info(r);
52
+ break;
53
+ case 'warn':
54
+ e.warn(r);
55
+ break;
56
+ case 'error':
57
+ e.error(r);
58
+ }
59
+ }
60
+ trace(t, e) {
61
+ return this.log('trace', { messageText: t, refObject: e }), this;
62
+ }
63
+ debug(t, e) {
64
+ return this.log('debug', { messageText: t, refObject: e }), this;
65
+ }
66
+ info(t, e) {
67
+ return this.log('info', { messageText: t, refObject: e }), this;
68
+ }
69
+ warn(t, e) {
70
+ return this.log('warn', { messageText: t, refObject: e }), this;
71
+ }
72
+ error(t, e) {
73
+ return this.log('error', { messageText: t, refObject: e }), this;
74
+ }
75
+ get cache() {
76
+ return [].concat(s);
77
+ }
78
+ }
79
+ i._instance = null;
80
+ const o = i.getInstance();
81
+ function a(t) {
82
+ return t instanceof l ? t.get() : Array.isArray(t) ? t : [t];
83
+ }
84
+ class l {
85
+ constructor(t) {
86
+ (this._instancesOf = []), (this._items = []), (this._protectedItems = []), (this._instancesOf = Array.isArray(t) ? t : [t]);
87
+ }
88
+ get empty() {
89
+ return 0 === this._items.length;
90
+ }
91
+ get first() {
92
+ return this._items.length > 0 ? this._items[0] : null;
93
+ }
94
+ forEach(t) {
95
+ this._items.forEach(t);
96
+ }
97
+ filter(t) {
98
+ return this._items.filter(t);
99
+ }
100
+ find(t) {
101
+ return this._items.find(t);
102
+ }
103
+ get last() {
104
+ return this._items.length > 0 ? this._items[this._items.length - 1] : null;
105
+ }
106
+ get length() {
107
+ return this._items.length;
108
+ }
109
+ add(t, e = !1) {
110
+ return (
111
+ a(t).filter(t => {
112
+ let r = !1;
113
+ return (
114
+ !1 === this.contains(t)
115
+ ? !(function (t, e) {
116
+ return !!n.isArray(t) && void 0 !== t.find(t => e instanceof t);
117
+ })(this._instancesOf, t)
118
+ ? o.debug('The item does not have a valid instance type.', this)
119
+ : (e && this._protectedItems.push(t), this._items.push(t), (r = !0))
120
+ : o.debug('The item is already in the list.', this),
121
+ r
122
+ );
123
+ }).length > 0
124
+ );
125
+ }
126
+ remove(t) {
127
+ return (
128
+ a(t).filter(t => {
129
+ let e = !1,
130
+ r = this._protectedItems.indexOf(t);
131
+ return (
132
+ -1 === r
133
+ ? ((r = this._items.indexOf(t)), r >= 0 ? (this._items.splice(r, 1), (e = !0)) : o.debug('The item is not in the list.', this))
134
+ : o.debug('The item is protected and cannot be removed.', this),
135
+ e
136
+ );
137
+ }).length > 0
138
+ );
139
+ }
140
+ set(t, e = !1) {
141
+ const r = this.clear(),
142
+ n = this.add(t, e);
143
+ return r || n;
144
+ }
145
+ get(t) {
146
+ return !1 === isNaN(t) && 'number' == typeof t ? this._items.slice(0, t) : this._items;
147
+ }
148
+ clear() {
149
+ const t = this._items.length;
150
+ return (this._items = this._items.filter(t => this._protectedItems.indexOf(t) >= 0)), t !== this._items.length;
151
+ }
152
+ contains(t) {
153
+ return this._items.indexOf(t) > -1;
154
+ }
155
+ }
156
+ class h {
157
+ constructor() {
158
+ this.validators = new l(Function);
159
+ }
160
+ validate(t, e = !1) {
161
+ const r = [];
162
+ try {
163
+ this.validators.forEach(n => {
164
+ try {
165
+ n(t);
166
+ } catch (t) {
167
+ if ((r.push(t), !0 === e)) throw new Error('Be quick and stop the execution of other validation functions. Only one error is enough.');
168
+ }
169
+ });
170
+ } catch (t) {}
171
+ return r;
172
+ }
173
+ }
174
+ class c {
175
+ constructor(t) {
176
+ (this.errors = []), (this._name = 'unnamed'), (this._parentForms = []), (this._validationHandler = new h()), (this.name = t);
177
+ }
178
+ get name() {
179
+ return this._name;
180
+ }
181
+ set name(t) {
182
+ if ('string' != typeof t) throw new Error('The name of a control must be a string.');
183
+ if (!(t.length > 0)) throw new Error('The name of a control must have a min-length of 1.');
184
+ this._name = t;
185
+ }
186
+ get error() {
187
+ return this.errors.length > 0 ? this.errors[0] : null;
188
+ }
189
+ get id() {
190
+ let t = this.name;
191
+ return this._parentForms.length > 0 && (t = `${this._parentForms[0].id}.${t}`), t;
192
+ }
193
+ get valid() {
194
+ return 0 === this.errors.length;
195
+ }
196
+ findMeInParentForm(t) {
197
+ if (this === t) return !0;
198
+ if (t instanceof m) {
199
+ const e = [];
200
+ return (
201
+ this._parentForms.forEach(r => {
202
+ !0 === r.findMeInParentForm(t) && e.push(r);
203
+ }),
204
+ e.length > 0
205
+ );
206
+ }
207
+ return !1;
208
+ }
209
+ addParentForm(t) {
210
+ if (!1 !== this._parentForms.includes(t)) throw new Error(`An form control with the name '${t.name}' already exists.`);
211
+ if (!1 !== t.findMeInParentForm(this)) throw new Error(`The same form control (${t.name}) leads to a form control loop.`);
212
+ this._parentForms.push(t);
213
+ }
214
+ removeParentForm(t) {
215
+ const e = this._parentForms.indexOf(t);
216
+ if (!(e >= 0)) throw new Error(`An form control with the name '${t.name}' does not exists.`);
217
+ this._parentForms.splice(e, 1);
218
+ }
219
+ setValidationHandler(t = new h()) {
220
+ this._validationHandler = t;
221
+ }
222
+ validate(t) {
223
+ (this.errors = this._validationHandler.validate(t)),
224
+ this._parentForms.forEach(e => {
225
+ e.validate(t);
226
+ });
227
+ }
228
+ }
229
+ class u extends c {
230
+ constructor(t, e) {
231
+ super(t),
232
+ (this._label = ''),
233
+ (this._value = null),
234
+ (this._timeout = setTimeout(() => {}, 1)),
235
+ e && ((this.label = e.label ? e.label : ''), (this.value = e.value ? e.value : null));
236
+ }
237
+ get label() {
238
+ return this._label;
239
+ }
240
+ set label(t) {
241
+ if ('string' != typeof t) throw new Error('The label of a input control must be a string.');
242
+ this._label = t;
243
+ }
244
+ get value() {
245
+ return this._value;
246
+ }
247
+ set value(t) {
248
+ this._timeout && clearTimeout(this._timeout),
249
+ (this._timeout = setTimeout(() => {
250
+ (this._value = t), this.validate(t);
251
+ }, 250));
252
+ }
253
+ }
254
+ class m extends c {
255
+ constructor() {
256
+ super(...arguments), (this.controls = new l(c));
257
+ }
258
+ get valid() {
259
+ return 0 === this.errors.length && 0 === this.controls.filter(t => !1 === t.valid).length;
260
+ }
261
+ addConrol(t) {
262
+ if (!1 !== this.controls.contains(t)) throw new Error(`A control with the same name '${t.name}' already exists.`);
263
+ t.addParentForm(this), this.controls.add(t);
264
+ }
265
+ removeControl(t) {
266
+ if (!0 !== this.controls.contains(t)) throw new Error(`A control with the name '${t.name}' does not exists.`);
267
+ t instanceof c && (t.removeParentForm(this), this.controls.remove(t));
268
+ }
269
+ getControls() {
270
+ return this.controls.get();
271
+ }
272
+ getControl(t) {
273
+ return this.controls.find(e => e.name === t);
274
+ }
275
+ getData() {
276
+ const t = {};
277
+ return (
278
+ this.controls.forEach(e => {
279
+ if (e instanceof m) t[e.name] = e.getData();
280
+ else {
281
+ if (!(e instanceof u)) throw new Error('The control is neither an instance of FormControl or InputControl.');
282
+ t[e.name] = e.value;
283
+ }
284
+ }),
285
+ t
286
+ );
287
+ }
288
+ }
289
+ class f {
290
+ static createForm(t, e) {
291
+ const r = new m(t);
292
+ for (const t in e)
293
+ if (e.hasOwnProperty(t))
294
+ if ('object' == typeof e[t] && null !== e[t]) r.addConrol(f.createForm(t, e[t]));
295
+ else {
296
+ const n = new u(t);
297
+ (n.value = e[t]), r.addConrol(n);
298
+ }
299
+ return r;
300
+ }
301
+ }
302
+ (t.FormControl = m),
303
+ (t.FormFactory = f),
304
+ (t.InputControl = u),
305
+ (t.ListOf = l),
306
+ (t.Log = o),
307
+ (t.ValidationHandler = h),
308
+ (t.Validator = n),
309
+ Object.defineProperty(t, '__esModule', { value: !0 });
310
+ });
@@ -0,0 +1,13 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg">
2
+ <text x="0" y="0" font-family="BundSans">
3
+ <tspan x="0" dy="1.0em">
4
+ Informations
5
+ </tspan>
6
+ <tspan x="0" dy="1em">
7
+ Technik
8
+ </tspan>
9
+ <tspan x="0" dy="1em">
10
+ Zentrum Bund
11
+ </tspan>
12
+ </text>
13
+ </svg>