@luftborn/custom-elements 1.4.0 → 1.4.1

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 (196) hide show
  1. package/README.md +2 -2
  2. package/assets/style.css +277 -277
  3. package/azure-pipeline.yml +54 -0
  4. package/demo/index.html +585 -585
  5. package/demo/index.js +6109 -0
  6. package/demo/index.min.js +6110 -0
  7. package/demo/index.min.js.map +1 -0
  8. package/demo/index.ts +11 -11
  9. package/demo/old/index.html +586 -586
  10. package/demo/old/index.js +10849 -10849
  11. package/demo/old/index.min.js +10850 -10850
  12. package/demo/old/index.ts +10 -10
  13. package/dist/custom-form.d.ts +20 -20
  14. package/dist/custom-form.js +147 -147
  15. package/dist/elements/Address/AddressElement.d.ts +28 -28
  16. package/dist/elements/Address/AddressElement.js +206 -206
  17. package/dist/elements/BankField/BankFieldElement.d.ts +22 -22
  18. package/dist/elements/BankField/BankFieldElement.js +127 -127
  19. package/dist/elements/CPRElement/CPRElement.d.ts +14 -14
  20. package/dist/elements/CPRElement/CPRElement.js +82 -82
  21. package/dist/elements/CVRElement/CVRElement.d.ts +14 -14
  22. package/dist/elements/CVRElement/CVRElement.js +82 -82
  23. package/dist/elements/CheckBoxElement/CheckBoxElement.d.ts +14 -14
  24. package/dist/elements/CheckBoxElement/CheckBoxElement.js +96 -96
  25. package/dist/elements/CustomRegularExpression/CustomRegularExpressionElement.d.ts +12 -12
  26. package/dist/elements/CustomRegularExpression/CustomRegularExpressionElement.js +82 -82
  27. package/dist/elements/DateField/DateFieldElement.d.ts +12 -12
  28. package/dist/elements/DateField/DateFieldElement.js +85 -85
  29. package/dist/elements/DropDownList/DropDownListElement.d.ts +14 -14
  30. package/dist/elements/DropDownList/DropDownListElement.js +93 -93
  31. package/dist/elements/Elements.d.ts +18 -18
  32. package/dist/elements/Elements.js +37 -37
  33. package/dist/elements/EmailField/EmailFieldElement.d.ts +13 -13
  34. package/dist/elements/EmailField/EmailFieldElement.js +83 -83
  35. package/dist/elements/FileField/FileFieldElement.d.ts +15 -15
  36. package/dist/elements/FileField/FileFieldElement.js +103 -103
  37. package/dist/elements/IdentificationElement/IdentificationElement.d.ts +18 -18
  38. package/dist/elements/IdentificationElement/IdentificationElement.js +94 -94
  39. package/dist/elements/InternationaPhoneNumber/InternationaPhoneNumberElement.d.ts +16 -16
  40. package/dist/elements/InternationaPhoneNumber/InternationaPhoneNumberElement.js +114 -114
  41. package/dist/elements/NumericField/NumericFieldElement.d.ts +12 -12
  42. package/dist/elements/NumericField/NumericFieldElement.js +91 -91
  43. package/dist/elements/RadioButtonGroup/RadioButtonGroupElement.d.ts +14 -14
  44. package/dist/elements/RadioButtonGroup/RadioButtonGroupElement.js +99 -99
  45. package/dist/elements/TextAreaElement/TextAreaElement.d.ts +12 -12
  46. package/dist/elements/TextAreaElement/TextAreaElement.js +79 -79
  47. package/dist/elements/TextField/TextFieldElement.d.ts +12 -12
  48. package/dist/elements/TextField/TextFieldElement.js +79 -79
  49. package/dist/elements/TypeAhead/TypeAheadElement.d.ts +24 -24
  50. package/dist/elements/TypeAhead/TypeAheadElement.js +209 -209
  51. package/dist/framework/CustomEvents.d.ts +21 -21
  52. package/dist/framework/CustomEvents.js +47 -47
  53. package/dist/framework/CustomInputElement.d.ts +50 -50
  54. package/dist/framework/CustomInputElement.js +258 -258
  55. package/dist/framework/Language/Languages/Base/BaseDictionary.d.ts +4 -4
  56. package/dist/framework/Language/Languages/Base/BaseDictionary.js +20 -20
  57. package/dist/framework/Language/Languages/CzechDictionary.d.ts +4 -4
  58. package/dist/framework/Language/Languages/CzechDictionary.js +39 -39
  59. package/dist/framework/Language/Languages/DanishDictionary.d.ts +4 -4
  60. package/dist/framework/Language/Languages/DanishDictionary.js +39 -39
  61. package/dist/framework/Language/Languages/DutchDictionary.d.ts +4 -4
  62. package/dist/framework/Language/Languages/DutchDictionary.js +39 -39
  63. package/dist/framework/Language/Languages/EnglishDictionary.d.ts +4 -4
  64. package/dist/framework/Language/Languages/EnglishDictionary.js +39 -39
  65. package/dist/framework/Language/Languages/EstonianDictionary.d.ts +4 -4
  66. package/dist/framework/Language/Languages/EstonianDictionary.js +39 -39
  67. package/dist/framework/Language/Languages/FinnishDictionary.d.ts +4 -4
  68. package/dist/framework/Language/Languages/FinnishDictionary.js +39 -39
  69. package/dist/framework/Language/Languages/FrenchDictionary.d.ts +4 -4
  70. package/dist/framework/Language/Languages/FrenchDictionary.js +39 -39
  71. package/dist/framework/Language/Languages/GermanDictionary.d.ts +4 -4
  72. package/dist/framework/Language/Languages/GermanDictionary.js +39 -39
  73. package/dist/framework/Language/Languages/GreekDictionary.d.ts +4 -4
  74. package/dist/framework/Language/Languages/GreekDictionary.js +39 -39
  75. package/dist/framework/Language/Languages/HungarianDictionary.d.ts +4 -4
  76. package/dist/framework/Language/Languages/HungarianDictionary.js +39 -39
  77. package/dist/framework/Language/Languages/IcelandicDictionary.d.ts +4 -4
  78. package/dist/framework/Language/Languages/IcelandicDictionary.js +39 -39
  79. package/dist/framework/Language/Languages/ItalianDictionary.d.ts +4 -4
  80. package/dist/framework/Language/Languages/ItalianDictionary.js +39 -39
  81. package/dist/framework/Language/Languages/LatvianDictionary.d.ts +4 -4
  82. package/dist/framework/Language/Languages/LatvianDictionary.js +39 -39
  83. package/dist/framework/Language/Languages/LituanianDictionary.d.ts +4 -4
  84. package/dist/framework/Language/Languages/LituanianDictionary.js +39 -39
  85. package/dist/framework/Language/Languages/NorwegianDictionary.d.ts +4 -4
  86. package/dist/framework/Language/Languages/NorwegianDictionary.js +39 -39
  87. package/dist/framework/Language/Languages/PolishDictionary.d.ts +4 -4
  88. package/dist/framework/Language/Languages/PolishDictionary.js +39 -39
  89. package/dist/framework/Language/Languages/PortugueseDictionary.d.ts +4 -4
  90. package/dist/framework/Language/Languages/PortugueseDictionary.js +39 -39
  91. package/dist/framework/Language/Languages/SpanishDictionary.d.ts +4 -4
  92. package/dist/framework/Language/Languages/SpanishDictionary.js +39 -39
  93. package/dist/framework/Language/Languages/SwedishDictionary.d.ts +4 -4
  94. package/dist/framework/Language/Languages/SwedishDictionary.js +39 -39
  95. package/dist/framework/Language/Translator.d.ts +23 -23
  96. package/dist/framework/Language/Translator.js +115 -115
  97. package/dist/framework/Models/OptionWithDescription.d.ts +6 -6
  98. package/dist/framework/Models/OptionWithDescription.js +9 -9
  99. package/dist/framework/Polyfills/getAttributeNamesPolyfill.d.ts +1 -1
  100. package/dist/framework/Polyfills/getAttributeNamesPolyfill.js +17 -17
  101. package/dist/framework/Translations/CaseConverter.d.ts +5 -5
  102. package/dist/framework/Translations/CaseConverter.js +50 -50
  103. package/dist/framework/Utilities/ArrayUtil.d.ts +6 -6
  104. package/dist/framework/Utilities/ArrayUtil.js +36 -36
  105. package/dist/framework/Utilities/DomUtil.d.ts +21 -21
  106. package/dist/framework/Utilities/DomUtil.js +101 -101
  107. package/dist/framework/Utilities/DomUtility.d.ts +3 -3
  108. package/dist/framework/Utilities/DomUtility.js +12 -12
  109. package/dist/framework/Utilities/MakeRequest.d.ts +8 -8
  110. package/dist/framework/Utilities/MakeRequest.js +48 -48
  111. package/dist/framework/Utilities/StringUtil.d.ts +4 -4
  112. package/dist/framework/Utilities/StringUtil.js +16 -16
  113. package/dist/framework/Utilities/ViewportUtil.d.ts +8 -8
  114. package/dist/framework/Utilities/ViewportUtil.js +42 -42
  115. package/dist/framework/Utilities/debouncer.d.ts +8 -8
  116. package/dist/framework/Utilities/debouncer.js +51 -51
  117. package/dist/framework/Validation/IValidator.interface.d.ts +3 -3
  118. package/dist/framework/Validation/IValidator.interface.js +2 -2
  119. package/dist/framework/Validation/Validators/BankAccount.d.ts +4 -4
  120. package/dist/framework/Validation/Validators/BankAccount.js +12 -12
  121. package/dist/framework/Validation/Validators/BankAccountRegistrationNumber.d.ts +4 -4
  122. package/dist/framework/Validation/Validators/BankAccountRegistrationNumber.js +12 -12
  123. package/dist/framework/Validation/Validators/BankIdNorway.d.ts +5 -5
  124. package/dist/framework/Validation/Validators/BankIdNorway.js +21 -21
  125. package/dist/framework/Validation/Validators/BankIdSweden.d.ts +5 -5
  126. package/dist/framework/Validation/Validators/BankIdSweden.js +21 -21
  127. package/dist/framework/Validation/Validators/CPR.d.ts +9 -9
  128. package/dist/framework/Validation/Validators/CPR.js +75 -75
  129. package/dist/framework/Validation/Validators/CVR.d.ts +5 -5
  130. package/dist/framework/Validation/Validators/CVR.js +30 -30
  131. package/dist/framework/custom-element.decorator.d.ts +9 -9
  132. package/dist/framework/custom-element.decorator.js +51 -51
  133. package/dist/index.d.ts +7 -7
  134. package/dist/index.js +14 -14
  135. package/package.json +38 -38
  136. package/src/custom-form.ts +140 -140
  137. package/src/elements/Address/AddressElement.ts +216 -216
  138. package/src/elements/BankField/BankFieldElement.ts +127 -127
  139. package/src/elements/CPRElement/CPRElement.ts +74 -74
  140. package/src/elements/CVRElement/CVRElement.ts +75 -75
  141. package/src/elements/CheckBoxElement/CheckBoxElement.ts +99 -99
  142. package/src/elements/CustomRegularExpression/CustomRegularExpressionElement.ts +75 -75
  143. package/src/elements/DateField/DateFieldElement.ts +78 -78
  144. package/src/elements/DropDownList/DropDownListElement.ts +100 -100
  145. package/src/elements/Elements.ts +37 -37
  146. package/src/elements/EmailField/EmailFieldElement.ts +78 -78
  147. package/src/elements/FileField/FileFieldElement.ts +96 -96
  148. package/src/elements/IdentificationElement/IdentificationElement.ts +104 -104
  149. package/src/elements/InternationaPhoneNumber/InternationaPhoneNumberElement.ts +116 -116
  150. package/src/elements/NumericField/NumericFieldElement.ts +84 -84
  151. package/src/elements/RadioButtonGroup/RadioButtonGroupElement.ts +103 -103
  152. package/src/elements/TextAreaElement/TextAreaElement.ts +72 -72
  153. package/src/elements/TextField/TextFieldElement.ts +72 -72
  154. package/src/elements/TypeAhead/TypeAheadElement.ts +248 -248
  155. package/src/framework/CustomEvents.ts +47 -47
  156. package/src/framework/CustomInputElement.ts +277 -277
  157. package/src/framework/Language/Languages/Base/BaseDictionary.ts +15 -15
  158. package/src/framework/Language/Languages/CzechDictionary.ts +18 -18
  159. package/src/framework/Language/Languages/DanishDictionary.ts +17 -17
  160. package/src/framework/Language/Languages/DutchDictionary.ts +17 -17
  161. package/src/framework/Language/Languages/EnglishDictionary.ts +18 -18
  162. package/src/framework/Language/Languages/EstonianDictionary.ts +17 -17
  163. package/src/framework/Language/Languages/FinnishDictionary.ts +17 -17
  164. package/src/framework/Language/Languages/FrenchDictionary.ts +17 -17
  165. package/src/framework/Language/Languages/GermanDictionary.ts +17 -17
  166. package/src/framework/Language/Languages/GreekDictionary.ts +17 -17
  167. package/src/framework/Language/Languages/HungarianDictionary.ts +17 -17
  168. package/src/framework/Language/Languages/IcelandicDictionary.ts +17 -17
  169. package/src/framework/Language/Languages/ItalianDictionary.ts +17 -17
  170. package/src/framework/Language/Languages/LatvianDictionary.ts +17 -17
  171. package/src/framework/Language/Languages/LituanianDictionary.ts +17 -17
  172. package/src/framework/Language/Languages/NorwegianDictionary.ts +17 -17
  173. package/src/framework/Language/Languages/PolishDictionary.ts +17 -17
  174. package/src/framework/Language/Languages/PortugueseDictionary.ts +17 -17
  175. package/src/framework/Language/Languages/SpanishDictionary.ts +17 -17
  176. package/src/framework/Language/Languages/SwedishDictionary.ts +17 -17
  177. package/src/framework/Language/Translator.ts +110 -110
  178. package/src/framework/Models/OptionWithDescription.ts +8 -8
  179. package/src/framework/Polyfills/getAttributeNamesPolyfill.ts +13 -13
  180. package/src/framework/Translations/CaseConverter.ts +43 -43
  181. package/src/framework/Utilities/ArrayUtil.ts +31 -31
  182. package/src/framework/Utilities/DomUtil.ts +117 -117
  183. package/src/framework/Utilities/DomUtility.ts +6 -6
  184. package/src/framework/Utilities/MakeRequest.ts +47 -47
  185. package/src/framework/Utilities/StringUtil.ts +8 -8
  186. package/src/framework/Utilities/ViewportUtil.ts +46 -46
  187. package/src/framework/Utilities/debouncer.ts +66 -66
  188. package/src/framework/Validation/IValidator.interface.ts +3 -3
  189. package/src/framework/Validation/Validators/BankAccount.ts +7 -7
  190. package/src/framework/Validation/Validators/BankAccountRegistrationNumber.ts +8 -8
  191. package/src/framework/Validation/Validators/BankIdNorway.ts +21 -21
  192. package/src/framework/Validation/Validators/BankIdSweden.ts +21 -21
  193. package/src/framework/Validation/Validators/CPR.ts +82 -82
  194. package/src/framework/Validation/Validators/CVR.ts +27 -27
  195. package/src/framework/custom-element.decorator.ts +57 -57
  196. package/src/index.ts +12 -12
@@ -1,116 +1,116 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var DanishDictionary_1 = require("./Languages/DanishDictionary");
4
- var EnglishDictionary_1 = require("./Languages/EnglishDictionary");
5
- var CzechDictionary_1 = require("./Languages/CzechDictionary");
6
- var GermanDictionary_1 = require("./Languages/GermanDictionary");
7
- var GreekDictionary_1 = require("./Languages/GreekDictionary");
8
- var SpanishDictionary_1 = require("./Languages/SpanishDictionary");
9
- var EstonianDictionary_1 = require("./Languages/EstonianDictionary");
10
- var FinnishDictionary_1 = require("./Languages/FinnishDictionary");
11
- var FrenchDictionary_1 = require("./Languages/FrenchDictionary");
12
- var HungarianDictionary_1 = require("./Languages/HungarianDictionary");
13
- var IcelandicDictionary_1 = require("./Languages/IcelandicDictionary");
14
- var ItalianDictionary_1 = require("./Languages/ItalianDictionary");
15
- var LatvianDictionary_1 = require("./Languages/LatvianDictionary");
16
- var LituanianDictionary_1 = require("./Languages/LituanianDictionary");
17
- var DutchDictionary_1 = require("./Languages/DutchDictionary");
18
- var NorwegianDictionary_1 = require("./Languages/NorwegianDictionary");
19
- var PolishDictionary_1 = require("./Languages/PolishDictionary");
20
- var PortugueseDictionary_1 = require("./Languages/PortugueseDictionary");
21
- var SwedishDictionary_1 = require("./Languages/SwedishDictionary");
22
- var Translator = /** @class */ (function () {
23
- function Translator() {
24
- }
25
- Translator.Translate = function (key, language) {
26
- if (language === void 0) { language = 'da'; }
27
- language = language.toLowerCase();
28
- var isSupportedLanguage = Translator.langauges.indexOf(language) != -1;
29
- if (!isSupportedLanguage) {
30
- language = 'da';
31
- }
32
- switch (language) {
33
- case 'da':
34
- return this.danishDictionary.get(key);
35
- case 'en':
36
- return this.englishDictionary.get(key);
37
- case 'cs':
38
- return this.czechDictionary.get(key);
39
- case 'de':
40
- return this.germanDictionary.get(key);
41
- case 'el':
42
- return this.greekDictionary.get(key);
43
- case 'es':
44
- return this.spanishDictionary.get(key);
45
- case 'et':
46
- return this.estonianDictionary.get(key);
47
- case 'fi':
48
- return this.finnishDictionary.get(key);
49
- case 'fr':
50
- return this.frenchDictionary.get(key);
51
- case 'hu':
52
- return this.hungarianDictionary.get(key);
53
- case 'is':
54
- return this.icelandicDictionary.get(key);
55
- case 'it':
56
- return this.italianDictionary.get(key);
57
- case 'lt':
58
- return this.latvianDictionary.get(key);
59
- case 'lv':
60
- return this.lituanianDictionary.get(key);
61
- case 'nl':
62
- return this.dutchDictionary.get(key);
63
- case 'no':
64
- return this.norwegianDictionary.get(key);
65
- case 'pl':
66
- return this.polishDictionary.get(key);
67
- case 'pt':
68
- return this.portugueseDictionary.get(key);
69
- case 'sv':
70
- return this.swedishDictionary.get(key);
71
- }
72
- };
73
- Translator.langauges = [
74
- 'en',
75
- 'da',
76
- 'cs',
77
- 'de',
78
- 'el',
79
- 'es',
80
- 'et',
81
- 'fi',
82
- 'fr',
83
- 'hu',
84
- 'is',
85
- 'it',
86
- 'lt',
87
- 'lv',
88
- 'nl',
89
- 'no',
90
- 'pl',
91
- 'pt',
92
- 'sv',
93
- ];
94
- Translator.danishDictionary = new DanishDictionary_1.default();
95
- Translator.englishDictionary = new EnglishDictionary_1.default();
96
- Translator.czechDictionary = new CzechDictionary_1.default();
97
- Translator.germanDictionary = new GermanDictionary_1.default();
98
- Translator.greekDictionary = new GreekDictionary_1.default();
99
- Translator.spanishDictionary = new SpanishDictionary_1.default();
100
- Translator.estonianDictionary = new EstonianDictionary_1.default();
101
- Translator.finnishDictionary = new FinnishDictionary_1.default();
102
- Translator.frenchDictionary = new FrenchDictionary_1.default();
103
- Translator.hungarianDictionary = new HungarianDictionary_1.default();
104
- Translator.icelandicDictionary = new IcelandicDictionary_1.default();
105
- Translator.italianDictionary = new ItalianDictionary_1.default();
106
- Translator.latvianDictionary = new LatvianDictionary_1.default();
107
- Translator.lituanianDictionary = new LituanianDictionary_1.default();
108
- Translator.dutchDictionary = new DutchDictionary_1.default();
109
- Translator.norwegianDictionary = new NorwegianDictionary_1.default();
110
- Translator.polishDictionary = new PolishDictionary_1.default();
111
- Translator.portugueseDictionary = new PortugueseDictionary_1.default();
112
- Translator.swedishDictionary = new SwedishDictionary_1.default();
113
- return Translator;
114
- }());
115
- exports.default = Translator;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var DanishDictionary_1 = require("./Languages/DanishDictionary");
4
+ var EnglishDictionary_1 = require("./Languages/EnglishDictionary");
5
+ var CzechDictionary_1 = require("./Languages/CzechDictionary");
6
+ var GermanDictionary_1 = require("./Languages/GermanDictionary");
7
+ var GreekDictionary_1 = require("./Languages/GreekDictionary");
8
+ var SpanishDictionary_1 = require("./Languages/SpanishDictionary");
9
+ var EstonianDictionary_1 = require("./Languages/EstonianDictionary");
10
+ var FinnishDictionary_1 = require("./Languages/FinnishDictionary");
11
+ var FrenchDictionary_1 = require("./Languages/FrenchDictionary");
12
+ var HungarianDictionary_1 = require("./Languages/HungarianDictionary");
13
+ var IcelandicDictionary_1 = require("./Languages/IcelandicDictionary");
14
+ var ItalianDictionary_1 = require("./Languages/ItalianDictionary");
15
+ var LatvianDictionary_1 = require("./Languages/LatvianDictionary");
16
+ var LituanianDictionary_1 = require("./Languages/LituanianDictionary");
17
+ var DutchDictionary_1 = require("./Languages/DutchDictionary");
18
+ var NorwegianDictionary_1 = require("./Languages/NorwegianDictionary");
19
+ var PolishDictionary_1 = require("./Languages/PolishDictionary");
20
+ var PortugueseDictionary_1 = require("./Languages/PortugueseDictionary");
21
+ var SwedishDictionary_1 = require("./Languages/SwedishDictionary");
22
+ var Translator = /** @class */ (function () {
23
+ function Translator() {
24
+ }
25
+ Translator.Translate = function (key, language) {
26
+ if (language === void 0) { language = 'da'; }
27
+ language = language.toLowerCase();
28
+ var isSupportedLanguage = Translator.langauges.indexOf(language) != -1;
29
+ if (!isSupportedLanguage) {
30
+ language = 'da';
31
+ }
32
+ switch (language) {
33
+ case 'da':
34
+ return this.danishDictionary.get(key);
35
+ case 'en':
36
+ return this.englishDictionary.get(key);
37
+ case 'cs':
38
+ return this.czechDictionary.get(key);
39
+ case 'de':
40
+ return this.germanDictionary.get(key);
41
+ case 'el':
42
+ return this.greekDictionary.get(key);
43
+ case 'es':
44
+ return this.spanishDictionary.get(key);
45
+ case 'et':
46
+ return this.estonianDictionary.get(key);
47
+ case 'fi':
48
+ return this.finnishDictionary.get(key);
49
+ case 'fr':
50
+ return this.frenchDictionary.get(key);
51
+ case 'hu':
52
+ return this.hungarianDictionary.get(key);
53
+ case 'is':
54
+ return this.icelandicDictionary.get(key);
55
+ case 'it':
56
+ return this.italianDictionary.get(key);
57
+ case 'lt':
58
+ return this.latvianDictionary.get(key);
59
+ case 'lv':
60
+ return this.lituanianDictionary.get(key);
61
+ case 'nl':
62
+ return this.dutchDictionary.get(key);
63
+ case 'no':
64
+ return this.norwegianDictionary.get(key);
65
+ case 'pl':
66
+ return this.polishDictionary.get(key);
67
+ case 'pt':
68
+ return this.portugueseDictionary.get(key);
69
+ case 'sv':
70
+ return this.swedishDictionary.get(key);
71
+ }
72
+ };
73
+ Translator.langauges = [
74
+ 'en',
75
+ 'da',
76
+ 'cs',
77
+ 'de',
78
+ 'el',
79
+ 'es',
80
+ 'et',
81
+ 'fi',
82
+ 'fr',
83
+ 'hu',
84
+ 'is',
85
+ 'it',
86
+ 'lt',
87
+ 'lv',
88
+ 'nl',
89
+ 'no',
90
+ 'pl',
91
+ 'pt',
92
+ 'sv',
93
+ ];
94
+ Translator.danishDictionary = new DanishDictionary_1.default();
95
+ Translator.englishDictionary = new EnglishDictionary_1.default();
96
+ Translator.czechDictionary = new CzechDictionary_1.default();
97
+ Translator.germanDictionary = new GermanDictionary_1.default();
98
+ Translator.greekDictionary = new GreekDictionary_1.default();
99
+ Translator.spanishDictionary = new SpanishDictionary_1.default();
100
+ Translator.estonianDictionary = new EstonianDictionary_1.default();
101
+ Translator.finnishDictionary = new FinnishDictionary_1.default();
102
+ Translator.frenchDictionary = new FrenchDictionary_1.default();
103
+ Translator.hungarianDictionary = new HungarianDictionary_1.default();
104
+ Translator.icelandicDictionary = new IcelandicDictionary_1.default();
105
+ Translator.italianDictionary = new ItalianDictionary_1.default();
106
+ Translator.latvianDictionary = new LatvianDictionary_1.default();
107
+ Translator.lituanianDictionary = new LituanianDictionary_1.default();
108
+ Translator.dutchDictionary = new DutchDictionary_1.default();
109
+ Translator.norwegianDictionary = new NorwegianDictionary_1.default();
110
+ Translator.polishDictionary = new PolishDictionary_1.default();
111
+ Translator.portugueseDictionary = new PortugueseDictionary_1.default();
112
+ Translator.swedishDictionary = new SwedishDictionary_1.default();
113
+ return Translator;
114
+ }());
115
+ exports.default = Translator;
116
116
  //# sourceMappingURL=Translator.js.map
@@ -1,6 +1,6 @@
1
- export default class OptionWithDescription {
2
- title: string;
3
- value: string;
4
- description: string;
5
- constructor(option: Partial<OptionWithDescription>);
6
- }
1
+ export default class OptionWithDescription {
2
+ title: string;
3
+ value: string;
4
+ description: string;
5
+ constructor(option: Partial<OptionWithDescription>);
6
+ }
@@ -1,10 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var OptionWithDescription = /** @class */ (function () {
4
- function OptionWithDescription(option) {
5
- Object.assign(this, option);
6
- }
7
- return OptionWithDescription;
8
- }());
9
- exports.default = OptionWithDescription;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var OptionWithDescription = /** @class */ (function () {
4
+ function OptionWithDescription(option) {
5
+ Object.assign(this, option);
6
+ }
7
+ return OptionWithDescription;
8
+ }());
9
+ exports.default = OptionWithDescription;
10
10
  //# sourceMappingURL=OptionWithDescription.js.map
@@ -1 +1 @@
1
- export default function getAttributeNamesPolyfill(): void;
1
+ export default function getAttributeNamesPolyfill(): void;
@@ -1,18 +1,18 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- function getAttributeNamesPolyfill() {
4
- if (Element.prototype.getAttributeNames == undefined) {
5
- Element.prototype.getAttributeNames = function () {
6
- var attributes = this.attributes;
7
- var length = attributes.length;
8
- var result = new Array(length);
9
- for (var i = 0; i < length; i++) {
10
- result[i] = attributes[i].name;
11
- }
12
- return result;
13
- };
14
- }
15
- }
16
- exports.default = getAttributeNamesPolyfill;
17
- ;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ function getAttributeNamesPolyfill() {
4
+ if (Element.prototype.getAttributeNames == undefined) {
5
+ Element.prototype.getAttributeNames = function () {
6
+ var attributes = this.attributes;
7
+ var length = attributes.length;
8
+ var result = new Array(length);
9
+ for (var i = 0; i < length; i++) {
10
+ result[i] = attributes[i].name;
11
+ }
12
+ return result;
13
+ };
14
+ }
15
+ }
16
+ exports.default = getAttributeNamesPolyfill;
17
+ ;
18
18
  //# sourceMappingURL=getAttributeNamesPolyfill.js.map
@@ -1,5 +1,5 @@
1
- export default class CaseConverter {
2
- data: any;
3
- constructor(data: any);
4
- camel(): any;
5
- }
1
+ export default class CaseConverter {
2
+ data: any;
3
+ constructor(data: any);
4
+ camel(): any;
5
+ }
@@ -1,51 +1,51 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var CaseConverter = /** @class */ (function () {
4
- function CaseConverter(data) {
5
- this.data = data;
6
- }
7
- CaseConverter.prototype.camel = function () {
8
- var _loop_1 = function (prop) {
9
- if (this_1.data.hasOwnProperty(prop)) {
10
- var camelcaseProperty = prop.substring(0, 1).toLowerCase() + prop.substring(1);
11
- var arrayConverter_1 = function (array) {
12
- var tempArray = [];
13
- for (var index = 0; index < array.length; index++) {
14
- if (array[index] === null || array[index] === undefined) {
15
- continue;
16
- }
17
- var elementType = typeof array[index];
18
- if (elementType === 'string' || elementType === 'number') {
19
- tempArray.push(array[index]);
20
- continue;
21
- }
22
- if (Array.isArray(array[index])) {
23
- tempArray.push(arrayConverter_1(array[index]));
24
- continue;
25
- }
26
- if (typeof array[index] === 'object') {
27
- tempArray.push(new CaseConverter(array[index]).camel());
28
- continue;
29
- }
30
- }
31
- return tempArray;
32
- };
33
- if (Array.isArray(this_1.data[prop])) {
34
- this_1.data[camelcaseProperty] = arrayConverter_1(this_1.data[prop]);
35
- delete this_1.data[prop];
36
- return "continue";
37
- }
38
- this_1.data[camelcaseProperty] = this_1.data[prop];
39
- delete this_1.data[prop];
40
- }
41
- };
42
- var this_1 = this;
43
- for (var prop in this.data) {
44
- _loop_1(prop);
45
- }
46
- return this.data;
47
- };
48
- return CaseConverter;
49
- }());
50
- exports.default = CaseConverter;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var CaseConverter = /** @class */ (function () {
4
+ function CaseConverter(data) {
5
+ this.data = data;
6
+ }
7
+ CaseConverter.prototype.camel = function () {
8
+ var _loop_1 = function (prop) {
9
+ if (this_1.data.hasOwnProperty(prop)) {
10
+ var camelcaseProperty = prop.substring(0, 1).toLowerCase() + prop.substring(1);
11
+ var arrayConverter_1 = function (array) {
12
+ var tempArray = [];
13
+ for (var index = 0; index < array.length; index++) {
14
+ if (array[index] === null || array[index] === undefined) {
15
+ continue;
16
+ }
17
+ var elementType = typeof array[index];
18
+ if (elementType === 'string' || elementType === 'number') {
19
+ tempArray.push(array[index]);
20
+ continue;
21
+ }
22
+ if (Array.isArray(array[index])) {
23
+ tempArray.push(arrayConverter_1(array[index]));
24
+ continue;
25
+ }
26
+ if (typeof array[index] === 'object') {
27
+ tempArray.push(new CaseConverter(array[index]).camel());
28
+ continue;
29
+ }
30
+ }
31
+ return tempArray;
32
+ };
33
+ if (Array.isArray(this_1.data[prop])) {
34
+ this_1.data[camelcaseProperty] = arrayConverter_1(this_1.data[prop]);
35
+ delete this_1.data[prop];
36
+ return "continue";
37
+ }
38
+ this_1.data[camelcaseProperty] = this_1.data[prop];
39
+ delete this_1.data[prop];
40
+ }
41
+ };
42
+ var this_1 = this;
43
+ for (var prop in this.data) {
44
+ _loop_1(prop);
45
+ }
46
+ return this.data;
47
+ };
48
+ return CaseConverter;
49
+ }());
50
+ exports.default = CaseConverter;
51
51
  //# sourceMappingURL=CaseConverter.js.map
@@ -1,6 +1,6 @@
1
- export default class ArrayUtil {
2
- static FromNodeList<T extends Node>(list: NodeListOf<T>): T[];
3
- private static addToCurrent;
4
- private static addToNew;
5
- static divideAccordingProperty<T>(array: T[], selector: (item: T) => any): T[][];
6
- }
1
+ export default class ArrayUtil {
2
+ static FromNodeList<T extends Node>(list: NodeListOf<T>): T[];
3
+ private static addToCurrent;
4
+ private static addToNew;
5
+ static divideAccordingProperty<T>(array: T[], selector: (item: T) => any): T[][];
6
+ }
@@ -1,37 +1,37 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var ArrayUtil = /** @class */ (function () {
4
- function ArrayUtil() {
5
- }
6
- ArrayUtil.FromNodeList = function (list) {
7
- return Array.prototype.concat.apply([], list);
8
- };
9
- ArrayUtil.addToCurrent = function (chunks, item) {
10
- if (!chunks.length) {
11
- chunks[0] = [];
12
- }
13
- chunks[chunks.length - 1].push(item);
14
- };
15
- ArrayUtil.addToNew = function (chunks, item) {
16
- chunks[chunks.length] = [];
17
- chunks[chunks.length - 1].push(item);
18
- };
19
- ArrayUtil.divideAccordingProperty = function (array, selector) {
20
- var _this = this;
21
- var chunks = [];
22
- chunks[0] = [array[0]];
23
- array.reduce(function (a, b) {
24
- if (selector(a) === selector(b)) {
25
- _this.addToCurrent(chunks, b);
26
- }
27
- else {
28
- _this.addToNew(chunks, b);
29
- }
30
- return b;
31
- });
32
- return chunks;
33
- };
34
- return ArrayUtil;
35
- }());
36
- exports.default = ArrayUtil;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var ArrayUtil = /** @class */ (function () {
4
+ function ArrayUtil() {
5
+ }
6
+ ArrayUtil.FromNodeList = function (list) {
7
+ return Array.prototype.concat.apply([], list);
8
+ };
9
+ ArrayUtil.addToCurrent = function (chunks, item) {
10
+ if (!chunks.length) {
11
+ chunks[0] = [];
12
+ }
13
+ chunks[chunks.length - 1].push(item);
14
+ };
15
+ ArrayUtil.addToNew = function (chunks, item) {
16
+ chunks[chunks.length] = [];
17
+ chunks[chunks.length - 1].push(item);
18
+ };
19
+ ArrayUtil.divideAccordingProperty = function (array, selector) {
20
+ var _this = this;
21
+ var chunks = [];
22
+ chunks[0] = [array[0]];
23
+ array.reduce(function (a, b) {
24
+ if (selector(a) === selector(b)) {
25
+ _this.addToCurrent(chunks, b);
26
+ }
27
+ else {
28
+ _this.addToNew(chunks, b);
29
+ }
30
+ return b;
31
+ });
32
+ return chunks;
33
+ };
34
+ return ArrayUtil;
35
+ }());
36
+ exports.default = ArrayUtil;
37
37
  //# sourceMappingURL=ArrayUtil.js.map
@@ -1,21 +1,21 @@
1
- export default class DomUtil {
2
- private viewPortUtil;
3
- element: Element;
4
- constructor(element: Element);
5
- getDataAttr(attr: string, defaultvalue?: string): any;
6
- setDataAttr(attr: string, value: string): any;
7
- getAttr(attr: string, defaultvalue?: string): any;
8
- setAttr(attr: string, value: string): void;
9
- removeAttr(attr: string): void;
10
- removeDataAttr(attr: string): void;
11
- hasAttr(attr: string): boolean;
12
- shake(): void;
13
- error(): void;
14
- focus(): void;
15
- removeClass(classname: any): void;
16
- appendClass(classname: any): void;
17
- deleteElement(): void;
18
- setChildElementByAttrName(name: string, value: string): void;
19
- hasClass(className: string): boolean;
20
- getStyle(ruleName: string): any;
21
- }
1
+ export default class DomUtil {
2
+ private viewPortUtil;
3
+ element: Element;
4
+ constructor(element: Element);
5
+ getDataAttr(attr: string, defaultvalue?: string): any;
6
+ setDataAttr(attr: string, value: string): any;
7
+ getAttr(attr: string, defaultvalue?: string): any;
8
+ setAttr(attr: string, value: string): void;
9
+ removeAttr(attr: string): void;
10
+ removeDataAttr(attr: string): void;
11
+ hasAttr(attr: string): boolean;
12
+ shake(): void;
13
+ error(): void;
14
+ focus(): void;
15
+ removeClass(classname: any): void;
16
+ appendClass(classname: any): void;
17
+ deleteElement(): void;
18
+ setChildElementByAttrName(name: string, value: string): void;
19
+ hasClass(className: string): boolean;
20
+ getStyle(ruleName: string): any;
21
+ }