Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | 28x 28x 28x 28x 28x 28x 28x 28x 28x 28x 28x 28x 28x 28x 28x 28x 28x 28x 28x 28x 28x 28x 28x 28x 28x 28x 28x 28x 28x 28x 28x 218x | import { ArrayFormatType } from './storage/interfaces';
import { IDictionary } from './utils';
export type Mode = 'development' | 'production';
export interface IConfig {
datasourceLimit?: number;
datasourceArrayFormat?: ArrayFormatType;
dateFormat?: string;
displayFormat?: string;
dateInputFormat?: string;
timeInputFormat?: string;
displayTimeFormat?: string;
dateTimeFormat?: string;
displayDateTimeFormat?: string;
endPoint?: string;
env?: IDictionary;
mobileBreakpoint?: number;
monthFormat?: string;
monthDisplayFormat?: string;
monthInputFormat?: string;
masks?: IDictionary<IDictionary>;
homeUrl?: string;
language?: string;
metadataEndPoint?: string;
mode?: Mode;
reportsEndPoint?: string;
reportsFileEndPoint?: string;
reportsClientLogo?: string;
reportsEnterpriseLogo?: string;
reportsProductLogo?: string;
iterableSearchVisibleOnly?: boolean;
gridSelectAllPages?: boolean;
timeFormat?: string;
title?: string;
valueTimeFormat?: string;
baseUrl?: string;
}
/**
* Class that exposes the app configuration
*/
export class Config {
public static datasourceLimit = 10;
public static datasourceArrayFormat: ArrayFormatType = 'repeat';
public static dateFormat = 'MM-DD-YYYY';
public static displayFormat = 'MM-DD-YYYY';
public static dateInputFormat?: string = undefined;
public static timeInputFormat?: string = undefined;
public static dateTimeFormat = 'MM-DD-YYYY HH:mm:ss';
public static displayDateTimeFormat = 'MM-DD-YYYY HH:mm:ss';
public static valueTimeFormat = 'HH:mm';
public static displayTimeFormat = 'hh:mm A';
public static monthFormat = 'MM-YYYY';
public static monthDisplayFormat = 'MM-YYYY';
public static monthInputFormat?: string = undefined;
public static endPoint = '';
public static env: IDictionary = {};
public static mobileBreakpoint = 600;
public static homeUrl = '';
public static language = 'en-US';
public static masks: IDictionary<IDictionary> = {
numberMask: {
decimalPlaces: 2,
decimalCharacter: '.',
},
currencyMask: {
decimalPlaces: 2,
currencySymbol: '$',
},
};
public static metadataEndPoint = '';
public static mode: Mode = 'development';
public static reportsEndPoint = 'https://zhreport.teknisa.com';
public static reportsFileEndPoint = 'https://zhreport.teknisa.com/reports/';
public static reportsClientLogo = '';
public static reportsEnterpriseLogo = '';
public static reportsProductLogo = '';
public static iterableSearchVisibleOnly = true;
public static gridSelectAllPages = false;
public static timeFormat: 'ampm';
public static title = '';
public static baseUrl = '';
public static set(config: IConfig) {
Object.assign(Config, config);
}
}
|