### Index

- actionToReducerMap (packages/.../app.reducers.ts)
- actionToReducerMap (packages/.../i18n.reducers.ts)
- actionToReducerMap (packages/.../locale.reducers.ts)
- actionToReducerMap (packages/.../notifications.reducers.ts)
- actionToReducerMap (packages/.../user.reducers.ts)
- addApiQueueItem (packages/.../app.reducers.ts)
- AddAppLoadedConfigModules (packages/.../eui-core.module.ts)
- BASE_LOGGER_NAME_TOKEN (packages/.../log.service.ts)
- BASE_NAME_TOKEN (packages/.../tokens.ts)
- cb (packages/.../meta.reducers.ts)
- closestMatchingParent (packages/.../dom-helpers.ts)
- CONFIG_TOKEN (packages/.../tokens.ts)
- consumeEvent (packages/.../event-helpers.ts)
- CORE_ROOT_GUARD (packages/.../eui-core.module.ts)
- coreAppReducers (packages/.../app.reducers.ts)
- coreLocaleReducers (packages/.../locale.reducers.ts)
- coreNotificationsReducers (packages/.../notifications.reducers.ts)
- coreReducers (packages/.../core.reducers.ts)
- coreUserReducers (packages/.../user.reducers.ts)
- corI18nReducers (packages/.../i18n.reducers.ts)
- createEuiCoreRootGuard (packages/.../eui-core.module.ts)
- DEFAULT_EUI_APP_CONFIG (packages/.../defaults.ts)
- DEFAULT_EUI_CONFIG (packages/.../defaults.ts)
- DEFAULT_EUI_ENV_CONFIG (packages/.../defaults.ts)
- DEFAULT_GLOBAL_CONFIG (packages/.../defaults.ts)
- DEFAULT_HTTP_ERROR_HANDLER_CONFIG (packages/.../defaults.ts)
- DEFAULT_I18N_LOADER_CONFIG (packages/.../defaults.ts)
- DEFAULT_I18N_SERVICE_CONFIG (packages/.../defaults.ts)
- DEFAULT_LANGUAGE (packages/.../translate.module.mock.ts)
- DEFAULT_LOCALE_SERVICE_CONFIG (packages/.../defaults.ts)
- DEFAULT_LOG_CONFIG (packages/.../defaults.ts)
- diffDays (packages/.../date-helpers.ts)
- diffDaysFromToday (packages/.../date-helpers.ts)
- disallowedKeys (packages/.../meta.reducers.ts)
- DYNAMIC_COMPONENT_CONFIG (packages/.../dynamic-component.service.ts)
- emptyApiQueue (packages/.../app.reducers.ts)
- errorCodes (packages/.../eui.error.ts)
- EUI_CONFIG_TOKEN (packages/.../tokens.ts)
- EUI_COUNTRIES (packages/.../eui-timezone.service.ts)
- EUI_TIMEZONES (packages/.../eui-timezone.service.ts)
- euiCoreRootGuardClass (packages/.../eui-core.module.ts)
- filterAppState (packages/.../meta.reducers.ts)
- formatNumber (packages/.../format-helpers.ts)
- getLastAddedModule (packages/.../i18n.service.ts)
- getStyle (packages/.../dom-helpers.ts)
- getViewElement (packages/.../dom-helpers.ts)
- GLOBAL_CONFIG_TOKEN (packages/.../tokens.ts)
- handleError (packages/.../http-helpers.ts)
- HTTP_ERROR_HANDLER_CONFIG_TOKEN (packages/.../tokens.ts)
- init (packages/.../eui-init-app.ts)
- initialState (packages/.../eui-app-shell.service.ts)
- initialState (packages/.../eui-theme.service.ts)
- isDefined (packages/.../utils.ts)
- isStaticPositioned (packages/.../dom-helpers.ts)
- LANG_PARAM_KEY (packages/.../add-lang-param.interceptor.ts)
- loadState (packages/.../meta.reducers.ts)
- LOCAL_FORAGE_SERVICE_CONFIG_TOKEN (packages/.../local-forage.service.ts)
- LOCALE_ID_MAPPER (packages/.../locale.service.ts)
- localForage (packages/.../local-forage.service.ts)
- LOG_APPENDERS_TOKEN (packages/.../log.service.ts)
- LOG_INSTANCES (packages/.../log.ts)
- LOG_LEVEL_TOKEN (packages/.../log.service.ts)
- LOG_MODULE_CONFIG_TOKEN (packages/.../log.module.ts)
- markControlsTouched (packages/.../form-helpers.ts)
- markFormGroupTouched (packages/.../form-helpers.ts)
- messages (packages/.../eui.error.ts)
- MODULE_CONFIG_TOKEN (packages/.../tokens.ts)
- MODULE_NAME_TOKEN (packages/.../tokens.ts)
- offset (packages/.../dom-helpers.ts)
- parentOffsetEl (packages/.../dom-helpers.ts)
- PLATFORM_BROWSER_ID (packages/.../store.service.mock.ts)
- position (packages/.../dom-helpers.ts)
- removeApiQueueItem (packages/.../app.reducers.ts)
- ROOT_LOG_CONFIG_TOKEN (packages/.../tokens.ts)
- roundUpNumber (packages/.../format-helpers.ts)
- SHOW_CONNECTION_STATUS_TOKEN (packages/.../tokens.ts)
- testBed (packages/.../test-setup.ts)
- translateConfig (packages/.../i18n.loader.ts)
- TRANSLATED_STRING (packages/.../translate.module.mock.ts)
- uniqueId (packages/.../format-helpers.ts)
- updateAppConnection (packages/.../app.reducers.ts)
- updateAppStatus (packages/.../app.reducers.ts)
- updateAppVersion (packages/.../app.reducers.ts)
- updateCurrentModule (packages/.../app.reducers.ts)
- updateI18nState (packages/.../i18n.reducers.ts)
- updateLocaleState (packages/.../locale.reducers.ts)
- updateNotificationsList (packages/.../notifications.reducers.ts)
- updateUser (packages/.../user.reducers.ts)
- updateUserDashboard (packages/.../user.reducers.ts)
- updateUserDetails (packages/.../user.reducers.ts)
- updateUserPreferences (packages/.../user.reducers.ts)
- updateUserRights (packages/.../user.reducers.ts)
- UX_ERROR_MAPPING_HANDLER_TOKEN (packages/.../ux-request-error-model.interceptor.ts)
- validateEmail (packages/.../form-helpers.ts)

### packages/core/src/lib/services/store/reducers/app.reducers.ts

###

actionToReducerMap
Type : `literal type`

Default value : `{ [CoreAppActionTypes.UPDATE_APP_VERSION]: updateAppVersion, [CoreAppActionTypes.UPDATE_APP_CONNECTION]: updateAppConnection, [CoreAppActionTypes.UPDATE_APP_STATUS]: updateAppStatus, [CoreAppActionTypes.UPDATE_CURRENT_MODULE]: updateCurrentModule, [CoreAppActionTypes.ADD_API_QUEUE_ITEM]: addApiQueueItem, [CoreAppActionTypes.REMOVE_API_QUEUE_ITEM]: removeApiQueueItem, [CoreAppActionTypes.EMPTY_API_QUEUE]: emptyApiQueue, }`

addApiQueueItem
Type : `unknown`
Default value : `(state: AppState, action: AddApiQueueItemAction): AppState => { // apply the timestamp to the queue item const apiQueueItem = Object.assign({}, action.payload.item, { timestamp: new Date().getTime() }); // update the queue const apiQueue = Object.assign({}, state.apiQueue, { [action.payload.id]: apiQueueItem }); return Object.assign({}, state, { apiQueue }); }`

coreAppReducers
it will be removed in the next major version
Type : `AppState`
Default value : `(state = initialAppState, action: CoreAppActions) => { if (actionToReducerMap[action.type]) { return actionToReducerMap[action.type](state, action); } // if the action type is not in the map, call the base reducers method return state; }`

emptyApiQueue
Type : `unknown`
Default value : `(state: AppState, action: EmptyApiQueueAction): AppState => // remove all items in the Api Queue Object.assign({}, state, { apiQueue: {} })`

removeApiQueueItem
Type : `unknown`

Default value : `(state: AppState, action: RemoveApiQueueItemAction): AppState => { // remove the specified id from the list of item ids and recreate the apiQueue from the remaining ids const apiQueue = Object.keys(state.apiQueue) .filter((id) => id !== action.payload) .reduce((queue, key) => { queue[key] = state.apiQueue[key]; return queue; }, {}); return Object.assign({}, state, { apiQueue }); }`

updateAppConnection
Type : `unknown`
Default value : `(state: AppState, action: UpdateAppConnectionAction): AppState => ({ ...state, connected: action.payload })`

updateAppStatus
Type : `unknown`
Default value : `(state: AppState, action: UpdateAppStatusAction): AppState => ({ ...state, status: action.payload })`

updateAppVersion
Type : `unknown`
Default value : `(state: AppState, action: UpdateAppVersionAction): AppState => ({ ...state, version: action.payload })`

updateCurrentModule
Type : `unknown`
Default value : `(state: AppState, action: UpdateCurrentModuleAction): AppState => Object.assign({}, state, { currentModule: action.payload })`

### packages/core/src/lib/services/store/reducers/i18n.reducers.ts

###

actionToReducerMap
it will be removed in the next major version
Type : `literal type`
Default value : `{ [CoreI18nActionTypes.UPDATE_I18N_STATE]: updateI18nState, }`

corI18nReducers
it will be removed in the next major version
Type : `I18nState`
Default value : `(state = initialI18nState, action: CoreI18nActions) => { if (actionToReducerMap[action.type]) { return actionToReducerMap[action.type](state, action); } return state; }`

updateI18nState
it will be removed in the next major version
Type : `unknown`
Default value : `(state: I18nState, action: UpdateI18nStateAction): {activeLang: string} => ({ ...state, ...action.payload, })`

### packages/core/src/lib/services/store/reducers/locale.reducers.ts

###

actionToReducerMap
it will be removed in the next major version
Type : `literal type`
Default value : `{ [CoreLocaleActionTypes.UPDATE_LOCALE_STATE]: updateLocaleState, }`

coreLocaleReducers
it will be removed in the next major version
Type : `LocaleState`
Default value : `( state = initialLocaleState, action: CoreLocaleActions, ) => { if (actionToReducerMap[action.type]) { return actionToReducerMap[action.type](state, action); } return state; }`

updateLocaleState
it will be removed in the next major version
Type : `unknown`
Default value : `(state: LocaleState, action: UpdateLocaleStateAction): LocaleState => ({ ...state, ...action.payload, })`

### packages/core/src/lib/services/store/reducers/notifications.reducers.ts

###

actionToReducerMap
Type : `literal type`
Default value : `{ [CoreNotificationsActionTypes.UPDATE_NOTIFICATIONS_LIST]: updateNotificationsList, }`

coreNotificationsReducers
it will be removed in the next major version
Type : `NotificationsState`
Default value : `( state = initialNotificationsState, action: CoreNotificationsActions, ) => { if (actionToReducerMap[action.type]) { return actionToReducerMap[action.type](state, action); } return state; }`

updateNotificationsList
Type : `unknown`
Default value : `(state: NotificationsState, action: UpdateNotificationsListAction): NotificationsState => Object.assign({}, state, { list: [...action.payload] })`

### packages/core/src/lib/services/store/reducers/user.reducers.ts

###

actionToReducerMap
Type : `literal type`
Default value : `{ [CoreUserActionTypes.UPDATE_USER_DETAILS]: updateUserDetails, [CoreUserActionTypes.UPDATE_USER_PREFERENCES]: updateUserPreferences, [CoreUserActionTypes.UPDATE_USER_STATE]: updateUser, [CoreUserActionTypes.UPDATE_USER_RIGHTS]: updateUserRights, [CoreUserActionTypes.UPDATE_USER_DASHBOARD]: updateUserDashboard, }`

coreUserReducers
it will be removed in the next major version
Type : `UserState`
Default value : `(state = initialUserState, action: CoreUserActions) => { if (actionToReducerMap[action.type]) { return actionToReducerMap[action.type](state, action); } return state; }`

updateUser
Type : `unknown`
Default value : `(state: UserState, action: UpdateUserStateAction): UserState => { let fullName = action.payload.fullName; if (!fullName) { fullName = `${action.payload.firstName || ''} ${action.payload.lastName || ''}`.trim(); } return Object.assign({}, state, action.payload, { fullName }); }`

updateUserDashboard
Type : `unknown`
Default value : `(state: UserState, action: UpdateUserDashboardAction): UserState & { preferences: UserPreferences } => { // apply the dashboard to preferences const preferences = Object.assign({}, state.preferences, { dashboard: action.payload }); // update the state return { ...state, preferences }; }`

updateUserDetails
Type : `unknown`

Default value : `(state: UserState, action: UpdateUserDetailsAction): UserState => { let fullName = action.payload.fullName; if (!fullName) { fullName = `${action.payload.firstName || ''} ${action.payload.lastName || ''}`.trim(); } // todo should be checked if state.details is really there const details = Object.assign({}, state['details'], action.payload, { fullName }); return Object.assign({}, state, details); }`

updateUserPreferences
Type : `unknown`
Default value : `(state: UserState, action: UpdateUserPreferencesAction): UserState => { const preferences = Object.assign({}, state.preferences, action.payload); return Object.assign({}, state, { preferences }); }`

updateUserRights
Type : `unknown`
Default value : `(state: UserState, action: UpdateUserRightsAction): UserState => Object.assign({}, state, { rights: [...action.payload] })`

### packages/core/src/lib/eui-core.module.ts

###

AddAppLoadedConfigModules
Type : `unknown`
Default value : `(state: CoreState, action: { moduleName, moduleConfig }): CoreState => ({ ...state, app: { ...state.app, loadedConfigModules: { lastAddedModule: action.moduleName, modulesConfig: { ...state.app.loadedConfigModules.modulesConfig, [action.moduleName]: { ...action.moduleConfig, }, }, }, }, })`

CORE_ROOT_GUARD
Type : `unknown`
Default value : `new InjectionToken<void>('Internal Theme ForRoot Guard')`

createEuiCoreRootGuard
Type : `unknown`
Default value : `(core): string => { if (core) { throw new TypeError('CoreModule.forRoot() called twice. Feature modules should use ThemeModule.forChild() instead.'); } return 'guarded'; }`

euiCoreRootGuardClass
Type : `unknown`
Default value : `(): EuiCoreRootGuardClass => new EuiCoreRootGuardClass()`

### packages/core/src/lib/services/log/log.service.ts

###

BASE_LOGGER_NAME_TOKEN
Type : `unknown`
Default value : `new InjectionToken<string>('BASE_LOGGER_NAME')`

LOG_APPENDERS_TOKEN
Type : `unknown`
Default value : `new InjectionToken<LogAppender[]>('LOG_APPENDERS')`

LOG_LEVEL_TOKEN
Type : `unknown`
Default value : `new InjectionToken<LogLevel>('LOG_LEVEL')`

### packages/core/src/lib/services/config/tokens.ts

###

BASE_NAME_TOKEN
Type : `unknown`
Default value : `new InjectionToken<string>('baseName')`

CONFIG_TOKEN
Type : `unknown`
Default value : `new InjectionToken<EuiAppConfig>('finalConfigToken')`

EUI_CONFIG_TOKEN
Type : `unknown`
Default value : `new InjectionToken<EuiConfig>('EuiConfig')`

GLOBAL_CONFIG_TOKEN
Type : `unknown`
Default value : `new InjectionToken<GlobalConfig>('globalConfig')`

HTTP_ERROR_HANDLER_CONFIG_TOKEN
Type : `unknown`
Default value : `new InjectionToken<HttpErrorHandlerConfig>('HTTP_ERROR_HANDLER_CONFIG')`

MODULE_CONFIG_TOKEN
Type : `unknown`
Default value : `new InjectionToken<ModuleConfig>('moduleConfig')`

MODULE_NAME_TOKEN
Type : `unknown`
Default value : `new InjectionToken<string>('moduleName')`

ROOT_LOG_CONFIG_TOKEN
Type : `unknown`
Default value : `new InjectionToken<LogConfig>('logConfig')`

SHOW_CONNECTION_STATUS_TOKEN
Type : `unknown`
Default value : `new InjectionToken<boolean>('SHOW_CONNECTION_STATUS')`

### packages/core/src/lib/services/store/reducers/meta.reducers.ts

###

cb
Type : `unknown`

Default value : `<S extends CoreState>(reducer: ActionReducer<S>, storage: Storage | null) => (state: S, action: Action): S => { if (action.type === CoreAppActionTypes.INIT_STORE) { // This action must be dispatched from an app initializer // We load the state from a storage and compare the version and userId with the provided ones. // If they are the same, we merge the local state into the initial state. // If there is a mismatch, we don't merge the local state, but update only the initial state. if (storage) { // load the state from the localStorage const localState: S = loadState<S>(storage); // extract the details about user and app version from the action payload const payloadVersion = (action as InitStoreAction).payload?.version; if (localState) { // TODO: Why all these checks here? What is the purpose of this code? // extract the details about user and app version from the storage state const localVersion = localState?.app?.version; // const localUserId = localState.user && localState.user.userId; const isVersionOK = !localVersion || !payloadVersion || localVersion === payloadVersion; // const isUserIdOK = (localUserId === payloadUserId); // update the entire state with deep merge of states, if the version and user are the same if (isVersionOK) { state = { ...state, ...localState }; // state = extend(true, {}, state, localState); } } // update the app version, if defined if (payloadVersion) { state = { ...state, app: { ...state?.app, version: payloadVersion } }; } } } return reducer(state, action); }`

disallowedKeys
Type : `[]`
Default value : `['loadedConfigModules', 'connect', 'currentModule', 'status', 'apiQueue']`

filterAppState
it will be removed in the next major version
Type : `unknown`
Default value : `(app: AppState): AppState => { // in case app is undefined or null it should return empty object if (!app) { return {}; } return ( Object.keys(app) // select keys that are present in the allowed list .filter((key) => !disallowedKeys.includes(key)) // build a new object with only the allowed properties .reduce((obj, key) => { obj[key] = app[key]; return obj; }, {}) ); }`
filters the AppState by removing those keys from the state and return a new state Object

loadState
it will be removed in the next major version
Type : `unknown`

Default value : `<S extends CoreState>(storage: Storage | null = localStorage): S => { if (!storage) { return undefined; } try { // by default falls back to localStorage const serializedState = storage.getItem('state'); if (serializedState === null) { return undefined; } // deserialize state let state: S = JSON.parse(serializedState); // filter AppState and replace state = { ...state, app: filterAppState(state?.app) }; return state; } catch (err) { return undefined; } }`

### packages/core/src/lib/helpers/dom-helpers.ts

###

closestMatchingParent
Type : `unknown`
Default value : `(target: HTMLElement, className: string): HTMLElement | null => { let element = target; while (element && element.nodeType === Node.ELEMENT_NODE) { if (element.classList.contains(className)) { return element; } element = element.parentElement; } return null; }`

getStyle
Type : `unknown`
Default value : `(nativeEl: Element, cssProp: keyof CSSStyleDeclaration): string => { /* istanbul ignore if */ if (getComputedStyle(nativeEl)) { return getComputedStyle(nativeEl)[cssProp] as string; } // finally try and get inline style /* istanbul ignore next */ return (nativeEl as HTMLElement).style[cssProp] as string; }`

getViewElement
Type : `unknown`

Default value : `<F>(fixture: ComponentFixture<F>, componentClass: string, klass?: string): {de: DebugElement, el: HTMLElement, domElement: HTMLElement} => { let el: HTMLElement, domElement: NodeList | HTMLElement; const de = fixture.debugElement.query(By.css(componentClass)); if (de) { el = de.nativeElement; if (el && klass) { domElement = el.querySelectorAll(klass); if (domElement.length <= 1) { domElement = el.querySelector(klass) as HTMLElement; } } } return { de, el, domElement: domElement as HTMLElement }; }`

isStaticPositioned
Type : `unknown`
Default value : `(nativeEl: Element): boolean => (getStyle(nativeEl, 'position') || 'static') === 'static'`
Checks if a given element is statically positioned

offset
Type : `unknown`

Default value : `(nativeEl: HTMLElement): { width: number; height: number; top: number; left: number } => { const boundingClientRect = nativeEl.getBoundingClientRect(); return { width: boundingClientRect.width || nativeEl.offsetWidth, height: boundingClientRect.height || nativeEl.offsetHeight, top: boundingClientRect.top + (window.pageYOffset || document.documentElement.scrollTop), left: boundingClientRect.left + (window.pageXOffset || document.documentElement.scrollLeft), }; }`

Provides read-only equivalent of jQuery's offset function: http://api.jquery.com/offset/

parentOffsetEl
Type : `unknown`
Default value : `(nativeEl: HTMLElement): Element | Document => { let offsetParent = nativeEl.offsetParent || document; while (offsetParent && offsetParent !== document && isStaticPositioned(offsetParent as Element)) { offsetParent = (offsetParent as HTMLElement).offsetParent; } return offsetParent || document; }`
returns the closest, non-statically positioned parentOffset of a given element

position
Type : `unknown`

Default value : `(nativeEl: HTMLElement): { width: number; height: number; top: number; left: number } => { const elBCR = offset(nativeEl); let offsetParentBCR = { top: 0, left: 0 }; const offsetParentEl = parentOffsetEl(nativeEl); if (offsetParentEl !== document) { offsetParentBCR = offset(offsetParentEl as HTMLElement); offsetParentBCR.top += (offsetParentEl as Element).clientTop - (offsetParentEl as Element).scrollTop; offsetParentBCR.left += (offsetParentEl as Element).clientLeft - (offsetParentEl as Element).scrollLeft; } const boundingClientRect = nativeEl.getBoundingClientRect(); return { width: boundingClientRect.width || nativeEl.offsetWidth, height: boundingClientRect.height || nativeEl.offsetHeight, top: elBCR.top - offsetParentBCR.top, left: elBCR.left - offsetParentBCR.left, }; }`

Provides read-only equivalent of jQuery's position function: http://api.jquery.com/position/

### packages/core/src/lib/helpers/event-helpers.ts

###

consumeEvent
Type : `unknown`
Default value : `(event: Event): boolean => { if (event) { event.preventDefault(); event.stopPropagation(); event.cancelBubble = true; } return false; }`

### packages/core/src/lib/services/store/reducers/core.reducers.ts

###

coreReducers
it will be removed in the next major version
Type : `ActionReducerMap<CoreState, any>`
Default value : `Object.assign( {}, { app: coreAppReducers, user: coreUserReducers, notifications: coreNotificationsReducers, i18n: corI18nReducers, locale: coreLocaleReducers, }, )`

### packages/core/src/lib/services/config/defaults.ts

###

DEFAULT_EUI_APP_CONFIG
Type : `EuiAppConfig`
Default value : `{ global: { ...DEFAULT_GLOBAL_CONFIG, }, }`

DEFAULT_EUI_CONFIG
Type : `EuiConfig`
Default value : `{ appConfig: { ...DEFAULT_EUI_APP_CONFIG, }, environment: { ...DEFAULT_EUI_ENV_CONFIG, }, }`

DEFAULT_EUI_ENV_CONFIG
Type : `EuiEnvConfig`
Default value : `{ envAppHandlersConfig: {}, }`

DEFAULT_GLOBAL_CONFIG
Type : `GlobalConfig`
Default value : `{ showConnectionStatus: { messageBox: { lifespan: 0, }, enabled: true, }, i18n: { i18nService: { ...DEFAULT_I18N_SERVICE_CONFIG, }, i18nLoader: { ...DEFAULT_I18N_LOADER_CONFIG, }, }, locale: { ...DEFAULT_LOCALE_SERVICE_CONFIG, }, user: { defaultUserPreferences: { locale: { ...DEFAULT_LOCALE_SERVICE_CONFIG, }, }, }, }`

DEFAULT_HTTP_ERROR_HANDLER_CONFIG
Type : `HttpErrorHandlerConfig`
Default value : `{ routes: [], }`

DEFAULT_I18N_LOADER_CONFIG
Type : `I18nLoaderConfig`
Default value : `{}`

DEFAULT_I18N_SERVICE_CONFIG
Type : `I18nServiceConfig`
Default value : `{ languages: ['en'], defaultLanguage: 'en', }`

DEFAULT_LOCALE_SERVICE_CONFIG
Type : `LocaleServiceConfig`
Default value : `{ bindWithTranslate: false, }`

DEFAULT_LOG_CONFIG
Type : `LogConfig`
Default value : `{ baseLoggerName: 'root', logLevel: LogLevel.ERROR, logAppenders: { type: ConsoleAppender, prefixFormat: '[{level}]', }, }`
default log configuration

### packages/core/src/lib/mocks/translate.module.mock.ts

###

DEFAULT_LANGUAGE
Type : `string`
Default value : `'en'`

TRANSLATED_STRING
Type : `string`
Default value : `'i18n'`

### packages/core/src/lib/helpers/date-helpers.ts

###

diffDays
Type : `unknown`
Default value : `(dateStart: Date, dateEnd: Date): number => Math.round((dateEnd.getTime() - dateStart.getTime()) / 1000 / 60 / 60 / 24)`

diffDaysFromToday
Type : `unknown`
Default value : `(date: Date): number => diffDays(new Date(), date)`

### packages/core/src/lib/services/dynamic-component/dynamic-component.service.ts

###

DYNAMIC_COMPONENT_CONFIG
Type : `unknown`
Default value : `new InjectionToken<object>('DYNAMIC_COMPONENT_CONFIG')`

### packages/core/src/lib/services/errors/eui.error.ts

###

errorCodes
Type : `object`
Default value : `{ ERR_GENERIC: 'ERR_GENERIC', }`

messages
Type : `object`
Default value : `{ ERR_GENERIC: 'An error occured', }`

### packages/core/src/lib/services/eui-timezone.service.ts

###

EUI_COUNTRIES
Type : `object`

Default value : `{ AF: 'Afghanistan', AX: 'Aland Islands', AL: 'Albania', DZ: 'Algeria', AS: 'American Samoa', AD: 'Andorra', AO: 'Angola', AI: 'Anguilla', AQ: 'Antarctica', AG: 'Antigua and Barbuda', AR: 'Argentina', AM: 'Armenia', AW: 'Aruba', AU: 'Australia', AT: 'Austria', AZ: 'Azerbaijan', BS: 'Bahamas', BH: 'Bahrain', BD: 'Bangladesh', BB: 'Barbados', BY: 'Belarus', BE: 'Belgium', BZ: 'Belize', BJ: 'Benin', BM: 'Bermuda', BT: 'Bhutan', BO: 'Bolivia', BA: 'Bosnia and Herzegovina', BW: 'Botswana', BV: 'Bouvet Island', BR: 'Brazil', VG: 'British Virgin Islands', IO: 'British Indian Ocean Territory', BN: 'Brunei Darussalam', BG: 'Bulgaria', BF: 'Burkina Faso', BI: 'Burundi', KH: 'Cambodia', CM: 'Cameroon', CA: 'Canada', CV: 'Cape Verde', KY: 'Cayman Islands', CF: 'Central African Republic', TD: 'Chad', CL: 'Chile', CN: 'China', HK: 'Hong Kong', MO: 'Macao', CX: 'Christmas Island', CC: 'Cocos (Keeling) Islands', CO: 'Colombia', KM: 'Comoros', CG: 'Congo (Brazzaville)', CD: 'Congo, (Kinshasa)', CK: 'Cook Islands', CR: 'Costa Rica', CI: "Côte d'Ivoire", HR: 'Croatia', CU: 'Cuba', CY: 'Cyprus', CZ: 'Czech Republic', DK: 'Denmark', DJ: 'Djibouti', DM: 'Dominica', DO: 'Dominican Republic', EC: 'Ecuador', EG: 'Egypt', SV: 'El Salvador', GQ: 'Equatorial Guinea', ER: 'Eritrea', EE: 'Estonia', ET: 'Ethiopia', FK: 'Falkland Islands (Malvinas)', FO: 'Faroe Islands', FJ: 'Fiji', FI: 'Finland', FR: 'France', GF: 'French Guiana', PF: 'French Polynesia', TF: 'French Southern Territories', GA: 'Gabon', GM: 'Gambia', GE: 'Georgia', DE: 'Germany', GH: 'Ghana', GI: 'Gibraltar', GR: 'Greece', GL: 'Greenland', GD: 'Grenada', GP: 'Guadeloupe', GU: 'Guam', GT: 'Guatemala', GG: 'Guernsey', GN: 'Guinea', GW: 'Guinea-Bissau', GY: 'Guyana', HT: 'Haiti', HM: 'Heard and Mcdonald Islands', VA: 'Vatican City State', HN: 'Honduras', HU: 'Hungary', IS: 'Iceland', IN: 'India', ID: 'Indonesia', IR: 'Iran', IQ: 'Iraq', IE: 'Ireland', IM: 'Isle of Man', IL: 'Israel', IT: 'Italy', JM: 'Jamaica', JP: 'Japan', JE: 'Jersey', JO: 'Jordan', KZ: 'Kazakhstan', KE: 'Kenya', KI: 'Kiribati', KP: 'Korea (North)', KR: 'Korea (South)', KW: 'Kuwait', KG: 'Kyrgyzstan', LA: 'Lao PDR', LV: 'Latvia', LB: 'Lebanon', LS: 'Lesotho', LR: 'Liberia', LY: 'Libya', LI: 'Liechtenstein', LT: 'Lithuania', LU: 'Luxembourg', MK: 'Macedonia', MG: 'Madagascar', MW: 'Malawi', MY: 'Malaysia', MV: 'Maldives', ML: 'Mali', MT: 'Malta', MH: 'Marshall Islands', MQ: 'Martinique', MR: 'Mauritania', MU: 'Mauritius', YT: 'Mayotte', MX: 'Mexico', FM: 'Micronesia', MD: 'Moldova', MC: 'Monaco', MN: 'Mongolia', ME: 'Montenegro', MS: 'Montserrat', MA: 'Morocco', MZ: 'Mozambique', MM: 'Myanmar', NA: 'Namibia', NR: 'Nauru', NP: 'Nepal', NL: 'Netherlands', AN: 'Netherlands Antilles', NC: 'New Caledonia', NZ: 'New Zealand', NI: 'Nicaragua', NE: 'Niger', NG: 'Nigeria', NU: 'Niue', NF: 'Norfolk Island', MP: 'Northern Mariana Islands', NO: 'Norway', OM: 'Oman', PK: 'Pakistan', PW: 'Palau', PS: 'Palestinian Territory', PA: 'Panama', PG: 'Papua New Guinea', PY: 'Paraguay', PE: 'Peru', PH: 'Philippines', PN: 'Pitcairn', PL: 'Poland', PT: 'Portugal', PR: 'Puerto Rico', QA: 'Qatar', RE: 'Réunion', RO: 'Romania', RU: 'Russian Federation', RW: 'Rwanda', BL: 'Saint-Barthélemy', SH: 'Saint Helena', KN: 'Saint Kitts and Nevis', LC: 'Saint Lucia', MF: 'Saint-Martin (French part)', PM: 'Saint Pierre and Miquelon', VC: 'Saint Vincent and Grenadines', WS: 'Samoa', SM: 'San Marino', ST: 'Sao Tome and Principe', SA: 'Saudi Arabia', SN: 'Senegal', RS: 'Serbia', SC: 'Seychelles', SL: 'Sierra Leone', SG: 'Singapore', SK: 'Slovakia', SI: 'Slovenia', SB: 'Solomon Islands', SO: 'Somalia', ZA: 'South Africa', GS: 'South Georgia and the South Sandwich Islands', SS: 'South Sudan', ES: 'Spain', LK: 'Sri Lanka', SD: 'Sudan', SR: 'Suriname', SJ: 'Svalbard and Jan Mayen Islands', SZ: 'Swaziland', SE: 'Sweden', CH: 'Switzerland', SY: 'Syria', TW: 'Taiwan', TJ: 'Tajikistan', TZ: 'Tanzania', TH: 'Thailand', TL: 'Timor-Leste', TG: 'Togo', TK: 'Tokelau', TO: 'Tonga', TT: 'Trinidad and Tobago', TN: 'Tunisia', TR: 'Turkey', TM: 'Turkmenistan', TC: 'Turks and Caicos Islands', TV: 'Tuvalu', UG: 'Uganda', UA: 'Ukraine', AE: 'United Arab Emirates', GB: 'United Kingdom (GB)', US: 'United States of America (USA)', UM: 'US Minor Outlying Islands', UY: 'Uruguay', UZ: 'Uzbekistan', VU: 'Vanuatu', VE: 'Venezuela', VN: 'Viet Nam', VI: 'Virgin Islands, US', WF: 'Wallis and Futuna Islands', EH: 'Western Sahara', YE: 'Yemen', ZM: 'Zambia', ZW: 'Zimbabwe', }`

EUI_TIMEZONES
Type : `EuiTimeZone[]`

Default value : `[ { name: 'Europe/Andorra', desc: 'Andorra - Andorra (GMT+02:00)' }, { name: 'Asia/Dubai', desc: 'United Arab Emirates - Dubai (GMT+04:00)' }, { name: 'Asia/Kabul', desc: 'Afghanistan - Kabul (GMT+04:30)' }, { name: 'America/Antigua', desc: 'Antigua and Barbuda - Antigua (GMT-04:00)' }, { name: 'America/Anguilla', desc: 'Anguilla - Anguilla (GMT-04:00)' }, { name: 'Europe/Tirane', desc: 'Albania - Tirane (GMT+02:00)' }, { name: 'Asia/Yerevan', desc: 'Armenia - Yerevan (GMT+04:00)' }, { name: 'Africa/Luanda', desc: 'Angola - Luanda (GMT+01:00)' }, { name: 'Antarctica/McMurdo', desc: 'Antarctica - McMurdo (GMT+12:00)' }, { name: 'Antarctica/Rothera', desc: 'Antarctica - Rothera (GMT-03:00)' }, { name: 'Antarctica/Palmer', desc: 'Antarctica - Palmer (GMT-03:00)' }, { name: 'Antarctica/Mawson', desc: 'Antarctica - Mawson (GMT+05:00)' }, { name: 'Antarctica/Davis', desc: 'Antarctica - Davis (GMT+07:00)' }, { name: 'Antarctica/Casey', desc: 'Antarctica - Casey (GMT+08:00)' }, { name: 'Antarctica/Vostok', desc: 'Antarctica - Vostok (GMT+06:00)' }, { name: 'Antarctica/DumontDUrville', desc: 'Antarctica - DumontDUrville (GMT+10:00)' }, { name: 'Antarctica/Syowa', desc: 'Antarctica - Syowa (GMT+03:00)' }, { name: 'Antarctica/Troll', desc: 'Antarctica - Troll (GMT+02:00)' }, { name: 'America/Argentina/Buenos_Aires', desc: 'Argentina - Buenos Aires (GMT-03:00)' }, { name: 'America/Argentina/Cordoba', desc: 'Argentina - Cordoba (GMT-03:00)' }, { name: 'America/Argentina/Salta', desc: 'Argentina - Salta (GMT-03:00)' }, { name: 'America/Argentina/Jujuy', desc: 'Argentina - Jujuy (GMT-03:00)' }, { name: 'America/Argentina/Tucuman', desc: 'Argentina - Tucuman (GMT-03:00)' }, { name: 'America/Argentina/Catamarca', desc: 'Argentina - Catamarca (GMT-03:00)' }, { name: 'America/Argentina/La_Rioja', desc: 'Argentina - La Rioja (GMT-03:00)' }, { name: 'America/Argentina/San_Juan', desc: 'Argentina - San Juan (GMT-03:00)' }, { name: 'America/Argentina/Mendoza', desc: 'Argentina - Mendoza (GMT-03:00)' }, { name: 'America/Argentina/San_Luis', desc: 'Argentina - San Luis (GMT-03:00)' }, { name: 'America/Argentina/Rio_Gallegos', desc: 'Argentina - Rio Gallegos (GMT-03:00)' }, { name: 'America/Argentina/Ushuaia', desc: 'Argentina - Ushuaia (GMT-03:00)' }, { name: 'Pacific/Pago_Pago', desc: 'American Samoa - Pago Pago (GMT-11:00)' }, { name: 'Pacific/Samoa', desc: 'American Samoa - Samoa (GMT-11:00)' }, { name: 'Europe/Vienna', desc: 'Austria - Vienna (GMT+02:00)' }, { name: 'Australia/Lord_Howe', desc: 'Australia - Lord Howe (GMT+10:30)' }, { name: 'Antarctica/Macquarie', desc: 'Australia - Macquarie (GMT+11:00)' }, { name: 'Australia/Hobart', desc: 'Australia - Hobart (GMT+10:00)' }, { name: 'Australia/Currie', desc: 'Australia - Currie (GMT+10:00)' }, { name: 'Australia/Melbourne', desc: 'Australia - Melbourne (GMT+10:00)' }, { name: 'Australia/Sydney', desc: 'Australia - Sydney (GMT+10:00)' }, { name: 'Australia/Broken_Hill', desc: 'Australia - Broken Hill (GMT+09:30)' }, { name: 'Australia/Brisbane', desc: 'Australia - Brisbane (GMT+10:00)' }, { name: 'Australia/Lindeman', desc: 'Australia - Lindeman (GMT+10:00)' }, { name: 'Australia/Adelaide', desc: 'Australia - Adelaide (GMT+09:30)' }, { name: 'Australia/Darwin', desc: 'Australia - Darwin (GMT+09:30)' }, { name: 'Australia/Perth', desc: 'Australia - Perth (GMT+08:00)' }, { name: 'Australia/Eucla', desc: 'Australia - Eucla (GMT+08:45)' }, { name: 'Australia/Canberra', desc: 'Australia - Canberra (GMT+10:00)' }, { name: 'Australia/Queensland', desc: 'Australia - Queensland (GMT+10:00)' }, { name: 'Australia/Tasmania', desc: 'Australia - Tasmania (GMT+10:00)' }, { name: 'Australia/Victoria', desc: 'Australia - Victoria (GMT+10:00)' }, { name: 'America/Aruba', desc: 'Aruba - Aruba (GMT-04:00)' }, { name: 'Europe/Mariehamn', desc: 'Aland Islands - Mariehamn (GMT+03:00)' }, { name: 'Asia/Baku', desc: 'Azerbaijan - Baku (GMT+04:00)' }, { name: 'Europe/Sarajevo', desc: 'Bosnia and Herzegovina - Sarajevo (GMT+02:00)' }, { name: 'America/Barbados', desc: 'Barbados - Barbados (GMT-04:00)' }, { name: 'Asia/Dhaka', desc: 'Bangladesh - Dhaka (GMT+06:00)' }, { name: 'Europe/Brussels', desc: 'Belgium - Brussels (GMT+02:00)' }, { name: 'Africa/Ouagadougou', desc: 'Burkina Faso - Ouagadougou (GMT+00:00)' }, { name: 'Europe/Sofia', desc: 'Bulgaria - Sofia (GMT+03:00)' }, { name: 'Asia/Bahrain', desc: 'Bahrain - Bahrain (GMT+03:00)' }, { name: 'Africa/Bujumbura', desc: 'Burundi - Bujumbura (GMT+02:00)' }, { name: 'Africa/Porto-Novo', desc: 'Benin - Porto-Novo (GMT+01:00)' }, { name: 'America/St_Barthelemy', desc: 'Saint-Barthélemy - St Barthelemy (GMT-04:00)' }, { name: 'Atlantic/Bermuda', desc: 'Bermuda - Bermuda (GMT-03:00)' }, { name: 'Asia/Brunei', desc: 'Brunei Darussalam - Brunei (GMT+08:00)' }, { name: 'America/La_Paz', desc: 'Bolivia - La Paz (GMT-04:00)' }, { name: 'America/Kralendijk', desc: 'BQ - Kralendijk (GMT-04:00)' }, { name: 'America/Noronha', desc: 'Brazil - Noronha (GMT-02:00)' }, { name: 'America/Belem', desc: 'Brazil - Belem (GMT-03:00)' }, { name: 'America/Fortaleza', desc: 'Brazil - Fortaleza (GMT-03:00)' }, { name: 'America/Recife', desc: 'Brazil - Recife (GMT-03:00)' }, { name: 'America/Araguaina', desc: 'Brazil - Araguaina (GMT-03:00)' }, { name: 'America/Maceio', desc: 'Brazil - Maceio (GMT-03:00)' }, { name: 'America/Bahia', desc: 'Brazil - Bahia (GMT-03:00)' }, { name: 'America/Sao_Paulo', desc: 'Brazil - Sao Paulo (GMT-03:00)' }, { name: 'America/Campo_Grande', desc: 'Brazil - Campo Grande (GMT-04:00)' }, { name: 'America/Cuiaba', desc: 'Brazil - Cuiaba (GMT-04:00)' }, { name: 'America/Santarem', desc: 'Brazil - Santarem (GMT-03:00)' }, { name: 'America/Porto_Velho', desc: 'Brazil - Porto Velho (GMT-04:00)' }, { name: 'America/Boa_Vista', desc: 'Brazil - Boa Vista (GMT-04:00)' }, { name: 'America/Manaus', desc: 'Brazil - Manaus (GMT-04:00)' }, { name: 'America/Eirunepe', desc: 'Brazil - Eirunepe (GMT-05:00)' }, { name: 'America/Rio_Branco', desc: 'Brazil - Rio Branco (GMT-05:00)' }, { name: 'America/Nassau', desc: 'Bahamas - Nassau (GMT-04:00)' }, { name: 'Asia/Thimphu', desc: 'Bhutan - Thimphu (GMT+06:00)' }, { name: 'Africa/Gaborone', desc: 'Botswana - Gaborone (GMT+02:00)' }, { name: 'Europe/Minsk', desc: 'Belarus - Minsk (GMT+03:00)' }, { name: 'America/Belize', desc: 'Belize - Belize (GMT-06:00)' }, { name: 'America/St_Johns', desc: 'Canada - St Johns (GMT-02:30)' }, { name: 'America/Halifax', desc: 'Canada - Halifax (GMT-03:00)' }, { name: 'America/Glace_Bay', desc: 'Canada - Glace Bay (GMT-03:00)' }, { name: 'America/Moncton', desc: 'Canada - Moncton (GMT-03:00)' }, { name: 'America/Goose_Bay', desc: 'Canada - Goose Bay (GMT-03:00)' }, { name: 'America/Blanc-Sablon', desc: 'Canada - Blanc-Sablon (GMT-04:00)' }, { name: 'America/Toronto', desc: 'Canada - Toronto (GMT-04:00)' }, { name: 'America/Nipigon', desc: 'Canada - Nipigon (GMT-04:00)' }, { name: 'America/Thunder_Bay', desc: 'Canada - Thunder Bay (GMT-04:00)' }, { name: 'America/Iqaluit', desc: 'Canada - Iqaluit (GMT-04:00)' }, { name: 'America/Pangnirtung', desc: 'Canada - Pangnirtung (GMT-04:00)' }, { name: 'America/Resolute', desc: 'Canada - Resolute (GMT-05:00)' }, { name: 'America/Atikokan', desc: 'Canada - Atikokan (GMT-05:00)' }, { name: 'America/Rankin_Inlet', desc: 'Canada - Rankin Inlet (GMT-05:00)' }, { name: 'America/Winnipeg', desc: 'Canada - Winnipeg (GMT-05:00)' }, { name: 'America/Rainy_River', desc: 'Canada - Rainy River (GMT-05:00)' }, { name: 'America/Regina', desc: 'Canada - Regina (GMT-06:00)' }, { name: 'America/Swift_Current', desc: 'Canada - Swift Current (GMT-06:00)' }, { name: 'America/Edmonton', desc: 'Canada - Edmonton (GMT-06:00)' }, { name: 'America/Cambridge_Bay', desc: 'Canada - Cambridge Bay (GMT-06:00)' }, { name: 'America/Yellowknife', desc: 'Canada - Yellowknife (GMT-06:00)' }, { name: 'America/Inuvik', desc: 'Canada - Inuvik (GMT-06:00)' }, { name: 'America/Creston', desc: 'Canada - Creston (GMT-07:00)' }, { name: 'America/Dawson_Creek', desc: 'Canada - Dawson Creek (GMT-07:00)' }, { name: 'America/Vancouver', desc: 'Canada - Vancouver (GMT-07:00)' }, { name: 'America/Whitehorse', desc: 'Canada - Whitehorse (GMT-07:00)' }, { name: 'America/Dawson', desc: 'Canada - Dawson (GMT-07:00)' }, { name: 'America/Montreal', desc: 'Canada - Montreal (GMT-04:00)' }, { name: 'Canada/Atlantic', desc: 'Canada - Atlantic (GMT-03:00)' }, { name: 'Canada/Central', desc: 'Canada - Central (GMT-05:00)' }, { name: 'Canada/Eastern', desc: 'Canada - Eastern (GMT-04:00)' }, { name: 'Canada/Mountain', desc: 'Canada - Mountain (GMT-06:00)' }, { name: 'Canada/Newfoundland', desc: 'Canada - Newfoundland (GMT-02:30)' }, { name: 'Canada/Pacific', desc: 'Canada - Pacific (GMT-07:00)' }, { name: 'Canada/Saskatchewan', desc: 'Canada - Saskatchewan (GMT-06:00)' }, { name: 'Canada/Yukon', desc: 'Canada - Yukon (GMT-07:00)' }, { name: 'Indian/Cocos', desc: 'Cocos (Keeling) Islands - Cocos (GMT+06:30)' }, { name: 'Africa/Kinshasa', desc: 'Congo, (Kinshasa) - Kinshasa (GMT+01:00)' }, { name: 'Africa/Lubumbashi', desc: 'Congo, (Kinshasa) - Lubumbashi (GMT+02:00)' }, { name: 'Africa/Bangui', desc: 'Central African Republic - Bangui (GMT+01:00)' }, { name: 'Africa/Brazzaville', desc: 'Congo (Brazzaville) - Brazzaville (GMT+01:00)' }, { name: 'Europe/Zurich', desc: 'Switzerland - Zurich (GMT+02:00)' }, { name: 'Africa/Abidjan', desc: "Côte d'Ivoire - Abidjan (GMT+00:00)" }, { name: 'Pacific/Rarotonga', desc: 'Cook Islands - Rarotonga (GMT-10:00)' }, { name: 'America/Santiago', desc: 'Chile - Santiago (GMT-04:00)' }, { name: 'Pacific/Easter', desc: 'Chile - Easter (GMT-06:00)' }, { name: 'Chile/Continental', desc: 'Chile - Continental (GMT-04:00)' }, { name: 'Chile/EasterIsland', desc: 'Chile - EasterIsland (GMT-06:00)' }, { name: 'Africa/Douala', desc: 'Cameroon - Douala (GMT+01:00)' }, { name: 'Asia/Shanghai', desc: 'China - Shanghai (GMT+08:00)' }, { name: 'Asia/Harbin', desc: 'China - Harbin (GMT+08:00)' }, { name: 'Asia/Chongqing', desc: 'China - Chongqing (GMT+08:00)' }, { name: 'Asia/Urumqi', desc: 'China - Urumqi (GMT+06:00)' }, { name: 'Asia/Kashgar', desc: 'China - Kashgar (GMT+06:00)' }, { name: 'America/Bogota', desc: 'Colombia - Bogota (GMT-05:00)' }, { name: 'America/Costa_Rica', desc: 'Costa Rica - Costa Rica (GMT-06:00)' }, { name: 'America/Havana', desc: 'Cuba - Havana (GMT-04:00)' }, { name: 'Atlantic/Cape_Verde', desc: 'Cape Verde - Cape Verde (GMT-01:00)' }, { name: 'America/Curacao', desc: 'CW - Curacao (GMT-04:00)' }, { name: 'Indian/Christmas', desc: 'Christmas Island - Christmas (GMT+07:00)' }, { name: 'Asia/Nicosia', desc: 'Cyprus - Nicosia (GMT+03:00)' }, { name: 'Europe/Prague', desc: 'Czech Republic - Prague (GMT+02:00)' }, { name: 'Europe/Berlin', desc: 'Germany - Berlin (GMT+02:00)' }, { name: 'Africa/Djibouti', desc: 'Djibouti - Djibouti (GMT+03:00)' }, { name: 'Europe/Copenhagen', desc: 'Denmark - Copenhagen (GMT+02:00)' }, { name: 'America/Dominica', desc: 'Dominica - Dominica (GMT-04:00)' }, { name: 'America/Santo_Domingo', desc: 'Dominican Republic - Santo Domingo (GMT-04:00)' }, { name: 'Africa/Algiers', desc: 'Algeria - Algiers (GMT+01:00)' }, { name: 'America/Guayaquil', desc: 'Ecuador - Guayaquil (GMT-05:00)' }, { name: 'Pacific/Galapagos', desc: 'Ecuador - Galapagos (GMT-06:00)' }, { name: 'Europe/Tallinn', desc: 'Estonia - Tallinn (GMT+03:00)' }, { name: 'Egypt', desc: 'Egypt - Egypt (GMT+02:00)' }, { name: 'Africa/El_Aaiun', desc: 'Western Sahara - El Aaiun (GMT+00:00)' }, { name: 'Africa/Asmara', desc: 'Eritrea - Asmara (GMT+03:00)' }, { name: 'Europe/Madrid', desc: 'Spain - Madrid (GMT+02:00)' }, { name: 'Africa/Ceuta', desc: 'Spain - Ceuta (GMT+02:00)' }, { name: 'Atlantic/Canary', desc: 'Spain - Canary (GMT+01:00)' }, { name: 'Africa/Addis_Ababa', desc: 'Ethiopia - Addis Ababa (GMT+03:00)' }, { name: 'Europe/Helsinki', desc: 'Finland - Helsinki (GMT+03:00)' }, { name: 'Pacific/Fiji', desc: 'Fiji - Fiji (GMT+12:00)' }, { name: 'Atlantic/Stanley', desc: 'Falkland Islands (Malvinas) - Stanley (GMT-03:00)' }, { name: 'Pacific/Chuuk', desc: 'Micronesia - Chuuk (GMT+10:00)' }, { name: 'Pacific/Pohnpei', desc: 'Micronesia - Pohnpei (GMT+11:00)' }, { name: 'Pacific/Kosrae', desc: 'Micronesia - Kosrae (GMT+11:00)' }, { name: 'Atlantic/Faroe', desc: 'Faroe Islands - Faroe (GMT+01:00)' }, { name: 'Europe/Paris', desc: 'France - Paris (GMT+02:00)' }, { name: 'Africa/Libreville', desc: 'Gabon - Libreville (GMT+01:00)' }, { name: 'Europe/London', desc: 'United Kingdom (GB) - London (GMT+01:00)' }, { name: 'America/Grenada', desc: 'Grenada - Grenada (GMT-04:00)' }, { name: 'Asia/Tbilisi', desc: 'Georgia - Tbilisi (GMT+04:00)' }, { name: 'America/Cayenne', desc: 'French Guiana - Cayenne (GMT-03:00)' }, { name: 'Europe/Guernsey', desc: 'Guernsey - Guernsey (GMT+01:00)' }, { name: 'Africa/Accra', desc: 'Ghana - Accra (GMT+00:00)' }, { name: 'Europe/Gibraltar', desc: 'Gibraltar - Gibraltar (GMT+02:00)' }, { name: 'America/Godthab', desc: 'Greenland - Godthab (GMT-02:00)' }, { name: 'America/Danmarkshavn', desc: 'Greenland - Danmarkshavn (GMT+00:00)' }, { name: 'America/Scoresbysund', desc: 'Greenland - Scoresbysund (GMT+00:00)' }, { name: 'America/Thule', desc: 'Greenland - Thule (GMT-03:00)' }, { name: 'Africa/Banjul', desc: 'Gambia - Banjul (GMT+00:00)' }, { name: 'Africa/Conakry', desc: 'Guinea - Conakry (GMT+00:00)' }, { name: 'America/Guadeloupe', desc: 'Guadeloupe - Guadeloupe (GMT-04:00)' }, { name: 'Africa/Malabo', desc: 'Equatorial Guinea - Malabo (GMT+01:00)' }, { name: 'Europe/Athens', desc: 'Greece - Athens (GMT+03:00)' }, { name: 'Atlantic/South_Georgia', desc: 'South Georgia and the South Sandwich Islands - South Georgia (GMT-02:00)' }, { name: 'America/Guatemala', desc: 'Guatemala - Guatemala (GMT-06:00)' }, { name: 'Pacific/Guam', desc: 'Guam - Guam (GMT+10:00)' }, { name: 'Africa/Bissau', desc: 'Guinea-Bissau - Bissau (GMT+00:00)' }, { name: 'America/Guyana', desc: 'Guyana - Guyana (GMT-04:00)' }, { name: 'Asia/Hong_Kong', desc: 'Hong Kong - Hong Kong (GMT+08:00)' }, { name: 'America/Tegucigalpa', desc: 'Honduras - Tegucigalpa (GMT-06:00)' }, { name: 'Europe/Zagreb', desc: 'Croatia - Zagreb (GMT+02:00)' }, { name: 'America/Port-au-Prince', desc: 'Haiti - Port-au-Prince (GMT-04:00)' }, { name: 'Europe/Budapest', desc: 'Hungary - Budapest (GMT+02:00)' }, { name: 'Asia/Jakarta', desc: 'Indonesia - Jakarta (GMT+07:00)' }, { name: 'Asia/Pontianak', desc: 'Indonesia - Pontianak (GMT+07:00)' }, { name: 'Asia/Makassar', desc: 'Indonesia - Makassar (GMT+08:00)' }, { name: 'Asia/Jayapura', desc: 'Indonesia - Jayapura (GMT+09:00)' }, { name: 'Europe/Dublin', desc: 'Ireland - Dublin (GMT+01:00)' }, { name: 'Asia/Jerusalem', desc: 'Israel - Jerusalem (GMT+03:00)' }, { name: 'Europe/Isle_of_Man', desc: 'Isle of Man - Isle of_Man (GMT+01:00)' }, { name: 'Asia/Kolkata', desc: 'India - Kolkata (GMT+05:30)' }, { name: 'Indian/Chagos', desc: 'British Indian Ocean Territory - Chagos (GMT+06:00)' }, { name: 'Asia/Baghdad', desc: 'Iraq - Baghdad (GMT+03:00)' }, { name: 'Asia/Tehran', desc: 'Iran - Tehran (GMT+04:30)' }, { name: 'Atlantic/Reykjavik', desc: 'Iceland - Reykjavik (GMT+00:00)' }, { name: 'Europe/Rome', desc: 'Italy - Rome (GMT+02:00)' }, { name: 'Europe/Jersey', desc: 'Jersey - Jersey (GMT+01:00)' }, { name: 'America/Jamaica', desc: 'Jamaica - Jamaica (GMT-05:00)' }, { name: 'Asia/Amman', desc: 'Jordan - Amman (GMT+03:00)' }, { name: 'Asia/Tokyo', desc: 'Japan - Tokyo (GMT+09:00)' }, { name: 'Africa/Nairobi', desc: 'Kenya - Nairobi (GMT+03:00)' }, { name: 'Asia/Bishkek', desc: 'Kyrgyzstan - Bishkek (GMT+06:00)' }, { name: 'Asia/Phnom_Penh', desc: 'Cambodia - Phnom Penh (GMT+07:00)' }, { name: 'Pacific/Tarawa', desc: 'Kiribati - Tarawa (GMT+12:00)' }, { name: 'Pacific/Enderbury', desc: 'Kiribati - Enderbury (GMT+13:00)' }, { name: 'Pacific/Kiritimati', desc: 'Kiribati - Kiritimati (GMT+14:00)' }, { name: 'Indian/Comoro', desc: 'Comoros - Comoro (GMT+03:00)' }, { name: 'America/St_Kitts', desc: 'Saint Kitts and Nevis - St Kitts (GMT-04:00)' }, { name: 'Asia/Pyongyang', desc: 'Korea (North) - Pyongyang (GMT+09:00)' }, { name: 'Asia/Seoul', desc: 'Korea (South) - Seoul (GMT+09:00)' }, { name: 'Asia/Kuwait', desc: 'Kuwait - Kuwait (GMT+03:00)' }, { name: 'America/Cayman', desc: 'Cayman Islands - Cayman (GMT-05:00)' }, { name: 'Asia/Almaty', desc: 'Kazakhstan - Almaty (GMT+06:00)' }, { name: 'Asia/Qyzylorda', desc: 'Kazakhstan - Qyzylorda (GMT+06:00)' }, { name: 'Asia/Aqtobe', desc: 'Kazakhstan - Aqtobe (GMT+05:00)' }, { name: 'Asia/Aqtau', desc: 'Kazakhstan - Aqtau (GMT+05:00)' }, { name: 'Asia/Oral', desc: 'Kazakhstan - Oral (GMT+05:00)' }, { name: 'Asia/Vientiane', desc: 'Lao PDR - Vientiane (GMT+07:00)' }, { name: 'Asia/Beirut', desc: 'Lebanon - Beirut (GMT+03:00)' }, { name: 'America/St_Lucia', desc: 'Saint Lucia - St Lucia (GMT-04:00)' }, { name: 'Europe/Vaduz', desc: 'Liechtenstein - Vaduz (GMT+02:00)' }, { name: 'Asia/Colombo', desc: 'Sri Lanka - Colombo (GMT+05:30)' }, { name: 'Africa/Monrovia', desc: 'Liberia - Monrovia (GMT+00:00)' }, { name: 'Africa/Maseru', desc: 'Lesotho - Maseru (GMT+02:00)' }, { name: 'Europe/Vilnius', desc: 'Lithuania - Vilnius (GMT+03:00)' }, { name: 'Europe/Luxembourg', desc: 'Luxembourg - Luxembourg (GMT+02:00)' }, { name: 'Europe/Riga', desc: 'Latvia - Riga (GMT+03:00)' }, { name: 'Africa/Tripoli', desc: 'Libya - Tripoli (GMT+02:00)' }, { name: 'Africa/Casablanca', desc: 'Morocco - Casablanca (GMT+00:00)' }, { name: 'Europe/Monaco', desc: 'Monaco - Monaco (GMT+02:00)' }, { name: 'Europe/Chisinau', desc: 'Moldova - Chisinau (GMT+03:00)' }, { name: 'Europe/Podgorica', desc: 'Montenegro - Podgorica (GMT+02:00)' }, { name: 'America/Marigot', desc: 'Saint-Martin (French part) - Marigot (GMT-04:00)' }, { name: 'Indian/Antananarivo', desc: 'Madagascar - Antananarivo (GMT+03:00)' }, { name: 'Pacific/Majuro', desc: 'Marshall Islands - Majuro (GMT+12:00)' }, { name: 'Pacific/Kwajalein', desc: 'Marshall Islands - Kwajalein (GMT+12:00)' }, { name: 'Europe/Skopje', desc: 'Macedonia - Skopje (GMT+02:00)' }, { name: 'Africa/Bamako', desc: 'Mali - Bamako (GMT+00:00)' }, { name: 'Asia/Rangoon', desc: 'Myanmar - Rangoon (GMT+06:30)' }, { name: 'Asia/Ulaanbaatar', desc: 'Mongolia - Ulaanbaatar (GMT+08:00)' }, { name: 'Asia/Hovd', desc: 'Mongolia - Hovd (GMT+07:00)' }, { name: 'Asia/Choibalsan', desc: 'Mongolia - Choibalsan (GMT+08:00)' }, { name: 'Asia/Macau', desc: 'Macao - Macau (GMT+08:00)' }, { name: 'Pacific/Saipan', desc: 'Northern Mariana Islands - Saipan (GMT+10:00)' }, { name: 'America/Martinique', desc: 'Martinique - Martinique (GMT-04:00)' }, { name: 'Africa/Nouakchott', desc: 'Mauritania - Nouakchott (GMT+00:00)' }, { name: 'America/Montserrat', desc: 'Montserrat - Montserrat (GMT-04:00)' }, { name: 'Europe/Malta', desc: 'Malta - Malta (GMT+02:00)' }, { name: 'Indian/Mauritius', desc: 'Mauritius - Mauritius (GMT+04:00)' }, { name: 'Indian/Maldives', desc: 'Maldives - Maldives (GMT+05:00)' }, { name: 'Africa/Blantyre', desc: 'Malawi - Blantyre (GMT+02:00)' }, { name: 'America/Mexico_City', desc: 'Mexico - Mexico City (GMT-05:00)' }, { name: 'America/Cancun', desc: 'Mexico - Cancun (GMT-05:00)' }, { name: 'America/Merida', desc: 'Mexico - Merida (GMT-05:00)' }, { name: 'America/Monterrey', desc: 'Mexico - Monterrey (GMT-05:00)' }, { name: 'America/Matamoros', desc: 'Mexico - Matamoros (GMT-05:00)' }, { name: 'America/Mazatlan', desc: 'Mexico - Mazatlan (GMT-06:00)' }, { name: 'America/Chihuahua', desc: 'Mexico - Chihuahua (GMT-06:00)' }, { name: 'America/Ojinaga', desc: 'Mexico - Ojinaga (GMT-06:00)' }, { name: 'America/Hermosillo', desc: 'Mexico - Hermosillo (GMT-07:00)' }, { name: 'America/Tijuana', desc: 'Mexico - Tijuana (GMT-07:00)' }, { name: 'America/Santa_Isabel', desc: 'Mexico - Santa Isabel (GMT-07:00)' }, { name: 'America/Bahia_Banderas', desc: 'Mexico - Bahia Banderas (GMT-05:00)' }, { name: 'Asia/Kuala_Lumpur', desc: 'Malaysia - Kuala Lumpur (GMT+08:00)' }, { name: 'Asia/Kuching', desc: 'Malaysia - Kuching (GMT+08:00)' }, { name: 'Africa/Maputo', desc: 'Mozambique - Maputo (GMT+02:00)' }, { name: 'Africa/Windhoek', desc: 'Namibia - Windhoek (GMT+02:00)' }, { name: 'Pacific/Noumea', desc: 'New Caledonia - Noumea (GMT+11:00)' }, { name: 'Africa/Niamey', desc: 'Niger - Niamey (GMT+01:00)' }, { name: 'Pacific/Norfolk', desc: 'Norfolk Island - Norfolk (GMT+11:00)' }, { name: 'Africa/Lagos', desc: 'Nigeria - Lagos (GMT+01:00)' }, { name: 'America/Managua', desc: 'Nicaragua - Managua (GMT-06:00)' }, { name: 'Europe/Amsterdam', desc: 'Netherlands - Amsterdam (GMT+02:00)' }, { name: 'Europe/Oslo', desc: 'Norway - Oslo (GMT+02:00)' }, { name: 'Asia/Kathmandu', desc: 'Nepal - Kathmandu (GMT+05:45)' }, { name: 'Pacific/Nauru', desc: 'Nauru - Nauru (GMT+12:00)' }, { name: 'Pacific/Niue', desc: 'Niue - Niue (GMT-11:00)' }, { name: 'Pacific/Auckland', desc: 'New Zealand - Auckland (GMT+12:00)' }, { name: 'Pacific/Chatham', desc: 'New Zealand - Chatham (GMT+12:45)' }, { name: 'Asia/Muscat', desc: 'Oman - Muscat (GMT+04:00)' }, { name: 'America/Panama', desc: 'Panama - Panama (GMT-05:00)' }, { name: 'America/Lima', desc: 'Peru - Lima (GMT-05:00)' }, { name: 'Pacific/Tahiti', desc: 'French Polynesia - Tahiti (GMT-10:00)' }, { name: 'Pacific/Marquesas', desc: 'French Polynesia - Marquesas (GMT-09:30)' }, { name: 'Pacific/Gambier', desc: 'French Polynesia - Gambier (GMT-09:00)' }, { name: 'Pacific/Port_Moresby', desc: 'Papua New Guinea - Port Moresby (GMT+10:00)' }, { name: 'Asia/Manila', desc: 'Philippines - Manila (GMT+08:00)' }, { name: 'Asia/Karachi', desc: 'Pakistan - Karachi (GMT+05:00)' }, { name: 'Europe/Warsaw', desc: 'Poland - Warsaw (GMT+02:00)' }, { name: 'Poland', desc: 'Poland - Poland (GMT+02:00)' }, { name: 'America/Miquelon', desc: 'Saint Pierre and Miquelon - Miquelon (GMT-02:00)' }, { name: 'Pacific/Pitcairn', desc: 'Pitcairn - Pitcairn (GMT-08:00)' }, { name: 'America/Puerto_Rico', desc: 'Puerto Rico - Puerto Rico (GMT-04:00)' }, { name: 'Asia/Gaza', desc: 'Palestinian Territory - Gaza (GMT+03:00)' }, { name: 'Asia/Hebron', desc: 'Palestinian Territory - Hebron (GMT+03:00)' }, { name: 'Europe/Lisbon', desc: 'Portugal - Lisbon (GMT+01:00)' }, { name: 'Atlantic/Madeira', desc: 'Portugal - Madeira (GMT+01:00)' }, { name: 'Atlantic/Azores', desc: 'Portugal - Azores (GMT+00:00)' }, { name: 'Pacific/Palau', desc: 'Palau - Palau (GMT+09:00)' }, { name: 'America/Asuncion', desc: 'Paraguay - Asuncion (GMT-04:00)' }, { name: 'Asia/Qatar', desc: 'Qatar - Qatar (GMT+03:00)' }, { name: 'Indian/Reunion', desc: 'Réunion - Reunion (GMT+04:00)' }, { name: 'Europe/Bucharest', desc: 'Romania - Bucharest (GMT+03:00)' }, { name: 'Europe/Belgrade', desc: 'Serbia - Belgrade (GMT+02:00)' }, { name: 'Europe/Kaliningrad', desc: 'Russian Federation - Kaliningrad (GMT+02:00)' }, { name: 'Europe/Moscow', desc: 'Russian Federation - Moscow (GMT+03:00)' }, { name: 'Europe/Volgograd', desc: 'Russian Federation - Volgograd (GMT+03:00)' }, { name: 'Europe/Samara', desc: 'Russian Federation - Samara (GMT+04:00)' }, { name: 'Europe/Simferopol', desc: 'Russian Federation - Simferopol (GMT+03:00)' }, { name: 'Asia/Yekaterinburg', desc: 'Russian Federation - Yekaterinburg (GMT+05:00)' }, { name: 'Asia/Omsk', desc: 'Russian Federation - Omsk (GMT+06:00)' }, { name: 'Asia/Novosibirsk', desc: 'Russian Federation - Novosibirsk (GMT+07:00)' }, { name: 'Asia/Novokuznetsk', desc: 'Russian Federation - Novokuznetsk (GMT+07:00)' }, { name: 'Asia/Krasnoyarsk', desc: 'Russian Federation - Krasnoyarsk (GMT+07:00)' }, { name: 'Asia/Irkutsk', desc: 'Russian Federation - Irkutsk (GMT+08:00)' }, { name: 'Asia/Yakutsk', desc: 'Russian Federation - Yakutsk (GMT+09:00)' }, { name: 'Asia/Khandyga', desc: 'Russian Federation - Khandyga (GMT+09:00)' }, { name: 'Asia/Vladivostok', desc: 'Russian Federation - Vladivostok (GMT+10:00)' }, { name: 'Asia/Sakhalin', desc: 'Russian Federation - Sakhalin (GMT+11:00)' }, { name: 'Asia/Ust-Nera', desc: 'Russian Federation - Ust-Nera (GMT+10:00)' }, { name: 'Asia/Magadan', desc: 'Russian Federation - Magadan (GMT+11:00)' }, { name: 'Asia/Kamchatka', desc: 'Russian Federation - Kamchatka (GMT+12:00)' }, { name: 'Asia/Anadyr', desc: 'Russian Federation - Anadyr (GMT+12:00)' }, { name: 'Africa/Kigali', desc: 'Rwanda - Kigali (GMT+02:00)' }, { name: 'Asia/Riyadh', desc: 'Saudi Arabia - Riyadh (GMT+03:00)' }, { name: 'Pacific/Guadalcanal', desc: 'Solomon Islands - Guadalcanal (GMT+11:00)' }, { name: 'Indian/Mahe', desc: 'Seychelles - Mahe (GMT+04:00)' }, { name: 'Africa/Khartoum', desc: 'Sudan - Khartoum (GMT+02:00)' }, { name: 'Europe/Stockholm', desc: 'Sweden - Stockholm (GMT+02:00)' }, { name: 'Asia/Singapore', desc: 'Singapore - Singapore (GMT+08:00)' }, { name: 'Atlantic/St_Helena', desc: 'Saint Helena - St Helena (GMT+00:00)' }, { name: 'Europe/Ljubljana', desc: 'Slovenia - Ljubljana (GMT+02:00)' }, { name: 'Arctic/Longyearbyen', desc: 'Svalbard and Jan Mayen Islands - Longyearbyen (GMT+02:00)' }, { name: 'Europe/Bratislava', desc: 'Slovakia - Bratislava (GMT+02:00)' }, { name: 'Africa/Freetown', desc: 'Sierra Leone - Freetown (GMT+00:00)' }, { name: 'Europe/San_Marino', desc: 'San Marino - San Marino (GMT+02:00)' }, { name: 'Africa/Dakar', desc: 'Senegal - Dakar (GMT+00:00)' }, { name: 'Africa/Mogadishu', desc: 'Somalia - Mogadishu (GMT+03:00)' }, { name: 'America/Paramaribo', desc: 'Suriname - Paramaribo (GMT-03:00)' }, { name: 'Africa/Juba', desc: 'South Sudan - Juba (GMT+03:00)' }, { name: 'Africa/Sao_Tome', desc: 'Sao Tome and Principe - Sao Tome (GMT+01:00)' }, { name: 'America/El_Salvador', desc: 'El Salvador - El Salvador (GMT-06:00)' }, { name: 'America/Lower_Princes', desc: 'SX - Lower Princes (GMT-04:00)' }, { name: 'Asia/Damascus', desc: 'Syria - Damascus (GMT+03:00)' }, { name: 'Africa/Mbabane', desc: 'Swaziland - Mbabane (GMT+02:00)' }, { name: 'America/Grand_Turk', desc: 'Turks and Caicos Islands - Grand Turk (GMT-04:00)' }, { name: 'Africa/Ndjamena', desc: 'Chad - Ndjamena (GMT+01:00)' }, { name: 'Indian/Kerguelen', desc: 'French Southern Territories - Kerguelen (GMT+05:00)' }, { name: 'Africa/Lome', desc: 'Togo - Lome (GMT+00:00)' }, { name: 'Asia/Bangkok', desc: 'Thailand - Bangkok (GMT+07:00)' }, { name: 'Asia/Dushanbe', desc: 'Tajikistan - Dushanbe (GMT+05:00)' }, { name: 'Pacific/Fakaofo', desc: 'Tokelau - Fakaofo (GMT+13:00)' }, { name: 'Asia/Dili', desc: 'Timor-Leste - Dili (GMT+09:00)' }, { name: 'Asia/Ashgabat', desc: 'Turkmenistan - Ashgabat (GMT+05:00)' }, { name: 'Africa/Tunis', desc: 'Tunisia - Tunis (GMT+01:00)' }, { name: 'Pacific/Tongatapu', desc: 'Tonga - Tongatapu (GMT+13:00)' }, { name: 'Europe/Istanbul', desc: 'Turkey - Istanbul (GMT+03:00)' }, { name: 'America/Port_of_Spain', desc: 'Trinidad and Tobago - Port of_Spain (GMT-04:00)' }, { name: 'Pacific/Funafuti', desc: 'Tuvalu - Funafuti (GMT+12:00)' }, { name: 'Asia/Taipei', desc: 'Taiwan - Taipei (GMT+08:00)' }, { name: 'Africa/Dar_es_Salaam', desc: 'Tanzania - Dar es_Salaam (GMT+03:00)' }, { name: 'Europe/Kiev', desc: 'Ukraine - Kiev (GMT+03:00)' }, { name: 'Europe/Uzhgorod', desc: 'Ukraine - Uzhgorod (GMT+03:00)' }, { name: 'Europe/Zaporozhye', desc: 'Ukraine - Zaporozhye (GMT+03:00)' }, { name: 'Africa/Kampala', desc: 'Uganda - Kampala (GMT+03:00)' }, { name: 'Pacific/Johnston', desc: 'US Minor Outlying Islands - Johnston (GMT-10:00)' }, { name: 'Pacific/Midway', desc: 'US Minor Outlying Islands - Midway (GMT-11:00)' }, { name: 'Pacific/Wake', desc: 'US Minor Outlying Islands - Wake (GMT+12:00)' }, { name: 'America/New_York', desc: 'United States of America (USA) - New York (GMT-04:00)' }, { name: 'America/Detroit', desc: 'United States of America (USA) - Detroit (GMT-04:00)' }, { name: 'America/Kentucky/Louisville', desc: 'United States of America (USA) - Louisville (GMT-04:00)' }, { name: 'America/Kentucky/Monticello', desc: 'United States of America (USA) - Monticello (GMT-04:00)' }, { name: 'America/Indiana/Indianapolis', desc: 'United States of America (USA) - Indianapolis (GMT-04:00)' }, { name: 'America/Indiana/Vincennes', desc: 'United States of America (USA) - Vincennes (GMT-04:00)' }, { name: 'America/Indiana/Winamac', desc: 'United States of America (USA) - Winamac (GMT-04:00)' }, { name: 'America/Indiana/Marengo', desc: 'United States of America (USA) - Marengo (GMT-04:00)' }, { name: 'America/Indiana/Petersburg', desc: 'United States of America (USA) - Petersburg (GMT-04:00)' }, { name: 'America/Indiana/Vevay', desc: 'United States of America (USA) - Vevay (GMT-04:00)' }, { name: 'America/Chicago', desc: 'United States of America (USA) - Chicago (GMT-05:00)' }, { name: 'America/Indiana/Tell_City', desc: 'United States of America (USA) - Tell City (GMT-05:00)' }, { name: 'America/Indiana/Knox', desc: 'United States of America (USA) - Knox (GMT-05:00)' }, { name: 'America/Menominee', desc: 'United States of America (USA) - Menominee (GMT-05:00)' }, { name: 'America/North_Dakota/Center', desc: 'United States of America (USA) - Center (GMT-05:00)' }, { name: 'America/North_Dakota/New_Salem', desc: 'United States of America (USA) - New Salem (GMT-05:00)' }, { name: 'America/North_Dakota/Beulah', desc: 'United States of America (USA) - Beulah (GMT-05:00)' }, { name: 'America/Denver', desc: 'United States of America (USA) - Denver (GMT-06:00)' }, { name: 'America/Boise', desc: 'United States of America (USA) - Boise (GMT-06:00)' }, { name: 'America/Phoenix', desc: 'United States of America (USA) - Phoenix (GMT-07:00)' }, { name: 'America/Los_Angeles', desc: 'United States of America (USA) - Los Angeles (GMT-07:00)' }, { name: 'America/Anchorage', desc: 'United States of America (USA) - Anchorage (GMT-08:00)' }, { name: 'America/Juneau', desc: 'United States of America (USA) - Juneau (GMT-08:00)' }, { name: 'America/Sitka', desc: 'United States of America (USA) - Sitka (GMT-08:00)' }, { name: 'America/Yakutat', desc: 'United States of America (USA) - Yakutat (GMT-08:00)' }, { name: 'America/Nome', desc: 'United States of America (USA) - Nome (GMT-08:00)' }, { name: 'America/Adak', desc: 'United States of America (USA) - Adak (GMT-09:00)' }, { name: 'America/Metlakatla', desc: 'United States of America (USA) - Metlakatla (GMT-08:00)' }, { name: 'Pacific/Honolulu', desc: 'United States of America (USA) - Honolulu (GMT-10:00)' }, { name: 'America/Montevideo', desc: 'Uruguay - Montevideo (GMT-03:00)' }, { name: 'Asia/Samarkand', desc: 'Uzbekistan - Samarkand (GMT+05:00)' }, { name: 'Asia/Tashkent', desc: 'Uzbekistan - Tashkent (GMT+05:00)' }, { name: 'Europe/Vatican', desc: 'Vatican City State - Vatican (GMT+02:00)' }, { name: 'America/St_Vincent', desc: 'Saint Vincent and Grenadines - St Vincent (GMT-04:00)' }, { name: 'America/Caracas', desc: 'Venezuela - Caracas (GMT-04:00)' }, { name: 'America/Tortola', desc: 'British Virgin Islands - Tortola (GMT-04:00)' }, { name: 'America/St_Thomas', desc: 'Virgin Islands, US - St Thomas (GMT-04:00)' }, { name: 'Asia/Ho_Chi_Minh', desc: 'Viet Nam - Ho Chi_Minh (GMT+07:00)' }, { name: 'Pacific/Efate', desc: 'Vanuatu - Efate (GMT+11:00)' }, { name: 'Pacific/Wallis', desc: 'Wallis and Futuna Islands - Wallis (GMT+12:00)' }, { name: 'Pacific/Apia', desc: 'Samoa - Apia (GMT+13:00)' }, { name: 'Asia/Aden', desc: 'Yemen - Aden (GMT+03:00)' }, { name: 'Indian/Mayotte', desc: 'Mayotte - Mayotte (GMT+03:00)' }, { name: 'Africa/Johannesburg', desc: 'South Africa - Johannesburg (GMT+02:00)' }, { name: 'Africa/Lusaka', desc: 'Zambia - Lusaka (GMT+02:00)' }, { name: 'Africa/Harare', desc: 'Zimbabwe - Harare (GMT+02:00)' }, ]`

### packages/core/src/lib/helpers/format-helpers.ts

###

formatNumber
Type : `unknown`

Default value : `(value: number | string, fractionSize = 2, inDecimalSeparator = ',', inThousandSeparator = ''): string => { // in case value is not a number throw an error if (typeof value === 'string' && isNaN(parseFloat(value))) { console.error(`Value ${value} is not a number`); return null; } let decimalSeparator = ''; let thousandsSeparator = ''; if (value === null || value === undefined) { return null; } if (typeof value === 'string') { // get all non characters const nonChars: string[] = value.match(/\D+/g) || []; // get all unique chars const uniqueChars = nonChars.reduce((acc, e) => acc.set(e, (acc.get(e) || 0) + 1), new Map()); // get separators const separators = Array.from<string>(uniqueChars.keys()); // sense where decimal separator and where a thousand separator is if (separators.length > 1) { // left detected separator will be a thousand and second will be decimal thousandsSeparator = separators[0]; decimalSeparator = separators[1]; } else if (separators.length > 0) { // in case there is only one separator you don't know exactly who this separator is. // in case there are more than two occurrences means we have a thousand otherwise we'll // agree by conventions that is decimal if (nonChars.length > 1) { return value .split(separators[0]) .join('') .replace(/\B(?=(\d{3})+(?!\d))/g, inThousandSeparator); } else { return value.replace(separators[0], inDecimalSeparator).replace(/\B(?=(\d{3})+(?!\d))/g, inThousandSeparator); } } else { // in case there are no separators then only format based on thousand one return value.replace(/\B(?=(\d{3})+(?!\d))/g, inThousandSeparator) + (fractionSize > 0 ? inDecimalSeparator + '0'.repeat(fractionSize) : ''); } // do the replacement of separators and parseInt // Beware! Always replace a thousand separator first and then decimal value = value.split(thousandsSeparator).join('').replace(decimalSeparator, '.'); } decimalSeparator = inDecimalSeparator; thousandsSeparator = inThousandSeparator; const maxFraction = '0'.repeat(fractionSize); // eslint-disable-next-line prefer-const let [integer, fraction = maxFraction] = (value || '0').toString().split('.'); fraction = fractionSize > 0 ? roundUpNumber(fraction + maxFraction, fractionSize) : ''; // this rule makes sense only in number in case fraction is all zero fraction = fraction.length > 0 ? decimalSeparator + fraction : ''; // if fraction is all zero then round up the number if(fractionSize === 0) { integer = Math.round(parseFloat((value).toString())).toString(); } return integer.replace(/\B(?=(\d{3})+(?!\d))/g, thousandsSeparator) + fraction; }`

Its job is to parse number and format it based on given input.

roundUpNumber
Type : `unknown`
Default value : `(decimalPart: string, fractionSize: number): string => { return (Math.round(parseFloat(`0.${decimalPart}`) * Math.pow(10, fractionSize)) / Math.pow(10, fractionSize)) .toFixed(fractionSize) .split('.')[1]; }`

uniqueId
Type : `unknown`
Default value : `(): string => Math.random().toString(36).substring(2, 9)`
returns a random string with radix=36

### packages/core/src/lib/services/i18n/i18n.service.ts

###

getLastAddedModule
Type : `Selector<CoreState, string>`
Default value : `(state: CoreState) => state.app.loadedConfigModules.lastAddedModule`

### packages/core/src/lib/helpers/http-helpers.ts

###

handleError
it will be removed in the future. Consult the angular documentation for a replacement.
Type : `unknown`
Default value : `(error: HttpErrorResponse): Observable<never> => { const errMsg = error.message ? error.message : error.status ? `${error.status} - ${error.statusText}` : 'Server error'; throw new Error(errMsg); }`

### packages/core/src/lib/services/app/eui-init-app.ts

###

init
Type : `unknown`

Default value : `(): Promise<unknown> => { const locationInitialized = inject(LOCATION_INITIALIZED, { optional: true }) || Promise.resolve(null); const appConfig: EuiAppConfig = inject(CONFIG_TOKEN); const storeService = inject(StoreService); return new Promise<void>(resolve => { locationInitialized.then(() => { // necessary config parameters let appVersion: string; if (appConfig && appConfig.versions && appConfig.versions.app) { appVersion = appConfig.versions.app; } else { appVersion = '0.0.0'; } let storageType: BrowserStorageType; if (appConfig && appConfig['saveStateStorage']) { storageType = appConfig['saveStateStorage']; } else { storageType = BrowserStorageType.local; } storeService.init(appVersion, storageType); storeService.handleAutoSave(); resolve(null); }); }); }`

### packages/core/src/lib/services/eui-app-shell.service.ts

###

initialState
Type : `UIState`

Default value : `{ appName: '', appShortName: '', appSubTitle: '', appBaseFontSize: '', isSidebarOpen: true, isSidebarActive: false, hasSidebar: false, hasSideContainer: false, hasHeader: false, hasBreadcrumb: false, hasHeaderLogo: false, hasHeaderEnvironment: false, hasToolbar: false, hasToolbarMegaMenu: false, hasToolbarMenu: false, environmentValue: '', isSidebarHidden: false, isSidebarFocused: false, hasSidebarCollapsedVariant: false, hasTopMessage: false, windowWidth: 0, windowHeight: 0, mainContentHeight: 0, pageHeaderHeight: 0, wrapperClasses: '', breakpoint: '', breakpoints: { isMobile: false, isTablet: false, isLtLargeTablet: false, isLtDesktop: false, isDesktop: false, isXL: false, isXXL: false, isFHD: false, is2K: false, is4K: false, }, breakpointValues: [], menuLinks: [], sidebarLinks: [], combinedLinks: [], isBlockDocumentActive: false, deviceInfo: null, activeLanguage: 'en', languages: EuiEuLanguages.getLanguages(), appMetadata: null, hasModalActive: false, isDimmerActive: false, }`

### packages/core/src/lib/services/eui-theme.service.ts

###

initialState
Type : `ThemeState`

Default value : `{ themes: [ { name: EuiTheme.DEFAULT, isActive: false, styleSheet: null, cssClass: null }, { name: EuiTheme.ECL_EC, isActive: false, styleSheet: 'eui-ecl-ec.css', cssClass: null }, { name: EuiTheme.ECL_EC_RTL, isActive: false, styleSheet: 'eui-ecl-ec.css', cssClass: null }, { name: EuiTheme.ECL_EU, isActive: false, styleSheet: 'eui-ecl-eu.css', cssClass: null }, { name: EuiTheme.ECL_EU_RTL, isActive: false, styleSheet: 'eui-ecl-eu.css', cssClass: null }, { name: EuiTheme.DARK, isActive: false, styleSheet: null, cssClass: 'eui-t-dark' }, { name: EuiTheme.COMPACT, isActive: false, styleSheet: null, cssClass: 'eui-t-compact' }, ], theme: { isDefault: false, isEclEc: false, isEclEcRtl: false, isEclEu: false, isEclEuRtl: false, isDark: false, isCompact: false, }, }`

### packages/core/src/lib/helpers/utils.ts

###

isDefined
Type : `unknown`
Default value : `<T>(value: T | undefined | null): value is T => <T>value !== undefined && <T>value !== null`
check if a value is null or undefined. If it's not both returns true otherwise false

### packages/core/src/lib/interceptors/add-lang-param.interceptor.ts

###

LANG_PARAM_KEY
Type : `string`
Default value : `'X-Lang-Param'`

### packages/core/src/lib/services/storage/local-forage.service.ts

###

LOCAL_FORAGE_SERVICE_CONFIG_TOKEN
Type : `unknown`
Default value : `new InjectionToken<any>('LOCAL_FORAGE_SERVICE_CONFIG')`

localForage
Type : `any`
Default value : `'defineDriver' in lf ? lf : lf['default']`

### packages/core/src/lib/services/locale/locale.service.ts

###

LOCALE_ID_MAPPER
Type : `unknown`
Default value : `new InjectionToken<LocaleMapper>('localeIdMapper')`

### packages/core/src/lib/services/app/factories/log.ts

###

LOG_INSTANCES
Type : `object`
Default value : `{}`

### packages/core/src/lib/services/log/log.module.ts

###

LOG_MODULE_CONFIG_TOKEN
Type : `unknown`
Default value : `new InjectionToken<LogConfig>('LOG_CONFIG')`

### packages/core/src/lib/helpers/form-helpers.ts

###

markControlsTouched
Type : `unknown`
Default value : `(group: FormGroup | FormArray): void => { Object.keys(group.controls).forEach((key: string) => { const abstractControl = group.controls[key]; if (abstractControl instanceof FormGroup || abstractControl instanceof FormArray) { markControlsTouched(abstractControl); } else { abstractControl.markAsTouched(); } }); }`

markFormGroupTouched
Type : `unknown`

Default value : `(FormControls: { [key: string]: AbstractControl } | AbstractControl[]): void => { const forOwn = (object, iteratee): void => { object = Object(object); Object.keys(object).forEach((key) => iteratee(object[key], key, object)); }; const markFormGroupTouchedRecursive = (controls: { [key: string]: AbstractControl } | AbstractControl[]): void => { forOwn(controls, (c) => { if (c instanceof FormGroup || c instanceof FormArray) { markFormGroupTouchedRecursive(c.controls); } else { c.markAsTouched(); c.updateValueAndValidity(); } }); }; markFormGroupTouchedRecursive(FormControls); }`

validateEmail
Type : `unknown`

Default value : `(c: FormControl): { validateEmail: { valid: boolean } } => { const EMAIL_REGEXP = // eslint-disable-next-line max-len, no-useless-escape /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; const error = { validateEmail: { valid: false, }, }; return EMAIL_REGEXP.test(c.value) ? null : error; }`

### packages/core/src/lib/services/store/store.service.mock.ts

###

PLATFORM_BROWSER_ID
Type : `string`
Default value : `'browser'`

### packages/core/test-setup.ts

###

testBed
Type : `unknown`
Default value : `getTestBed()`

### packages/core/src/lib/services/i18n/i18n.loader.ts

###

translateConfig
Type : `object`
Default value : `{ loader: { provide: TranslateLoader, useClass: I18nLoader, }, }`

### packages/core/src/lib/interceptors/ux-request-error-model.interceptor.ts

###

UX_ERROR_MAPPING_HANDLER_TOKEN
Type : `unknown`
Default value : `new InjectionToken<ErrorMappingHandler>('UX_ERROR_MAPPING_HANDLER')`

# results matching ""

# No results matching ""