@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.
- package/LICENSE +287 -0
- package/README.md +38 -0
- package/assets/bund/bund.css +41 -0
- package/assets/bund/font/BundesSans-Web-Black.ttf +0 -0
- package/assets/bund/font/BundesSans-Web-Black.woff +0 -0
- package/assets/bund/font/BundesSans-Web-Black.woff2 +0 -0
- package/assets/bund/font/BundesSans-Web-BlackItalic.ttf +0 -0
- package/assets/bund/font/BundesSans-Web-BlackItalic.woff +0 -0
- package/assets/bund/font/BundesSans-Web-BlackItalic.woff2 +0 -0
- package/assets/bund/font/BundesSans-Web-Bold.ttf +0 -0
- package/assets/bund/font/BundesSans-Web-Bold.woff +0 -0
- package/assets/bund/font/BundesSans-Web-Bold.woff2 +0 -0
- package/assets/bund/font/BundesSans-Web-BoldItalic.ttf +0 -0
- package/assets/bund/font/BundesSans-Web-BoldItalic.woff +0 -0
- package/assets/bund/font/BundesSans-Web-BoldItalic.woff2 +0 -0
- package/assets/bund/font/BundesSans-Web-Light.ttf +0 -0
- package/assets/bund/font/BundesSans-Web-Light.woff +0 -0
- package/assets/bund/font/BundesSans-Web-Light.woff2 +0 -0
- package/assets/bund/font/BundesSans-Web-LightItalic.ttf +0 -0
- package/assets/bund/font/BundesSans-Web-LightItalic.woff +0 -0
- package/assets/bund/font/BundesSans-Web-LightItalic.woff2 +0 -0
- package/assets/bund/font/BundesSans-Web-Medium.ttf +0 -0
- package/assets/bund/font/BundesSans-Web-Medium.woff +0 -0
- package/assets/bund/font/BundesSans-Web-Medium.woff2 +0 -0
- package/assets/bund/font/BundesSans-Web-MediumItalic.ttf +0 -0
- package/assets/bund/font/BundesSans-Web-MediumItalic.woff +0 -0
- package/assets/bund/font/BundesSans-Web-MediumItalic.woff2 +0 -0
- package/assets/bund/font/BundesSans-Web-Regular.ttf +0 -0
- package/assets/bund/font/BundesSans-Web-Regular.woff +0 -0
- package/assets/bund/font/BundesSans-Web-Regular.woff2 +0 -0
- package/assets/bund/font/BundesSans-Web-RegularItalic.ttf +0 -0
- package/assets/bund/font/BundesSans-Web-RegularItalic.woff +0 -0
- package/assets/bund/font/BundesSans-Web-RegularItalic.woff2 +0 -0
- package/assets/bund/font/bundessansweb-bold-woff-data.woff +0 -0
- package/assets/bund/font/bundessansweb-regular-woff-data.woff +0 -0
- package/assets/bund/font/bundesserifweb-regular-woff-data.woff +0 -0
- package/assets/bund/forms.js +310 -0
- package/assets/bund/svg/itzbund.svg +13 -0
- package/assets/codicons/codicon.css +553 -0
- package/assets/codicons/codicon.csv +408 -0
- package/assets/codicons/codicon.html +3767 -0
- package/assets/codicons/codicon.svg +1 -0
- package/assets/codicons/codicon.ttf +0 -0
- package/assets/fontawesome-free/v5/LICENSE.txt +34 -0
- package/assets/fontawesome-free/v5/css/all.css +4616 -0
- package/assets/fontawesome-free/v5/css/all.min.css +5 -0
- package/assets/fontawesome-free/v5/css/brands.css +15 -0
- package/assets/fontawesome-free/v5/css/brands.min.css +5 -0
- package/assets/fontawesome-free/v5/css/fontawesome.css +4582 -0
- package/assets/fontawesome-free/v5/css/fontawesome.min.css +5 -0
- package/assets/fontawesome-free/v5/css/regular.css +15 -0
- package/assets/fontawesome-free/v5/css/regular.min.css +5 -0
- package/assets/fontawesome-free/v5/css/solid.css +16 -0
- package/assets/fontawesome-free/v5/css/solid.min.css +5 -0
- package/assets/fontawesome-free/v5/css/svg-with-js.css +371 -0
- package/assets/fontawesome-free/v5/css/svg-with-js.min.css +5 -0
- package/assets/fontawesome-free/v5/css/v4-shims.css +2172 -0
- package/assets/fontawesome-free/v5/css/v4-shims.min.css +5 -0
- package/assets/fontawesome-free/v5/webfonts/fa-brands-400.eot +0 -0
- package/assets/fontawesome-free/v5/webfonts/fa-brands-400.svg +3717 -0
- package/assets/fontawesome-free/v5/webfonts/fa-brands-400.ttf +0 -0
- package/assets/fontawesome-free/v5/webfonts/fa-brands-400.woff +0 -0
- package/assets/fontawesome-free/v5/webfonts/fa-brands-400.woff2 +0 -0
- package/assets/fontawesome-free/v5/webfonts/fa-regular-400.eot +0 -0
- package/assets/fontawesome-free/v5/webfonts/fa-regular-400.svg +801 -0
- package/assets/fontawesome-free/v5/webfonts/fa-regular-400.ttf +0 -0
- package/assets/fontawesome-free/v5/webfonts/fa-regular-400.woff +0 -0
- package/assets/fontawesome-free/v5/webfonts/fa-regular-400.woff2 +0 -0
- package/assets/fontawesome-free/v5/webfonts/fa-solid-900.eot +0 -0
- package/assets/fontawesome-free/v5/webfonts/fa-solid-900.svg +5034 -0
- package/assets/fontawesome-free/v5/webfonts/fa-solid-900.ttf +0 -0
- package/assets/fontawesome-free/v5/webfonts/fa-solid-900.woff +0 -0
- package/assets/fontawesome-free/v5/webfonts/fa-solid-900.woff2 +0 -0
- package/assets/fontawesome-free/v6/LICENSE.txt +165 -0
- package/assets/fontawesome-free/v6/css/all.css +7831 -0
- package/assets/fontawesome-free/v6/css/all.min.css +6 -0
- package/assets/fontawesome-free/v6/css/brands.css +1432 -0
- package/assets/fontawesome-free/v6/css/brands.min.css +6 -0
- package/assets/fontawesome-free/v6/css/fontawesome.css +6338 -0
- package/assets/fontawesome-free/v6/css/fontawesome.min.css +6 -0
- package/assets/fontawesome-free/v6/css/regular.css +19 -0
- package/assets/fontawesome-free/v6/css/regular.min.css +6 -0
- package/assets/fontawesome-free/v6/css/solid.css +19 -0
- package/assets/fontawesome-free/v6/css/solid.min.css +6 -0
- package/assets/fontawesome-free/v6/css/svg-with-js.css +634 -0
- package/assets/fontawesome-free/v6/css/svg-with-js.min.css +6 -0
- package/assets/fontawesome-free/v6/css/v4-font-face.css +26 -0
- package/assets/fontawesome-free/v6/css/v4-font-face.min.css +6 -0
- package/assets/fontawesome-free/v6/css/v4-shims.css +2146 -0
- package/assets/fontawesome-free/v6/css/v4-shims.min.css +6 -0
- package/assets/fontawesome-free/v6/css/v5-font-face.css +22 -0
- package/assets/fontawesome-free/v6/css/v5-font-face.min.css +6 -0
- package/assets/fontawesome-free/v6/webfonts/fa-brands-400.ttf +0 -0
- package/assets/fontawesome-free/v6/webfonts/fa-brands-400.woff2 +0 -0
- package/assets/fontawesome-free/v6/webfonts/fa-regular-400.ttf +0 -0
- package/assets/fontawesome-free/v6/webfonts/fa-regular-400.woff2 +0 -0
- package/assets/fontawesome-free/v6/webfonts/fa-solid-900.ttf +0 -0
- package/assets/fontawesome-free/v6/webfonts/fa-solid-900.woff2 +0 -0
- package/assets/fontawesome-free/v6/webfonts/fa-v4compatibility.ttf +0 -0
- package/assets/fontawesome-free/v6/webfonts/fa-v4compatibility.woff2 +0 -0
- package/assets/icofont/demo.html +18942 -0
- package/assets/icofont/fonts/icofont.eot +0 -0
- package/assets/icofont/fonts/icofont.svg +2105 -0
- package/assets/icofont/fonts/icofont.ttf +0 -0
- package/assets/icofont/fonts/icofont.woff +0 -0
- package/assets/icofont/fonts/icofont.woff2 +0 -0
- package/assets/icofont/icofont.css +10757 -0
- package/assets/icofont/icofont.min.css +7 -0
- package/assets/noto-sans/fonts/NotoSans-Black.ttf +0 -0
- package/assets/noto-sans/fonts/NotoSans-BlackItalic.ttf +0 -0
- package/assets/noto-sans/fonts/NotoSans-Bold.ttf +0 -0
- package/assets/noto-sans/fonts/NotoSans-BoldItalic.ttf +0 -0
- package/assets/noto-sans/fonts/NotoSans-ExtraBold.ttf +0 -0
- package/assets/noto-sans/fonts/NotoSans-ExtraBoldItalic.ttf +0 -0
- package/assets/noto-sans/fonts/NotoSans-ExtraLight.ttf +0 -0
- package/assets/noto-sans/fonts/NotoSans-ExtraLightItalic.ttf +0 -0
- package/assets/noto-sans/fonts/NotoSans-Italic.ttf +0 -0
- package/assets/noto-sans/fonts/NotoSans-Light.ttf +0 -0
- package/assets/noto-sans/fonts/NotoSans-LightItalic.ttf +0 -0
- package/assets/noto-sans/fonts/NotoSans-Medium.ttf +0 -0
- package/assets/noto-sans/fonts/NotoSans-MediumItalic.ttf +0 -0
- package/assets/noto-sans/fonts/NotoSans-Regular.ttf +0 -0
- package/assets/noto-sans/fonts/NotoSans-SemiBold.ttf +0 -0
- package/assets/noto-sans/fonts/NotoSans-SemiBoldItalic.ttf +0 -0
- package/assets/noto-sans/fonts/NotoSans-Thin.ttf +0 -0
- package/assets/noto-sans/fonts/NotoSans-ThinItalic.ttf +0 -0
- package/assets/noto-sans/fonts/OFL.txt +93 -0
- package/assets/noto-sans/noto-sans.css +11 -0
- package/assets/roboto/LICENSE.txt +202 -0
- package/assets/roboto/Roboto-Black.ttf +0 -0
- package/assets/roboto/Roboto-BlackItalic.ttf +0 -0
- package/assets/roboto/Roboto-Bold.ttf +0 -0
- package/assets/roboto/Roboto-BoldItalic.ttf +0 -0
- package/assets/roboto/Roboto-Italic.ttf +0 -0
- package/assets/roboto/Roboto-Light.ttf +0 -0
- package/assets/roboto/Roboto-LightItalic.ttf +0 -0
- package/assets/roboto/Roboto-Medium.ttf +0 -0
- package/assets/roboto/Roboto-MediumItalic.ttf +0 -0
- package/assets/roboto/Roboto-Regular.ttf +0 -0
- package/assets/roboto/Roboto-Thin.ttf +0 -0
- package/assets/roboto/Roboto-ThinItalic.ttf +0 -0
- package/assets/roboto/roboto.css +27 -0
- package/cjs/index.d.ts +2 -0
- package/cjs/index.js +19 -0
- package/cjs/index.js.map +1 -0
- package/cjs/themes/bamf.d.ts +1 -0
- package/cjs/themes/bamf.js +8 -0
- package/cjs/themes/bamf.js.map +1 -0
- package/cjs/themes/bmf.d.ts +1 -0
- package/cjs/themes/bmf.js +39 -0
- package/cjs/themes/bmf.js.map +1 -0
- package/cjs/themes/bpa.d.ts +1 -0
- package/cjs/themes/bpa.js +35 -0
- package/cjs/themes/bpa.js.map +1 -0
- package/cjs/themes/bzst.d.ts +1 -0
- package/cjs/themes/bzst.js +24 -0
- package/cjs/themes/bzst.js.map +1 -0
- package/cjs/themes/bzst2.d.ts +1 -0
- package/cjs/themes/bzst2.js +28 -0
- package/cjs/themes/bzst2.js.map +1 -0
- package/cjs/themes/desy.d.ts +1 -0
- package/cjs/themes/desy.js +38 -0
- package/cjs/themes/desy.js.map +1 -0
- package/cjs/themes/hh.d.ts +1 -0
- package/cjs/themes/hh.js +36 -0
- package/cjs/themes/hh.js.map +1 -0
- package/cjs/themes/index.d.ts +12 -0
- package/cjs/themes/index.js +29 -0
- package/cjs/themes/index.js.map +1 -0
- package/cjs/themes/itvsh.d.ts +1 -0
- package/cjs/themes/itvsh.js +12 -0
- package/cjs/themes/itvsh.js.map +1 -0
- package/cjs/themes/itzbund.d.ts +1 -0
- package/cjs/themes/itzbund.js +35 -0
- package/cjs/themes/itzbund.js.map +1 -0
- package/cjs/themes/mapz.d.ts +1 -0
- package/cjs/themes/mapz.js +39 -0
- package/cjs/themes/mapz.js.map +1 -0
- package/cjs/themes/nxt.d.ts +1 -0
- package/cjs/themes/nxt.js +37 -0
- package/cjs/themes/nxt.js.map +1 -0
- package/cjs/themes/zoll.d.ts +1 -0
- package/cjs/themes/zoll.js +8 -0
- package/cjs/themes/zoll.js.map +1 -0
- package/cjs/translations/de.d.ts +1 -0
- package/cjs/translations/de.js +30 -0
- package/cjs/translations/de.js.map +1 -0
- package/cjs/translations/en.d.ts +1 -0
- package/cjs/translations/en.js +30 -0
- package/cjs/translations/en.js.map +1 -0
- package/cjs/translations/index.d.ts +2 -0
- package/cjs/translations/index.js +19 -0
- package/cjs/translations/index.js.map +1 -0
- package/esm/index.d.ts +2 -0
- package/esm/index.js +3 -0
- package/esm/index.js.map +1 -0
- package/esm/themes/bamf.d.ts +1 -0
- package/esm/themes/bamf.js +5 -0
- package/esm/themes/bamf.js.map +1 -0
- package/esm/themes/bmf.d.ts +1 -0
- package/esm/themes/bmf.js +36 -0
- package/esm/themes/bmf.js.map +1 -0
- package/esm/themes/bpa.d.ts +1 -0
- package/esm/themes/bpa.js +32 -0
- package/esm/themes/bpa.js.map +1 -0
- package/esm/themes/bzst.d.ts +1 -0
- package/esm/themes/bzst.js +21 -0
- package/esm/themes/bzst.js.map +1 -0
- package/esm/themes/bzst2.d.ts +1 -0
- package/esm/themes/bzst2.js +25 -0
- package/esm/themes/bzst2.js.map +1 -0
- package/esm/themes/desy.d.ts +1 -0
- package/esm/themes/desy.js +35 -0
- package/esm/themes/desy.js.map +1 -0
- package/esm/themes/hh.d.ts +1 -0
- package/esm/themes/hh.js +33 -0
- package/esm/themes/hh.js.map +1 -0
- package/esm/themes/index.d.ts +12 -0
- package/esm/themes/index.js +13 -0
- package/esm/themes/index.js.map +1 -0
- package/esm/themes/itvsh.d.ts +1 -0
- package/esm/themes/itvsh.js +9 -0
- package/esm/themes/itvsh.js.map +1 -0
- package/esm/themes/itzbund.d.ts +1 -0
- package/esm/themes/itzbund.js +32 -0
- package/esm/themes/itzbund.js.map +1 -0
- package/esm/themes/mapz.d.ts +1 -0
- package/esm/themes/mapz.js +36 -0
- package/esm/themes/mapz.js.map +1 -0
- package/esm/themes/nxt.d.ts +1 -0
- package/esm/themes/nxt.js +34 -0
- package/esm/themes/nxt.js.map +1 -0
- package/esm/themes/zoll.d.ts +1 -0
- package/esm/themes/zoll.js +5 -0
- package/esm/themes/zoll.js.map +1 -0
- package/esm/translations/de.d.ts +1 -0
- package/esm/translations/de.js +27 -0
- package/esm/translations/de.js.map +1 -0
- package/esm/translations/en.d.ts +1 -0
- package/esm/translations/en.js +27 -0
- package/esm/translations/en.js.map +1 -0
- package/esm/translations/index.d.ts +2 -0
- package/esm/translations/index.js +3 -0
- package/esm/translations/index.js.map +1 -0
- package/package.json +68 -0
- package/reports/KoliBri-BF-BITV_BMF.xlsx +0 -0
- package/reports/KoliBri-BF-BITV_MAPZ.xlsx +0 -0
- package/types/index.d.ts +2 -0
- package/types/themes/bamf.d.ts +1 -0
- package/types/themes/bmf.d.ts +1 -0
- package/types/themes/bpa.d.ts +1 -0
- package/types/themes/bzst.d.ts +1 -0
- package/types/themes/bzst2.d.ts +1 -0
- package/types/themes/desy.d.ts +1 -0
- package/types/themes/hh.d.ts +1 -0
- package/types/themes/index.d.ts +12 -0
- package/types/themes/itvsh.d.ts +1 -0
- package/types/themes/itzbund.d.ts +1 -0
- package/types/themes/mapz.d.ts +1 -0
- package/types/themes/nxt.d.ts +1 -0
- package/types/themes/zoll.d.ts +1 -0
- package/types/translations/de.d.ts +1 -0
- package/types/translations/en.d.ts +1 -0
- package/types/translations/index.d.ts +2 -0
- package/umd/index.d.ts +2 -0
- package/umd/index.js +29 -0
- package/umd/index.js.map +1 -0
- package/umd/themes/bamf.d.ts +1 -0
- package/umd/themes/bamf.js +18 -0
- package/umd/themes/bamf.js.map +1 -0
- package/umd/themes/bmf.d.ts +1 -0
- package/umd/themes/bmf.js +49 -0
- package/umd/themes/bmf.js.map +1 -0
- package/umd/themes/bpa.d.ts +1 -0
- package/umd/themes/bpa.js +45 -0
- package/umd/themes/bpa.js.map +1 -0
- package/umd/themes/bzst.d.ts +1 -0
- package/umd/themes/bzst.js +34 -0
- package/umd/themes/bzst.js.map +1 -0
- package/umd/themes/bzst2.d.ts +1 -0
- package/umd/themes/bzst2.js +38 -0
- package/umd/themes/bzst2.js.map +1 -0
- package/umd/themes/desy.d.ts +1 -0
- package/umd/themes/desy.js +48 -0
- package/umd/themes/desy.js.map +1 -0
- package/umd/themes/hh.d.ts +1 -0
- package/umd/themes/hh.js +46 -0
- package/umd/themes/hh.js.map +1 -0
- package/umd/themes/index.d.ts +12 -0
- package/umd/themes/index.js +39 -0
- package/umd/themes/index.js.map +1 -0
- package/umd/themes/itvsh.d.ts +1 -0
- package/umd/themes/itvsh.js +22 -0
- package/umd/themes/itvsh.js.map +1 -0
- package/umd/themes/itzbund.d.ts +1 -0
- package/umd/themes/itzbund.js +45 -0
- package/umd/themes/itzbund.js.map +1 -0
- package/umd/themes/mapz.d.ts +1 -0
- package/umd/themes/mapz.js +49 -0
- package/umd/themes/mapz.js.map +1 -0
- package/umd/themes/nxt.d.ts +1 -0
- package/umd/themes/nxt.js +47 -0
- package/umd/themes/nxt.js.map +1 -0
- package/umd/themes/zoll.d.ts +1 -0
- package/umd/themes/zoll.js +18 -0
- package/umd/themes/zoll.js.map +1 -0
- package/umd/translations/de.d.ts +1 -0
- package/umd/translations/de.js +40 -0
- package/umd/translations/de.js.map +1 -0
- package/umd/translations/en.d.ts +1 -0
- package/umd/translations/en.js +40 -0
- package/umd/translations/en.js.map +1 -0
- package/umd/translations/index.d.ts +2 -0
- package/umd/translations/index.js +29 -0
- 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>
|