@breadstone/mosaik-elements-foundation 0.0.21 → 0.0.23

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 (253) hide show
  1. package/Controls/Behaviors/Insetable.d.ts.map +1 -1
  2. package/Controls/Behaviors/Insetable.js +2 -2
  3. package/Controls/Behaviors/Insetable.js.map +1 -1
  4. package/Controls/Components/Grouping/Banner/BannerHeaderElementTemplate.d.ts.map +1 -1
  5. package/Controls/Components/Grouping/Banner/BannerHeaderElementTemplate.js +0 -2
  6. package/Controls/Components/Grouping/Banner/BannerHeaderElementTemplate.js.map +1 -1
  7. package/Controls/Components/Grouping/Banner/BannerSubHeaderElementTemplate.d.ts.map +1 -1
  8. package/Controls/Components/Grouping/Banner/BannerSubHeaderElementTemplate.js +0 -2
  9. package/Controls/Components/Grouping/Banner/BannerSubHeaderElementTemplate.js.map +1 -1
  10. package/Controls/Components/Inputs/Abstracts/InputFormatterFn.d.ts +3 -3
  11. package/Controls/Components/Inputs/Abstracts/InputFormatterFn.d.ts.map +1 -1
  12. package/Controls/Components/Inputs/Abstracts/InputFormatterFn.js +4 -4
  13. package/Controls/Components/Inputs/Abstracts/InputFormatterFn.js.map +1 -1
  14. package/Controls/Components/Inputs/Abstracts/InputParserFn.d.ts +3 -3
  15. package/Controls/Components/Inputs/Abstracts/InputParserFn.d.ts.map +1 -1
  16. package/Controls/Components/Inputs/Abstracts/InputParserFn.js +4 -4
  17. package/Controls/Components/Inputs/Abstracts/InputParserFn.js.map +1 -1
  18. package/Controls/Components/Inputs/ChipBox/ChipBoxElement.js +2 -2
  19. package/Controls/Components/Inputs/ChipBox/ChipBoxElement.js.map +1 -1
  20. package/Controls/Components/Inputs/ColorBox/ColorBoxElement.d.ts +10 -0
  21. package/Controls/Components/Inputs/ColorBox/ColorBoxElement.d.ts.map +1 -1
  22. package/Controls/Components/Inputs/ColorBox/ColorBoxElement.js +23 -0
  23. package/Controls/Components/Inputs/ColorBox/ColorBoxElement.js.map +1 -1
  24. package/Controls/Components/Inputs/ColorBox/IColorBoxElementProps.d.ts +2 -0
  25. package/Controls/Components/Inputs/ColorBox/IColorBoxElementProps.d.ts.map +1 -1
  26. package/Controls/Components/Inputs/ColorBox/Themes/ColorBoxElement.Cosmopolitan.d.ts.map +1 -1
  27. package/Controls/Components/Inputs/ColorBox/Themes/ColorBoxElement.Cosmopolitan.js +12 -0
  28. package/Controls/Components/Inputs/ColorBox/Themes/ColorBoxElement.Cosmopolitan.js.map +1 -1
  29. package/Controls/Components/Inputs/ColorBox/Themes/ColorBoxElement.Joy.d.ts.map +1 -1
  30. package/Controls/Components/Inputs/ColorBox/Themes/ColorBoxElement.Joy.js +12 -0
  31. package/Controls/Components/Inputs/ColorBox/Themes/ColorBoxElement.Joy.js.map +1 -1
  32. package/Controls/Components/Inputs/ColorBox/Themes/ColorBoxElement.Retro.d.ts.map +1 -1
  33. package/Controls/Components/Inputs/ColorBox/Themes/ColorBoxElement.Retro.js +12 -0
  34. package/Controls/Components/Inputs/ColorBox/Themes/ColorBoxElement.Retro.js.map +1 -1
  35. package/Controls/Components/Inputs/DateBox/DateBoxElement.d.ts +11 -1
  36. package/Controls/Components/Inputs/DateBox/DateBoxElement.d.ts.map +1 -1
  37. package/Controls/Components/Inputs/DateBox/DateBoxElement.js +26 -4
  38. package/Controls/Components/Inputs/DateBox/DateBoxElement.js.map +1 -1
  39. package/Controls/Components/Inputs/DateBox/IDateBoxElementProps.d.ts +2 -0
  40. package/Controls/Components/Inputs/DateBox/IDateBoxElementProps.d.ts.map +1 -1
  41. package/Controls/Components/Inputs/DateBox/Themes/DateBoxElement.Cosmopolitan.d.ts.map +1 -1
  42. package/Controls/Components/Inputs/DateBox/Themes/DateBoxElement.Cosmopolitan.js +12 -0
  43. package/Controls/Components/Inputs/DateBox/Themes/DateBoxElement.Cosmopolitan.js.map +1 -1
  44. package/Controls/Components/Inputs/DateBox/Themes/DateBoxElement.Joy.d.ts.map +1 -1
  45. package/Controls/Components/Inputs/DateBox/Themes/DateBoxElement.Joy.js +12 -0
  46. package/Controls/Components/Inputs/DateBox/Themes/DateBoxElement.Joy.js.map +1 -1
  47. package/Controls/Components/Inputs/DateBox/Themes/DateBoxElement.Retro.d.ts.map +1 -1
  48. package/Controls/Components/Inputs/DateBox/Themes/DateBoxElement.Retro.js +12 -0
  49. package/Controls/Components/Inputs/DateBox/Themes/DateBoxElement.Retro.js.map +1 -1
  50. package/Controls/Components/Inputs/DateTimeBox/DateTimeBoxElement.d.ts +11 -1
  51. package/Controls/Components/Inputs/DateTimeBox/DateTimeBoxElement.d.ts.map +1 -1
  52. package/Controls/Components/Inputs/DateTimeBox/DateTimeBoxElement.js +26 -4
  53. package/Controls/Components/Inputs/DateTimeBox/DateTimeBoxElement.js.map +1 -1
  54. package/Controls/Components/Inputs/DateTimeBox/IDateTimeBoxElementProps.d.ts +2 -0
  55. package/Controls/Components/Inputs/DateTimeBox/IDateTimeBoxElementProps.d.ts.map +1 -1
  56. package/Controls/Components/Inputs/DateTimeBox/Themes/DateTimeBoxElement.Cosmopolitan.d.ts.map +1 -1
  57. package/Controls/Components/Inputs/DateTimeBox/Themes/DateTimeBoxElement.Cosmopolitan.js +12 -0
  58. package/Controls/Components/Inputs/DateTimeBox/Themes/DateTimeBoxElement.Cosmopolitan.js.map +1 -1
  59. package/Controls/Components/Inputs/DateTimeBox/Themes/DateTimeBoxElement.Joy.d.ts.map +1 -1
  60. package/Controls/Components/Inputs/DateTimeBox/Themes/DateTimeBoxElement.Joy.js +12 -0
  61. package/Controls/Components/Inputs/DateTimeBox/Themes/DateTimeBoxElement.Joy.js.map +1 -1
  62. package/Controls/Components/Inputs/DateTimeBox/Themes/DateTimeBoxElement.Retro.d.ts.map +1 -1
  63. package/Controls/Components/Inputs/DateTimeBox/Themes/DateTimeBoxElement.Retro.js +12 -0
  64. package/Controls/Components/Inputs/DateTimeBox/Themes/DateTimeBoxElement.Retro.js.map +1 -1
  65. package/Controls/Components/Inputs/FileUpload/FileUploadItemElement.js +2 -2
  66. package/Controls/Components/Inputs/FileUpload/FileUploadItemElement.js.map +1 -1
  67. package/Controls/Components/Inputs/NumberBox/INumberBoxElementProps.d.ts +3 -0
  68. package/Controls/Components/Inputs/NumberBox/INumberBoxElementProps.d.ts.map +1 -1
  69. package/Controls/Components/Inputs/NumberBox/NumberBoxElement.d.ts +19 -0
  70. package/Controls/Components/Inputs/NumberBox/NumberBoxElement.d.ts.map +1 -1
  71. package/Controls/Components/Inputs/NumberBox/NumberBoxElement.js +45 -0
  72. package/Controls/Components/Inputs/NumberBox/NumberBoxElement.js.map +1 -1
  73. package/Controls/Components/Inputs/NumberBox/NumberBoxElementTemplate.d.ts.map +1 -1
  74. package/Controls/Components/Inputs/NumberBox/NumberBoxElementTemplate.js +2 -0
  75. package/Controls/Components/Inputs/NumberBox/NumberBoxElementTemplate.js.map +1 -1
  76. package/Controls/Components/Inputs/NumberBox/Themes/NumberBoxElement.Cosmopolitan.d.ts.map +1 -1
  77. package/Controls/Components/Inputs/NumberBox/Themes/NumberBoxElement.Cosmopolitan.js +12 -0
  78. package/Controls/Components/Inputs/NumberBox/Themes/NumberBoxElement.Cosmopolitan.js.map +1 -1
  79. package/Controls/Components/Inputs/NumberBox/Themes/NumberBoxElement.Joy.d.ts.map +1 -1
  80. package/Controls/Components/Inputs/NumberBox/Themes/NumberBoxElement.Joy.js +12 -0
  81. package/Controls/Components/Inputs/NumberBox/Themes/NumberBoxElement.Joy.js.map +1 -1
  82. package/Controls/Components/Inputs/NumberBox/Themes/NumberBoxElement.Retro.d.ts.map +1 -1
  83. package/Controls/Components/Inputs/NumberBox/Themes/NumberBoxElement.Retro.js +12 -0
  84. package/Controls/Components/Inputs/NumberBox/Themes/NumberBoxElement.Retro.js.map +1 -1
  85. package/Controls/Components/Inputs/PasswordBox/IPasswordBoxElementProps.d.ts +2 -0
  86. package/Controls/Components/Inputs/PasswordBox/IPasswordBoxElementProps.d.ts.map +1 -1
  87. package/Controls/Components/Inputs/PasswordBox/PasswordBoxElement.d.ts +10 -0
  88. package/Controls/Components/Inputs/PasswordBox/PasswordBoxElement.d.ts.map +1 -1
  89. package/Controls/Components/Inputs/PasswordBox/PasswordBoxElement.js +23 -0
  90. package/Controls/Components/Inputs/PasswordBox/PasswordBoxElement.js.map +1 -1
  91. package/Controls/Components/Inputs/PasswordBox/Themes/PasswordBoxElement.Cosmopolitan.d.ts.map +1 -1
  92. package/Controls/Components/Inputs/PasswordBox/Themes/PasswordBoxElement.Cosmopolitan.js +12 -0
  93. package/Controls/Components/Inputs/PasswordBox/Themes/PasswordBoxElement.Cosmopolitan.js.map +1 -1
  94. package/Controls/Components/Inputs/PasswordBox/Themes/PasswordBoxElement.Joy.d.ts.map +1 -1
  95. package/Controls/Components/Inputs/PasswordBox/Themes/PasswordBoxElement.Joy.js +12 -0
  96. package/Controls/Components/Inputs/PasswordBox/Themes/PasswordBoxElement.Joy.js.map +1 -1
  97. package/Controls/Components/Inputs/PasswordBox/Themes/PasswordBoxElement.Retro.d.ts.map +1 -1
  98. package/Controls/Components/Inputs/PasswordBox/Themes/PasswordBoxElement.Retro.js +12 -0
  99. package/Controls/Components/Inputs/PasswordBox/Themes/PasswordBoxElement.Retro.js.map +1 -1
  100. package/Controls/Components/Inputs/SearchBox/SearchBoxElement.d.ts +10 -0
  101. package/Controls/Components/Inputs/SearchBox/SearchBoxElement.d.ts.map +1 -1
  102. package/Controls/Components/Inputs/SearchBox/SearchBoxElement.js +25 -2
  103. package/Controls/Components/Inputs/SearchBox/SearchBoxElement.js.map +1 -1
  104. package/Controls/Components/Inputs/SearchBox/Themes/SearchBoxElement.Cosmopolitan.d.ts.map +1 -1
  105. package/Controls/Components/Inputs/SearchBox/Themes/SearchBoxElement.Cosmopolitan.js +12 -0
  106. package/Controls/Components/Inputs/SearchBox/Themes/SearchBoxElement.Cosmopolitan.js.map +1 -1
  107. package/Controls/Components/Inputs/SearchBox/Themes/SearchBoxElement.Joy.d.ts.map +1 -1
  108. package/Controls/Components/Inputs/SearchBox/Themes/SearchBoxElement.Joy.js +12 -0
  109. package/Controls/Components/Inputs/SearchBox/Themes/SearchBoxElement.Joy.js.map +1 -1
  110. package/Controls/Components/Inputs/SearchBox/Themes/SearchBoxElement.Retro.d.ts.map +1 -1
  111. package/Controls/Components/Inputs/SearchBox/Themes/SearchBoxElement.Retro.js +12 -0
  112. package/Controls/Components/Inputs/SearchBox/Themes/SearchBoxElement.Retro.js.map +1 -1
  113. package/Controls/Components/Inputs/Select/ISelectElementProps.d.ts +2 -0
  114. package/Controls/Components/Inputs/Select/ISelectElementProps.d.ts.map +1 -1
  115. package/Controls/Components/Inputs/Select/SelectElement.d.ts +10 -0
  116. package/Controls/Components/Inputs/Select/SelectElement.d.ts.map +1 -1
  117. package/Controls/Components/Inputs/Select/SelectElement.js +23 -0
  118. package/Controls/Components/Inputs/Select/SelectElement.js.map +1 -1
  119. package/Controls/Components/Inputs/Select/Themes/SelectElement.Cosmopolitan.d.ts.map +1 -1
  120. package/Controls/Components/Inputs/Select/Themes/SelectElement.Cosmopolitan.js +12 -0
  121. package/Controls/Components/Inputs/Select/Themes/SelectElement.Cosmopolitan.js.map +1 -1
  122. package/Controls/Components/Inputs/Select/Themes/SelectElement.Joy.d.ts.map +1 -1
  123. package/Controls/Components/Inputs/Select/Themes/SelectElement.Joy.js +12 -0
  124. package/Controls/Components/Inputs/Select/Themes/SelectElement.Joy.js.map +1 -1
  125. package/Controls/Components/Inputs/Select/Themes/SelectElement.Retro.d.ts.map +1 -1
  126. package/Controls/Components/Inputs/Select/Themes/SelectElement.Retro.js +12 -0
  127. package/Controls/Components/Inputs/Select/Themes/SelectElement.Retro.js.map +1 -1
  128. package/Controls/Components/Inputs/TextBox/ITextBoxElementProps.d.ts +2 -0
  129. package/Controls/Components/Inputs/TextBox/ITextBoxElementProps.d.ts.map +1 -1
  130. package/Controls/Components/Inputs/TextBox/TextBoxElement.d.ts +10 -0
  131. package/Controls/Components/Inputs/TextBox/TextBoxElement.d.ts.map +1 -1
  132. package/Controls/Components/Inputs/TextBox/TextBoxElement.js +23 -0
  133. package/Controls/Components/Inputs/TextBox/TextBoxElement.js.map +1 -1
  134. package/Controls/Components/Inputs/TextBox/Themes/TextBoxElement.Cosmopolitan.d.ts.map +1 -1
  135. package/Controls/Components/Inputs/TextBox/Themes/TextBoxElement.Cosmopolitan.js +12 -0
  136. package/Controls/Components/Inputs/TextBox/Themes/TextBoxElement.Cosmopolitan.js.map +1 -1
  137. package/Controls/Components/Inputs/TextBox/Themes/TextBoxElement.Joy.d.ts.map +1 -1
  138. package/Controls/Components/Inputs/TextBox/Themes/TextBoxElement.Joy.js +12 -0
  139. package/Controls/Components/Inputs/TextBox/Themes/TextBoxElement.Joy.js.map +1 -1
  140. package/Controls/Components/Inputs/TextBox/Themes/TextBoxElement.Retro.d.ts.map +1 -1
  141. package/Controls/Components/Inputs/TextBox/Themes/TextBoxElement.Retro.js +12 -0
  142. package/Controls/Components/Inputs/TextBox/Themes/TextBoxElement.Retro.js.map +1 -1
  143. package/Controls/Components/Inputs/TimeBox/ITimeBoxElementProps.d.ts +2 -0
  144. package/Controls/Components/Inputs/TimeBox/ITimeBoxElementProps.d.ts.map +1 -1
  145. package/Controls/Components/Inputs/TimeBox/Themes/TimeBoxElement.Cosmopolitan.d.ts.map +1 -1
  146. package/Controls/Components/Inputs/TimeBox/Themes/TimeBoxElement.Cosmopolitan.js +14 -2
  147. package/Controls/Components/Inputs/TimeBox/Themes/TimeBoxElement.Cosmopolitan.js.map +1 -1
  148. package/Controls/Components/Inputs/TimeBox/Themes/TimeBoxElement.Joy.d.ts.map +1 -1
  149. package/Controls/Components/Inputs/TimeBox/Themes/TimeBoxElement.Joy.js +14 -2
  150. package/Controls/Components/Inputs/TimeBox/Themes/TimeBoxElement.Joy.js.map +1 -1
  151. package/Controls/Components/Inputs/TimeBox/Themes/TimeBoxElement.Retro.d.ts.map +1 -1
  152. package/Controls/Components/Inputs/TimeBox/Themes/TimeBoxElement.Retro.js +14 -2
  153. package/Controls/Components/Inputs/TimeBox/Themes/TimeBoxElement.Retro.js.map +1 -1
  154. package/Controls/Components/Inputs/TimeBox/TimeBoxElement.d.ts +10 -0
  155. package/Controls/Components/Inputs/TimeBox/TimeBoxElement.d.ts.map +1 -1
  156. package/Controls/Components/Inputs/TimeBox/TimeBoxElement.js +23 -0
  157. package/Controls/Components/Inputs/TimeBox/TimeBoxElement.js.map +1 -1
  158. package/Controls/Components/Primitives/Abstracts/UpDown/Abstracts/UpDownBaseElement.d.ts +1 -1
  159. package/Controls/Components/Primitives/Abstracts/UpDown/Abstracts/UpDownBaseElement.d.ts.map +1 -1
  160. package/Controls/Components/Primitives/Abstracts/UpDown/Abstracts/UpDownBaseElement.js +4 -4
  161. package/Controls/Components/Primitives/Abstracts/UpDown/Abstracts/UpDownBaseElement.js.map +1 -1
  162. package/Controls/Components/Primitives/Abstracts/UpDown/NumberUpDownElement.d.ts +0 -8
  163. package/Controls/Components/Primitives/Abstracts/UpDown/NumberUpDownElement.d.ts.map +1 -1
  164. package/Controls/Components/Primitives/Abstracts/UpDown/NumberUpDownElement.js +14 -18
  165. package/Controls/Components/Primitives/Abstracts/UpDown/NumberUpDownElement.js.map +1 -1
  166. package/Controls/Components/Primitives/Text/TextElement.d.ts +1 -1
  167. package/Controls/Components/Primitives/Text/TextElement.js +5 -5
  168. package/Controls/Components/Primitives/Text/TextElement.js.map +1 -1
  169. package/Controls/Types/AutoCompleteTextSearchMode.d.ts.map +1 -1
  170. package/Controls/Types/AutoCompleteTextSearchMode.js.map +1 -1
  171. package/Controls/Types/FabGroupDirection.d.ts +1 -1
  172. package/Controls/Types/FabGroupDirection.js +1 -1
  173. package/Controls/Types/FileUploadView.d.ts +1 -1
  174. package/Controls/Types/FileUploadView.js +1 -1
  175. package/Controls/Types/InkBarPosition.d.ts +1 -1
  176. package/Controls/Types/InkBarPosition.js +1 -1
  177. package/Controls/Types/Inset.d.ts +16 -11
  178. package/Controls/Types/Inset.d.ts.map +1 -1
  179. package/Controls/Types/Inset.js +16 -16
  180. package/Controls/Types/Inset.js.map +1 -1
  181. package/Controls/Types/Size.d.ts +1 -1
  182. package/Controls/Types/Size.js +1 -1
  183. package/Controls/Types/TabPanelAlignment.d.ts +1 -1
  184. package/Controls/Types/TabPanelAlignment.js +1 -1
  185. package/Controls/Types/TextAlignment.d.ts +0 -4
  186. package/Controls/Types/TextAlignment.d.ts.map +1 -1
  187. package/Controls/Types/TextAlignment.js +4 -4
  188. package/Controls/Types/TextAlignment.js.map +1 -1
  189. package/Controls/Types/TickLabelPosition.d.ts +1 -1
  190. package/Controls/Types/TickLabelPosition.js +1 -1
  191. package/Forms/Validators/VNext/Abstracts/ElementValidatorBase.d.ts.map +1 -1
  192. package/Forms/Validators/VNext/Abstracts/ElementValidatorBase.js +2 -4
  193. package/Forms/Validators/VNext/Abstracts/ElementValidatorBase.js.map +1 -1
  194. package/Forms/Validators/VNext/BlankElementValidator.d.ts +5 -1
  195. package/Forms/Validators/VNext/BlankElementValidator.d.ts.map +1 -1
  196. package/Forms/Validators/VNext/BlankElementValidator.js +5 -2
  197. package/Forms/Validators/VNext/BlankElementValidator.js.map +1 -1
  198. package/Forms/Validators/VNext/BlankElementValidatorFn.d.ts +8 -1
  199. package/Forms/Validators/VNext/BlankElementValidatorFn.d.ts.map +1 -1
  200. package/Forms/Validators/VNext/BlankElementValidatorFn.js +15 -4
  201. package/Forms/Validators/VNext/BlankElementValidatorFn.js.map +1 -1
  202. package/Forms/Validators/VNext/EmailElementValidator.d.ts +5 -1
  203. package/Forms/Validators/VNext/EmailElementValidator.d.ts.map +1 -1
  204. package/Forms/Validators/VNext/EmailElementValidator.js +5 -2
  205. package/Forms/Validators/VNext/EmailElementValidator.js.map +1 -1
  206. package/Forms/Validators/VNext/EmailElementValidatorFn.d.ts +8 -1
  207. package/Forms/Validators/VNext/EmailElementValidatorFn.d.ts.map +1 -1
  208. package/Forms/Validators/VNext/EmailElementValidatorFn.js +11 -5
  209. package/Forms/Validators/VNext/EmailElementValidatorFn.js.map +1 -1
  210. package/Forms/Validators/VNext/EqualsToElementValidator.d.ts +5 -1
  211. package/Forms/Validators/VNext/EqualsToElementValidator.d.ts.map +1 -1
  212. package/Forms/Validators/VNext/EqualsToElementValidator.js +5 -2
  213. package/Forms/Validators/VNext/EqualsToElementValidator.js.map +1 -1
  214. package/Forms/Validators/VNext/EqualsToElementValidatorFn.d.ts +8 -0
  215. package/Forms/Validators/VNext/EqualsToElementValidatorFn.d.ts.map +1 -1
  216. package/Forms/Validators/VNext/EqualsToElementValidatorFn.js +16 -2
  217. package/Forms/Validators/VNext/EqualsToElementValidatorFn.js.map +1 -1
  218. package/Forms/Validators/VNext/MaxElementValidator.d.ts +1 -1
  219. package/Forms/Validators/VNext/MaxElementValidator.js +1 -1
  220. package/Forms/Validators/VNext/MaxLengthElementValidator.d.ts +1 -1
  221. package/Forms/Validators/VNext/MaxLengthElementValidator.js +1 -1
  222. package/Forms/Validators/VNext/MinElementValidator.d.ts +1 -1
  223. package/Forms/Validators/VNext/MinElementValidator.js +1 -1
  224. package/Forms/Validators/VNext/MinLengthElementValidator.d.ts +1 -1
  225. package/Forms/Validators/VNext/MinLengthElementValidator.js +1 -1
  226. package/Forms/Validators/VNext/NumericElementValidator.d.ts +5 -1
  227. package/Forms/Validators/VNext/NumericElementValidator.d.ts.map +1 -1
  228. package/Forms/Validators/VNext/NumericElementValidator.js +5 -2
  229. package/Forms/Validators/VNext/NumericElementValidator.js.map +1 -1
  230. package/Forms/Validators/VNext/NumericElementValidatorFn.d.ts +8 -1
  231. package/Forms/Validators/VNext/NumericElementValidatorFn.d.ts.map +1 -1
  232. package/Forms/Validators/VNext/NumericElementValidatorFn.js +15 -2
  233. package/Forms/Validators/VNext/NumericElementValidatorFn.js.map +1 -1
  234. package/Forms/Validators/VNext/PatternElementValidator.d.ts +1 -1
  235. package/Forms/Validators/VNext/PatternElementValidator.js +1 -1
  236. package/Forms/Validators/VNext/PatternElementValidatorFn.js +2 -2
  237. package/Forms/Validators/VNext/PatternElementValidatorFn.js.map +1 -1
  238. package/Forms/Validators/VNext/PhoneNumberElementValidator.d.ts +5 -1
  239. package/Forms/Validators/VNext/PhoneNumberElementValidator.d.ts.map +1 -1
  240. package/Forms/Validators/VNext/PhoneNumberElementValidator.js +5 -2
  241. package/Forms/Validators/VNext/PhoneNumberElementValidator.js.map +1 -1
  242. package/Forms/Validators/VNext/PhoneNumberElementValidatorFn.d.ts +8 -1
  243. package/Forms/Validators/VNext/PhoneNumberElementValidatorFn.d.ts.map +1 -1
  244. package/Forms/Validators/VNext/PhoneNumberElementValidatorFn.js +9 -1
  245. package/Forms/Validators/VNext/PhoneNumberElementValidatorFn.js.map +1 -1
  246. package/Forms/Validators/VNext/RequiredElementValidator.d.ts +1 -1
  247. package/Forms/Validators/VNext/RequiredElementValidator.js +1 -1
  248. package/Forms/Validators/VNext/RequiredElementValidatorFn.d.ts +1 -1
  249. package/Forms/Validators/VNext/RequiredElementValidatorFn.d.ts.map +1 -1
  250. package/Forms/Validators/VNext/RequiredTrueElementValidator.d.ts +1 -1
  251. package/Forms/Validators/VNext/RequiredTrueElementValidator.js +1 -1
  252. package/custom-elements.json +206 -4
  253. package/package.json +3 -3
@@ -1,6 +1,6 @@
1
1
  // #region Imports
2
2
  import { ElementValidatorBase } from './Abstracts/ElementValidatorBase';
3
- import { numericValidator } from './NumericElementValidatorFn';
3
+ import { numericValidator, isNumericValue as _isNumericValue } from './NumericElementValidatorFn';
4
4
  /**
5
5
  * @public
6
6
  */
@@ -21,8 +21,11 @@ export class NumericElementValidator extends ElementValidatorBase {
21
21
  return this.getMessage(errors);
22
22
  }
23
23
  }
24
+ (function (NumericElementValidator) {
25
+ NumericElementValidator.isNumericValue = _isNumericValue;
26
+ })(NumericElementValidator || (NumericElementValidator = {}));
24
27
  /**
25
- * The facory function for the {@link NumericElementValidator}.
28
+ * The factory function for the {@link NumericElementValidator}.
26
29
  *
27
30
  * @public
28
31
  * @param resolver - A *optional* message resolver to get the error message that will be displayed. When not provided, a default message will be used.
@@ -1 +1 @@
1
- {"version":3,"file":"NumericElementValidator.js","sourceRoot":"","sources":["../../../../src/Forms/Validators/VNext/NumericElementValidator.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAElB,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAW/D;;GAEG;AACH,MAAM,OAAO,uBACT,SAAQ,oBAA8B;IAEtC,eAAe;IAEf,YAAmB,IAAc,EAAE,eAAkD;QACjF,KAAK,CAAC,IAAI,EAAE,eAAe,IAAI,CAAC,CAAC,OAA4B,EAAE,EAAE,CAAC,4BAA4B,CAAC,CAAC,CAAC;IACrG,CAAC;IAED,aAAa;IAEb,qBAAqB;IAErB,IAAc,UAAU;QACpB,OAAO,CAAC,OAAO,CAAC,CAAC;IACrB,CAAC;IAED,aAAa;IAEb,kBAAkB;IAEX,QAAQ;QACX,MAAM,MAAM,GAAG,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3C,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;CAIJ;AAED;;;;;GAKG;AACH,MAAM,UAAU,uBAAuB,CAAC,QAA2C;IAC/E,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,CAAkD,EAA2B,EAAE;QAC5F,MAAM,SAAS,GAAG,IAAI,uBAAuB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAC9D,OAAO,SAAS,CAAC;IACrB,CAAC,CAAC;IAEF,OAAO,EAAE,CAAC;AACd,CAAC"}
1
+ {"version":3,"file":"NumericElementValidator.js","sourceRoot":"","sources":["../../../../src/Forms/Validators/VNext/NumericElementValidator.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAElB,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE,OAAO,EAAE,gBAAgB,EAAE,cAAc,IAAI,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAWlG;;GAEG;AACH,MAAM,OAAO,uBACT,SAAQ,oBAA8B;IAEtC,eAAe;IAEf,YAAmB,IAAc,EAAE,eAAkD;QACjF,KAAK,CAAC,IAAI,EAAE,eAAe,IAAI,CAAC,CAAC,OAA4B,EAAE,EAAE,CAAC,4BAA4B,CAAC,CAAC,CAAC;IACrG,CAAC;IAED,aAAa;IAEb,qBAAqB;IAErB,IAAc,UAAU;QACpB,OAAO,CAAC,OAAO,CAAC,CAAC;IACrB,CAAC;IAED,aAAa;IAEb,kBAAkB;IAEX,QAAQ;QACX,MAAM,MAAM,GAAG,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3C,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;CAIJ;AAED,WAAiB,uBAAuB;IACvB,sCAAc,GAAG,eAAe,CAAC;AAClD,CAAC,EAFgB,uBAAuB,KAAvB,uBAAuB,QAEvC;AAED;;;;;GAKG;AACH,MAAM,UAAU,uBAAuB,CAAC,QAA2C;IAC/E,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,CAAkD,EAA2B,EAAE;QAC5F,MAAM,SAAS,GAAG,IAAI,uBAAuB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAC9D,OAAO,SAAS,CAAC;IACrB,CAAC,CAAC;IAEF,OAAO,EAAE,CAAC;AACd,CAAC"}
@@ -11,6 +11,13 @@ import type { ElementValidationError } from './Abstracts/Interfaces/IElementVali
11
11
  * @returns null if the validation check passes, otherwise an object containing information.
12
12
  */
13
13
  export declare function numericValidator(control: HTMLElement & {
14
- value: string;
14
+ value: string | null;
15
15
  }): Nullable<ElementValidationError>;
16
+ /**
17
+ * Checks if the value is numeric.
18
+ *
19
+ * @param value - The value to check.
20
+ * @returns True if the value is numeric, false otherwise.
21
+ */
22
+ export declare function isNumericValue(value: unknown): boolean;
16
23
  //# sourceMappingURL=NumericElementValidatorFn.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NumericElementValidatorFn.d.ts","sourceRoot":"","sources":["../../../../src/Forms/Validators/VNext/NumericElementValidatorFn.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAIvF;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,WAAW,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,QAAQ,CAAC,sBAAsB,CAAC,CAI3G"}
1
+ {"version":3,"file":"NumericElementValidatorFn.d.ts","sourceRoot":"","sources":["../../../../src/Forms/Validators/VNext/NumericElementValidatorFn.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAIvF;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,WAAW,GAAG;IAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAAG,QAAQ,CAAC,sBAAsB,CAAC,CAQlH;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAEtD"}
@@ -11,8 +11,21 @@
11
11
  * @returns null if the validation check passes, otherwise an object containing information.
12
12
  */
13
13
  export function numericValidator(control) {
14
- return control.value === null || !Number.isNaN(+control.value)
14
+ return isNumericValue(control.value)
15
15
  ? null
16
- : { badInput: [true, { actualValue: control.value }] };
16
+ : {
17
+ badInput: [
18
+ true, { actualValue: control.value }
19
+ ]
20
+ };
21
+ }
22
+ /**
23
+ * Checks if the value is numeric.
24
+ *
25
+ * @param value - The value to check.
26
+ * @returns True if the value is numeric, false otherwise.
27
+ */
28
+ export function isNumericValue(value) {
29
+ return typeof value === 'number' || (typeof value === 'string' && !Number.isNaN(+value));
17
30
  }
18
31
  //# sourceMappingURL=NumericElementValidatorFn.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NumericElementValidatorFn.js","sourceRoot":"","sources":["../../../../src/Forms/Validators/VNext/NumericElementValidatorFn.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAKlB,aAAa;AAEb;;;;;;;;;GASG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAwC;IACrE,OAAO,OAAO,CAAC,KAAK,KAAK,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;QAC1D,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,WAAW,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC;AAC/D,CAAC"}
1
+ {"version":3,"file":"NumericElementValidatorFn.js","sourceRoot":"","sources":["../../../../src/Forms/Validators/VNext/NumericElementValidatorFn.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAKlB,aAAa;AAEb;;;;;;;;;GASG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAA+C;IAC5E,OAAO,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC;QAChC,CAAC,CAAC,IAAI;QACN,CAAC,CAAC;YACE,QAAQ,EAAE;gBACN,IAAI,EAAE,EAAE,WAAW,EAAE,OAAO,CAAC,KAAK,EAAE;aACvC;SACJ,CAAC;AACV,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,KAAc;IACzC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;AAC7F,CAAC"}
@@ -16,7 +16,7 @@ export declare class PatternElementValidator<TElement extends IPatternElement =
16
16
  validate(): ElementValidationResult | null;
17
17
  }
18
18
  /**
19
- * A facory function for the {@link PatternElementValidator}.
19
+ * A factory function for the {@link PatternElementValidator}.
20
20
  *
21
21
  * @public
22
22
  * @param resolver - A *optional* message resolver to get the error message that will be displayed. When not provided, a default message will be used.
@@ -22,7 +22,7 @@ export class PatternElementValidator extends ElementValidatorBase {
22
22
  }
23
23
  }
24
24
  /**
25
- * A facory function for the {@link PatternElementValidator}.
25
+ * A factory function for the {@link PatternElementValidator}.
26
26
  *
27
27
  * @public
28
28
  * @param resolver - A *optional* message resolver to get the error message that will be displayed. When not provided, a default message will be used.
@@ -18,8 +18,8 @@ export function patternValidator(element) {
18
18
  if (!element.pattern) {
19
19
  return null;
20
20
  }
21
- let regex;
22
- let regexStr;
21
+ let regex = null;
22
+ let regexStr = null;
23
23
  if (typeof element.pattern === 'string') {
24
24
  regexStr = '';
25
25
  if (!element.pattern.startsWith('^')) {
@@ -1 +1 @@
1
- {"version":3,"file":"PatternElementValidatorFn.js","sourceRoot":"","sources":["../../../../src/Forms/Validators/VNext/PatternElementValidatorFn.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAKlB,aAAa;AAEb,MAAM,gBAAgB,GAAG,SAAS,CAAC;AAEnC;;;;;;;;;GASG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAGhC;IACG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,gBAAgB,CAAC,EAAE,CAAC;QAC1C,OAAO,CAAC,IAAI,CAAC,QAAQ,gBAAgB,mBAAmB,OAAO,CAAC,OAAO,CAAC,WAAW,EAAE,+CAA+C,CAAC,CAAC;IAC1I,CAAC;IAED,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,IAAI,KAAa,CAAC;IAClB,IAAI,QAAgB,CAAC;IAErB,IAAI,OAAO,OAAO,CAAC,OAAO,KAAK,QAAQ,EAAE,CAAC;QACtC,QAAQ,GAAG,EAAE,CAAC;QAEd,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;YACnC,QAAQ,IAAI,GAAG,CAAC;QACpB,CAAC;QAED,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;QAE5B,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YACjC,QAAQ,IAAI,GAAG,CAAC;QACpB,CAAC;QAED,KAAK,GAAG,IAAI,MAAM,CAAC,QAAQ,CAAC,CAAC;IACjC,CAAC;SAAM,CAAC;QACJ,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;QACtC,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC;IAC5B,CAAC;IAED,IAAI,iBAAiB,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACnC,OAAO,IAAI,CAAC,CAAE,yDAAyD;IAC3E,CAAC;IACD,MAAM,KAAK,GAAW,OAAO,CAAC,KAAK,CAAC;IACpC,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;QACpB,CAAC,CAAC,IAAI;QACN,CAAC,CAAC;YACE,eAAe,EAAE,CAAC,IAAI,EAAE;oBACpB,WAAW,EAAE,KAAK;oBAClB,eAAe,EAAE,QAAQ;iBAC5B,CAAC;SACL,CAAC;AACV,CAAC;AAED,SAAS,iBAAiB,CAAC,KAAU;IACjC,OAAO,KAAK,IAAI,IAAI,IAAI,CAAC,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;AACxG,CAAC"}
1
+ {"version":3,"file":"PatternElementValidatorFn.js","sourceRoot":"","sources":["../../../../src/Forms/Validators/VNext/PatternElementValidatorFn.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAKlB,aAAa;AAEb,MAAM,gBAAgB,GAAG,SAAS,CAAC;AAEnC;;;;;;;;;GASG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAGhC;IACG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,gBAAgB,CAAC,EAAE,CAAC;QAC1C,OAAO,CAAC,IAAI,CAAC,QAAQ,gBAAgB,mBAAmB,OAAO,CAAC,OAAO,CAAC,WAAW,EAAE,+CAA+C,CAAC,CAAC;IAC1I,CAAC;IAED,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,IAAI,KAAK,GAAkB,IAAI,CAAC;IAChC,IAAI,QAAQ,GAAkB,IAAI,CAAC;IAEnC,IAAI,OAAO,OAAO,CAAC,OAAO,KAAK,QAAQ,EAAE,CAAC;QACtC,QAAQ,GAAG,EAAE,CAAC;QAEd,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;YACnC,QAAQ,IAAI,GAAG,CAAC;QACpB,CAAC;QAED,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;QAE5B,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YACjC,QAAQ,IAAI,GAAG,CAAC;QACpB,CAAC;QAED,KAAK,GAAG,IAAI,MAAM,CAAC,QAAQ,CAAC,CAAC;IACjC,CAAC;SAAM,CAAC;QACJ,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;QACtC,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC;IAC5B,CAAC;IAED,IAAI,iBAAiB,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACnC,OAAO,IAAI,CAAC,CAAE,yDAAyD;IAC3E,CAAC;IACD,MAAM,KAAK,GAAW,OAAO,CAAC,KAAK,CAAC;IACpC,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;QACpB,CAAC,CAAC,IAAI;QACN,CAAC,CAAC;YACE,eAAe,EAAE,CAAC,IAAI,EAAE;oBACpB,WAAW,EAAE,KAAK;oBAClB,eAAe,EAAE,QAAQ;iBAC5B,CAAC;SACL,CAAC;AACV,CAAC;AAED,SAAS,iBAAiB,CAAC,KAAU;IACjC,OAAO,KAAK,IAAI,IAAI,IAAI,CAAC,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;AACxG,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { ElementValidatorBase } from './Abstracts/ElementValidatorBase';
2
2
  import type { ElementValidationMessageResolver, ElementValidationResult, ElementValidatorFn } from './Abstracts/Interfaces/IElementValidator';
3
+ import { isPhoneNumberValue as _isPhoneNumberValue } from './PhoneNumberElementValidatorFn';
3
4
  /**
4
5
  * @private
5
6
  */
@@ -14,8 +15,11 @@ export declare class PhoneNumberElementValidator<TElement extends IPhoneNumberEl
14
15
  protected get attributes(): Array<keyof IPhoneNumberElement>;
15
16
  validate(): ElementValidationResult | null;
16
17
  }
18
+ export declare namespace PhoneNumberElementValidator {
19
+ const isPhoneNumberValue: typeof _isPhoneNumberValue;
20
+ }
17
21
  /**
18
- * A facory function for the {@link PhoneNumberElementValidator}.
22
+ * A factory function for the {@link PhoneNumberElementValidator}.
19
23
  *
20
24
  * @public
21
25
  * @param resolver - A *optional* message resolver to get the error message that will be displayed. When not provided, a default message will be used.
@@ -1 +1 @@
1
- {"version":3,"file":"PhoneNumberElementValidator.d.ts","sourceRoot":"","sources":["../../../../src/Forms/Validators/VNext/PhoneNumberElementValidator.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,gCAAgC,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAK9I;;GAEG;AACH,UAAU,mBAAoB,SAAQ,WAAW;IAC7C,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,qBAAa,2BAA2B,CAAC,QAAQ,SAAS,mBAAmB,GAAG,mBAAmB,CAC/F,SAAQ,oBAAoB,CAAC,QAAQ,CAAC;gBAInB,IAAI,EAAE,QAAQ,EAAE,eAAe,CAAC,EAAE,gCAAgC;IAQrF,SAAS,KAAK,UAAU,IAAI,KAAK,CAAC,MAAM,mBAAmB,CAAC,CAE3D;IAMM,QAAQ,IAAI,uBAAuB,GAAG,IAAI;CAOpD;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,eAAe,CAAC,EAAE,gCAAgC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC,KAAK,UAAU,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAOtN"}
1
+ {"version":3,"file":"PhoneNumberElementValidator.d.ts","sourceRoot":"","sources":["../../../../src/Forms/Validators/VNext/PhoneNumberElementValidator.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,gCAAgC,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9I,OAAO,EAAwB,kBAAkB,IAAI,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAIlH;;GAEG;AACH,UAAU,mBAAoB,SAAQ,WAAW;IAC7C,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,qBAAa,2BAA2B,CAAC,QAAQ,SAAS,mBAAmB,GAAG,mBAAmB,CAC/F,SAAQ,oBAAoB,CAAC,QAAQ,CAAC;gBAInB,IAAI,EAAE,QAAQ,EAAE,eAAe,CAAC,EAAE,gCAAgC;IAQrF,SAAS,KAAK,UAAU,IAAI,KAAK,CAAC,MAAM,mBAAmB,CAAC,CAE3D;IAMM,QAAQ,IAAI,uBAAuB,GAAG,IAAI;CAOpD;AAED,yBAAiB,2BAA2B,CAAC;IAClC,MAAM,kBAAkB,4BAAsB,CAAC;CACzD;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,eAAe,CAAC,EAAE,gCAAgC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC,KAAK,UAAU,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAOtN"}
@@ -1,6 +1,6 @@
1
1
  // #region Imports
2
2
  import { ElementValidatorBase } from './Abstracts/ElementValidatorBase';
3
- import { phoneNumberValidator } from './PhoneNumberElementValidatorFn';
3
+ import { phoneNumberValidator, isPhoneNumberValue as _isPhoneNumberValue } from './PhoneNumberElementValidatorFn';
4
4
  /**
5
5
  * @public
6
6
  */
@@ -21,8 +21,11 @@ export class PhoneNumberElementValidator extends ElementValidatorBase {
21
21
  return this.getMessage(errors);
22
22
  }
23
23
  }
24
+ (function (PhoneNumberElementValidator) {
25
+ PhoneNumberElementValidator.isPhoneNumberValue = _isPhoneNumberValue;
26
+ })(PhoneNumberElementValidator || (PhoneNumberElementValidator = {}));
24
27
  /**
25
- * A facory function for the {@link PhoneNumberElementValidator}.
28
+ * A factory function for the {@link PhoneNumberElementValidator}.
26
29
  *
27
30
  * @public
28
31
  * @param resolver - A *optional* message resolver to get the error message that will be displayed. When not provided, a default message will be used.
@@ -1 +1 @@
1
- {"version":3,"file":"PhoneNumberElementValidator.js","sourceRoot":"","sources":["../../../../src/Forms/Validators/VNext/PhoneNumberElementValidator.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAElB,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAWvE;;GAEG;AACH,MAAM,OAAO,2BACT,SAAQ,oBAA8B;IAEtC,eAAe;IAEf,YAAmB,IAAc,EAAE,eAAkD;QACjF,KAAK,CAAC,IAAI,EAAE,eAAe,IAAI,CAAC,CAAC,OAA4B,EAAE,EAAE,CAAC,wCAAwC,CAAC,CAAC,CAAC;IACjH,CAAC;IAED,aAAa;IAEb,qBAAqB;IAErB,IAAc,UAAU;QACpB,OAAO,CAAC,OAAO,CAAC,CAAC;IACrB,CAAC;IAED,aAAa;IAEb,kBAAkB;IAEX,QAAQ;QACX,MAAM,MAAM,GAAG,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/C,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;CAIJ;AAED;;;;;GAKG;AACH,MAAM,UAAU,2BAA2B,CAAC,eAAkD;IAC1F,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,CAAsD,EAA+B,EAAE;QACpG,MAAM,SAAS,GAAG,IAAI,2BAA2B,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;QACzE,OAAO,SAAS,CAAC;IACrB,CAAC,CAAC;IAEF,OAAO,EAAE,CAAC;AACd,CAAC"}
1
+ {"version":3,"file":"PhoneNumberElementValidator.js","sourceRoot":"","sources":["../../../../src/Forms/Validators/VNext/PhoneNumberElementValidator.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAElB,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,IAAI,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAWlH;;GAEG;AACH,MAAM,OAAO,2BACT,SAAQ,oBAA8B;IAEtC,eAAe;IAEf,YAAmB,IAAc,EAAE,eAAkD;QACjF,KAAK,CAAC,IAAI,EAAE,eAAe,IAAI,CAAC,CAAC,OAA4B,EAAE,EAAE,CAAC,wCAAwC,CAAC,CAAC,CAAC;IACjH,CAAC;IAED,aAAa;IAEb,qBAAqB;IAErB,IAAc,UAAU;QACpB,OAAO,CAAC,OAAO,CAAC,CAAC;IACrB,CAAC;IAED,aAAa;IAEb,kBAAkB;IAEX,QAAQ;QACX,MAAM,MAAM,GAAG,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/C,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;CAIJ;AAED,WAAiB,2BAA2B;IAC3B,8CAAkB,GAAG,mBAAmB,CAAC;AAC1D,CAAC,EAFgB,2BAA2B,KAA3B,2BAA2B,QAE3C;AAED;;;;;GAKG;AACH,MAAM,UAAU,2BAA2B,CAAC,eAAkD;IAC1F,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,CAAsD,EAA+B,EAAE;QACpG,MAAM,SAAS,GAAG,IAAI,2BAA2B,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;QACzE,OAAO,SAAS,CAAC;IACrB,CAAC,CAAC;IAEF,OAAO,EAAE,CAAC;AACd,CAAC"}
@@ -11,6 +11,13 @@ import type { ElementValidationError } from './Abstracts/Interfaces/IElementVali
11
11
  * @returns null if the validation check passes, otherwise an object containing information.
12
12
  */
13
13
  export declare function phoneNumberValidator(element: HTMLElement & {
14
- value: string;
14
+ value: string | null;
15
15
  }): Nullable<ElementValidationError>;
16
+ /**
17
+ * Checks if the value is a valid phone number.
18
+ *
19
+ * @param value - The value to check.
20
+ * @returns True if the value is a valid phone number, false otherwise.
21
+ */
22
+ export declare function isPhoneNumberValue(value: unknown): boolean;
16
23
  //# sourceMappingURL=PhoneNumberElementValidatorFn.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PhoneNumberElementValidatorFn.d.ts","sourceRoot":"","sources":["../../../../src/Forms/Validators/VNext/PhoneNumberElementValidatorFn.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAOvF;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,QAAQ,CAAC,sBAAsB,CAAC,CAM/G"}
1
+ {"version":3,"file":"PhoneNumberElementValidatorFn.d.ts","sourceRoot":"","sources":["../../../../src/Forms/Validators/VNext/PhoneNumberElementValidatorFn.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAMvF;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,GAAG;IAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAAG,QAAQ,CAAC,sBAAsB,CAAC,CAMtH;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAE1D"}
@@ -1,6 +1,5 @@
1
1
  // #region Imports
2
2
  // #endregion
3
- const patternAttribute = 'pattern';
4
3
  const PHONE_REGEXP = /^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$/;
5
4
  /**
6
5
  * Validator that requires the control's value to be a valid phone number.
@@ -19,4 +18,13 @@ export function phoneNumberValidator(element) {
19
18
  ? null
20
19
  : { patternMismatch: true };
21
20
  }
21
+ /**
22
+ * Checks if the value is a valid phone number.
23
+ *
24
+ * @param value - The value to check.
25
+ * @returns True if the value is a valid phone number, false otherwise.
26
+ */
27
+ export function isPhoneNumberValue(value) {
28
+ return typeof value === 'string' && PHONE_REGEXP.test(value);
29
+ }
22
30
  //# sourceMappingURL=PhoneNumberElementValidatorFn.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PhoneNumberElementValidatorFn.js","sourceRoot":"","sources":["../../../../src/Forms/Validators/VNext/PhoneNumberElementValidatorFn.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAKlB,aAAa;AAEb,MAAM,gBAAgB,GAAG,SAAS,CAAC;AACnC,MAAM,YAAY,GAAG,8CAA8C,CAAC;AAEpE;;;;;;;;;GASG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAwC;IACzE,OAAO,OAAO,CAAC,KAAK,IAAI,IAAI,IAAI,OAAO,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC;QACtD,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;YAC9B,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC;AACxC,CAAC"}
1
+ {"version":3,"file":"PhoneNumberElementValidatorFn.js","sourceRoot":"","sources":["../../../../src/Forms/Validators/VNext/PhoneNumberElementValidatorFn.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAKlB,aAAa;AAEb,MAAM,YAAY,GAAG,8CAA8C,CAAC;AAEpE;;;;;;;;;GASG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAA+C;IAChF,OAAO,OAAO,CAAC,KAAK,IAAI,IAAI,IAAI,OAAO,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC;QACtD,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;YAC9B,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC;AACxC,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAAc;IAC7C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACjE,CAAC"}
@@ -16,7 +16,7 @@ export declare class RequiredElementValidator<TElement extends IRequiredElement
16
16
  validate(): ElementValidationResult | null;
17
17
  }
18
18
  /**
19
- * A facory function for the {@link RequiredElementValidator}.
19
+ * A factory function for the {@link RequiredElementValidator}.
20
20
  *
21
21
  * @public
22
22
  * @param resolver - A *optional* message resolver to get the error message that will be displayed. When not provided, a default message will be used.
@@ -22,7 +22,7 @@ export class RequiredElementValidator extends ElementValidatorBase {
22
22
  }
23
23
  }
24
24
  /**
25
- * A facory function for the {@link RequiredElementValidator}.
25
+ * A factory function for the {@link RequiredElementValidator}.
26
26
  *
27
27
  * @public
28
28
  * @param resolver - A *optional* message resolver to get the error message that will be displayed. When not provided, a default message will be used.
@@ -11,7 +11,7 @@ import type { ElementValidationError } from './Abstracts/Interfaces/IElementVali
11
11
  * @returns null if the validation check passes, otherwise an object containing information.
12
12
  */
13
13
  export declare function requiredValidator(element: HTMLElement & {
14
- value: string;
14
+ value: string | null;
15
15
  required: boolean;
16
16
  }): Nullable<ElementValidationError>;
17
17
  //# sourceMappingURL=RequiredElementValidatorFn.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RequiredElementValidatorFn.d.ts","sourceRoot":"","sources":["../../../../src/Forms/Validators/VNext/RequiredElementValidatorFn.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAMvF;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,GAAG;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;CACrB,GAAG,QAAQ,CAAC,sBAAsB,CAAC,CAcnC"}
1
+ {"version":3,"file":"RequiredElementValidatorFn.d.ts","sourceRoot":"","sources":["../../../../src/Forms/Validators/VNext/RequiredElementValidatorFn.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAMvF;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,GAAG;IACrD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;CACrB,GAAG,QAAQ,CAAC,sBAAsB,CAAC,CAcnC"}
@@ -13,7 +13,7 @@ export declare class RequiredTrueElementValidator<TElement extends IRequiredTrue
13
13
  validate(): ElementValidationResult | null;
14
14
  }
15
15
  /**
16
- * A facory function for the {@link RequiredTrueElementValidator}.
16
+ * A factory function for the {@link RequiredTrueElementValidator}.
17
17
  *
18
18
  * @public
19
19
  * @param resolver - A *optional* message resolver to get the error message that will be displayed. When not provided, a default message will be used.
@@ -21,7 +21,7 @@ export class RequiredTrueElementValidator extends ElementValidatorBase {
21
21
  }
22
22
  }
23
23
  /**
24
- * A facory function for the {@link RequiredTrueElementValidator}.
24
+ * A factory function for the {@link RequiredTrueElementValidator}.
25
25
  *
26
26
  * @public
27
27
  * @param resolver - A *optional* message resolver to get the error message that will be displayed. When not provided, a default message will be used.