@zohodesk/components
Version:
In this Package, we Provide Some Basic Components to Build Web App
57 lines (56 loc) • 1.68 kB
JavaScript
export const defaultFormat = 'dd-MM-yyyy';
export const supportedPatterns = ['.', '/', '-', ' ']; // RESTRICTED PATTERNS - ['@']
export const patternChangeStr = '@';
export const patternSplitStr = '@';
export const INCONSTANT = 'INCONSTANT';
export const INVALID_DATE = 'Invalid Date';
export const flags = {
day: ['DD', 'dd'],
month: ['MM', 'MMM', 'MMMM'],
year: ['YYYY', 'yyyy', 'yy', 'YY'],
DD: {
type: 'day',
length: 2
},
dd: {
type: 'day',
length: 2
},
// d: { type: 'day', length: 1 },
MM: {
type: 'month',
length: 2
},
MMM: {
type: 'month',
length: INCONSTANT
},
MMMM: {
type: 'month',
length: INCONSTANT
},
// M: { type: 'month', length: 1 },
YYYY: {
type: 'year',
length: 4
},
yyyy: {
type: 'year',
length: 4
},
yy: {
type: 'year',
length: 2
},
YY: {
type: 'year',
length: 2
}
};
export const monthNamesDefault = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
export const monthNamesShortDefault = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
export const dayNamesDefault = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
export const dayNamesShortDefault = ['S', 'M', 'T', 'W', 'T', 'F', 'S'];
export const ampmTextDefault = ['AM', 'PM'];
export const i18nShortMonths = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
export const i18nMonths = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];