Index

packages/eui/packages/components/eui-file-upload/utils/eui-file-upload.validators.ts

asyncMimeTypeExtensionValidator
Default value : (mimeTypes: MimeType[]): AsyncValidatorFn => (control: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null> => { if (control.value) { const fileErrorObservables: Observable<ValidationErrors | null>[] = []; // iterate over files control.value.forEach((file: File) => { // push observable which will check the mime validation type fileErrorObservables.push(validateFileMimeType(file, mimeTypes)); }); return zip(...fileErrorObservables).pipe( map((fileErrors) => { const errors = fileErrors.filter((fileError) => fileError !== null); // Error should be { fileName: FileType } return { invalidMimeFileType: errors }; }), ); } return of(null); }
maxFileSizeValidator
Default value : (maxFileSize: number): ValidatorFn => (control: AbstractControl): { maxFileSize: number, indexes: Array<number> } | null => { const fileIndexes =[]; let maxFileExceeded = false; if (control.value) { control.value.forEach((file: File, index: number) => { if (file.size > maxFileSize * 1.024) { fileIndexes.push(index); maxFileExceeded = true; } }); } return control.value && maxFileExceeded ? { maxFileSize, indexes: fileIndexes } : null; }
maxFilesValidator
Default value : (maxFiles: number): ValidatorFn => (control: AbstractControl): { maxFiles: number } | null => control.value && control.value.length > maxFiles ? { maxFiles } : null
maxSizeValidator
Default value : (maxSize: number): ValidatorFn => (control: AbstractControl): { maxSize: number } | null => { let totalSize = 0; if (control.value) { control.value.forEach((file: File) => { totalSize += file.size; }); } return control.value && totalSize > maxSize * 1.024 ? { maxSize } : null; }
mimeTypeExtensionValidator
Default value : (mimeTypes: string[]): ValidatorFn => (control: AbstractControl): { invalidFileExtension: string[] } | null => { const invalidFileExtension: string[] = []; if (control.value) { control.value.forEach((file: File) => { if (mimeTypes.indexOf(file.type) === -1) { invalidFileExtension.push(file.name); } }); } return control.value && invalidFileExtension.length > 0 ? { invalidFileExtension } : null; }
validateFileMimeType
Default value : (file: File, mimeTypes: MimeType[]): Observable<{ [key: string]: MimeType }> => { return new Observable<{ [p: string]: MimeType }>((subscriber) => { const reader = new FileReader(); reader.onloadend = (): void => { const buffer = reader.result as ArrayBuffer; const headerBytes = new Uint8Array(buffer).slice(0, 8); const mime = getMimeType(headerBytes); if (mimeTypes.indexOf(mime) === -1) { subscriber.next({ [file.name]: mime }); } subscriber.complete(); }; reader.readAsArrayBuffer(file); }); }

Validates the MIME type of a file against a list of allowed MIME types.

packages/eui/packages/components/eui-popover/models/eui-popover-position.model.ts

BOTTOM
Default value : new ConnectionPositionPair( { originX: 'center', originY: 'bottom' }, { overlayX: 'center', overlayY: 'top' }, 0, 0, ['eui-popover-position', 'eui-popover-position--bottom'], )

Position configuration for a popover appearing below its origin element. Centers the popover horizontally relative to the origin.

getPosition
Default value : ({ connectionPair }: ConnectedOverlayPositionChange): EuiPopoverPosition => { switch (connectionPair) { case TOP: return 'top'; case BOTTOM: return 'bottom'; case LEFT: return 'left'; case RIGHT: return 'right'; } }

Converts a ConnectedOverlayPositionChange object to an EuiPopoverPosition string. Used to determine which predefined position the overlay has settled on.

LEFT
Default value : new ConnectionPositionPair( { originX: 'start', originY: 'center' }, { overlayX: 'end', overlayY: 'center' }, 0, 0, ['eui-popover-position', 'eui-popover-position--left'], )

Position configuration for a popover appearing to the left of its origin element. Centers the popover vertically relative to the origin.

RIGHT
Default value : new ConnectionPositionPair( { originX: 'end', originY: 'center' }, { overlayX: 'start', overlayY: 'center' }, 0, 0, ['eui-popover-position', 'eui-popover-position--right'], )

Position configuration for a popover appearing to the right of its origin element. Centers the popover vertically relative to the origin.

TOP
Default value : new ConnectionPositionPair( { originX: 'center', originY: 'top' }, { overlayX: 'center', overlayY: 'bottom' }, 0, 0, ['eui-popover-position', 'eui-popover-position--top'], )

Position configuration for a popover appearing above its origin element. Centers the popover horizontally relative to the origin.

packages/eui/packages/components/externals/eui-editor/validators/eui-editor.validators.ts

byteLength
Default value : (value: string): number => { // returns the byte length of an utf8 string let s = value.length; for (let i = value.length - 1; i >= 0; i--) { const code = value.charCodeAt(i); if (code > 0x7f && code <= 0x7ff) { s++; } else if (code > 0x7ff && code <= 0xffff) { s += 2; } if (code >= 0xdc00 && code <= 0xdfff) { i--; } } return s; }
euiEditorMaxBytes
Default value : (maxBytes: number): ValidatorFn => (control: AbstractControl): { maxBytes: { maxBytes: number; actual: number } } | null => { if (control.value) { let actual = 0; if (isJson(control.value)) { actual = byteLength(control.value); } else { const m = encodeURIComponent(control.value).match(/%[89ABab]/g); actual = control.value.length + (m ? m.length : 0); } return actual > maxBytes ? { maxBytes: { maxBytes, actual } } : null; } }
euiEditorMaxLength
Default value : (maxLength: number): ValidatorFn => (control: AbstractControl): { maxLength: { maxLength: number; actual: number } } | null => { if (control.value) { let actual = 0; if (isJson(control.value)) { const content = JSON.parse(control.value) .ops.filter((c: { attributes: string; insert: string }) => typeof c.insert === 'string') .map((c: { attributes: string; insert: string }) => c.insert.replace(/\n/g, '')); const jsonStrippedContent = content.join(''); actual = jsonStrippedContent.length; } else { const regex = /(<([^>]+)>)/gi; const tagsStrippedContent = control.value.replace(regex, ''); actual = tagsStrippedContent.length; } return actual > maxLength ? { maxLength: { maxLength, actual } } : null; } }
euiEditorMaxWords
Default value : (maxWords: number): ValidatorFn => (control: AbstractControl<string>): { maxWords: { maxWords: number; actual: number } } | null => { const regex = /[\s\n]+/; if (control.value) { let actual = 0; if (isJson(control.value)) { const content = JSON.parse(control.value) .ops.filter((c: { insert: string }) => typeof c.insert === 'string') .map((c: { insert: string }) => c.insert); const jsonStrippedContent = content.join(''); actual = jsonStrippedContent.replace(/\n/g, ' ').split(/\s+/).filter(t => t !== '').length; } else { const text = control.value.replace(/[\u200B-\u200D\uFEFF]/g, '').replace(/<\/(p|div|br|li|h[1-6])>/gi, ' ').replace(/<[^>]+>/g, ''); actual = !text ? 0 : text.trim().split(regex).filter(t => t !== '').length; } return actual > maxWords ? { maxWords: { maxWords, actual } } : null; } }
euiEditorMinBytes
Default value : (minBytes: number): ValidatorFn => (control: AbstractControl): { minBytes: { minBytes: number; actual: number } } | null => { if (control.value) { let actual = 0; const m = encodeURIComponent(control.value).match(/%[89ABab]/g); actual = control.value.length + (m ? m.length : 0); return actual < minBytes ? { minBytes: { minBytes, actual } } : null; } }
euiEditorMinLength
Default value : (minLength: number): ValidatorFn => (control: AbstractControl): { minLength: { minLength: number; actual: number } } | null => { if (control.value) { let actual = 0; if (isJson(control.value)) { const content = JSON.parse(control.value) .ops.filter((c: { attributes: string; insert: string }) => typeof c.insert === 'string') .map((c: { attributes: string; insert: string }) => c.insert.replace(/\n/g, '')); const jsonStrippedContent = content.join(''); actual = jsonStrippedContent.length; } else { const regex = /(<([^>]+)>)/gi; const tagsStrippedContent = control.value.replace(regex, ''); actual = tagsStrippedContent.length; } return actual < minLength ? { minLength: { minLength, actual } } : null; } }
euiEditorMinWords
Default value : (minWords: number): ValidatorFn => (control: AbstractControl<string>): { minWords: { minWords: number; actual: number } } | null => { const regex = /[\s\n]+/; if (control.value) { let actual = 0; if (isJson(control.value)) { const content = JSON.parse(control.value) .ops.filter((c: { insert: string }) => typeof c.insert === 'string') .map((c: { insert: string }) => c.insert); const jsonStrippedContent = content.join(''); actual = jsonStrippedContent.replace(/\n/g, ' ').split(/\s+/).filter(t => t !== '').length; } else { const text = control.value.replace(/[\u200B-\u200D\uFEFF]/g, '').replace(/<\/(p|div|br|li|h[1-6])>/gi, ' ').replace(/<[^>]+>/g, ''); actual = !text ? 0 : text.trim().split(regex).filter(t => t !== '').length; } return actual < minWords ? { minWords: { minWords, actual } } : null; } }
isJson
Default value : (value: string): boolean => { try { JSON.parse(value); } catch (e) { return false; } return true; }

packages/eui/packages/components/layout/eui-layout.module.ts

COMPONENTS
Type : []
Default value : [ ...EUI_APP, ...EUI_TOOLBAR, ...EUI_FOOTER, ...EUI_HEADER, ...EUI_SIDEBAR_TOGGLE, ...EUI_NOTIFICATIONS, ...EUI_NOTIFICATIONS_V2, ]

packages/eui/packages/components/externals/charts/eui-charts.module.ts

COMPONENTS
Type : []
Default value : [EuiApexChartComponent]

packages/eui/packages/components/layout/eui-app/eui-app-sidebar/sidebar.module.ts

COMPONENTS
Type : []
Default value : [ EuiAppSidebarComponent, EuiAppSidebarHeaderComponent, EuiAppSidebarBodyComponent, EuiAppSidebarFooterComponent, EuiAppSidebarMenuComponent, EuiAppSidebarHeaderUserProfileComponent, EuiAppSidebarDrawerComponent, ]

packages/eui/packages/components/testing/test.ts

context
Default value : require.context('../', true, /\.spec\.ts$/)
require
Type : any

packages/eui/packages/components/eui-table-v2/testing/virtual-scroll-async.component.ts

DATA
Type : []
Default value : [ { id: 1, country: 'Austria', year: 1995, iso: 'AT', population: 8504850, capital: 'Vienna' }, { id: 2, country: 'Belgium', year: 1958, iso: 'BE', population: 11198638, capital: 'Brussels' }, { id: 3, country: 'Bulgaria', year: 2007, iso: 'BG', population: 7364570, capital: 'Sofia' }, { id: 4, country: 'Croatia', year: 2013, iso: 'HR', population: 4284889, capital: 'Zagreb' }, { id: 5, country: 'Cyprus', year: 2004, iso: 'CY', population: 1117000, capital: 'Nicosia' }, { id: 6, country: 'Czechia', year: 2004, iso: 'CZ', population: 10513209, capital: 'Prague' }, { id: 7, country: 'Denmark', year: 1973, iso: 'DK', population: 5655750, capital: 'Copenhagen' }, { id: 8, country: 'Estonia', year: 2004, iso: 'EE', population: 1315819, capital: 'Tallinn' }, { id: 9, country: 'Finland', year: 1995, iso: 'FI', population: 5470820, capital: 'Helsinki' }, { id: 10, country: 'France', year: 1958, iso: 'FR', population: 67210000, capital: 'Paris' }, { id: 11, country: 'Germany', year: 1958, iso: 'DE', population: 80716000, capital: 'Berlin' }, { id: 12, country: 'Greece', year: 1981, iso: 'GR', population: 10816286, capital: 'Athens' }, { id: 13, country: 'Hungary', year: 2004, iso: 'HU', population: 9877365, capital: 'Budapest' }, { id: 14, country: 'Ireland', year: 1973, iso: 'IE', population: 4609600, capital: 'Dublin' }, { id: 15, country: 'Italy', year: 1958, iso: 'IT', population: 60782668, capital: 'Rome' }, { id: 16, country: 'Latvia', year: 2004, iso: 'LV', population: 1990300, capital: 'Riga' }, { id: 17, country: 'Lithuania', year: 2004, iso: 'LT', population: 2944459, capital: 'Vilnius' }, { id: 18, country: 'Luxembourg', year: 1958, iso: 'LU', population: 549680, capital: 'Luxembourg' }, { id: 19, country: 'Malta', year: 2004, iso: 'MT', population: 446547, capital: 'Valletta' }, { id: 20, country: 'Netherlands', year: 1958, iso: 'NL', population: 16856620, capital: 'Amsterdam' }, { id: 21, country: 'Poland', year: 2004, iso: 'PL', population: 38483957, capital: 'Warsaw' }, { id: 22, country: 'Portugal', year: 1986, iso: 'PT', population: 10427301, capital: 'Lisbon' }, { id: 23, country: 'Romania', year: 2007, iso: 'RO', population: 19942642, capital: 'Bucharest' }, { id: 24, country: 'Slovakia', year: 2004, iso: 'SK', population: 5415949, capital: 'Bratislava' }, { id: 25, country: 'Slovenia', year: 2004, iso: 'SI', population: 2061085, capital: 'Ljubljana' }, { id: 26, country: 'Spain', year: 1986, iso: 'ES', population: 46704314, capital: 'Madrid' }, { id: 27, country: 'Sweden', year: 1995, iso: 'SE', population: 10004962, capital: 'Stockholm' }, { id: 28, country: 'United Kingdom', year: 1973, iso: 'GB', population: 64100000, capital: 'London' }, ]

packages/eui/packages/components/eui-datepicker/eui-datepicker.validators.ts

dateInputValidator
Type : ValidatorFn
Default value : (control: AbstractControl): ValidationErrors | null => control.value === null ? { invalidDate: true } : null

packages/eui/packages/components/eui-datepicker/eui-datepicker.module.ts

DEFAULT_FORMATS
Type : object
Default value : { parse: { dateInput: 'L', }, display: { dateInput: 'L', monthYearLabel: 'MM/YYYY', dateA11yLabel: 'LL', monthYearA11yLabel: 'LL', }, }

packages/eui/packages/components/externals/quill/quill-defaults.ts

defaultModules
Type : object
Default value : { toolbar: [ ['bold', 'italic', 'underline', 'strike'], // toggled buttons ['blockquote', 'code-block'], [{ header: 1 }, { header: 2 }], // custom button values [{ list: 'ordered' }, { list: 'bullet' }], [{ script: 'sub' }, { script: 'super' }], // superscript/subscript [{ indent: '-1' }, { indent: '+1' }], // outdent/indent [{ direction: 'rtl' }], // text direction [{ size: ['small', false, 'large', 'huge'] }], // custom dropdown [{ header: [1, 2, 3, 4, 5, 6, false] }], [{ color: [] }, { background: [] }], // dropdown with defaults from theme [{ font: [] }], [{ align: [] }], ['clean'], // remove formatting button ['table'], // adds the insert table button ['link', 'image', 'video'], // link and image, video ], }

packages/eui/packages/components/eui-dialog/services/eui-dialog.token.ts

DIALOG_COMPONENT_CONFIG
Default value : new InjectionToken<any>('DIALOG_COMPONENT_CONFIG')
DIALOG_CONTAINER_CONFIG
Default value : new InjectionToken<any>('DIALOG_CONTAINER_CONFIG')

packages/eui/packages/components/eui-accordion/index.ts

EUI_ACCORDION
Default value : [ EuiAccordionComponent, EuiAccordionItemComponent, EuiAccordionItemHeaderDirective, ] as const

packages/eui/packages/components/eui-alert/index.ts

EUI_ALERT
Default value : [ EuiAlertComponent, EuiAlertTitleComponent, ] as const

packages/eui/packages/components/layout/eui-app/index.ts

EUI_APP
Default value : [ EuiAppComponent, EuiAppPageWrapperDirective, ...EUI_APP_BREADCRUMB, ...EUI_APP_FOOTER, ...EUI_APP_HEADER, ...EUI_APP_SIDEBAR, ...EUI_APP_TOOLBAR, ...EUI_APP_TOP_MESSAGE, ] as const

packages/eui/packages/components/layout/eui-app/eui-app-breadcrumb/index.ts

EUI_APP_BREADCRUMB
Default value : [ EuiAppBreadcrumbComponent, ] as const

packages/eui/packages/components/layout/eui-app/eui-app-footer/index.ts

EUI_APP_FOOTER
Default value : [ EuiAppFooterComponent, ] as const

packages/eui/packages/components/layout/eui-app/eui-app-header/index.ts

EUI_APP_HEADER
Default value : [ EuiAppHeaderComponent, ] as const

packages/eui/packages/components/layout/eui-app/eui-app-sidebar/index.ts

EUI_APP_SIDEBAR
Default value : [ EuiAppSidebarComponent, EuiAppSidebarHeaderComponent, EuiAppSidebarBodyComponent, EuiAppSidebarFooterComponent, EuiAppSidebarMenuComponent, EuiAppSidebarHeaderUserProfileComponent, EuiAppSidebarDrawerComponent, ] as const

packages/eui/packages/components/layout/eui-app/eui-app-toolbar/index.ts

EUI_APP_TOOLBAR
Default value : [ EuiAppToolbarComponent, ] as const

packages/eui/packages/components/layout/eui-app/eui-app-top-message/index.ts

EUI_APP_TOP_MESSAGE
Default value : [ EuiAppTopMessageComponent, ] as const

packages/eui/packages/components/eui-autocomplete/index.ts

EUI_AUTOCOMPLETE
Default value : [ EuiAutocompleteComponent, EuiAutocompleteOptionComponent, EuiAutocompleteOptionGroupComponent, ] as const

packages/eui/packages/components/eui-avatar/index.ts

EUI_AVATAR
Default value : [ EuiAvatarComponent, EuiAvatarIconComponent, EuiAvatarTextComponent, EuiAvatarImageComponent, EuiAvatarBadgeComponent, EuiAvatarListComponent, EuiAvatarContentComponent, EuiAvatarContentLabelComponent, EuiAvatarContentSublabelComponent, ] as const

packages/eui/packages/components/eui-badge/index.ts

EUI_BADGE
Default value : [ EuiBadgeComponent, ] as const

packages/eui/packages/components/eui-banner/index.ts

EUI_BANNER
Default value : [ EuiBannerComponent, EuiBannerTitleComponent, EuiBannerDescriptionComponent, EuiBannerCtaComponent, EuiBannerVideoComponent, ] as const

packages/eui/packages/components/eui-block-content/index.ts

EUI_BLOCK_CONTENT
Default value : [ EuiBlockContentComponent, ] as const

packages/eui/packages/components/eui-block-document/index.ts

EUI_BLOCK_DOCUMENT
Default value : [ EuiBlockDocumentComponent, ] as const

packages/eui/packages/components/eui-breadcrumb/index.ts

EUI_BREADCRUMB
Default value : [ EuiBreadcrumbComponent, EuiBreadcrumbItemComponent, ] as const

packages/eui/packages/components/eui-button/index.ts

EUI_BUTTON
Default value : [ EuiButtonComponent, ] as const

packages/eui/packages/components/eui-button-group/index.ts

EUI_BUTTON_GROUP
Default value : [ EuiButtonGroupComponent, ] as const

packages/eui/packages/components/eui-card/index.ts

EUI_CARD
Default value : [ EuiCardComponent, EuiCardHeaderComponent, EuiCardHeaderTitleComponent, EuiCardContentComponent, EuiCardHeaderLeftContentComponent, EuiCardHeaderRightContentComponent, EuiCardHeaderSubtitleComponent, EuiCardHeaderBodyComponent, EuiCardFooterActionButtonsComponent, EuiCardFooterActionIconsComponent, EuiCardMediaComponent, EuiCardFooterComponent, EuiCardFooterMenuContentComponent, EuiCardFooterMenuComponent, ] as const

packages/eui/packages/components/externals/charts/index.ts

EUI_CHARTS
Default value : [ EuiApexChartComponent, ] as const

packages/eui/packages/components/eui-chip/index.ts

EUI_CHIP
Default value : [ EuiChipComponent, ] as const

packages/eui/packages/components/eui-chip-group/index.ts

EUI_CHIP_GROUP
Default value : [ EuiChipGroupComponent, ] as const

packages/eui/packages/components/eui-chip-list/index.ts

EUI_CHIP_LIST
Default value : [ EuiChipListAppendContentDirective, EuiChipListComponent, ] as const

packages/eui/packages/components/eui-content-card/index.ts

EUI_CONTENT_CARD
Default value : [ EuiContentCardComponent, EuiContentCardBodyTopComponent, EuiContentCardBodyComponent, EuiContentCardFooterComponent, EuiContentCardHeaderComponent, EuiContentCardHeaderEndComponent, EuiContentCardHeaderMetadataComponent, EuiContentCardHeaderStartComponent, EuiContentCardHeaderSubmetadataComponent, EuiContentCardHeaderSubtitleComponent, EuiContentCardHeaderTitleComponent, EuiContentCardMediaComponent, ] as const

packages/eui/packages/components/eui-dashboard-button/index.ts

EUI_DASHBOARD_BUTTON
Default value : [ EuiDashboardButtonComponent, EuiDashboardButtonIconDirective, EuiDashboardButtonLabelDirective, ] as const

packages/eui/packages/components/eui-dashboard-card/index.ts

EUI_DASHBOARD_CARD
Default value : [ EuiDashboardCardComponent, EuiDashboardCardContentComponent, EuiDashboardCardContentHeaderComponent, EuiDashboardCardContentHeaderIconComponent, EuiDashboardCardContentHeaderTitleComponent, EuiDashboardCardContentHeaderActionComponent, EuiDashboardCardContentBodyComponent, EuiDashboardCardContentFooterComponent, EuiDashboardCardStatusContentComponent, ] as const

packages/eui/packages/components/eui-date-block/index.ts

EUI_DATE_BLOCK
Default value : [ EuiDateBlockComponent, ] as const

packages/eui/packages/components/eui-date-range-selector/index.ts

EUI_DATE_RANGE_SELECTOR
Default value : [ EuiTimeRangepickerComponent, EuiDateRangeSelectorComponent, ] as const

packages/eui/packages/components/eui-datepicker/index.ts

EUI_DATEPICKER
Default value : [ EuiDatepickerComponent, EuiLetterFormatDirective, EuiYearFormatDirective, EuiMonthYearFormatDirective, EuiActionButtonsDirective, ] as const

packages/eui/packages/components/eui-dialog/index.ts

EUI_DIALOG
Default value : [ EuiDialogComponent, EuiDialogHeaderDirective, EuiDialogFooterDirective, EuiDialogContainerComponent, ] as const

packages/eui/packages/components/eui-dimmer/index.ts

EUI_DIMMER
Default value : [ EuiDimmerComponent, ] as const

packages/eui/packages/components/eui-disable-content/index.ts

EUI_DISABLE_CONTENT
Default value : [ EuiDisableContentComponent, ] as const

packages/eui/packages/components/eui-discussion-thread/index.ts

EUI_DISCUSSION_THREAD
Default value : [ EuiDiscussionThreadComponent, EuiDiscussionThreadItemComponent, ] as const

packages/eui/packages/components/eui-dropdown/index.ts

EUI_DROPDOWN
Default value : [ EuiDropdownComponent, EuiDropdownItemComponent, EuiDropdownContentDirective, ] as const

packages/eui/packages/components/eui-feedback-message/index.ts

EUI_FEEDBACK_MESSAGE
Default value : [ EuiFeedbackMessageComponent, ] as const

packages/eui/packages/components/eui-fieldset/index.ts

EUI_FIELDSET
Default value : [ EuiFieldsetComponent, EuiFieldsetLabelExtraContentTagDirective, EuiFieldsetLabelRightContentTagDirective, ] as const

packages/eui/packages/components/eui-file-upload/index.ts

EUI_FILE_UPLOAD
Default value : [ EuiFileUploadComponent, EuiFileUploadProgressComponent, EuiFilePreviewComponent, EuiFileSizePipe, ] as const

packages/eui/packages/components/layout/eui-footer/index.ts

EUI_FOOTER
Default value : [ EuiFooterComponent, ] as const

packages/eui/packages/components/eui-growl/index.ts

EUI_GROWL
Default value : [ EuiGrowlComponent ] as const

packages/eui/packages/components/layout/eui-header/index.ts

EUI_HEADER
Default value : [ EuiHeaderComponent, EuiHeaderAppComponent, EuiHeaderAppNameComponent, EuiHeaderAppSubtitleComponent, EuiHeaderAppNameLogoComponent, EuiHeaderEnvironmentComponent, EuiHeaderLogoComponent, EuiHeaderSearchComponent, EuiHeaderRightContentComponent, EuiHeaderUserProfileComponent, ] as const

packages/eui/packages/components/eui-icon/index.ts

EUI_ICON
Default value : [ EuiIconSvgComponent, ] as const

packages/eui/packages/components/eui-icon-button/index.ts

EUI_ICON_BUTTON
Default value : [ EuiIconButtonComponent, ] as const

packages/eui/packages/components/eui-icon-button-expander/index.ts

EUI_ICON_BUTTON_EXPANDER
Default value : [ EuiIconButtonExpanderComponent, ] as const

packages/eui/packages/components/eui-icon-color/index.ts

EUI_ICON_COLOR
Default value : [ EuiIconColorComponent, ] as const

packages/eui/packages/components/eui-icon-input/index.ts

EUI_ICON_INPUT
Default value : [ EuiIconInputComponent, ] as const

packages/eui/packages/components/eui-icon-state/index.ts

EUI_ICON_STATE
Default value : [ EuiIconStateComponent, ] as const

packages/eui/packages/components/eui-icon-toggle/index.ts

EUI_ICON_TOGGLE
Default value : [ EuiIconToggleComponent, ] as const

packages/eui/packages/components/eui-input-checkbox/index.ts

EUI_INPUT_CHECKBOX
Default value : [ EuiInputCheckboxComponent, ] as const

packages/eui/packages/components/eui-input-group/index.ts

EUI_INPUT_GROUP
Default value : [ EuiInputGroupComponent, EuiInputGroupAddOnComponent, EuiInputGroupAddOnItemComponent, ] as const

packages/eui/packages/components/eui-input-number/index.ts

EUI_INPUT_NUMBER
Default value : [ EuiInputNumberComponent, EuiInputNumberDirective, ] as const

packages/eui/packages/components/eui-input-radio/index.ts

EUI_INPUT_RADIO
Default value : [ EuiInputRadioComponent, ] as const

packages/eui/packages/components/eui-input-text/index.ts

EUI_INPUT_TEXT
Default value : [ EuiInputTextComponent, ] as const

packages/eui/packages/components/eui-label/index.ts

EUI_LABEL
Default value : [ EuiLabelComponent, ] as const

packages/eui/packages/components/eui-language-selector/index.ts

EUI_LANGUAGE_SELECTOR
Default value : [ EuiLanguageSelectorComponent, EuiModalSelectorComponent, ] as const

packages/eui/packages/components/layout/index.ts

EUI_LAYOUT
Default value : [ ...EUI_APP, ...EUI_TOOLBAR, ...EUI_FOOTER, ...EUI_HEADER, ...EUI_SIDEBAR_TOGGLE, ...EUI_NOTIFICATIONS, ...EUI_NOTIFICATIONS_V2, ] as const

packages/eui/packages/components/eui-list/index.ts

EUI_LIST
Default value : [ EuiListComponent, EuiListItemComponent, ] as const

packages/eui/packages/components/eui-menu/index.ts

EUI_MENU
Default value : [ EuiMenuComponent, EuiMenuItemComponent, ] as const

packages/eui/packages/components/eui-message-box/index.ts

EUI_MESSAGE_BOX
Default value : [ EuiMessageBoxComponent, EuiMessageBoxFooterDirective, ] as const

packages/eui/packages/components/eui-navbar/index.ts

EUI_NAVBAR
Default value : [ EuiNavbarComponent, EuiNavbarItemComponent, ] as const

packages/eui/packages/components/layout/eui-notifications/index.ts

EUI_NOTIFICATIONS
Default value : [ EuiNotificationsComponent, EuiNotificationItemComponent, ] as const

packages/eui/packages/components/layout/eui-notifications-v2/index.ts

EUI_NOTIFICATIONS_V2
Default value : [ EuiNotificationsV2Component, EuiNotificationItemV2Component, ] as const

packages/eui/packages/components/eui-overlay/index.ts

EUI_OVERLAY
Default value : [ EuiOverlayHeaderComponent, EuiOverlayHeaderTitleComponent, EuiOverlayBodyComponent, EuiOverlayContentComponent, EuiOverlayFooterComponent, EuiOverlayComponent, ] as const

packages/eui/packages/components/eui-page/index.ts

EUI_PAGE
Default value : [ EuiPageComponent, EuiPageColumnComponent, EuiPageColumnHeaderBodyContentDirective, EuiPageColumnHeaderLeftContentDirective, EuiPageColumnHeaderRightContentDirective, EuiPageColumnHeaderCollapsedContentDirective, EuiPageColumnBodyContentDirective, EuiPageColumnFooterContentDirective, EuiPageColumnsComponent, EuiPageContentComponent, EuiPageHeaderComponent, EuiPageHeaderSubLabelComponent, EuiPageHeaderBodyComponent, EuiPageHeaderActionItemsComponent, EuiPageHeroHeaderComponent, EuiPageFooterComponent, EuiPageBreadcrumbComponent, EuiPageTopContentComponent, ] as const

packages/eui/packages/components/eui-paginator/index.ts

EUI_PAGINATOR
Default value : [ EuiPaginatorComponent ] as const

packages/eui/packages/components/eui-popover/index.ts

EUI_POPOVER
Default value : [ EuiPopoverComponent, ] as const

packages/eui/packages/components/eui-progress-bar/index.ts

EUI_PROGRESS_BAR
Default value : [ EuiProgressBarComponent, ] as const

packages/eui/packages/components/eui-progress-circle/index.ts

EUI_PROGRESS_CIRCLE
Default value : [ EuiProgressCircleComponent, ] as const

packages/eui/packages/components/eui-rating/index.ts

EUI_RATING
Default value : [ EuiRatingComponent, ] as const

packages/eui/packages/components/eui-select/index.ts

EUI_SELECT
Default value : [ EuiSelectComponent, EuiNgSelectOptionDirective, EuiSelectControlValueAccessor, EuiSelectMultipleControlValueAccessor, EuiSelectMultipleOption, ] as const

packages/eui/packages/components/eui-sidebar-menu/index.ts

EUI_SIDEBAR_MENU
Default value : [ EuiSidebarMenuComponent, ] as const

packages/eui/packages/components/layout/eui-sidebar-toggle/index.ts

EUI_SIDEBAR_TOGGLE
Type : []
Default value : [ EuiSidebarToggleComponent, ]

packages/eui/packages/components/eui-skeleton/index.ts

EUI_SKELETON
Default value : [ EuiSkeletonComponent, ] as const

packages/eui/packages/components/eui-slide-toggle/index.ts

EUI_SLIDE_TOGGLE
Default value : [ EuiSlideToggleComponent, ] as const

packages/eui/packages/components/eui-split-button/index.ts

EUI_SPLIT_BUTTON
Default value : [ EuiSplitButtonComponent, ] as const

packages/eui/packages/components/eui-status-badge/index.ts

EUI_STATUS_BADGE
Default value : [ EuiStatusBadgeComponent, ] as const

packages/eui/packages/components/eui-table/index.ts

EUI_TABLE
Default value : [ EuiTableComponent, EuiTableSortableColComponent, EuiTableFilterComponent, EuiTableSelectableRowComponent, EuiTableSelectableHeaderComponent, EuiTableExpandableRowComponent, EuiTableHighlightFilterPipe, EuiTableStickyColumnDirective, EuiTemplateDirective, ] as const

packages/eui/packages/components/eui-table-v2/index.ts

EUI_TABLE_V2
Default value : [ EuiTableV2Component, EuiTableV2SelectableHeaderComponent, EuiTableV2SelectableRowComponent, EuiTableV2StickyColDirective, EuiTableV2FilterComponent, EuiTableV2HighlightPipe, EuiTableV2SortableColComponent, EuiTableV2ExpandableRowDirective, EuiTemplateDirective, ] as const

packages/eui/packages/components/eui-tabs/index.ts

EUI_TABS
Default value : [ EuiTabsComponent, EuiTabComponent, EuiTabsRightContentTagDirective, EuiTabLabelComponent, EuiTabSubLabelDirective, EuiTabContentComponent, ] as const

packages/eui/packages/components/eui-tabs-v2/index.ts

EUI_TABS
Default value : [ EuiTabsV2Component, EuiTabsV2RightContentComponent, EuiTabV2BodyComponent, EuiTabV2HeaderComponent, EuiTabV2Component, ] as const

packages/eui/packages/components/eui-textarea/index.ts

EUI_TEXTAREA
Default value : [ EuiTextareaComponent, AutoResizeDirective, ] as const

packages/eui/packages/components/eui-timebar/index.ts

EUI_TIMEBAR
Default value : [ EuiTimebarComponent, ] as const

packages/eui/packages/components/eui-timeline/index.ts

EUI_TIMELINE
Default value : [ EuiTimelineComponent, EuiTimelineItemComponent, ] as const

packages/eui/packages/components/eui-timepicker/index.ts

EUI_TIMEPICKER
Default value : [ EuiTimepickerComponent, ] as const

packages/eui/packages/components/layout/eui-toolbar/index.ts

EUI_TOOLBAR
Default value : [ EuiToolbarComponent, EuiToolbarAppComponent, EuiToolbarMenuComponent, EuiToolbarEnvironmentComponent, EuiToolbarItemsComponent, EuiToolbarItemComponent, EuiToolbarCenterComponent, EuiToolbarLogoComponent, EuiToolbarSelectorComponent, EuiToolbarNavbarComponent, EuiToolbarNavbarItemComponent, EuiToolbarSearchComponent, ] as const

packages/eui/packages/components/eui-tree/index.ts

EUI_TREE
Default value : [ EuiTreeComponent, ] as const

packages/eui/packages/components/eui-tree-list/index.ts

EUI_TREE_LIST
Default value : [ EuiTreeListComponent, EuiTreeListItemComponent, EuiTreeListItemLabelTagDirective, EuiTreeListItemDetailsContentTagDirective, EuiTreeListItemSubContainerContentTagDirective, EuiTreeListItemContentComponent, EuiTreeListToolbarComponent, ] as const

packages/eui/packages/components/eui-user-profile/index.ts

EUI_USER_PROFILE
Default value : [ EuiUserProfileComponent, EuiUserProfileMenuComponent, EuiUserProfileMenuItemComponent, EuiUserProfileCardComponent, ] as const

packages/eui/packages/components/eui-wizard/index.ts

EUI_WIZARD
Default value : [ EuiWizardStepComponent, EuiWizardComponent, ] as const

packages/eui/packages/components/shared/animations/collapse.animation.ts

euiAnimationCollapse
Default value : trigger('euiAnimationCollapse', [ state('false', style({ height: AUTO_STYLE, visibility: AUTO_STYLE })), state('true', style({ height: '0', visibility: 'hidden', paddingTop: '0', paddingBottom: '0' })), transition('false => true', animate(100 + 'ms ease-in')), transition('true => false', animate(200 + 'ms ease-out')), ])

packages/eui/packages/components/eui-autocomplete/validators/force-selection-from-data.validator.ts

euiAutocompleteForceSelectionFromData
Default value : (control: AbstractControl<EuiAutoCompleteItem | EuiAutoCompleteItem[]>): { isInData: { isInData: boolean; invalidValues: EuiAutoCompleteItem | EuiAutoCompleteItem[] } } | null => { if (control.value) { const isInData = Array.isArray(control.value) ? control.value.every(obj => 'id' in obj) : control.value.id !== undefined; const invalidValues = Array.isArray(control.value) ? control.value.filter(v => v.id === undefined) : control.value; return !isInData ? { isInData: { isInData, invalidValues } } : null; } return null; }

packages/eui/packages/components/eui-date-range-selector/eui-date-range-selector.validators.ts

euiStartEndDateValidator
Default value : (adapter: DateAdapter<any>): ValidatorFn => (control: AbstractControl): ValidationErrors | null => { const start = moment(adapter.getValidDateOrNull(adapter.deserialize(control.value?.startRange))); const end = moment(control.value?.endRange); return !start || !end || adapter.compareDate(start, end) <= 0 ? null : { euiDateRangeInvalid: { end, actual: start } }; }

packages/eui/packages/components/externals/quill/quill-editor.component.ts

getFormat
Default value : (format?: QuillFormat, configFormat?: QuillFormat): QuillFormat => { const passedFormat = format || configFormat; return passedFormat || 'html'; }
Quill
Type : any
require
Type : any

packages/eui/packages/components/eui-file-upload/utils/mime-types.ts

getMimeType
Default value : (header: Uint8Array): MimeType => { // convert Uint8Array to hex string const hex = uint8ArrayToHexString(header); // map hex string to mime type if (hex.startsWith('ffd8ffe000104a46')) return 'image/jpeg'; if (hex.startsWith('89504e47')) return 'image/png'; if (hex.startsWith('464c4946')) return 'image/flif'; if (hex.startsWith('67696d7020786366')) return 'image/x-xcf'; if (hex.startsWith('49492a00')) return 'image/x-canon-cr2'; if (hex.startsWith('49492a00')) return 'image/x-canon-cr3'; if (hex.startsWith('49492a00')) return 'image/tiff'; if (hex.startsWith('424d')) return 'image/bmp'; if (hex.startsWith('69636e73')) return 'image/icns'; if (hex.startsWith('49491a0000004845415050')) return 'image/vnd.ms-photo'; if (hex.startsWith('38425053')) return 'image/vnd.adobe.photoshop'; if (hex.startsWith('06054b50')) return 'application/x-indesign'; if (hex.startsWith('504b0304')) return 'application/epub+zip'; if (hex.startsWith('504b0304')) return 'application/x-xpinstall'; if (hex.startsWith('504b0304')) return 'application/vnd.oasis.opendocument.text'; if (hex.startsWith('504b0304')) return 'application/vnd.oasis.opendocument.spreadsheet'; if (hex.startsWith('504b0304')) return 'application/vnd.oasis.opendocument.presentation'; if (hex.startsWith('504b0304')) return 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'; if (hex.startsWith('504b0304')) return 'application/vnd.openxmlformats-officedocument.presentationml.presentation'; if (hex.startsWith('504b0304')) return 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'; if (hex.startsWith('504b0304')) return 'application/zip'; if (hex.startsWith('7b2274797065223a226a736f6e227d')) return 'application/json'; if (hex.startsWith('7573746172')) return 'application/x-tar'; if (hex.startsWith('526172211a0700')) return 'application/x-rar-compressed'; if (hex.startsWith('1f8b08')) return 'application/gzip'; if (hex.startsWith('425a68')) return 'application/x-bzip2'; if (hex.startsWith('377abcaf271c')) return 'application/x-7z-compressed'; if (hex.startsWith('78da')) return 'application/x-apple-diskimage'; if (hex.startsWith('00000020667479706d70')) return 'video/mp4'; if (hex.startsWith('4d546864')) return 'audio/midi'; if (hex.startsWith('1a45dfa393428288')) return 'video/x-matroska'; if (hex.startsWith('1a45dfa3')) return 'video/webm'; if (hex.startsWith('00000014667479707174')) return 'video/quicktime'; if (hex.startsWith('52494646')) return 'video/vnd.avi'; if (hex.startsWith('52494646')) return 'audio/vnd.wave'; if (hex.startsWith('0a010301')) return 'audio/qcelp'; if (hex.startsWith('3026b2758e66cf11')) return 'audio/x-ms-asf'; if (hex.startsWith('3026b2758e66cf11')) return 'video/x-ms-asf'; if (hex.startsWith('3026b2758e66cf11')) return 'application/vnd.ms-asf'; if (hex.startsWith('000001ba')) return 'video/mpeg'; if (hex.startsWith('00000020667479703367')) return 'video/3gpp'; if (hex.startsWith('494433')) return 'audio/mpeg'; if (hex.startsWith('00000020667479704d344120')) return 'audio/mp4'; if (hex.startsWith('4f707573')) return 'audio/opus'; if (hex.startsWith('4f676753')) return 'video/ogg'; if (hex.startsWith('4f676753')) return 'audio/ogg'; if (hex.startsWith('4f676753')) return 'application/ogg'; if (hex.startsWith('664c6143')) return 'audio/x-flac'; if (hex.startsWith('4d414320')) return 'audio/ape'; if (hex.startsWith('7776706b')) return 'audio/wavpack'; if (hex.startsWith('2321414d520a')) return 'audio/amr'; if (hex.startsWith('255044462d312e')) return 'application/pdf'; if (hex.startsWith('7f454c46')) return 'application/x-elf'; if (hex.startsWith('4d5a')) return 'application/x-msdownload'; if (hex.startsWith('435753')) return 'application/x-shockwave-flash'; if (hex.startsWith('7b5c72746631')) return 'application/rtf'; if (hex.startsWith('0061736d')) return 'application/wasm'; if (hex.startsWith('774f4646')) return 'font/woff'; if (hex.startsWith('774f4632')) return 'font/woff2'; if (hex.startsWith('000100000008')) return 'application/vnd.ms-fontobject'; if (hex.startsWith('0001000000')) return 'font/ttf'; if (hex.startsWith('4f54544f00')) return 'font/otf'; if (hex.startsWith('000001000100')) return 'image/x-icon'; if (hex.startsWith('464c560105')) return 'video/x-flv'; if (hex.startsWith('25215053')) return 'application/postscript'; if (hex.startsWith('25215053')) return 'application/eps'; if (hex.startsWith('fd377a585a00')) return 'application/x-xz'; if (hex.startsWith('53514c69746520666f726d6174203300')) return 'application/x-sqlite3'; if (hex.startsWith('4e45531a00000001')) return 'application/x-nintendo-nes-rom'; if (hex.startsWith('504b0304')) return 'application/x-google-chrome-extension'; if (hex.startsWith('4d534346')) return 'application/vnd.ms-cab-compressed'; if (hex.startsWith('213c617263683e0a')) return 'application/x-deb'; if (hex.startsWith('1f8b08')) return 'application/x-unix-archive'; if (hex.startsWith('edabeedb')) return 'application/x-rpm'; if (hex.startsWith('1f9d90')) return 'application/x-compress'; if (hex.startsWith('4c5a4950')) return 'application/x-lzip'; if (hex.startsWith('d0cf11e0a1b11ae1')) return 'application/x-cfb'; if (hex.startsWith('4d49455f')) return 'application/x-mie'; if (hex.startsWith('4141523146')) return 'application/x-apache-arrow'; if (hex.startsWith('060e2b3402050101')) return 'application/mxf'; if (hex.startsWith('47')) return 'video/mp2t'; if (hex.startsWith('4250e4')) return 'application/x-blender'; if (hex.startsWith('425047fb')) return 'image/bpg'; if (hex.startsWith('ff4fff51')) return 'image/j2c'; if (hex.startsWith('0000000c6a5020200d0a')) return 'image/jp2'; if (hex.startsWith('6a5020200d0a870a')) return 'image/jpx'; if (hex.startsWith('6a5020200d0a870a')) return 'image/jpm'; if (hex.startsWith('0000000c6a5020200d0a')) return 'image/mj2'; if (hex.startsWith('464f524d')) return 'audio/aiff'; if (hex.startsWith('3c3f786d6c20')) return 'application/xml'; if (hex.startsWith('424f4f4b4d4f4249')) return 'application/x-mobipocket-ebook'; if (hex.startsWith('667479706174')) return 'image/heif'; if (hex.startsWith('667479706174')) return 'image/heif-sequence'; if (hex.startsWith('667479706174')) return 'image/heic'; if (hex.startsWith('667479706174')) return 'image/heic-sequence'; if (hex.startsWith('4b545820')) return 'image/ktx'; if (hex.startsWith('4449434d')) return 'application/dicom'; if (hex.startsWith('4d50434b')) return 'audio/x-musepack'; if (hex.startsWith('56656e64')) return 'text/calendar'; if (hex.startsWith('424547494e3a5643415244')) return 'text/vcard'; if (hex.startsWith('676c5458')) return 'model/gltf-binary'; if (hex.startsWith('d4c3b2a1')) return 'application/vnd.tcpdump.pcap'; if (hex.startsWith('464f524d')) return 'audio/x-voc'; if (hex.startsWith('64646f6c')) return 'audio/vnd.dolby.dd-raw'; return null; }
uint8ArrayToHexString
Default value : (uint8Array): string => { return Array.prototype.map.call(uint8Array, (byte) => ('00' + byte.toString(16)).slice(-2)).join(''); }

packages/eui/packages/components/externals/helpers/get-view-element.helper.ts

getViewElement
Default value : (fixture, componentClass, klass?) => { let el; let domElement; 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); } } } return { de, el, domElement }; }

packages/eui/packages/components/eui-card/services/ui-state.service.ts

initialState
Type : UIState
Default value : { isCollapsible: false, isCollapsed: false, isUrgent: false, }

packages/eui/packages/components/eui-datepicker/eui-datepicker.component.ts

LETTER_FORMAT
Type : object
Default value : { parse: { dateInput: 'LL', }, display: { dateInput: 'LL', monthYearLabel: 'LL', }, }
moment
Default value : _rollupMoment || _moment
MONTH_YEAR_FORMAT
Type : object
Default value : { parse: { dateInput: 'MM/YYYY', }, display: { dateInput: 'MM/YYYY', monthYearLabel: 'MMM YYYY', dateA11yLabel: 'LL', monthYearA11yLabel: 'MMMM YYYY', }, }
YEAR_FORMAT
Type : object
Default value : { parse: { dateInput: 'YYYY', }, display: { dateInput: 'YYYY', monthYearLabel: 'YYYY', dateA11yLabel: 'YYYY', monthYearA11yLabel: 'YYYY', }, }

packages/eui/packages/components/validators/max-length-bytes.validator.ts

maxLengthBytes
Default value : (bytes: number): ValidatorFn => { return (control: AbstractControl): ValidationErrors | null => { const length: number = new TextEncoder().encode(control.value).length; if (length > bytes) { return { maxLengthBytes: { required: bytes, actual: length, }, }; } return null; }; }

packages/eui/packages/components/eui-all/eui-all.module.ts

MODULES
Type : []
Default value : [ EuiLayoutModule, EuiOverlayModule, EuiTemplateDirectiveModule, EuiTooltipDirectiveModule, EuiInputNumberModule, EuiMaxLengthDirectiveModule, EuiSmoothScrollDirectiveModule, EuiScrollHandlerDirectiveModule, EuiHasPermissionDirectiveModule, EuiResizableDirectiveModule, EuiPageModule, EuiDimmerModule, EuiBadgeModule, EuiIconModule, EuiLabelModule, EuiIconToggleModule, EuiAlertModule, EuiAutocompleteModule, EuiBlockDocumentModule, EuiBlockContentModule, EuiButtonModule, EuiCardModule, EuiChipModule, EuiChipListModule, EuiDashboardButtonModule, EuiDashboardCardModule, EuiDatepickerModule, EuiDateRangeSelectorModule, EuiSlideToggleModule, EuiPopoverModule, EuiFeedbackMessageModule, EuiTimepickerModule, EuiInputCheckboxModule, EuiSelectModule, EuiInputRadioModule, EuiInputTextModule, EuiTextAreaModule, EuiInputGroupModule, EuiFieldsetModule, EuiButtonGroupModule, EuiProgressCircleModule, EuiDisableContentModule, EuiWizardModule, EuiTimelineModule, EuiTimebarModule, EuiDiscussionThreadModule, EuiSidebarMenuModule, EuiProgressBarModule, EuiTreeListModule, EuiAvatarModule, EuiSkeletonModule, EuiUserProfileModule, EuiAccordionModule, EuiSplitButtonModule, EuiBreadcrumbModule, EuiIconButtonExpanderModule, EuiIconInputModule, EuiIconButtonModule, EuiIconStateModule, EuiDropdownModule, EuiDialogModule, EuiGrowlModule, EuiTabsModule, EuiMenuModule, EuiMessageBoxModule, EuiListModule, EuiTableModule, EuiTableV2Module, EuiFileUploadModule, EuiTreeModule, EuiTruncatePipeModule, EuiPaginatorModule, EuiLanguageSelectorModule, EuiIconColorModule, EuiNavbarModule, ]

packages/eui/packages/components/layout/eui-app/eui-app.module.ts

MODULES
Type : []
Default value : [ EuiSidebarToggleModule, EuiAppHeaderModule, EuiAppFooterModule, EuiAppToolbarModule, EuiToolbarModule, EuiAppSidebarModule, EuiAppTopMessageModule, EuiBlockDocumentModule, EuiGrowlModule, EuiDimmerModule, EuiAppBreadcrumbModule, EuiUserProfileModule, ]

packages/eui/packages/components/eui-tree/testing/multilevel.ts

multilevel
Type : []
Default value : [ { node: { treeContentBlock: { id: '1', label: 'DIGIT A', }, isSelected: true, }, }, { node: { treeContentBlock: { id: '2', label: 'DIGIT B', }, }, children: [ { node: { treeContentBlock: { id: '3', label: 'DIGIT B.1', }, }, }, { node: { treeContentBlock: { id: '4', label: 'DIGIT B.2', }, }, }, { node: { treeContentBlock: { id: '5', label: 'DIGIT B.3', }, }, children: [ { node: { treeContentBlock: { id: '6', label: 'DIGIT B.3.1', }, isSelected: true, }, }, { node: { treeContentBlock: { id: '7', label: 'DIGIT B.3.2', }, isSelected: true, }, }, ], }, { node: { treeContentBlock: { id: '8', label: 'DIGIT B.4', }, }, }, { node: { treeContentBlock: { id: '9', label: 'DIGIT B.5', }, }, }, ], }, { node: { treeContentBlock: { id: '10', label: 'DIGIT C', }, }, children: [ { node: { treeContentBlock: { id: '11', label: 'DIGIT C.1', }, }, }, { node: { treeContentBlock: { id: '12', label: 'DIGIT C.2', }, }, }, { node: { treeContentBlock: { id: '13', label: 'DIGIT C.3', }, }, children: [ { node: { treeContentBlock: { id: '14', label: 'DIGIT C.3.1', }, }, }, { node: { treeContentBlock: { id: '15', label: 'DIGIT C.3.2', }, }, }, ], }, { node: { treeContentBlock: { id: '16', label: 'DIGIT C.4', }, }, }, { node: { treeContentBlock: { id: '17', label: 'DIGIT C.5', }, }, }, ], }, { node: { treeContentBlock: { id: '18', label: 'DIGIT D', }, }, children: [ { node: { treeContentBlock: { id: '19', label: 'DIGIT D.1', }, }, }, { node: { treeContentBlock: { id: '20', label: 'DIGIT D.2', }, }, }, { node: { treeContentBlock: { id: '21', label: 'DIGIT D.3', }, }, children: [ { node: { treeContentBlock: { id: '22', label: 'DIGIT D.3.1', }, }, }, { node: { treeContentBlock: { id: '23', label: 'DIGIT D.3.2', }, }, }, ], }, { node: { treeContentBlock: { id: '24', label: 'DIGIT D.4', }, }, }, { node: { treeContentBlock: { id: '25', label: 'DIGIT D.5', }, }, }, ], }, ]

packages/eui/packages/components/eui-slide-toggle/animations/on-off.ts

onOff
Default value : trigger('onOff', [ state( 'off', style({ left: 0, }), ), state( 'on', style({ left: '1rem', }), ), transition('off => on', [animate('0ms 100ms linear')]), transition('on => off', [animate('0ms 100ms linear')]), ])

packages/eui/packages/components/eui-dropdown/animations/open-close.ts

openClose
Default value : trigger('openClose', [ state( 'open', style({ opacity: 1, transform: 'scale(1)', }), ), state( 'closed', style({ opacity: 0, transform: 'scale(0.9)', }), ), transition('closed => open', [animate('50ms 25ms linear')]), ])

packages/eui/packages/components/eui-autocomplete/animations/animations.ts

panelAnimation
Type : AnimationTriggerMetadata
Default value : trigger('panelAnimation', [ state( 'void, hidden', style({ opacity: 0, transform: 'scaleY(0.8)', }), ), transition(':enter, hidden => visible', [ group([ animate('0.03s linear', style({ opacity: 1 })), animate('0.12s cubic-bezier(0, 0, 0.2, 1)', style({ transform: 'scaleY(1)' })), ]), ]), transition(':leave, visible => hidden', [animate('0.05s linear', style({ opacity: 0 }))]), ])

packages/eui/packages/components/eui-progress-bar/eui-progress-bar.component.ts

progressAttribute
Default value : (value: NumberInput): number => Math.min(numberAttribute(value), 100)

Transform function that ensures progress value doesn't exceed 100

packages/eui/packages/components/externals/quill/quill-editor.interfaces.ts

QUILL_CONFIG_TOKEN
Default value : new InjectionToken<QuillConfig>('config')
QUILL_DYNAMIC_CONFIG_TOKEN
Default value : new InjectionToken<QuillDynamicConfig>('Dynamic loading config')

packages/eui/packages/components/externals/eui-editor/eui-editor.component.ts

QuillBetterTable
Default value : window['quillBetterTable']
QuillType
Type : any
Default value : window['Quill']

packages/eui/packages/components/externals/eui-editor/eui-editor.module.ts

QuillBetterTable
Default value : window['quillBetterTable']
quillConfig
Type : QuillConfig
Default value : { modules: { table: false, 'better-table': { operationMenu: { items: { unmergeCells: { text: 'Another unmerge cells name', }, }, color: { colors: [ '#000000', '#e60000', '#ff9900', '#ffff00', '#008a00', '#0066cc', '#9933ff', '#ffffff', '#facccc', '#ffebcc', '#ffffcc', '#cce8cc', '#cce0f5', '#ebd6ff', '#bbbbbb', '#f06666', '#ffc266', '#ffff66', '#66b966', '#66a3e0', '#c285ff', '#888888', '#a10000', '#b26b00', '#b2b200', '#006100', '#0047b2', '#6b24b2', '#444444', '#5c0000', '#663d00', '#666600', '#003700', '#002966', '#3d1466', ], text: 'Background Colors', }, }, }, }, }

packages/eui/packages/components/externals/eui-editor/json-view/eui-editor-json-view.component.ts

QuillType
Type : any
Default value : window['Quill']

packages/eui/packages/components/eui-page/components/eui-page-columns/eui-page-columns.component.ts

ResizeObserver

packages/eui/packages/components/eui-select/eui-select-multiple.directive.ts

SELECT_MULTIPLE_VALUE_ACCESSOR
Type : Provider
Default value : { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => EuiSelectMultipleControlValueAccessor), multi: true, }

packages/eui/packages/components/directives/eui-tooltip/animations/show-hide.ts

showHide
Default value : trigger('showHide', [ state('initial, void, hidden', style({ opacity: 0, transform: 'scale(0)' })), state('visible', style({ transform: 'scale(1)' })), transition( '* => visible', animate( '200ms cubic-bezier(0, 0, 0.2, 1)', keyframes([ style({ opacity: 0, transform: 'scale(0)', offset: 0 }), style({ opacity: 0.5, transform: 'scale(0.99)', offset: 0.5 }), style({ opacity: 1, transform: 'scale(1)', offset: 1 }), ]), ), ), transition('* => hidden', animate('100ms cubic-bezier(0, 0, 0.2, 1)', style({ opacity: 0 }))), ])

Tooltip display animation.

packages/eui/packages/components/eui-page/eui-page.module.ts

STA
Type : []
Default value : [ EuiPageComponent, EuiPageColumnComponent, EuiPageColumnHeaderBodyContentDirective, EuiPageColumnHeaderLeftContentDirective, EuiPageColumnHeaderRightContentDirective, EuiPageColumnHeaderCollapsedContentDirective, EuiPageColumnBodyContentDirective, EuiPageColumnFooterContentDirective, EuiPageColumnsComponent, EuiPageContentComponent, EuiPageHeaderComponent, EuiPageHeaderSubLabelComponent, EuiPageHeaderBodyComponent, EuiPageHeaderActionItemsComponent, EuiPageHeroHeaderComponent, EuiPageFooterComponent, EuiPageBreadcrumbComponent, EuiPageTopContentComponent, ]

packages/eui/packages/components/layout/eui-header/header.module.ts

STA
Type : []
Default value : [ EuiHeaderComponent, EuiHeaderAppComponent, EuiHeaderAppNameComponent, EuiHeaderAppSubtitleComponent, EuiHeaderAppNameLogoComponent, EuiHeaderEnvironmentComponent, EuiHeaderLogoComponent, EuiHeaderSearchComponent, EuiHeaderRightContentComponent, EuiHeaderUserProfileComponent, ]

packages/eui/packages/components/layout/eui-toolbar/toolbar.module.ts

STA
Type : []
Default value : [ EuiToolbarComponent, EuiToolbarAppComponent, EuiToolbarMenuComponent, EuiToolbarEnvironmentComponent, EuiToolbarItemsComponent, EuiToolbarItemComponent, EuiToolbarCenterComponent, EuiToolbarLogoComponent, EuiToolbarSelectorComponent, EuiToolbarNavbarComponent, EuiToolbarNavbarItemComponent, EuiToolbarSearchComponent, ]

packages/eui/packages/components/testing/mocks/translate.module.mock.ts

TRANSLATED_STRING
Type : string
Default value : 'i18n'

packages/eui/packages/components/externals/eui-editor/image-url-dialog/image-url-dialog.component.ts

urlValidator
Default value : (control: AbstractControl): { isUrlValid: false } | null => { const isHttp = control.value.substr(0, 7) === 'http://'; const isHttps = control.value.substr(0, 8) === 'https://'; return !isHttp && !isHttps ? { isUrlValid: false } : null; }

packages/eui/packages/components/externals/quill/loader.service.ts

window
Type : literal type

results matching ""

    No results matching ""