mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 00:03:33 +10:00
41 lines
945 B
TypeScript
41 lines
945 B
TypeScript
export const numberFormatValues = [
|
|
{
|
|
label: '123,456,789.00',
|
|
value: '123,456,789.00',
|
|
regex: /^(?:\d{1,3}(?:,\d{3})*|\d+)(?:\.\d{1,2})?$/,
|
|
},
|
|
{
|
|
label: '123.456.789,00',
|
|
value: '123.456.789,00',
|
|
regex: /^(?:\d{1,3}(?:\.\d{3})*|\d+)(?:,\d{1,2})?$/,
|
|
},
|
|
{
|
|
label: '123456,789.00',
|
|
value: '123456,789.00',
|
|
regex: /^(?:\d+)(?:,\d{1,3}(?:\.\d{1,2})?)?$/,
|
|
},
|
|
];
|
|
|
|
export enum CheckboxValidationRules {
|
|
SELECT_AT_LEAST = 'Select at least',
|
|
SELECT_EXACTLY = 'Select exactly',
|
|
SELECT_AT_MOST = 'Select at most',
|
|
}
|
|
|
|
export const checkboxValidationRules = ['Select at least', 'Select exactly', 'Select at most'];
|
|
export const checkboxValidationLength = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
export const checkboxValidationSigns = [
|
|
{
|
|
label: 'Select at least',
|
|
value: '>=',
|
|
},
|
|
{
|
|
label: 'Select exactly',
|
|
value: '=',
|
|
},
|
|
{
|
|
label: 'Select at most',
|
|
value: '<=',
|
|
},
|
|
] as const;
|