@tsed/schema-formio
Version:
Transform Ts.ED Schema & JsonSchema to a valid Formio schema
45 lines (44 loc) • 993 B
JavaScript
import { Component } from "./component.js";
/**
* An input mask helps the user with input by ensuring a predefined format.
*
* - 9: numeric
* - a: alphabetical
* - *: alphanumeric
*
* Example telephone mask: (999) 999-9999
*
* See the [jquery.inputmask](https://github.com/RobinHerbots/Inputmask) documentation for more information.
*
* @decorator
* @formio
* @property
* @schema
*/
export function Mask(inputMask, inputMaskPlaceholderChar = "") {
return Component({
inputMask,
inputMaskPlaceholderChar
});
}
/**
* An input mask helps the user with input by ensuring a predefined format.
*
* - 9: numeric
* - a: alphabetical
* - *: alphanumeric
*
* Example telephone mask: (999) 999-9999
*
* See the [jquery.inputmask](https://github.com/RobinHerbots/Inputmask) documentation for more information.
*
* @decorator
* @formio
* @property
* @schema
*/
export function Masks(...inputMasks) {
return Component({
inputMasks
});
}