UNPKG

@true-directive/base

Version:

The set of base classes for the TrueDirective Grid

27 lines (26 loc) 1.28 kB
var MaskSettings = /** @class */ (function () { function MaskSettings(placeholder, // Placeholder char replaceMode // Replace mode - on carriage position change // current char is selected ) { if (replaceMode === void 0) { replaceMode = true; } this.placeholder = placeholder; this.replaceMode = replaceMode; // Autocorrection of section's value. If value entered is bigger than // Maximum - replaced with maxValue, if less than minimum - with minValue. this.autoCorrect = true; // On start of input placeholders are added automatically this.appendPlaceholders = true; // Allow values, for which input had not been completed (placeholders are present or length doesn't comply to a mask) this.allowIncomplete = false; // ArrowUp and ArrowDown keys change values to previous and next this.incDecByArrows = false; // If set to true, moving to an icnomplete section with predefined set of values, // first value of the set will be entered automatically this.defaultOptions = true; // New type of section can be added this.sectionTypes = []; } return MaskSettings; }()); export { MaskSettings };