myrta-ui 14.0.0-beta.1 → 14.0.0-beta.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 (167) hide show
  1. package/README.md +1 -0
  2. package/esm2020/lib/components/badges/components/badge/badge.component.mjs +2 -2
  3. package/esm2020/lib/components/button/button.component.mjs +3 -3
  4. package/esm2020/lib/components/cdk-tooltip/cdk-tooltip.directive.mjs +1 -1
  5. package/esm2020/lib/components/chars-left/chars-left.component.mjs +6 -3
  6. package/esm2020/lib/components/dropdown/dropdown.component.mjs +2 -2
  7. package/esm2020/lib/components/error-message/error-message.component.mjs +7 -4
  8. package/esm2020/lib/components/form/checkbox/checkbox.component.mjs +5 -12
  9. package/esm2020/lib/components/form/checkbox/checkbox.enum.mjs +2 -5
  10. package/esm2020/lib/components/form/checkbox-group/checkbox-group.component.mjs +10 -4
  11. package/esm2020/lib/components/form/checkbox-group/components/checkbox-group-header/checkbox-group-header.component.mjs +1 -1
  12. package/esm2020/lib/components/form/checkbox-group/components/checkbox-group-item/checkbox-group-item.component.mjs +24 -15
  13. package/esm2020/lib/components/form/document-editor/document-editor.component.mjs +1 -1
  14. package/esm2020/lib/components/form/editor/config/default-inline-style.mjs +6 -0
  15. package/esm2020/lib/components/form/editor/editor.component.mjs +45 -13
  16. package/esm2020/lib/components/form/editor/editor.enum.mjs +2 -0
  17. package/esm2020/lib/components/form/input-date-time/input-date-time.component.mjs +50 -18
  18. package/esm2020/lib/components/form/input-date-time/input-date-time.enum.mjs +1 -1
  19. package/esm2020/lib/components/form/input-datepicker/input-datepicker.component.mjs +13 -8
  20. package/esm2020/lib/components/form/input-file/input-file.component.mjs +4 -3
  21. package/esm2020/lib/components/form/input-file-image/components/file-image-edit-modal/file-image-edit-modal.component.mjs +3 -3
  22. package/esm2020/lib/components/form/input-file-image/input-file-image.component.mjs +23 -12
  23. package/esm2020/lib/components/form/input-file-image/input-file-image.enum.mjs +3 -3
  24. package/esm2020/lib/components/form/input-number/input-number.component.mjs +54 -27
  25. package/esm2020/lib/components/form/input-number/input-number.enum.mjs +1 -1
  26. package/esm2020/lib/components/form/input-opt/components/input-opt/input-opt.component.mjs +2 -4
  27. package/esm2020/lib/components/form/input-password/input-password.component.mjs +37 -23
  28. package/esm2020/lib/components/form/input-password/input-password.enum.mjs +1 -1
  29. package/esm2020/lib/components/form/input-password/input-password.module.mjs +12 -4
  30. package/esm2020/lib/components/form/input-phone/input-phone.component.mjs +2 -2
  31. package/esm2020/lib/components/form/input-search/input-search.component.mjs +44 -36
  32. package/esm2020/lib/components/form/input-search/input-search.enum.mjs +1 -1
  33. package/esm2020/lib/components/form/input-search/input-search.module.mjs +7 -4
  34. package/esm2020/lib/components/form/input-select/input-select.component.mjs +10 -4
  35. package/esm2020/lib/components/form/input-tel/assets/base64.mjs +4 -0
  36. package/esm2020/lib/components/form/input-tel/data/all-countries.mjs +1323 -0
  37. package/esm2020/lib/components/form/input-tel/data/country-iso.enum.mjs +247 -0
  38. package/esm2020/lib/components/form/input-tel/data/phone-number-format.enum.mjs +6 -0
  39. package/esm2020/lib/components/form/input-tel/data/search-country-field.enum.mjs +8 -0
  40. package/esm2020/lib/components/form/input-tel/directives/input-tel.directive.mjs +62 -0
  41. package/esm2020/lib/components/form/input-tel/enums/input-phone.enum.mjs +7 -0
  42. package/esm2020/lib/components/form/input-tel/input-tel.component.mjs +389 -0
  43. package/esm2020/lib/components/form/input-tel/input-tel.module.mjs +47 -0
  44. package/esm2020/lib/components/form/input-tel/models/country.model.mjs +2 -0
  45. package/esm2020/lib/components/form/input-text/input-text.component.mjs +35 -29
  46. package/esm2020/lib/components/form/input-textarea/input-textarea.component.mjs +47 -42
  47. package/esm2020/lib/components/form/input-timepicker/input-timepicker.component.mjs +3 -3
  48. package/esm2020/lib/components/form/radio/radio.component.mjs +3 -3
  49. package/esm2020/lib/components/form/radio-group/components/radio-group-header/radio-group-header.component.mjs +49 -0
  50. package/esm2020/lib/components/form/radio-group/components/radio-group-item/radio-group-item.component.mjs +69 -0
  51. package/esm2020/lib/components/form/radio-group/helpers/filter-search-group.mjs +27 -0
  52. package/esm2020/lib/components/form/radio-group/helpers/get-item-by-id.mjs +11 -0
  53. package/esm2020/lib/components/form/radio-group/helpers/move-selected-to-first.mjs +27 -0
  54. package/esm2020/lib/components/form/radio-group/models/radio-group.model.mjs +2 -0
  55. package/esm2020/lib/components/form/radio-group/radio-group.component.mjs +185 -0
  56. package/esm2020/lib/components/form/radio-group/radio-group.module.mjs +47 -0
  57. package/esm2020/lib/components/form/rating/rating.component.mjs +4 -4
  58. package/esm2020/lib/components/form/switch/switch.component.mjs +2 -2
  59. package/esm2020/lib/components/gallery/components/gallery-confirm-modal/gallery-confirm-modal.component.mjs +3 -3
  60. package/esm2020/lib/components/gallery/components/gallery-item/gallery-item.component.mjs +4 -4
  61. package/esm2020/lib/components/hint-error-message/hint-error-message.component.mjs +6 -6
  62. package/esm2020/lib/components/label/label.component.mjs +3 -3
  63. package/esm2020/lib/components/modal/modal.component.mjs +13 -3
  64. package/esm2020/lib/components/paginator/paginator.component.mjs +16 -6
  65. package/esm2020/lib/components/paginator/paginator.module.mjs +8 -8
  66. package/esm2020/lib/components/progress/progress.component.mjs +2 -2
  67. package/esm2020/lib/components/save-state/components/save-state-editor/save-state-editor.component.mjs +2 -2
  68. package/esm2020/lib/components/save-state/save-state.component.mjs +3 -3
  69. package/esm2020/lib/components/save-state/save-state.enum.mjs +1 -1
  70. package/esm2020/lib/components/table/table.component.mjs +3 -3
  71. package/esm2020/lib/components/tabs/tabs-group/tabs-group.component.mjs +2 -2
  72. package/esm2020/lib/components/tooltip/tooltip-trigger/tooltip-trigger.component.mjs +4 -14
  73. package/esm2020/lib/components/wrappers/content-wrapper/content-wrapper.component.mjs +2 -2
  74. package/esm2020/lib/enums/typed.input.state.mjs +1 -1
  75. package/esm2020/lib/services/index.mjs +2 -1
  76. package/esm2020/lib/services/mrx-autosave/mrx-autosave.service.mjs +1 -1
  77. package/esm2020/lib/services/mrx-form-validator/constants/invalid-messages.mjs +10 -0
  78. package/esm2020/lib/services/mrx-form-validator/helpers/get-error-message.helper.mjs +10 -0
  79. package/esm2020/lib/services/mrx-form-validator/helpers/get-sorting-validations.helper.mjs +28 -0
  80. package/esm2020/lib/services/mrx-form-validator/models/index.mjs +4 -0
  81. package/esm2020/lib/services/mrx-form-validator/models/validations-options.model.mjs +2 -0
  82. package/esm2020/lib/services/mrx-form-validator/models/validations-settings.model.mjs +2 -0
  83. package/esm2020/lib/services/mrx-form-validator/models/validations-types.model.mjs +22 -0
  84. package/esm2020/lib/services/mrx-form-validator/mrx-form-validator.mjs +84 -183
  85. package/esm2020/lib/services/mrx-form-validator/validations/callback.validation.mjs +15 -0
  86. package/esm2020/lib/services/mrx-form-validator/validations/email.validation.mjs +11 -0
  87. package/esm2020/lib/services/mrx-form-validator/validations/max-length.validation.mjs +10 -0
  88. package/esm2020/lib/services/mrx-form-validator/validations/max-value.validation.mjs +10 -0
  89. package/esm2020/lib/services/mrx-form-validator/validations/min-length.validation.mjs +11 -0
  90. package/esm2020/lib/services/mrx-form-validator/validations/min-value.validation.mjs +10 -0
  91. package/esm2020/lib/services/mrx-form-validator/validations/pattern.validation.mjs +11 -0
  92. package/esm2020/lib/services/mrx-form-validator/validations/required.validation.mjs +22 -0
  93. package/esm2020/public-api.mjs +7 -1
  94. package/fesm2015/myrta-ui.mjs +4004 -1339
  95. package/fesm2015/myrta-ui.mjs.map +1 -1
  96. package/fesm2020/myrta-ui.mjs +3999 -1341
  97. package/fesm2020/myrta-ui.mjs.map +1 -1
  98. package/lib/components/chars-left/chars-left.component.d.ts +1 -0
  99. package/lib/components/error-message/error-message.component.d.ts +2 -1
  100. package/lib/components/form/checkbox/checkbox.component.d.ts +2 -4
  101. package/lib/components/form/checkbox/checkbox.enum.d.ts +0 -4
  102. package/lib/components/form/checkbox-group/checkbox-group.component.d.ts +3 -1
  103. package/lib/components/form/checkbox-group/components/checkbox-group-item/checkbox-group-item.component.d.ts +4 -1
  104. package/lib/components/form/editor/config/default-inline-style.d.ts +11 -0
  105. package/lib/components/form/editor/editor.component.d.ts +13 -4
  106. package/lib/components/form/editor/editor.enum.d.ts +5 -0
  107. package/lib/components/form/input-date-time/input-date-time.component.d.ts +6 -2
  108. package/lib/components/form/input-date-time/input-date-time.enum.d.ts +1 -1
  109. package/lib/components/form/input-datepicker/input-datepicker.component.d.ts +2 -1
  110. package/lib/components/form/input-file-image/components/file-image-edit-modal/file-image-edit-modal.component.d.ts +6 -0
  111. package/lib/components/form/input-file-image/input-file-image.component.d.ts +4 -2
  112. package/lib/components/form/input-file-image/input-file-image.enum.d.ts +2 -2
  113. package/lib/components/form/input-number/input-number.component.d.ts +11 -3
  114. package/lib/components/form/input-number/input-number.enum.d.ts +2 -2
  115. package/lib/components/form/input-opt/components/input-opt/input-opt.component.d.ts +2 -2
  116. package/lib/components/form/input-password/input-password.component.d.ts +14 -9
  117. package/lib/components/form/input-password/input-password.enum.d.ts +4 -0
  118. package/lib/components/form/input-password/input-password.module.d.ts +3 -1
  119. package/lib/components/form/input-search/input-search.component.d.ts +15 -11
  120. package/lib/components/form/input-search/input-search.enum.d.ts +5 -0
  121. package/lib/components/form/input-search/input-search.module.d.ts +2 -1
  122. package/lib/components/form/input-select/input-select.component.d.ts +3 -1
  123. package/lib/components/form/input-tel/assets/base64.d.ts +3 -0
  124. package/lib/components/form/input-tel/data/all-countries.d.ts +1 -0
  125. package/lib/components/form/input-tel/data/country-iso.enum.d.ts +245 -0
  126. package/lib/components/form/input-tel/data/phone-number-format.enum.d.ts +5 -0
  127. package/lib/components/form/input-tel/data/search-country-field.enum.d.ts +6 -0
  128. package/lib/components/form/input-tel/directives/input-tel.directive.d.ts +21 -0
  129. package/lib/components/form/input-tel/enums/input-phone.enum.d.ts +11 -0
  130. package/lib/components/form/input-tel/input-tel.component.d.ts +89 -0
  131. package/lib/components/form/input-tel/input-tel.module.d.ts +14 -0
  132. package/lib/components/form/input-tel/models/country.model.d.ts +18 -0
  133. package/lib/components/form/input-text/input-text.component.d.ts +12 -9
  134. package/lib/components/form/input-textarea/input-textarea.component.d.ts +12 -15
  135. package/lib/components/form/radio-group/components/radio-group-header/radio-group-header.component.d.ts +20 -0
  136. package/lib/components/form/radio-group/components/radio-group-item/radio-group-item.component.d.ts +28 -0
  137. package/lib/components/form/radio-group/helpers/filter-search-group.d.ts +2 -0
  138. package/lib/components/form/radio-group/helpers/get-item-by-id.d.ts +2 -0
  139. package/lib/components/form/radio-group/helpers/move-selected-to-first.d.ts +2 -0
  140. package/lib/components/form/radio-group/models/radio-group.model.d.ts +12 -0
  141. package/lib/components/form/radio-group/radio-group.component.d.ts +60 -0
  142. package/lib/components/form/radio-group/radio-group.module.d.ts +16 -0
  143. package/lib/components/modal/modal.component.d.ts +1 -0
  144. package/lib/components/paginator/paginator.component.d.ts +3 -1
  145. package/lib/components/paginator/paginator.module.d.ts +3 -3
  146. package/lib/components/save-state/save-state.enum.d.ts +1 -1
  147. package/lib/components/tooltip/tooltip-trigger/tooltip-trigger.component.d.ts +0 -1
  148. package/lib/services/index.d.ts +1 -0
  149. package/lib/services/mrx-autosave/mrx-autosave.service.d.ts +1 -1
  150. package/lib/services/mrx-form-validator/constants/invalid-messages.d.ts +9 -0
  151. package/lib/services/mrx-form-validator/helpers/get-error-message.helper.d.ts +3 -0
  152. package/lib/services/mrx-form-validator/helpers/get-sorting-validations.helper.d.ts +2 -0
  153. package/lib/services/mrx-form-validator/models/index.d.ts +3 -0
  154. package/lib/services/mrx-form-validator/models/validations-options.model.d.ts +28 -0
  155. package/lib/services/mrx-form-validator/models/validations-settings.model.d.ts +7 -0
  156. package/lib/services/mrx-form-validator/models/validations-types.model.d.ts +19 -0
  157. package/lib/services/mrx-form-validator/mrx-form-validator.d.ts +4 -32
  158. package/lib/services/mrx-form-validator/validations/callback.validation.d.ts +6 -0
  159. package/lib/services/mrx-form-validator/validations/email.validation.d.ts +6 -0
  160. package/lib/services/mrx-form-validator/validations/max-length.validation.d.ts +6 -0
  161. package/lib/services/mrx-form-validator/validations/max-value.validation.d.ts +6 -0
  162. package/lib/services/mrx-form-validator/validations/min-length.validation.d.ts +6 -0
  163. package/lib/services/mrx-form-validator/validations/min-value.validation.d.ts +6 -0
  164. package/lib/services/mrx-form-validator/validations/pattern.validation.d.ts +6 -0
  165. package/lib/services/mrx-form-validator/validations/required.validation.d.ts +6 -0
  166. package/package.json +3 -1
  167. package/public-api.d.ts +5 -0
@@ -0,0 +1,245 @@
1
+ export declare enum CountryISO {
2
+ Afghanistan = "af",
3
+ Albania = "al",
4
+ Algeria = "dz",
5
+ AmericanSamoa = "as",
6
+ Andorra = "ad",
7
+ Angola = "ao",
8
+ Anguilla = "ai",
9
+ AntiguaAndBarbuda = "ag",
10
+ Argentina = "ar",
11
+ Armenia = "am",
12
+ Aruba = "aw",
13
+ Australia = "au",
14
+ Austria = "at",
15
+ Azerbaijan = "az",
16
+ Bahamas = "bs",
17
+ Bahrain = "bh",
18
+ Bangladesh = "bd",
19
+ Barbados = "bb",
20
+ Belarus = "by",
21
+ Belgium = "be",
22
+ Belize = "bz",
23
+ Benin = "bj",
24
+ Bermuda = "bm",
25
+ Bhutan = "bt",
26
+ Bolivia = "bo",
27
+ BosniaAndHerzegovina = "ba",
28
+ Botswana = "bw",
29
+ Brazil = "br",
30
+ BritishIndianOceanTerritory = "io",
31
+ BritishVirginIslands = "vg",
32
+ Brunei = "bn",
33
+ Bulgaria = "bg",
34
+ BurkinaFaso = "bf",
35
+ Burundi = "bi",
36
+ Cambodia = "kh",
37
+ Cameroon = "cm",
38
+ Canada = "ca",
39
+ CapeVerde = "cv",
40
+ CaribbeanNetherlands = "bq",
41
+ CaymanIslands = "ky",
42
+ CentralAfricanRepublic = "cf",
43
+ Chad = "td",
44
+ Chile = "cl",
45
+ China = "cn",
46
+ ChristmasIsland = "cx",
47
+ Cocos = "cc",
48
+ Colombia = "co",
49
+ Comoros = "km",
50
+ CongoDRCJamhuriYaKidemokrasiaYaKongo = "cd",
51
+ CongoRepublicCongoBrazzaville = "cg",
52
+ CookIslands = "ck",
53
+ CostaRica = "cr",
54
+ Croatia = "hr",
55
+ Cuba = "cu",
56
+ Curaçao = "cw",
57
+ Cyprus = "cy",
58
+ CzechRepublic = "cz",
59
+ CôteDIvoire = "ci",
60
+ Denmark = "dk",
61
+ Djibouti = "dj",
62
+ Dominica = "dm",
63
+ DominicanRepublic = "do",
64
+ Ecuador = "ec",
65
+ Egypt = "eg",
66
+ ElSalvador = "sv",
67
+ EquatorialGuinea = "gq",
68
+ Eritrea = "er",
69
+ Estonia = "ee",
70
+ Ethiopia = "et",
71
+ FalklandIslands = "fk",
72
+ FaroeIslands = "fo",
73
+ Fiji = "fj",
74
+ Finland = "fi",
75
+ France = "fr",
76
+ FrenchGuiana = "gf",
77
+ FrenchPolynesia = "pf",
78
+ Gabon = "ga",
79
+ Gambia = "gm",
80
+ Georgia = "ge",
81
+ Germany = "de",
82
+ Ghana = "gh",
83
+ Gibraltar = "gi",
84
+ Greece = "gr",
85
+ Greenland = "gl",
86
+ Grenada = "gd",
87
+ Guadeloupe = "gp",
88
+ Guam = "gu",
89
+ Guatemala = "gt",
90
+ Guernsey = "gg",
91
+ Guinea = "gn",
92
+ GuineaBissau = "gw",
93
+ Guyana = "gy",
94
+ Haiti = "ht",
95
+ Honduras = "hn",
96
+ HongKong = "hk",
97
+ Hungary = "hu",
98
+ Iceland = "is",
99
+ India = "in",
100
+ Indonesia = "id",
101
+ Iran = "ir",
102
+ Iraq = "iq",
103
+ Ireland = "ie",
104
+ IsleOfMan = "im",
105
+ Israel = "il",
106
+ Italy = "it",
107
+ Jamaica = "jm",
108
+ Japan = "jp",
109
+ Jersey = "je",
110
+ Jordan = "jo",
111
+ Kazakhstan = "kz",
112
+ Kenya = "ke",
113
+ Kiribati = "ki",
114
+ Kosovo = "xk",
115
+ Kuwait = "kw",
116
+ Kyrgyzstan = "kg",
117
+ Laos = "la",
118
+ Latvia = "lv",
119
+ Lebanon = "lb",
120
+ Lesotho = "ls",
121
+ Liberia = "lr",
122
+ Libya = "ly",
123
+ Liechtenstein = "li",
124
+ Lithuania = "lt",
125
+ Luxembourg = "lu",
126
+ Macau = "mo",
127
+ Macedonia = "mk",
128
+ Madagascar = "mg",
129
+ Malawi = "mw",
130
+ Malaysia = "my",
131
+ Maldives = "mv",
132
+ Mali = "ml",
133
+ Malta = "mt",
134
+ MarshallIslands = "mh",
135
+ Martinique = "mq",
136
+ Mauritania = "mr",
137
+ Mauritius = "mu",
138
+ Mayotte = "yt",
139
+ Mexico = "mx",
140
+ Micronesia = "fm",
141
+ Moldova = "md",
142
+ Monaco = "mc",
143
+ Mongolia = "mn",
144
+ Montenegro = "me",
145
+ Montserrat = "ms",
146
+ Morocco = "ma",
147
+ Mozambique = "mz",
148
+ Myanmar = "mm",
149
+ Namibia = "na",
150
+ Nauru = "nr",
151
+ Nepal = "np",
152
+ Netherlands = "nl",
153
+ NewCaledonia = "nc",
154
+ NewZealand = "nz",
155
+ Nicaragua = "ni",
156
+ Niger = "ne",
157
+ Nigeria = "ng",
158
+ Niue = "nu",
159
+ NorfolkIsland = "nf",
160
+ NorthKorea = "kp",
161
+ NorthernMarianaIslands = "mp",
162
+ Norway = "no",
163
+ Oman = "om",
164
+ Pakistan = "pk",
165
+ Palau = "pw",
166
+ Palestine = "ps",
167
+ Panama = "pa",
168
+ PapuaNewGuinea = "pg",
169
+ Paraguay = "py",
170
+ Peru = "pe",
171
+ Philippines = "ph",
172
+ Poland = "pl",
173
+ Portugal = "pt",
174
+ PuertoRico = "pr",
175
+ Qatar = "qa",
176
+ Romania = "ro",
177
+ Russia = "ru",
178
+ Rwanda = "rw",
179
+ Réunion = "re",
180
+ SaintBarthélemy = "bl",
181
+ SaintHelena = "sh",
182
+ SaintKittsAndNevis = "kn",
183
+ SaintLucia = "lc",
184
+ SaintMartin = "mf",
185
+ SaintPierreAndMiquelon = "pm",
186
+ SaintVincentAndTheGrenadines = "vc",
187
+ Samoa = "ws",
188
+ SanMarino = "sm",
189
+ SaudiArabia = "sa",
190
+ Senegal = "sn",
191
+ Serbia = "rs",
192
+ Seychelles = "sc",
193
+ SierraLeone = "sl",
194
+ Singapore = "sg",
195
+ SintMaarten = "sx",
196
+ Slovakia = "sk",
197
+ Slovenia = "si",
198
+ SolomonIslands = "sb",
199
+ Somalia = "so",
200
+ SouthAfrica = "za",
201
+ SouthKorea = "kr",
202
+ SouthSudan = "ss",
203
+ Spain = "es",
204
+ SriLanka = "lk",
205
+ Sudan = "sd",
206
+ Suriname = "sr",
207
+ SvalbardAndJanMayen = "sj",
208
+ Swaziland = "sz",
209
+ Sweden = "se",
210
+ Switzerland = "ch",
211
+ Syria = "sy",
212
+ SãoToméAndPríncipe = "st",
213
+ Taiwan = "tw",
214
+ Tajikistan = "tj",
215
+ Tanzania = "tz",
216
+ Thailand = "th",
217
+ TimorLeste = "tl",
218
+ Togo = "tg",
219
+ Tokelau = "tk",
220
+ Tonga = "to",
221
+ TrinidadAndTobago = "tt",
222
+ Tunisia = "tn",
223
+ Turkey = "tr",
224
+ Turkmenistan = "tm",
225
+ TurksAndCaicosIslands = "tc",
226
+ Tuvalu = "tv",
227
+ USVirginIslands = "vi",
228
+ Uganda = "ug",
229
+ Ukraine = "ua",
230
+ UnitedArabEmirates = "ae",
231
+ UnitedKingdom = "gb",
232
+ UnitedStates = "us",
233
+ Uruguay = "uy",
234
+ Uzbekistan = "uz",
235
+ Vanuatu = "vu",
236
+ VaticanCity = "va",
237
+ Venezuela = "ve",
238
+ Vietnam = "vn",
239
+ WallisAndFutuna = "wf",
240
+ WesternSahara = "eh",
241
+ Yemen = "ye",
242
+ Zambia = "zm",
243
+ Zimbabwe = "zw",
244
+ ÅlandIslands = "ax"
245
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum PhoneNumberFormat {
2
+ international = "INTERNATIONAL",
3
+ national = "NATIONAL"
4
+ }
5
+ export declare type PhoneNumberFormatType = 'international' | 'national';
@@ -0,0 +1,6 @@
1
+ export declare enum SearchCountryField {
2
+ All = "all",
3
+ DialCode = "dialCode",
4
+ Iso2 = "iso2",
5
+ Name = "name"
6
+ }
@@ -0,0 +1,21 @@
1
+ import { ElementRef, EventEmitter, Renderer2 } from '@angular/core';
2
+ import { NgModel } from '@angular/forms';
3
+ import { InputValue } from '../models/country.model';
4
+ import { ParsedPhoneNumber } from 'awesome-phonenumber';
5
+ import * as i0 from "@angular/core";
6
+ export declare class MaskedInputTelDirective {
7
+ private _element;
8
+ private _renderer;
9
+ private _model;
10
+ private pattern;
11
+ parsedPhoneNumber?: ParsedPhoneNumber;
12
+ customMaxLength: number | null;
13
+ changeModel: EventEmitter<InputValue>;
14
+ constructor(_element: ElementRef, _renderer: Renderer2, _model: NgModel);
15
+ private _validateValue;
16
+ private _analiseMaxLength;
17
+ onInput(event: any): void;
18
+ onCtrlV(): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<MaskedInputTelDirective, never>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MaskedInputTelDirective, "[formatterPhone]", never, { "parsedPhoneNumber": "parsedPhoneNumber"; "customMaxLength": "customMaxLength"; }, { "changeModel": "changeModel"; }, never, never, false>;
21
+ }
@@ -0,0 +1,11 @@
1
+ export declare enum InputTelSizesEnum {
2
+ 'small' = "mrx-input-tel-sm",
3
+ 'medium' = "mrx-input-tel-md",
4
+ 'large' = "mrx-input-tel-lg"
5
+ }
6
+ export declare type InputTelSizesTypes = 'small' | 'medium' | 'large';
7
+ export declare type InputTelValueTypes = string | undefined;
8
+ export interface InputTelValueWithId {
9
+ value: any;
10
+ id: string;
11
+ }
@@ -0,0 +1,89 @@
1
+ import { OnInit, EventEmitter } from '@angular/core';
2
+ import { ParsedPhoneNumber } from 'awesome-phonenumber';
3
+ import { CountryISO } from './data/country-iso.enum';
4
+ import { SearchCountryField } from './data/search-country-field.enum';
5
+ import { PhoneNumberFormatType } from './data/phone-number-format.enum';
6
+ import { Country, InputValue } from './models/country.model';
7
+ import { ControlValueAccessor } from '@angular/forms';
8
+ import { Field } from '../../../services';
9
+ import { InputTelSizesTypes } from './enums/input-phone.enum';
10
+ import { InputPhoneValueWithId } from '../input-phone/enums/input-phone.enum';
11
+ import { DropdownComponent } from '../../dropdown/dropdown.component';
12
+ import * as i0 from "@angular/core";
13
+ export declare class InputTelComponent implements ControlValueAccessor, OnInit {
14
+ uuid: string;
15
+ fields: Field[];
16
+ cssClass: string;
17
+ preferredCountries: (CountryISO)[];
18
+ onlyCountries: (CountryISO)[];
19
+ enableAutoCountrySelect: boolean;
20
+ enablePlaceholder: boolean;
21
+ customPlaceholder: string | null;
22
+ numberFormat: PhoneNumberFormatType;
23
+ searchCountryFlag: boolean;
24
+ searchCountryField: SearchCountryField;
25
+ searchCountryPlaceholder: string;
26
+ maxLength: number | null;
27
+ selectFirstCountry: boolean;
28
+ phoneValidation: boolean;
29
+ inputId: string;
30
+ selectedCountryISO: CountryISO | null;
31
+ separateDialCode: boolean;
32
+ customClasses: string;
33
+ disabled: boolean;
34
+ size: InputTelSizesTypes;
35
+ autoDealCode: boolean;
36
+ autoCloseDropdown: boolean;
37
+ invalid: boolean;
38
+ invalidMessage: string | string[];
39
+ invalidPhoneMessage: string;
40
+ checkInvalid: true | false | null;
41
+ dropdownComponent: DropdownComponent;
42
+ changed: EventEmitter<InputValue>;
43
+ modelChange: EventEmitter<InputPhoneValueWithId>;
44
+ allCountries: (Country)[];
45
+ selectedCountry: Country;
46
+ countriesToShow: (Country)[];
47
+ preferredCountriesList: (Country)[];
48
+ searchFilter: string;
49
+ scrollTimeout: any;
50
+ phoneNumber: any;
51
+ isFocused: boolean;
52
+ isInputValid: boolean;
53
+ isDropdownOpen: boolean;
54
+ parsedPhoneNumber?: ParsedPhoneNumber;
55
+ innerInvalid: boolean;
56
+ innerInvalidMessage: string;
57
+ constructor();
58
+ writeValue(outsideValue: string): void;
59
+ private onChange;
60
+ private onTouched;
61
+ registerOnChange(fn: any): void;
62
+ registerOnTouched(fn: any): void;
63
+ ngOnInit(): void;
64
+ private _validation;
65
+ get getClasses(): string;
66
+ get isValid(): boolean;
67
+ get isInvalidMessage(): boolean;
68
+ get checkValidClasses(): string;
69
+ toggleDropdown(): void;
70
+ generateCountryData(): void;
71
+ getDefaultCountry(): Country;
72
+ private formatIntelNumber;
73
+ formatPhoneNumber(): void;
74
+ searchFilterChanged(event: any): void;
75
+ private findCountryByIso2;
76
+ setDefaultSelectedCountry(): void;
77
+ setCountriesToShow(): void;
78
+ setPreferredCountries(): void;
79
+ onCountrySelect(country: any): void;
80
+ private getNumberExample;
81
+ getPlaceHolder(): string;
82
+ getDropdownIconPath(): string;
83
+ onPhoneInputFocus(): void;
84
+ onPhoneInputBlur(): void;
85
+ private _resetValidate;
86
+ updateValue(): void;
87
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputTelComponent, never>;
88
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputTelComponent, "mrx-input-tel", never, { "fields": "fields"; "cssClass": "cssClass"; "preferredCountries": "preferredCountries"; "onlyCountries": "onlyCountries"; "enableAutoCountrySelect": "enableAutoCountrySelect"; "enablePlaceholder": "enablePlaceholder"; "customPlaceholder": "customPlaceholder"; "numberFormat": "numberFormat"; "searchCountryFlag": "searchCountryFlag"; "searchCountryField": "searchCountryField"; "searchCountryPlaceholder": "searchCountryPlaceholder"; "maxLength": "maxLength"; "selectFirstCountry": "selectFirstCountry"; "phoneValidation": "phoneValidation"; "inputId": "inputId"; "selectedCountryISO": "selectedCountryISO"; "separateDialCode": "separateDialCode"; "customClasses": "customClasses"; "disabled": "disabled"; "size": "size"; "autoDealCode": "autoDealCode"; "autoCloseDropdown": "autoCloseDropdown"; "invalid": "invalid"; "invalidMessage": "invalidMessage"; "invalidPhoneMessage": "invalidPhoneMessage"; "checkInvalid": "checkInvalid"; }, { "changed": "changed"; "modelChange": "modelChange"; }, never, never, false>;
89
+ }
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./input-tel.component";
3
+ import * as i2 from "./directives/input-tel.directive";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "@angular/forms";
6
+ import * as i5 from "../../dropdown/dropdown.module";
7
+ import * as i6 from "../../error-message/error-message.module";
8
+ import * as i7 from "ngx-mask";
9
+ import * as i8 from "../../save-state/save-state.module";
10
+ export declare class InputTelModule {
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputTelModule, never>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<InputTelModule, [typeof i1.InputTelComponent, typeof i2.MaskedInputTelDirective], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.DropdownModule, typeof i6.ErrorMessageModule, typeof i7.NgxMaskModule, typeof i8.SaveStateModule], [typeof i1.InputTelComponent]>;
13
+ static ɵinj: i0.ɵɵInjectorDeclaration<InputTelModule>;
14
+ }
@@ -0,0 +1,18 @@
1
+ export interface Country {
2
+ name: string;
3
+ iso2: string;
4
+ dialCode: string;
5
+ priority: number;
6
+ areaCodes?: string[];
7
+ htmlId: string;
8
+ flagClass: string;
9
+ placeHolder: string;
10
+ }
11
+ export interface InputValue {
12
+ phoneNumber: string;
13
+ selectedCountry: string;
14
+ iso2Code: string;
15
+ dialCode: string;
16
+ numberFormat: string;
17
+ isNumberValid: boolean;
18
+ }
@@ -1,7 +1,7 @@
1
1
  import { ElementRef, EventEmitter } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import { InputTextIconColorTypes, InputTextSizesTypes, InputTextValueTypes, InputTextValueWithId } from './input-text.enum';
4
- import { Field } from '../../../services/mrx-autosave/mrx-autosave.service';
4
+ import { Field } from '../../../services';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class InputTextComponent implements ControlValueAccessor {
7
7
  value: InputTextValueTypes;
@@ -15,32 +15,34 @@ export declare class InputTextComponent implements ControlValueAccessor {
15
15
  maxlength: number;
16
16
  minlength: number;
17
17
  placeholder: string;
18
- invalid: boolean;
19
- invalidMessage: string | string[];
20
- checkInvalid: true | false | null;
21
18
  customClasses: string;
22
19
  size: InputTextSizesTypes;
23
20
  isTooltipValue: boolean;
24
21
  icon: string | null;
25
22
  iconColor: InputTextIconColorTypes;
23
+ invalid: boolean;
24
+ invalidMessage: string | string[];
25
+ checkInvalid: true | false | null;
26
+ restrictInput: boolean;
26
27
  mask: string;
27
28
  maskPrefix: string;
28
29
  showMaskTyped: boolean;
29
30
  maskDropSpecialCharacters: boolean | string[];
30
31
  inputElement: ElementRef;
31
32
  changed: EventEmitter<InputTextValueTypes>;
33
+ blurred: EventEmitter<InputTextValueWithId>;
32
34
  modelChange: EventEmitter<InputTextValueWithId>;
33
- get isInvalidMessage(): boolean;
34
- get isValid(): boolean;
35
- get isVerified(): boolean;
35
+ private get _isInvalidValueLength();
36
+ get getInvalid(): boolean;
37
+ get getInvalidMessage(): string | string[];
36
38
  get readonlyClass(): string;
37
39
  get checkValidClasses(): string;
38
40
  get getClasses(): string;
39
41
  get getIconClass(): string;
40
42
  get getTooltipValue(): string;
43
+ private _lengthValidate;
41
44
  private formatValue;
42
45
  insertPositionText(tagText: string): void;
43
- protected baseValidate(): boolean;
44
46
  updateSelection(event: any): void;
45
47
  private onChange;
46
48
  private onTouched;
@@ -49,6 +51,7 @@ export declare class InputTextComponent implements ControlValueAccessor {
49
51
  writeValue(outsideValue: InputTextValueTypes): void;
50
52
  setDisabledState(isDisabled: boolean): void;
51
53
  updateValue(insideValue: InputTextValueTypes): void;
54
+ onBlur(event: FocusEvent): void;
52
55
  static ɵfac: i0.ɵɵFactoryDeclaration<InputTextComponent, never>;
53
- static ɵcmp: i0.ɵɵComponentDeclaration<InputTextComponent, "mrx-input-text", never, { "fields": "fields"; "disabled": "disabled"; "required": "required"; "readonly": "readonly"; "maxlength": "maxlength"; "minlength": "minlength"; "placeholder": "placeholder"; "invalid": "invalid"; "invalidMessage": "invalidMessage"; "checkInvalid": "checkInvalid"; "customClasses": "customClasses"; "size": "size"; "isTooltipValue": "isTooltipValue"; "icon": "icon"; "iconColor": "iconColor"; "mask": "mask"; "maskPrefix": "maskPrefix"; "showMaskTyped": "showMaskTyped"; "maskDropSpecialCharacters": "maskDropSpecialCharacters"; }, { "changed": "changed"; "modelChange": "modelChange"; }, never, never, false>;
56
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputTextComponent, "mrx-input-text", never, { "fields": "fields"; "disabled": "disabled"; "required": "required"; "readonly": "readonly"; "maxlength": "maxlength"; "minlength": "minlength"; "placeholder": "placeholder"; "customClasses": "customClasses"; "size": "size"; "isTooltipValue": "isTooltipValue"; "icon": "icon"; "iconColor": "iconColor"; "invalid": "invalid"; "invalidMessage": "invalidMessage"; "checkInvalid": "checkInvalid"; "restrictInput": "restrictInput"; "mask": "mask"; "maskPrefix": "maskPrefix"; "showMaskTyped": "showMaskTyped"; "maskDropSpecialCharacters": "maskDropSpecialCharacters"; }, { "changed": "changed"; "blurred": "blurred"; "modelChange": "modelChange"; }, never, never, false>;
54
57
  }
@@ -1,13 +1,12 @@
1
1
  import { ElementRef, EventEmitter } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import { InputTextareaSizesTypes, InputTextareaValueTypes, InputTextareaValueWithId } from './input-textarea.enum';
4
- import { Field } from '../../../services/mrx-autosave/mrx-autosave.service';
4
+ import { Field } from '../../../services';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class InputTextareaComponent implements ControlValueAccessor {
7
7
  value: InputTextareaValueTypes;
8
8
  selectionStart: number | undefined;
9
9
  selectionEnd: number | undefined;
10
- private _innerHtml?;
11
10
  uuid: string;
12
11
  fields: Field[];
13
12
  disabled: boolean;
@@ -17,28 +16,26 @@ export declare class InputTextareaComponent implements ControlValueAccessor {
17
16
  minlength: number;
18
17
  rows: number;
19
18
  placeholder: string;
20
- invalid: boolean;
21
- invalidMessage: string | string[];
22
- checkInvalid: true | false | null;
23
19
  customClasses: string;
24
20
  mask: string;
25
21
  size: InputTextareaSizesTypes;
22
+ invalid: boolean;
23
+ invalidMessage: string | string[];
24
+ checkInvalid: true | false | null;
25
+ restrictInput: boolean;
26
26
  inputElement: ElementRef;
27
27
  changed: EventEmitter<InputTextareaValueTypes>;
28
- blurred: EventEmitter<InputTextareaValueTypes>;
28
+ blurred: EventEmitter<InputTextareaValueWithId>;
29
29
  modelChange: EventEmitter<InputTextareaValueWithId>;
30
- get isInvalidMessage(): boolean;
31
- get invalidMessageArray(): string[];
32
- get isValid(): boolean;
30
+ private get _isInvalidValueLength();
31
+ get getInvalid(): boolean;
32
+ get getInvalidMessage(): string | string[];
33
33
  get readonlyClass(): string;
34
34
  get checkValidClasses(): string;
35
35
  get getClasses(): string;
36
- get innerHtml(): string;
37
- set innerHtml(value: string);
38
36
  updateSelection(event: any): void;
39
- protected baseValidate(): boolean;
37
+ insertPositionText(tagText: string): void;
40
38
  onFocus(): void;
41
- get isShowBlock(): boolean;
42
39
  private onChange;
43
40
  private onTouched;
44
41
  registerOnChange(fn: any): void;
@@ -46,7 +43,7 @@ export declare class InputTextareaComponent implements ControlValueAccessor {
46
43
  private processValueForViewOnly;
47
44
  writeValue(outsideValue: InputTextareaValueTypes): void;
48
45
  updateValue(insideValue: InputTextareaValueTypes): void;
49
- blurUpdateValue(): void;
46
+ onBlur(event: FocusEvent): void;
50
47
  static ɵfac: i0.ɵɵFactoryDeclaration<InputTextareaComponent, never>;
51
- static ɵcmp: i0.ɵɵComponentDeclaration<InputTextareaComponent, "mrx-input-textarea", never, { "fields": "fields"; "disabled": "disabled"; "readonly": "readonly"; "autosize": "autosize"; "maxlength": "maxlength"; "minlength": "minlength"; "rows": "rows"; "placeholder": "placeholder"; "invalid": "invalid"; "invalidMessage": "invalidMessage"; "checkInvalid": "checkInvalid"; "customClasses": "customClasses"; "mask": "mask"; "size": "size"; }, { "changed": "changed"; "blurred": "blurred"; "modelChange": "modelChange"; }, never, never, false>;
48
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputTextareaComponent, "mrx-input-textarea", never, { "fields": "fields"; "disabled": "disabled"; "readonly": "readonly"; "autosize": "autosize"; "maxlength": "maxlength"; "minlength": "minlength"; "rows": "rows"; "placeholder": "placeholder"; "customClasses": "customClasses"; "mask": "mask"; "size": "size"; "invalid": "invalid"; "invalidMessage": "invalidMessage"; "checkInvalid": "checkInvalid"; "restrictInput": "restrictInput"; }, { "changed": "changed"; "blurred": "blurred"; "modelChange": "modelChange"; }, never, never, false>;
52
49
  }
@@ -0,0 +1,20 @@
1
+ import { InputSearchSizesTypes } from './../../../input-search/input-search.enum';
2
+ import { EventEmitter } from '@angular/core';
3
+ import { RadioGroupSearchValue } from '../../models/radio-group.model';
4
+ import * as i0 from "@angular/core";
5
+ export declare class RadioGroupHeaderComponent {
6
+ searchValue: string;
7
+ searchSize: InputSearchSizesTypes;
8
+ searchable: boolean;
9
+ searchPlaceholder: string;
10
+ tooltip: string;
11
+ labelText: string;
12
+ linkText: string;
13
+ checkedItemsCount: number;
14
+ required: boolean;
15
+ updateradioGroupSearchValue: EventEmitter<string>;
16
+ constructor();
17
+ changeSearchValue(searchValue: RadioGroupSearchValue): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroupHeaderComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<RadioGroupHeaderComponent, "mrx-radio-group-header", never, { "searchSize": "searchSize"; "searchable": "searchable"; "searchPlaceholder": "searchPlaceholder"; "tooltip": "tooltip"; "labelText": "labelText"; "linkText": "linkText"; "checkedItemsCount": "checkedItemsCount"; "required": "required"; }, { "updateradioGroupSearchValue": "updateradioGroupSearchValue"; }, never, never, false>;
20
+ }
@@ -0,0 +1,28 @@
1
+ import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
+ import { RadioGroupItem, RadioIndeterminateState } from '../../models/radio-group.model';
3
+ import * as i0 from "@angular/core";
4
+ export declare class RadioGroupItemComponent {
5
+ private detector;
6
+ invalid: boolean;
7
+ name: string;
8
+ selectedValue: RadioGroupItem | null;
9
+ item: RadioGroupItem;
10
+ displaced: boolean;
11
+ level: number;
12
+ bold: boolean;
13
+ animationTrigger: boolean | null;
14
+ isLast: boolean;
15
+ disabled: boolean;
16
+ readonly: boolean;
17
+ animationEnd: EventEmitter<null>;
18
+ radioChanged: EventEmitter<{
19
+ value: RadioIndeterminateState;
20
+ item: RadioGroupItem;
21
+ }>;
22
+ constructor(detector: ChangeDetectorRef);
23
+ get isIndeterminate(): boolean;
24
+ trackByFn(index: number, item: RadioGroupItem): string | number;
25
+ radioChangeModel(value: RadioIndeterminateState, item: RadioGroupItem): void;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroupItemComponent, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<RadioGroupItemComponent, "mrx-radio-group-item", never, { "invalid": "invalid"; "name": "name"; "selectedValue": "selectedValue"; "item": "item"; "displaced": "displaced"; "level": "level"; "bold": "bold"; "animationTrigger": "animationTrigger"; "isLast": "isLast"; "disabled": "disabled"; "readonly": "readonly"; }, { "animationEnd": "animationEnd"; "radioChanged": "radioChanged"; }, never, never, false>;
28
+ }
@@ -0,0 +1,2 @@
1
+ import { RadioGroupItem, RadioGroupSearchValue } from '../models/radio-group.model';
2
+ export declare const filterSearchGroup: (list: RadioGroupItem[], searchValue: RadioGroupSearchValue) => RadioGroupItem[];
@@ -0,0 +1,2 @@
1
+ import { RadioGroupItem } from '../models/radio-group.model';
2
+ export declare const getItemById: (list: RadioGroupItem[], itemId: string | number) => RadioGroupItem | null;
@@ -0,0 +1,2 @@
1
+ import { RadioGroupItem } from '../models/radio-group.model';
2
+ export declare const moveSelectedToFirst: (list: RadioGroupItem[], sortable: boolean, targetItem: RadioGroupItem | null) => RadioGroupItem[];
@@ -0,0 +1,12 @@
1
+ export interface RadioGroupItem {
2
+ id: string | number;
3
+ text: string;
4
+ parentId?: string | number | null;
5
+ array: RadioGroupItem[];
6
+ }
7
+ export declare type RadioIndeterminateState = boolean | null;
8
+ export declare type RadioGroupSearchValue = string;
9
+ export interface RadioGroupValueWithId {
10
+ value: RadioGroupItem | null;
11
+ id: string;
12
+ }