@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.
- package/Controls/Behaviors/Insetable.d.ts.map +1 -1
- package/Controls/Behaviors/Insetable.js +2 -2
- package/Controls/Behaviors/Insetable.js.map +1 -1
- package/Controls/Components/Grouping/Banner/BannerHeaderElementTemplate.d.ts.map +1 -1
- package/Controls/Components/Grouping/Banner/BannerHeaderElementTemplate.js +0 -2
- package/Controls/Components/Grouping/Banner/BannerHeaderElementTemplate.js.map +1 -1
- package/Controls/Components/Grouping/Banner/BannerSubHeaderElementTemplate.d.ts.map +1 -1
- package/Controls/Components/Grouping/Banner/BannerSubHeaderElementTemplate.js +0 -2
- package/Controls/Components/Grouping/Banner/BannerSubHeaderElementTemplate.js.map +1 -1
- package/Controls/Components/Inputs/Abstracts/InputFormatterFn.d.ts +3 -3
- package/Controls/Components/Inputs/Abstracts/InputFormatterFn.d.ts.map +1 -1
- package/Controls/Components/Inputs/Abstracts/InputFormatterFn.js +4 -4
- package/Controls/Components/Inputs/Abstracts/InputFormatterFn.js.map +1 -1
- package/Controls/Components/Inputs/Abstracts/InputParserFn.d.ts +3 -3
- package/Controls/Components/Inputs/Abstracts/InputParserFn.d.ts.map +1 -1
- package/Controls/Components/Inputs/Abstracts/InputParserFn.js +4 -4
- package/Controls/Components/Inputs/Abstracts/InputParserFn.js.map +1 -1
- package/Controls/Components/Inputs/ChipBox/ChipBoxElement.js +2 -2
- package/Controls/Components/Inputs/ChipBox/ChipBoxElement.js.map +1 -1
- package/Controls/Components/Inputs/ColorBox/ColorBoxElement.d.ts +10 -0
- package/Controls/Components/Inputs/ColorBox/ColorBoxElement.d.ts.map +1 -1
- package/Controls/Components/Inputs/ColorBox/ColorBoxElement.js +23 -0
- package/Controls/Components/Inputs/ColorBox/ColorBoxElement.js.map +1 -1
- package/Controls/Components/Inputs/ColorBox/IColorBoxElementProps.d.ts +2 -0
- package/Controls/Components/Inputs/ColorBox/IColorBoxElementProps.d.ts.map +1 -1
- package/Controls/Components/Inputs/ColorBox/Themes/ColorBoxElement.Cosmopolitan.d.ts.map +1 -1
- package/Controls/Components/Inputs/ColorBox/Themes/ColorBoxElement.Cosmopolitan.js +12 -0
- package/Controls/Components/Inputs/ColorBox/Themes/ColorBoxElement.Cosmopolitan.js.map +1 -1
- package/Controls/Components/Inputs/ColorBox/Themes/ColorBoxElement.Joy.d.ts.map +1 -1
- package/Controls/Components/Inputs/ColorBox/Themes/ColorBoxElement.Joy.js +12 -0
- package/Controls/Components/Inputs/ColorBox/Themes/ColorBoxElement.Joy.js.map +1 -1
- package/Controls/Components/Inputs/ColorBox/Themes/ColorBoxElement.Retro.d.ts.map +1 -1
- package/Controls/Components/Inputs/ColorBox/Themes/ColorBoxElement.Retro.js +12 -0
- package/Controls/Components/Inputs/ColorBox/Themes/ColorBoxElement.Retro.js.map +1 -1
- package/Controls/Components/Inputs/DateBox/DateBoxElement.d.ts +11 -1
- package/Controls/Components/Inputs/DateBox/DateBoxElement.d.ts.map +1 -1
- package/Controls/Components/Inputs/DateBox/DateBoxElement.js +26 -4
- package/Controls/Components/Inputs/DateBox/DateBoxElement.js.map +1 -1
- package/Controls/Components/Inputs/DateBox/IDateBoxElementProps.d.ts +2 -0
- package/Controls/Components/Inputs/DateBox/IDateBoxElementProps.d.ts.map +1 -1
- package/Controls/Components/Inputs/DateBox/Themes/DateBoxElement.Cosmopolitan.d.ts.map +1 -1
- package/Controls/Components/Inputs/DateBox/Themes/DateBoxElement.Cosmopolitan.js +12 -0
- package/Controls/Components/Inputs/DateBox/Themes/DateBoxElement.Cosmopolitan.js.map +1 -1
- package/Controls/Components/Inputs/DateBox/Themes/DateBoxElement.Joy.d.ts.map +1 -1
- package/Controls/Components/Inputs/DateBox/Themes/DateBoxElement.Joy.js +12 -0
- package/Controls/Components/Inputs/DateBox/Themes/DateBoxElement.Joy.js.map +1 -1
- package/Controls/Components/Inputs/DateBox/Themes/DateBoxElement.Retro.d.ts.map +1 -1
- package/Controls/Components/Inputs/DateBox/Themes/DateBoxElement.Retro.js +12 -0
- package/Controls/Components/Inputs/DateBox/Themes/DateBoxElement.Retro.js.map +1 -1
- package/Controls/Components/Inputs/DateTimeBox/DateTimeBoxElement.d.ts +11 -1
- package/Controls/Components/Inputs/DateTimeBox/DateTimeBoxElement.d.ts.map +1 -1
- package/Controls/Components/Inputs/DateTimeBox/DateTimeBoxElement.js +26 -4
- package/Controls/Components/Inputs/DateTimeBox/DateTimeBoxElement.js.map +1 -1
- package/Controls/Components/Inputs/DateTimeBox/IDateTimeBoxElementProps.d.ts +2 -0
- package/Controls/Components/Inputs/DateTimeBox/IDateTimeBoxElementProps.d.ts.map +1 -1
- package/Controls/Components/Inputs/DateTimeBox/Themes/DateTimeBoxElement.Cosmopolitan.d.ts.map +1 -1
- package/Controls/Components/Inputs/DateTimeBox/Themes/DateTimeBoxElement.Cosmopolitan.js +12 -0
- package/Controls/Components/Inputs/DateTimeBox/Themes/DateTimeBoxElement.Cosmopolitan.js.map +1 -1
- package/Controls/Components/Inputs/DateTimeBox/Themes/DateTimeBoxElement.Joy.d.ts.map +1 -1
- package/Controls/Components/Inputs/DateTimeBox/Themes/DateTimeBoxElement.Joy.js +12 -0
- package/Controls/Components/Inputs/DateTimeBox/Themes/DateTimeBoxElement.Joy.js.map +1 -1
- package/Controls/Components/Inputs/DateTimeBox/Themes/DateTimeBoxElement.Retro.d.ts.map +1 -1
- package/Controls/Components/Inputs/DateTimeBox/Themes/DateTimeBoxElement.Retro.js +12 -0
- package/Controls/Components/Inputs/DateTimeBox/Themes/DateTimeBoxElement.Retro.js.map +1 -1
- package/Controls/Components/Inputs/FileUpload/FileUploadItemElement.js +2 -2
- package/Controls/Components/Inputs/FileUpload/FileUploadItemElement.js.map +1 -1
- package/Controls/Components/Inputs/NumberBox/INumberBoxElementProps.d.ts +3 -0
- package/Controls/Components/Inputs/NumberBox/INumberBoxElementProps.d.ts.map +1 -1
- package/Controls/Components/Inputs/NumberBox/NumberBoxElement.d.ts +19 -0
- package/Controls/Components/Inputs/NumberBox/NumberBoxElement.d.ts.map +1 -1
- package/Controls/Components/Inputs/NumberBox/NumberBoxElement.js +45 -0
- package/Controls/Components/Inputs/NumberBox/NumberBoxElement.js.map +1 -1
- package/Controls/Components/Inputs/NumberBox/NumberBoxElementTemplate.d.ts.map +1 -1
- package/Controls/Components/Inputs/NumberBox/NumberBoxElementTemplate.js +2 -0
- package/Controls/Components/Inputs/NumberBox/NumberBoxElementTemplate.js.map +1 -1
- package/Controls/Components/Inputs/NumberBox/Themes/NumberBoxElement.Cosmopolitan.d.ts.map +1 -1
- package/Controls/Components/Inputs/NumberBox/Themes/NumberBoxElement.Cosmopolitan.js +12 -0
- package/Controls/Components/Inputs/NumberBox/Themes/NumberBoxElement.Cosmopolitan.js.map +1 -1
- package/Controls/Components/Inputs/NumberBox/Themes/NumberBoxElement.Joy.d.ts.map +1 -1
- package/Controls/Components/Inputs/NumberBox/Themes/NumberBoxElement.Joy.js +12 -0
- package/Controls/Components/Inputs/NumberBox/Themes/NumberBoxElement.Joy.js.map +1 -1
- package/Controls/Components/Inputs/NumberBox/Themes/NumberBoxElement.Retro.d.ts.map +1 -1
- package/Controls/Components/Inputs/NumberBox/Themes/NumberBoxElement.Retro.js +12 -0
- package/Controls/Components/Inputs/NumberBox/Themes/NumberBoxElement.Retro.js.map +1 -1
- package/Controls/Components/Inputs/PasswordBox/IPasswordBoxElementProps.d.ts +2 -0
- package/Controls/Components/Inputs/PasswordBox/IPasswordBoxElementProps.d.ts.map +1 -1
- package/Controls/Components/Inputs/PasswordBox/PasswordBoxElement.d.ts +10 -0
- package/Controls/Components/Inputs/PasswordBox/PasswordBoxElement.d.ts.map +1 -1
- package/Controls/Components/Inputs/PasswordBox/PasswordBoxElement.js +23 -0
- package/Controls/Components/Inputs/PasswordBox/PasswordBoxElement.js.map +1 -1
- package/Controls/Components/Inputs/PasswordBox/Themes/PasswordBoxElement.Cosmopolitan.d.ts.map +1 -1
- package/Controls/Components/Inputs/PasswordBox/Themes/PasswordBoxElement.Cosmopolitan.js +12 -0
- package/Controls/Components/Inputs/PasswordBox/Themes/PasswordBoxElement.Cosmopolitan.js.map +1 -1
- package/Controls/Components/Inputs/PasswordBox/Themes/PasswordBoxElement.Joy.d.ts.map +1 -1
- package/Controls/Components/Inputs/PasswordBox/Themes/PasswordBoxElement.Joy.js +12 -0
- package/Controls/Components/Inputs/PasswordBox/Themes/PasswordBoxElement.Joy.js.map +1 -1
- package/Controls/Components/Inputs/PasswordBox/Themes/PasswordBoxElement.Retro.d.ts.map +1 -1
- package/Controls/Components/Inputs/PasswordBox/Themes/PasswordBoxElement.Retro.js +12 -0
- package/Controls/Components/Inputs/PasswordBox/Themes/PasswordBoxElement.Retro.js.map +1 -1
- package/Controls/Components/Inputs/SearchBox/SearchBoxElement.d.ts +10 -0
- package/Controls/Components/Inputs/SearchBox/SearchBoxElement.d.ts.map +1 -1
- package/Controls/Components/Inputs/SearchBox/SearchBoxElement.js +25 -2
- package/Controls/Components/Inputs/SearchBox/SearchBoxElement.js.map +1 -1
- package/Controls/Components/Inputs/SearchBox/Themes/SearchBoxElement.Cosmopolitan.d.ts.map +1 -1
- package/Controls/Components/Inputs/SearchBox/Themes/SearchBoxElement.Cosmopolitan.js +12 -0
- package/Controls/Components/Inputs/SearchBox/Themes/SearchBoxElement.Cosmopolitan.js.map +1 -1
- package/Controls/Components/Inputs/SearchBox/Themes/SearchBoxElement.Joy.d.ts.map +1 -1
- package/Controls/Components/Inputs/SearchBox/Themes/SearchBoxElement.Joy.js +12 -0
- package/Controls/Components/Inputs/SearchBox/Themes/SearchBoxElement.Joy.js.map +1 -1
- package/Controls/Components/Inputs/SearchBox/Themes/SearchBoxElement.Retro.d.ts.map +1 -1
- package/Controls/Components/Inputs/SearchBox/Themes/SearchBoxElement.Retro.js +12 -0
- package/Controls/Components/Inputs/SearchBox/Themes/SearchBoxElement.Retro.js.map +1 -1
- package/Controls/Components/Inputs/Select/ISelectElementProps.d.ts +2 -0
- package/Controls/Components/Inputs/Select/ISelectElementProps.d.ts.map +1 -1
- package/Controls/Components/Inputs/Select/SelectElement.d.ts +10 -0
- package/Controls/Components/Inputs/Select/SelectElement.d.ts.map +1 -1
- package/Controls/Components/Inputs/Select/SelectElement.js +23 -0
- package/Controls/Components/Inputs/Select/SelectElement.js.map +1 -1
- package/Controls/Components/Inputs/Select/Themes/SelectElement.Cosmopolitan.d.ts.map +1 -1
- package/Controls/Components/Inputs/Select/Themes/SelectElement.Cosmopolitan.js +12 -0
- package/Controls/Components/Inputs/Select/Themes/SelectElement.Cosmopolitan.js.map +1 -1
- package/Controls/Components/Inputs/Select/Themes/SelectElement.Joy.d.ts.map +1 -1
- package/Controls/Components/Inputs/Select/Themes/SelectElement.Joy.js +12 -0
- package/Controls/Components/Inputs/Select/Themes/SelectElement.Joy.js.map +1 -1
- package/Controls/Components/Inputs/Select/Themes/SelectElement.Retro.d.ts.map +1 -1
- package/Controls/Components/Inputs/Select/Themes/SelectElement.Retro.js +12 -0
- package/Controls/Components/Inputs/Select/Themes/SelectElement.Retro.js.map +1 -1
- package/Controls/Components/Inputs/TextBox/ITextBoxElementProps.d.ts +2 -0
- package/Controls/Components/Inputs/TextBox/ITextBoxElementProps.d.ts.map +1 -1
- package/Controls/Components/Inputs/TextBox/TextBoxElement.d.ts +10 -0
- package/Controls/Components/Inputs/TextBox/TextBoxElement.d.ts.map +1 -1
- package/Controls/Components/Inputs/TextBox/TextBoxElement.js +23 -0
- package/Controls/Components/Inputs/TextBox/TextBoxElement.js.map +1 -1
- package/Controls/Components/Inputs/TextBox/Themes/TextBoxElement.Cosmopolitan.d.ts.map +1 -1
- package/Controls/Components/Inputs/TextBox/Themes/TextBoxElement.Cosmopolitan.js +12 -0
- package/Controls/Components/Inputs/TextBox/Themes/TextBoxElement.Cosmopolitan.js.map +1 -1
- package/Controls/Components/Inputs/TextBox/Themes/TextBoxElement.Joy.d.ts.map +1 -1
- package/Controls/Components/Inputs/TextBox/Themes/TextBoxElement.Joy.js +12 -0
- package/Controls/Components/Inputs/TextBox/Themes/TextBoxElement.Joy.js.map +1 -1
- package/Controls/Components/Inputs/TextBox/Themes/TextBoxElement.Retro.d.ts.map +1 -1
- package/Controls/Components/Inputs/TextBox/Themes/TextBoxElement.Retro.js +12 -0
- package/Controls/Components/Inputs/TextBox/Themes/TextBoxElement.Retro.js.map +1 -1
- package/Controls/Components/Inputs/TimeBox/ITimeBoxElementProps.d.ts +2 -0
- package/Controls/Components/Inputs/TimeBox/ITimeBoxElementProps.d.ts.map +1 -1
- package/Controls/Components/Inputs/TimeBox/Themes/TimeBoxElement.Cosmopolitan.d.ts.map +1 -1
- package/Controls/Components/Inputs/TimeBox/Themes/TimeBoxElement.Cosmopolitan.js +14 -2
- package/Controls/Components/Inputs/TimeBox/Themes/TimeBoxElement.Cosmopolitan.js.map +1 -1
- package/Controls/Components/Inputs/TimeBox/Themes/TimeBoxElement.Joy.d.ts.map +1 -1
- package/Controls/Components/Inputs/TimeBox/Themes/TimeBoxElement.Joy.js +14 -2
- package/Controls/Components/Inputs/TimeBox/Themes/TimeBoxElement.Joy.js.map +1 -1
- package/Controls/Components/Inputs/TimeBox/Themes/TimeBoxElement.Retro.d.ts.map +1 -1
- package/Controls/Components/Inputs/TimeBox/Themes/TimeBoxElement.Retro.js +14 -2
- package/Controls/Components/Inputs/TimeBox/Themes/TimeBoxElement.Retro.js.map +1 -1
- package/Controls/Components/Inputs/TimeBox/TimeBoxElement.d.ts +10 -0
- package/Controls/Components/Inputs/TimeBox/TimeBoxElement.d.ts.map +1 -1
- package/Controls/Components/Inputs/TimeBox/TimeBoxElement.js +23 -0
- package/Controls/Components/Inputs/TimeBox/TimeBoxElement.js.map +1 -1
- package/Controls/Components/Primitives/Abstracts/UpDown/Abstracts/UpDownBaseElement.d.ts +1 -1
- package/Controls/Components/Primitives/Abstracts/UpDown/Abstracts/UpDownBaseElement.d.ts.map +1 -1
- package/Controls/Components/Primitives/Abstracts/UpDown/Abstracts/UpDownBaseElement.js +4 -4
- package/Controls/Components/Primitives/Abstracts/UpDown/Abstracts/UpDownBaseElement.js.map +1 -1
- package/Controls/Components/Primitives/Abstracts/UpDown/NumberUpDownElement.d.ts +0 -8
- package/Controls/Components/Primitives/Abstracts/UpDown/NumberUpDownElement.d.ts.map +1 -1
- package/Controls/Components/Primitives/Abstracts/UpDown/NumberUpDownElement.js +14 -18
- package/Controls/Components/Primitives/Abstracts/UpDown/NumberUpDownElement.js.map +1 -1
- package/Controls/Components/Primitives/Text/TextElement.d.ts +1 -1
- package/Controls/Components/Primitives/Text/TextElement.js +5 -5
- package/Controls/Components/Primitives/Text/TextElement.js.map +1 -1
- package/Controls/Types/AutoCompleteTextSearchMode.d.ts.map +1 -1
- package/Controls/Types/AutoCompleteTextSearchMode.js.map +1 -1
- package/Controls/Types/FabGroupDirection.d.ts +1 -1
- package/Controls/Types/FabGroupDirection.js +1 -1
- package/Controls/Types/FileUploadView.d.ts +1 -1
- package/Controls/Types/FileUploadView.js +1 -1
- package/Controls/Types/InkBarPosition.d.ts +1 -1
- package/Controls/Types/InkBarPosition.js +1 -1
- package/Controls/Types/Inset.d.ts +16 -11
- package/Controls/Types/Inset.d.ts.map +1 -1
- package/Controls/Types/Inset.js +16 -16
- package/Controls/Types/Inset.js.map +1 -1
- package/Controls/Types/Size.d.ts +1 -1
- package/Controls/Types/Size.js +1 -1
- package/Controls/Types/TabPanelAlignment.d.ts +1 -1
- package/Controls/Types/TabPanelAlignment.js +1 -1
- package/Controls/Types/TextAlignment.d.ts +0 -4
- package/Controls/Types/TextAlignment.d.ts.map +1 -1
- package/Controls/Types/TextAlignment.js +4 -4
- package/Controls/Types/TextAlignment.js.map +1 -1
- package/Controls/Types/TickLabelPosition.d.ts +1 -1
- package/Controls/Types/TickLabelPosition.js +1 -1
- package/Forms/Validators/VNext/Abstracts/ElementValidatorBase.d.ts.map +1 -1
- package/Forms/Validators/VNext/Abstracts/ElementValidatorBase.js +2 -4
- package/Forms/Validators/VNext/Abstracts/ElementValidatorBase.js.map +1 -1
- package/Forms/Validators/VNext/BlankElementValidator.d.ts +5 -1
- package/Forms/Validators/VNext/BlankElementValidator.d.ts.map +1 -1
- package/Forms/Validators/VNext/BlankElementValidator.js +5 -2
- package/Forms/Validators/VNext/BlankElementValidator.js.map +1 -1
- package/Forms/Validators/VNext/BlankElementValidatorFn.d.ts +8 -1
- package/Forms/Validators/VNext/BlankElementValidatorFn.d.ts.map +1 -1
- package/Forms/Validators/VNext/BlankElementValidatorFn.js +15 -4
- package/Forms/Validators/VNext/BlankElementValidatorFn.js.map +1 -1
- package/Forms/Validators/VNext/EmailElementValidator.d.ts +5 -1
- package/Forms/Validators/VNext/EmailElementValidator.d.ts.map +1 -1
- package/Forms/Validators/VNext/EmailElementValidator.js +5 -2
- package/Forms/Validators/VNext/EmailElementValidator.js.map +1 -1
- package/Forms/Validators/VNext/EmailElementValidatorFn.d.ts +8 -1
- package/Forms/Validators/VNext/EmailElementValidatorFn.d.ts.map +1 -1
- package/Forms/Validators/VNext/EmailElementValidatorFn.js +11 -5
- package/Forms/Validators/VNext/EmailElementValidatorFn.js.map +1 -1
- package/Forms/Validators/VNext/EqualsToElementValidator.d.ts +5 -1
- package/Forms/Validators/VNext/EqualsToElementValidator.d.ts.map +1 -1
- package/Forms/Validators/VNext/EqualsToElementValidator.js +5 -2
- package/Forms/Validators/VNext/EqualsToElementValidator.js.map +1 -1
- package/Forms/Validators/VNext/EqualsToElementValidatorFn.d.ts +8 -0
- package/Forms/Validators/VNext/EqualsToElementValidatorFn.d.ts.map +1 -1
- package/Forms/Validators/VNext/EqualsToElementValidatorFn.js +16 -2
- package/Forms/Validators/VNext/EqualsToElementValidatorFn.js.map +1 -1
- package/Forms/Validators/VNext/MaxElementValidator.d.ts +1 -1
- package/Forms/Validators/VNext/MaxElementValidator.js +1 -1
- package/Forms/Validators/VNext/MaxLengthElementValidator.d.ts +1 -1
- package/Forms/Validators/VNext/MaxLengthElementValidator.js +1 -1
- package/Forms/Validators/VNext/MinElementValidator.d.ts +1 -1
- package/Forms/Validators/VNext/MinElementValidator.js +1 -1
- package/Forms/Validators/VNext/MinLengthElementValidator.d.ts +1 -1
- package/Forms/Validators/VNext/MinLengthElementValidator.js +1 -1
- package/Forms/Validators/VNext/NumericElementValidator.d.ts +5 -1
- package/Forms/Validators/VNext/NumericElementValidator.d.ts.map +1 -1
- package/Forms/Validators/VNext/NumericElementValidator.js +5 -2
- package/Forms/Validators/VNext/NumericElementValidator.js.map +1 -1
- package/Forms/Validators/VNext/NumericElementValidatorFn.d.ts +8 -1
- package/Forms/Validators/VNext/NumericElementValidatorFn.d.ts.map +1 -1
- package/Forms/Validators/VNext/NumericElementValidatorFn.js +15 -2
- package/Forms/Validators/VNext/NumericElementValidatorFn.js.map +1 -1
- package/Forms/Validators/VNext/PatternElementValidator.d.ts +1 -1
- package/Forms/Validators/VNext/PatternElementValidator.js +1 -1
- package/Forms/Validators/VNext/PatternElementValidatorFn.js +2 -2
- package/Forms/Validators/VNext/PatternElementValidatorFn.js.map +1 -1
- package/Forms/Validators/VNext/PhoneNumberElementValidator.d.ts +5 -1
- package/Forms/Validators/VNext/PhoneNumberElementValidator.d.ts.map +1 -1
- package/Forms/Validators/VNext/PhoneNumberElementValidator.js +5 -2
- package/Forms/Validators/VNext/PhoneNumberElementValidator.js.map +1 -1
- package/Forms/Validators/VNext/PhoneNumberElementValidatorFn.d.ts +8 -1
- package/Forms/Validators/VNext/PhoneNumberElementValidatorFn.d.ts.map +1 -1
- package/Forms/Validators/VNext/PhoneNumberElementValidatorFn.js +9 -1
- package/Forms/Validators/VNext/PhoneNumberElementValidatorFn.js.map +1 -1
- package/Forms/Validators/VNext/RequiredElementValidator.d.ts +1 -1
- package/Forms/Validators/VNext/RequiredElementValidator.js +1 -1
- package/Forms/Validators/VNext/RequiredElementValidatorFn.d.ts +1 -1
- package/Forms/Validators/VNext/RequiredElementValidatorFn.d.ts.map +1 -1
- package/Forms/Validators/VNext/RequiredTrueElementValidator.d.ts +1 -1
- package/Forms/Validators/VNext/RequiredTrueElementValidator.js +1 -1
- package/custom-elements.json +206 -4
- 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
|
|
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;
|
|
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,
|
|
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
|
|
14
|
+
return isNumericValue(control.value)
|
|
15
15
|
? null
|
|
16
|
-
: {
|
|
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,
|
|
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
|
|
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
|
|
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,
|
|
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
|
|
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;
|
|
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
|
|
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;
|
|
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;
|
|
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,
|
|
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
|
|
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
|
|
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;
|
|
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
|
|
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
|
|
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.
|