import * as i0 from '@angular/core'; import { TemplateRef, AfterContentInit, OnChanges, OnDestroy, EventEmitter, ElementRef, ChangeDetectorRef, ViewContainerRef, SimpleChanges, QueryList, InjectionToken, OnInit, ComponentRef, EmbeddedViewRef, Injector, AfterViewInit, Renderer2, PipeTransform, NgZone, ApplicationRef } from '@angular/core'; import { CdkAccordion, CdkAccordionItem } from '@angular/cdk/accordion'; import * as i3$1 from '@angular/cdk/a11y'; import { FocusableOption, FocusMonitor, FocusOrigin, FocusTrapFactory } from '@angular/cdk/a11y'; import { AnimationEvent } from '@angular/animations'; import { UniqueSelectionDispatcher } from '@angular/cdk/collections'; import * as i6 from '@angular/cdk/portal'; import { TemplatePortal, BasePortalOutlet, CdkPortalOutlet, ComponentPortal, ComponentType } from '@angular/cdk/portal'; import { Subject, Observable, Subscription } from 'rxjs'; import * as i2 from '@angular/common'; import { Location, DatePipe } from '@angular/common'; import * as i4 from '@gsa-sam/ngx-uswds-icons'; import * as i6$1 from '@angular/cdk/overlay'; import { Overlay, ScrollStrategy, OverlayRef, OverlayContainer, ViewportRuler } from '@angular/cdk/overlay'; import * as i5 from 'ngx-bootstrap-icons'; import * as i3 from '@angular/forms'; import { ControlValueAccessor } from '@angular/forms'; import * as i4$1 from '@angular/router'; import { QueryParamsHandling, Router, ActivatedRoute } from '@angular/router'; import { BreakpointObserver } from '@angular/cdk/layout'; import { Direction } from '@angular/cdk/bidi'; import { Toast, ToastrService, ToastPackage } from 'ngx-toastr'; import * as i3$2 from '@ckeditor/ckeditor5-angular'; import { CKEditorComponent, ChangeEvent, BlurEvent } from '@ckeditor/ckeditor5-angular'; import { ClassicEditor, EditorConfig } from 'ckeditor5'; import * as i3$3 from '@gsa-sam/ngx-uswds'; import { Options } from '@popperjs/core'; /** Accordion's display modes. */ type SdsAccordionDisplayMode = 'default' | 'basic'; /** * Base interface for a `SdsAccordion`. */ interface SdsAccordionBase extends CdkAccordion { /** Display mode used for all accordion items in the accordion. */ displayMode: SdsAccordionDisplayMode; /** Handles keyboard events coming in from the item headers. */ _handleHeaderKeydown: (event: KeyboardEvent) => void; /** Handles focus events on the item headers. */ _handleHeaderFocus: (header: any) => void; } /** * Accordion Item content that will be rendered lazily * after the accordion item is opened for the first time. */ declare class SdsAccordionItemContentDirective { _template: TemplateRef; constructor(_template: TemplateRef); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** Accordion Item's states. */ type SdsAccordionItemState = 'expanded' | 'collapsed'; declare class SdsAccordionItemComponent extends CdkAccordionItem implements AfterContentInit, OnChanges, OnDestroy { private _viewContainerRef; _animationMode: string; private _document; /** An event emitted after the body's expansion animation happens. */ afterExpand: EventEmitter; /** An event emitted after the body's collapse animation happens. */ afterCollapse: EventEmitter; /** Stream that emits for changes in `@Input` properties. */ readonly _inputChanges: Subject<{ [propName: string]: i0.SimpleChange; }>; /** Optionally defined accordion the accordion item belongs to. */ accordion: SdsAccordionBase; /** Content that will be rendered lazily. */ _lazyContent: SdsAccordionItemContentDirective; /** Element containing the accordion item's user-provided content. */ _body: ElementRef; /** Portal holding the user's content. */ _portal: TemplatePortal; /** ID for the associated header element. Used for a11y labelling. */ _headerId: string; /** Stream of body animation done events. */ _bodyAnimationDone: Subject; constructor(accordion: SdsAccordionBase, _changeDetectorRef: ChangeDetectorRef, _uniqueSelectionDispatcher: UniqueSelectionDispatcher, _viewContainerRef: ViewContainerRef, _document: any, _animationMode: string); /** Gets the expanded state string. */ _getExpandedState(): SdsAccordionItemState; ngAfterContentInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; /** Checks whether the accordion item's content contains the currently-focused element. */ _containsFocus(): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SdsAccordionItemHeaderComponent implements OnDestroy, FocusableOption { accordionItem: SdsAccordionItemComponent; private _element; private _focusMonitor; private _changeDetectorRef; private _parentChangeSubscription; constructor(accordionItem: SdsAccordionItemComponent, _element: ElementRef, _focusMonitor: FocusMonitor, _changeDetectorRef: ChangeDetectorRef); /** * Whether the associated accordion item is disabled. * Implemented as a part of `FocusableOption`. */ get disabled(): boolean; /** Toggles the expanded state of the accordion item. */ _toggle(): void; /** Gets whether the accordion item is expanded. */ _isExpanded(): boolean; /** Gets the accordion item id. */ _getAccordionItemId(): string; /** Handle keydown event calling to toggle() if appropriate. */ _keydown(event: KeyboardEvent): void; /** * Focuses the item header. Implemented as a part of `FocusableOption`. * @param origin Origin of the action that triggered the focus. * @docs-private */ focus(origin?: FocusOrigin): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SdsAccordionDirective extends CdkAccordion implements SdsAccordionBase, AfterContentInit { private _keyManager; _headers: QueryList; displayMode: SdsAccordionDisplayMode; ngAfterContentInit(): void; /** Handles keyboard events coming in from the item headers. */ _handleHeaderKeydown(event: KeyboardEvent): void; _handleHeaderFocus(header: SdsAccordionItemHeaderComponent): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class SdsAccordionModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare enum ActionMenuMode { SHOWN = 0, DISABLED = 1, HIDDEN = 2 } interface TriggerTypeModel { type: string; shadow: boolean; } interface ActionMenuActions { id: string; text: string; mode?: ActionMenuMode; } interface ActionMenuModel { trigger: TriggerTypeModel; label?: string; actions: ActionMenuActions[]; } declare class SdsActionsMenuComponent { actionModes: typeof ActionMenuMode; model: ActionMenuModel; size: string; disabled: boolean; screenReaderText: string; clicks: EventEmitter; constructor(); ngOnInit(): void; getDisabled(mode: any): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SdsMenuItemComponent implements FocusableOption, OnDestroy { private _elementRef; private _focusMonitor; private _parentMenu; private _parentMenuHeader; /** Menu item class */ class: string; /** ARIA role for the menu item. */ role: 'menuitem'; /** Menu item tab index */ tabIndex: string; /** Holds the disable status value */ private _disabled; /** Whether the menu item should be disabled */ constructor(_elementRef: ElementRef, _focusMonitor: FocusMonitor, _parentMenu: SdsMenuInterface, _parentMenuHeader: boolean); /** Get item class */ _getClass(): string; /** Focuses the menu item. */ focus(origin?: FocusOrigin): void; /** Stop listening to focus changes and remove item from parent */ ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** Menu Positions */ type MenuPositionX = 'before' | 'after'; type MenuPositionY = 'above' | 'below'; /** Menu available sizes */ type MenuSizes = 'sm'; /** Injection token used to provide the parent menu to menu items. */ declare const SDS_MENU_TOKEN: InjectionToken>; /** Menu Interface */ interface SdsMenuInterface { xPosition: MenuPositionX; yPosition: MenuPositionY; overlapTrigger: boolean; templateRef: TemplateRef; closed: EventEmitter; parentMenu?: SdsMenuInterface; size?: MenuSizes; focusFirstItem: (origin?: FocusOrigin) => void; setPositionClasses?: (x: MenuPositionX, y: MenuPositionY) => void; addItem?: (item: T) => void; insertItem?: (item: T, index: number) => void; removeItem?: (item: T) => void; } declare class SdsMenuComponent implements OnInit, AfterContentInit, OnDestroy, SdsMenuInterface { private _elementRef; /** After | Before the menu triger element */ private _xPosition; /** Above | Below the menu triger element */ private _yPosition; /** Manage browser focus */ private _keyManager; /** Menu items inside the current menu. */ private _items; /** Subscription to tab events on the menu panel */ private _tabSubscription; /** Stores classes */ private _previousPanelClass; /** Config object to be passed into the menu's ngClass */ _classList: { [key: string]: boolean; }; /** Current state of the panel animation. */ _panelAnimationState: 'void' | 'enter'; /** Grab the component template */ templateRef: TemplateRef; /** * Size of menu component. * Affects the font-size of the menu items and * the size of the close button in the menu header */ size: MenuSizes; /** Position of the menu in the X axis. */ get xPosition(): MenuPositionX; set xPosition(value: MenuPositionX); /** Position of the menu in the Y axis. */ get yPosition(): MenuPositionY; set yPosition(value: MenuPositionY); /** Whether menu panel overlaps trigger element */ get overlapTrigger(): boolean; set overlapTrigger(value: boolean); private _overlapTrigger; /** Transfer classes from the sds-menu to the overlay container */ set panelClass(classes: string); /** Event emitted when the menu is closed. */ closed: EventEmitter; constructor(_elementRef: ElementRef); ngOnInit(): void; ngAfterContentInit(): void; ngOnDestroy(): void; /** Focus the first item in the menu */ focusFirstItem(origin?: FocusOrigin): void; /** Adds classes to the menu panel based on its position */ setPositionClasses(posX?: MenuPositionX, posY?: MenuPositionY): void; /** Adds a menu item with the menu. */ addItem(item: SdsMenuItemComponent): void; /** Inserts a menu item at an index */ insertItem(item: SdsMenuItemComponent, index: number): void; /** Removes an item from the menu. */ removeItem(item: SdsMenuItemComponent): void; /** Handle a keyboard event from the menu */ _handleKeydown(event: KeyboardEvent): void; /** Starts the enter animation. */ _startAnimation(): void; /** Callback that is invoked when the panel animation completes. */ _onAnimationDone(event: AnimationEvent): void; /** Resets the panel animation to its initial state. */ _resetAnimation(): void; _onAnimationStart(event: AnimationEvent): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SdsMenuTriggerForDirective implements OnDestroy { private _overlay; private _element; private _viewContainerRef; private _focusMonitor; /** ARIA haspopup for the menu trigger. */ ariaHasPopup: boolean; /** ARIA expanded for the menu trigger. */ get menuOpen(): boolean; /** Holds the menu instance */ private _menu; /** Holds value for menuOpen variable */ private _menuOpen; /** CDK Portal for menu panel */ private _portal; /** PortalOutlet */ private _overlayRef; /** Tracks input type */ private _openedBy; private _closingActionsSubscription; private _menuCloseSubscription; /** References the menu instance that the trigger is associated with. */ get menu(): SdsMenuInterface; set menu(menu: SdsMenuInterface); /** Event emitted when the associated menu is opened. */ menuOpened: EventEmitter; /** Event emitted when the associated menu is closed. */ menuClosed: EventEmitter; /** Handles mouse presses on the trigger. */ _handleMousedown(event: MouseEvent): void; /** Toggles the menu between the open and closed states. */ toggleMenu(): void; constructor(_overlay: Overlay, _element: ElementRef, _viewContainerRef: ViewContainerRef, _focusMonitor: FocusMonitor); ngOnDestroy(): void; /** Opens the menu. */ openMenu(): void; /** Closes the menu. */ closeMenu(): void; /** Focuses the menu trigger. */ focus(origin?: FocusOrigin): void; /** This method sets the menu state to open and focuses the first item */ private _initMenu; /** sets open state */ private _setIsMenuOpen; /** * This method resets the menu when it's closed, * most importantly restoring focus to the menu trigger */ private _resetMenu; /** Closes the menu and does the necessary cleanup. */ private _destroyMenu; /** * This method creates the overlay from the provided menu's template and saves its * OverlayRef so that it can be attached to the DOM when openMenu is called. */ private _createOverlay; /** * This method builds the configuration object needed to create the overlay, the OverlayState. * @returns OverlayConfig */ private _getOverlayConfig; /** * Listens to changes in the position of the overlay and sets the correct classes * on the menu based on the new position. */ private _subscribeToPositions; /** * Sets the appropriate positions on a position strategy * so the overlay connects with the trigger correctly. */ private _setPosition; /** Returns a stream that emits whenever an action that should close the menu occurs. */ private _menuClosingActions; /** Gets the portal that should be attached to the overlay. */ private _getPortal; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class SdsMenuHeaderComponent { hideClose: boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SdsMenuModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class SdsActionsMenuModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class SdsPageComponent implements OnInit { constructor(); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SdsPageOptionsComponent implements OnInit { constructor(); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SdsPageModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class PaginationConfigurationModel { /** * used to distinguish fields */ id: string; } declare class PaginationModel { /** * current page number */ pageNumber: number; /** * size of page ex 25, 50,100 */ pageSize: number; /** * total number of pages */ totalPages: number; } /** pagination display modes. */ type PaginationDisplayMode = 'default' | 'results'; declare class PaginationComponent implements OnInit { private change; ngOnInit(): void; constructor(change: ChangeDetectorRef); /** * Stores the previous number. Used when focus out if field empty */ private maintainPreviousValue; /** * Input field for the current page */ currentPageField: ElementRef; /** * Output of the page model object */ pageChange: EventEmitter; /** * Pagination model */ page: PaginationModel; /** * configuration for the pagination */ paginationConfiguration: PaginationConfigurationModel; /** * displayMode = 'default' | 'results'; */ displayMode: PaginationDisplayMode; /** * totalItems for display on results view; */ totalItems?: number; /** * debounce time for current page input */ debounceTime: number; /** * Stores the previous number */ private previousNumber; /** * timeout id of the debounce time */ timeoutNumber: number; /** * Drop down options for page size */ options: { label: string; value: number; }[]; /** * previous page lowers page number by one within range */ previousPage(): void; /** * next page increase page number by one within range */ nextPage(): void; /** * current page changes sets new value if within range * @param newValue */ valuechange(newValue?: number): void; /** * adjusts the value if not within the page limit above or below * @param newValue handles */ private handleInputOutsideBounds; /** * current page focus out will replace with previous valid if empty */ currentPageFocusOut(): void; /** * page size selection change */ onSelectChange(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class PaginationModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class SDSSelectedItemModel { /** * List of items selected */ items: object[]; constructor(items?: object[]); } interface SDSAutocompleteServiceInterface { /** * * @param searchValue */ getDataByText(currentItems: number, searchValue?: string): Observable; } interface SDSHiercarchicalServiceResult { /** * */ items: object[]; /** * */ totalItems: number; } declare class SDSHiercarchicalServiceSearchItem { /** * */ id: string; /** * */ searchValue: string; /** * */ /** * */ currentItemCount: number; } declare class SDSSelectedItemModelHelper { /** * adds an item to the collection * if selected mode is single it removes any existing items * also checks to see if that item already exists * keyfield is used to determine uniqueness of the item added * @param itemToAdd * @param keyField * @param selectionMode * @param items */ static addItem(itemToAdd: object, keyField: string, selectionMode: SelectionMode, model: SDSSelectedItemModel): void; /** * adds an array of items to the list and will not add duplicate items * keyfield is used to determine uniqueness of the item added * @param toAddItems * @param keyField * @param selectionMode * @param items */ static addItems(toAddItems: object[], keyField: string, selectionMode: SelectionMode, model: SDSSelectedItemModel): void; /** * removes the item from the list * keyfield is used to determine uniqueness of the item added * @param item * @param keyField * @param items */ static removeItem(item: object, keyField: string, model: SDSSelectedItemModel): void; /** * checks to see if a particular item exists by the provied key * keyfield is used to determine uniqueness of the item added * @param key * @param keyField * @param items */ static containsItem(key: string, keyField: string, items: object[]): boolean; /** * Clears the list of items * @param items */ static clearItems(items: object[]): void; /** * updates an array of items to the list and will not add duplicate items * keyfield is used to determine uniqueness of the item added * @param selectedItems * @param keyField * @param selectionMode * @param items */ static replaceItems(selectedItems: object[], keyField: string, selectionMode: SelectionMode, model: SDSSelectedItemModel): void; } declare enum SelectionMode { SINGLE = 0, MULTIPLE = 1 } declare class SDSSelectedResultConfiguration { /** * Used to describe the drop down (Text should match the label that will be supplied) */ labelText: string; /** * This is the primary field used to identify each object in the results */ primaryKeyField: string; /** * Property from supplied model used for the top part of the basic template */ primaryTextField: string; /** * Property from supplied model used for the bottom part of the basic template */ secondaryTextField: string; /** * Mode of the model either allows a single item or multiple items */ selectionMode: SelectionMode; /** * Modifiier function to change display of how primary text field is shown * Allows adding prefix / suffix values when displaying tags */ displayModifierFn?: (displayValue: string, index?: number) => string; } declare class SDSAutocompleteSearchConfiguration { /** * sets the default debounce time to 250 milliseconds */ constructor(); /** * Used to describe the drop down (Text should match the label that will be supplied) */ labelText: string; /** * Used for the Id of the control */ id: string; /** * This is the primary field used to identify each object in the results */ primaryKeyField: string; /** * Property from supplied model used for the top part of the basic template * and the text for single selection */ primaryTextField: string; /** * Property from supplied model used for the bottom part of the basic template */ secondaryTextField: string; /** * Sets the time waited for addional key actions Default is 250 milliseconds */ debounceTime: number; /** * Place holder text for autocomplete input */ autocompletePlaceHolderText: string; /** * Mininumn Characters for search */ minimumCharacterCountSearch: number; /** * Mode of the model either allows a single item or multiple items */ selectionMode: SelectionMode; /** * Allows option to allow user text not in the standard results */ isFreeTextEnabled: boolean; /** * Text appeneded ad the end of free text */ freeTextSubtext: string; /** * Focus into autocomplete search */ focusInSearch: boolean; /** * The aria-label for the auto-complete */ ariaLabelText: string; /** * To enable the tag mode */ isTagModeEnabled: boolean; /** * To make input readonly */ inputReadOnly: boolean; /** * Name of the children filed */ groupByChild: string; /** * To enable the Grouping mode */ isGroupingEnabled: boolean; /** * To enable the Group item selectable */ isSelectableGroup: boolean; hideCloseIcon: boolean; useCheckBoxes: boolean; } declare class SDSAutocompletelConfiguration implements SDSSelectedResultConfiguration, SDSAutocompleteSearchConfiguration { /** * sets the default debounce time to 250 milliseconds */ constructor(); /** * Used to describe the drop down (Text should match the label that will be supplied) */ labelText: string; /** * Used for the Id of the control */ id: string; /** * This is the primary field used to identify each object in the results */ primaryKeyField: string; /** * Property from supplied model used for the top part of the basic template */ primaryTextField: string; /** * Property from supplied model used for the bottom part of the basic template */ secondaryTextField: string; /** * Sets the time waited for addional key actions Default is 250 milliseconds */ debounceTime: number; /** * Place holder text for autocomplete input */ autocompletePlaceHolderText: string; /** * Mininumn Characters for search */ minimumCharacterCountSearch: number; /** * Mode of the model either allows a single item or multiple items */ selectionMode: SelectionMode; /** * Allows option to allow user text not in the standard results */ isFreeTextEnabled: boolean; /** * Text appeneded ad the end of free text */ freeTextSubtext: string; /** * Focus into autocomplete search */ focusInSearch: boolean; /** * The aria-label for the auto-complete */ ariaLabelText: string; /** * To enable the tag mode */ isTagModeEnabled: boolean; /** * To make input readonly */ inputReadOnly: boolean; /** * Name of the children filed */ groupByChild: string; /** * To enable the Grouping mode */ isGroupingEnabled: boolean; /** * To enable the Group item selectable */ isSelectableGroup: boolean; /** * Toggle whether or not to display chips. This can be useful if some custom UI is used * for rendering autocomplete values in multi-select mode * @default false */ hideChips: boolean; /** * Modifiier function to change display of how primary text field is shown * Allows adding prefix / suffix values when displaying tags */ displayModifierFn: (displayValue: string, index?: number) => string; /** * Provides a way for external components to force change detection * on internal components. Any time this observable is emitted, a change * detection will be preformed, ensuring data model and template values are * in sync. This can be useful if some external changes are made and visual * updates need to be made */ registerChanges$: Observable; hideCloseIcon: boolean; useCheckBoxes: boolean; } declare class SDSAutocompleteSearchComponent implements ControlValueAccessor { private _changeDetectorRef; constructor(_changeDetectorRef: ChangeDetectorRef); /** * Ul list of elements */ resultsListElement: ElementRef; /** * input control */ input: ElementRef; /** * Allow to insert a customized template for suggestions to use */ itemTemplate: TemplateRef; /** * The data model that has the selected item */ model: SDSSelectedItemModel; /** * Model contain only the primary key, primary value, and secondary value. */ essentialModelFields: boolean; /** * Configuration for the Autocomplete control */ configuration: SDSAutocompleteSearchConfiguration; /** * Instance of the SamHiercarchicalServiceInterface provided */ service: SDSAutocompleteServiceInterface; /** * Timer id for the timer awaiting the service call for more typeing */ private timeoutNumber; /** * result set to be rendered */ results: object[]; /** * max number of results to be shown */ private maxResults; /** * selected index */ highlightedIndex: number; /** * selected child index */ highlightedChildIndex: number; /** * highlighted object in drop down */ private highlightedItem; /** * value of the input field */ inputValue: string; /** * Proprty being set on the object is highlighted */ private HighlightedPropertyName; showLoad: boolean; /** * Search string */ private searchString; /** * Message announced by screen readers when * autocomplete results are updated or new item * is highlighted */ srOnlyText: string; /** * To make input readonly */ inputReadOnly: boolean; /** * Stored Event for ControlValueAccessor */ onTouchedCallback: () => void; /** * Stored Event for ControlValueAccessor */ propogateChange: (_: any) => void; disabled: boolean; private resultsAvailableMessage; private index; /** * Gets the string value from the specifed properties of an object * @param object * @param propertyFields comma seperated list with periods depth of object */ getObjectValue(object: Object, propertyFields: string): string; /** * Determines if the dropdown should be shown */ showResults: boolean; /** * Clears the input fields and value */ clearInput(): void; /** * Triggered when user clicks or enters on the up carat OR clicks outside this component * @param event */ checkForFocus(event: any): void; tabOutside(event: any): void; /** * */ private focusRemoved; onkeypress(ev: any): boolean; textChange(event: any): void; isClearIconVisible(): boolean; /** * Event method used when focus is gained to the input */ inputFocusHandler(): void; isAutocompleteWithinModal(): boolean; /** * Key event * @param event */ onKeydown(event: any): void; /** * selects the item adding it to the model and closes the results * @param item */ selectItem(item: object): void; private addItemToModel; unselectItem(item: any): void; /** * clears the results and closes result drop down */ private clearAndHideResults; openOptions(): void; getFlatElements(): any[]; /** * When paging up and down with arrow key it sets the highlighted item into view */ private scrollToSelectedItem; /** * handles the arrow down key event */ private onArrowGroupDown; /** * handles the arrow up key event */ private onArrowGroupUp; showFreeText(): boolean; private createFreeTextItem; /** * return Item is already selected or not * @param result */ checkItemSelected(result: any): boolean; /** * gets the inital results * @param searchString */ private getResults; /** * Checks if the new search string matches the old search string * @param searchString */ private matchPastSearchString; /** * Scroll Event Handler (Calculates if mpre items should be asked for from service on scrolling down) */ onScroll(): void; /** * gets more results based when scrolling and adds the items */ private getAdditionalResults; /** * adds a single item to the list * @param item */ private addResult; /** * Sets the highlighted item by keyboard or mouseover * @param item */ private setHighlightedItem; /** * Adds message to be read by screen reader * @param message */ private addScreenReaderMessage; writeValue(obj: any): void; addListener(): void; getClass(): "" | "hide-cursor"; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; setDisabledState(isDisabled: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SDSAutocompleteComponent implements ControlValueAccessor, OnInit, OnDestroy { private cd; /** * Allow to insert a customized template for suggestions results */ suggestionTemplate: TemplateRef; /** * Allow to insert a customized template for selected items */ selectedItemTemplate: TemplateRef; /** * The data model that has the selected item */ model: SDSSelectedItemModel; disabled: boolean; /** * Configuration for the control */ configuration: SDSAutocompletelConfiguration; /** * Model contain only the primary key, primary value, and secondary value. */ essentialModelFields: boolean; /** * Instance of the SamHiercarchicalServiceInterface provided */ service: SDSAutocompleteServiceInterface; _subscriptions: Subscription; autocompleteSearch: SDSAutocompleteSearchComponent; constructor(cd: ChangeDetectorRef); ngOnInit(): void; ngOnDestroy(): void; /** * Stored Event for ControlValueAccessor */ onTouched: () => void; /** * Stored Event for ControlValueAccessor */ onChange: (_: any) => void; writeValue(value: any): void; updateItems($event: any): void; updateModel(): void; getModel(): object[]; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; setDisabledState(isDisabled: boolean): void; isSingleMode(): boolean; addItem(item: object): void; addItems(list: object[]): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SDSSelectedResultComponent implements ControlValueAccessor { /** * Allow to insert a customized template for suggestions to use */ itemTemplate: TemplateRef; /** * The data model that has the selected item */ model: SDSSelectedItemModel; /** * Configuration for the Selected Results control */ configuration: SDSSelectedResultConfiguration; /** * Stored Event for ControlValueAccessor */ onTouchedCallback: () => void; /** * Stored Event for ControlValueAccessor */ propogateChange: (_: any) => void; disabled: boolean; /** * Removes item from the model * @param item */ removeItem(item: object): void; writeValue(obj: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; setDisabledState(isDisabled: boolean): void; /** * Gets the string value from the specifed properties of an object * @param object * @param propertyFields comma seperated list with periods depth of object * @param index - the index location of the value in model's item list */ getObjectValue(object: Object, propertyFields: string, index?: number): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SdsSelectedResultsModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * The directive can detect whether a click is made inside * the target */ declare class SDSClickOutsideDirective { private _elementRef; /** * Event emitted when clicked outside the target */ clickOutside: EventEmitter; constructor(_elementRef: ElementRef); onClick(event: MouseEvent): void; private isInside; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class SDSClickOutsideModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class SDSTabOutsideDirective { private _elementRef; /** * Emitter for tabOutside event */ tabOutside: EventEmitter; constructor(_elementRef: ElementRef); hasFocusChanged(target: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class SdsTabOutsideModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class SdsAutocompleteSearchModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class SdsAutocompleteModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } interface INavigationLink { /** * Text to be displayed in the link */ text: string; /** * Navigation Route */ route: string; /** * Internal Angualr Routes, External HREF, EVENT: event on parent component */ mode: NavigationMode; } declare enum NavigationMode { INTERNAL = 0, EXTERNAL = 1, EVENT = 2, LABEL = 3 } interface Selectable { /** * Identifier for the item when search for selected */ id: string; /** * Status of if the item is selected */ selected?: boolean; } declare class SideNavigationModel { /** * */ navigationLinks: NavigationLink[]; } declare class NavigationLink implements Selectable, INavigationLink { /** * Internal Angualr Routes, External HREF, EVENT: event on parent component */ mode: NavigationMode; /** * Text to be displayed in the link or button */ text: string; /** * Navigation Route */ route: string; /** * List of child navigation items that will show when no route is provieded */ children?: NavigationLink[]; /** * Identifier for the item when search for selected */ id: string; /** * Status of if the item is selected */ selected?: boolean; disabled?: boolean; /** * Query string paramaters supporeted with external and internal links * ex. { 'name': 'value',...} */ queryParams?: { [k: string]: any; }; queryParamsHandling?: QueryParamsHandling; } declare class NavigationHelper { /** * checks if link is internal * @param link */ isLinkInternal(link: INavigationLink): boolean; /** * checks if link is external * @param link */ isLinkExternal(link: INavigationLink): boolean; } declare class SdsSideNavigationComponent { /** * Reference to the the Template used for internal links */ private sideNavRouteLinkTemplate; /** * Reference to the the Template used for side menu items that are a label */ private sideNavLabelLinkTemplate; /** * Reference to the the Template used for external href */ private sideNavHREFLinkTemplate; /** * Reference to the the Template used for event response */ private sideNavEVENTLinkTemplate; /** * A brief description of the purpose of the navigation, omitting the term "navigation", * as the screen reader will read both the role and the contents of the label */ ariaLabel: string; /** * Takes the navigation item and returns the template to be used * @param item navigation item */ getItemTemplate(item: NavigationLink): TemplateRef; /** * Navigation helper */ navigationHelper: NavigationHelper; /** * Model used for the different display portions of the side navigation */ model: SideNavigationModel; /** * Selects new item and parents and deselects previous * @param id */ select(id: string): void; /** * Selects item if matches passed in id and will select parent * @param id * @param item * @param parent */ private selectItem; /** * Deselects all the items in the side navigation model */ deselect(): void; /** * checks if item is selected and if selcted will check children and will unselect */ private deselectItem; /** * event for event based */ linkEvent: EventEmitter; /** * Link clicked and emits the link data into an event * @param link */ linkClickEvent(link: INavigationLink): boolean; /** * creates url from provided route and query params * @param item */ urlBuilder(item: NavigationLink): string; /** * creates query string * @param item */ private queryStringBuilder; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SdsSideNavigationModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** Valid ARIA roles for a dialog element. */ type DialogRole = 'dialog' | 'alertdialog'; /** Possible overrides for a dialog's position. */ interface DialogPosition { /** Override for the dialog's top position. */ top?: string; /** Override for the dialog's bottom position. */ bottom?: string; /** Override for the dialog's left position. */ left?: string; /** Override for the dialog's right position. */ right?: string; } /** Custom Slide Out Panel configurations */ interface SlideOutConfig { /** Width of the slide out panel */ width?: string; /** Time that it takes to open and close the panel */ time?: string; } /** * Configuration for opening a modal dialog with the SdsDialog service. */ declare class SdsDialogConfig { /** * Where the attached component should live in Angular's *logical* component tree. * This affects what is available for injection and the change detection order for the * component instantiated inside of the dialog. This does not affect where the dialog * content will be rendered. */ viewContainerRef?: ViewContainerRef; /** ID for the dialog. If omitted, a unique one will be generated. */ id?: string; /** The ARIA role of the dialog element. */ role?: DialogRole; /** Custom class for the overlay pane. */ panelClass?: string | string[]; /** Whether the dialog has a backdrop. */ hasBackdrop?: boolean; /** Custom class for the backdrop, */ backdropClass?: string; /** Whether the user can use escape or clicking on the backdrop to close the modal. */ disableClose?: boolean; /** Width of the dialog. */ width?: string; /** Height of the dialog. */ height?: string; /** Min-width of the dialog. If a number is provided, pixel units are assumed. */ minWidth?: number | string; /** Min-height of the dialog. If a number is provided, pixel units are assumed. */ minHeight?: number | string; /** Max-width of the dialog. If a number is provided, pixel units are assumed. Defaults to 80vw */ maxWidth?: number | string; /** Max-height of the dialog. If a number is provided, pixel units are assumed. */ maxHeight?: number | string; /** Position overrides. */ position?: DialogPosition; /** Data being injected into the child component. */ data?: D | null; /** Layout direction for the dialog's content. */ direction?: Direction; /** ID of the element that describes the dialog. */ ariaDescribedBy?: string | null; /** Aria label to assign to the dialog element */ ariaLabel?: string | null; /** Whether the dialog should focus the first focusable element on open. */ autoFocus?: boolean; /** * Whether the dialog should restore focus to the * previously-focused element, after it's closed. */ restoreFocus?: boolean; /** Scroll strategy to be used for the dialog. */ scrollStrategy?: ScrollStrategy; /** * Whether the dialog should close when the user goes backwards/forwards in history. * Note that this usually doesn't include clicking on links (unless the user is using * the `HashLocationStrategy`). */ closeOnNavigation?: boolean; /** * Wheter the dialog its an alert */ alert?: 'warning' | 'info' | 'error' | 'success'; /** * Whether to display the close button in dialog header */ displayCloseBtn?: boolean; /** * Whether dialog is a slide-out. Changes enter and exit animation, and adds * class `dialog-slide-out` to container */ slideOut?: boolean | SlideOutConfig; } /** * Throws an exception for the case when a ComponentPortal is * attached to a DomPortalOutlet without an origin. * @docs-private */ declare function throwSdsDialogContentAlreadyAttachedError(): void; /** * Internal component that wraps user-provided dialog content. * @docs-private */ declare class SdsDialogContainerComponent extends BasePortalOutlet { private _elementRef; private _focusTrapFactory; private _changeDetectorRef; private _document; /** The dialog configuration. */ _config: SdsDialogConfig; /** The portal outlet inside of this container into which the dialog content will be loaded. */ _portalOutlet: CdkPortalOutlet; /** The class that traps and manages focus within the dialog. */ private _focusTrap; /** Element that was focused before the dialog was opened. Save this to restore upon close. */ private _elementFocusedBeforeDialogWasOpened; /** State of the dialog animation. */ _state: 'void' | 'enter' | 'exit' | 'slideEnter' | 'slideExit'; /** Emits when an animation state changes. */ _animationStateChanged: EventEmitter; /** ID of the element that should be considered as the dialog's label. */ _ariaLabelledBy: string | null; /** ID for the container DOM element. */ _id: string; constructor(_elementRef: ElementRef, _focusTrapFactory: FocusTrapFactory, _changeDetectorRef: ChangeDetectorRef, _document: any, /** The dialog configuration. */ _config: SdsDialogConfig); /** * Attach a ComponentPortal as content to this dialog container. * @param portal Portal to be attached as the dialog content. */ attachComponentPortal(portal: ComponentPortal): ComponentRef; /** * Attach a TemplatePortal as content to this dialog container. * @param portal Portal to be attached as the dialog content. */ attachTemplatePortal(portal: TemplatePortal): EmbeddedViewRef; /** Moves the focus inside the focus trap. */ private _trapFocus; /** Restores focus to the element that was focused before the dialog opened. */ private _restoreFocus; /** Saves a reference to the element that was focused before the dialog was opened. */ private _savePreviouslyFocusedElement; /** Callback, invoked whenever an animation on the host completes. */ _onAnimationDone(event: AnimationEvent): void; /** Callback, invoked when an animation on the host starts. */ _onAnimationStart(event: AnimationEvent): void; /** Starts the dialog exit animation. */ _startExitAnimation(): void; /** Checks if the value is a Slide Out panel configuration or a boolean. */ /** A configuration indicates that a user wants a custom Slide Out Panel */ isSlideOutConfig(val: boolean | SlideOutConfig): val is SlideOutConfig; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Reference to a dialog opened via the SdsDialog service. */ declare class SdsDialogRef { private _overlayRef; _containerInstance: SdsDialogContainerComponent; readonly id: string; /** The instance of component opened into the dialog. */ componentInstance: T; /** Whether the user is allowed to close the dialog. */ disableClose: boolean | undefined; /** Subject for notifying the user that the dialog has finished opening. */ private readonly _afterOpened; /** Subject for notifying the user that the dialog has finished closing. */ private readonly _afterClosed; /** Subject for notifying the user that the dialog has started closing. */ private readonly _beforeClosed; /** Result to be passed to afterClosed. */ private _result; constructor(_overlayRef: OverlayRef, _containerInstance: SdsDialogContainerComponent, _location?: Location, id?: string); /** * Close the dialog. * @param dialogResult Optional result to return to the dialog opener. */ close(dialogResult?: R): void; /** * Gets an observable that is notified when the dialog is finished opening. */ afterOpened(): Observable; /** * Gets an observable that is notified when the dialog is finished closing. */ afterClosed(): Observable; /** * Gets an observable that is notified when the dialog has started closing. */ beforeClosed(): Observable; /** * Gets an observable that emits when the overlay's backdrop has been clicked. */ backdropClick(): Observable; /** * Gets an observable that emits when keydown events are targeted on the overlay. */ keydownEvents(): Observable; /** * Updates the dialog's position. * @param position New dialog position. */ updatePosition(position?: DialogPosition): this; /** * Updates the dialog's width and height. * @param width New width of the dialog. * @param height New height of the dialog. */ updateSize(width?: string, height?: string): this; /** Add a CSS class or an array of classes to the overlay pane. */ addPanelClass(classes: string | string[]): this; /** Remove a CSS class or an array of classes from the overlay pane. */ removePanelClass(classes: string | string[]): this; /** Fetches the position strategy object from the overlay ref. */ private _getPositionStrategy; } /** Injection token that can be used to access the data that was passed in to a dialog. */ declare const SDS_DIALOG_DATA: InjectionToken; /** Injection token that can be used to specify default dialog options. */ declare const SDS_DIALOG_DEFAULT_OPTIONS: InjectionToken>; /** Injection token that determines the scroll handling while the dialog is open. */ declare const SDS_DIALOG_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>; declare const SDS_SLIDE_OUT_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>; /** @docs-private */ declare function SDS_DIALOG_SCROLL_STRATEGY_FACTORY(overlay: Overlay): () => ScrollStrategy; /** @docs-private */ declare function SDS_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay: Overlay): () => ScrollStrategy; /** @docs-private */ declare function SDS_SLIDE_OUT_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay: Overlay): () => ScrollStrategy; /** @docs-private */ declare const SDS_DIALOG_SCROLL_STRATEGY_PROVIDER: { provide: InjectionToken<() => ScrollStrategy>; deps: (typeof Overlay)[]; useFactory: typeof SDS_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY; }; declare const SDS_SLIDE_OUT_SCROLL_STRATEGY_PROVIDER: { provide: InjectionToken<() => ScrollStrategy>; deps: (typeof Overlay)[]; useFactory: typeof SDS_SLIDE_OUT_SCROLL_STRATEGY_PROVIDER_FACTORY; }; /** * Service to open modal dialogs. */ declare class SdsDialogService implements OnDestroy { private _overlay; private _injector; private _location; private _defaultOptions; private _parentDialog; private _overlayContainer; private _openDialogsAtThisLevel; private readonly _afterAllClosedAtThisLevel; private readonly _afterOpenedAtThisLevel; private _ariaHiddenElements; private _scrollStrategy; private _slideOutScrollStrategy; /** Keeps track of the currently-open dialogs. */ get openDialogs(): SdsDialogRef[]; /** Stream that emits when a dialog has been opened. */ get afterOpened(): Subject>; get _afterAllClosed(): Subject; /** * Stream that emits when all open dialog have finished closing. * Will emit on subscribe if there are no open dialogs to begin with. */ readonly afterAllClosed: Observable; constructor(_overlay: Overlay, _injector: Injector, _location: Location, _defaultOptions: SdsDialogConfig, scrollStrategy: any, slideOutScrollStrategy: any, _parentDialog: SdsDialogService, _overlayContainer: OverlayContainer); /** * Opens a modal dialog containing the given component. * @param componentOrTemplateRef Type of the component to load into the dialog, * or a TemplateRef to instantiate as the dialog content. * @param config Extra configuration options. * @returns Reference to the newly-opened dialog. */ open(componentOrTemplateRef: ComponentType | TemplateRef, config?: SdsDialogConfig): SdsDialogRef; /** * Closes all of the currently-open dialogs. */ closeAll(): void; /** * Finds an open dialog by its id. * @param id ID to use when looking up the dialog. */ getDialogById(id: string): SdsDialogRef | undefined; ngOnDestroy(): void; /** * Creates the overlay into which the dialog will be loaded. * @param config The dialog configuration. * @returns A promise resolving to the OverlayRef for the created overlay. */ private _createOverlay; /** * Creates an overlay config from a dialog config. * @param dialogConfig The dialog configuration. * @returns The overlay configuration. */ private _getOverlayConfig; /** * Attaches an SdsDialogContainerComponent to a dialog's already-created overlay. * @param overlay Reference to the dialog's underlying overlay. * @param config The dialog configuration. * @returns A promise resolving to a ComponentRef for the attached container. */ private _attachDialogContainer; /** * Attaches the user-provided component to the already-created SdsDialogContainerComponent. * @param componentOrTemplateRef The type of component being loaded into the dialog, * or a TemplateRef to instantiate as the content. * @param dialogContainer Reference to the wrapping SdsDialogContainerComponent. * @param overlayRef Reference to the overlay in which the dialog resides. * @param config The dialog configuration. * @returns A promise resolving to the SdsDialogRef that should be returned to the user. */ private _attachDialogContent; /** * Creates a custom injector to be used inside the dialog. This allows a component loaded inside * of a dialog to close itself and, optionally, to return a value. * @param config Config object that is used to construct the dialog. * @param dialogRef Reference to the dialog. * @param container Dialog container element that wraps all of the contents. * @returns The custom injector that can be used inside the dialog. */ private _createInjector; /** * Removes a dialog from the array of open dialogs. * @param dialogRef Dialog to be removed. */ private _removeOpenDialog; /** * Hides all of the content that isn't an overlay from assistive technology. */ private _hideNonDialogContentFromAssistiveTechnology; /** Closes all of the dialogs in an array. */ private _closeDialogs; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class SdsSideToolbarComponent implements OnInit, OnDestroy { private sdsDialogService; private breakpointObserver; template: TemplateRef; mobile: TemplateRef; responsiveButtonText: string; responsiveButtonIcon: string; dialogTitleText: string; backButtonAria: string; responsiveDialogOptions: SdsDialogConfig; responsiveSize: number; showApply: boolean; onCancel: EventEmitter; onApply: EventEmitter; responsiveDialog: EventEmitter; responsiveView: EventEmitter; isResponsiveView: boolean; private subscription; private openResponsiveDialog; constructor(sdsDialogService: SdsDialogService, breakpointObserver: BreakpointObserver); ngOnInit(): void; ngOnDestroy(): void; onResponsiveViewButtonClicked(): void; private observeViewChange; onCancelClicked(): void; onApplyClicked(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** The dialog container state used by dialog content directives. */ interface SdsDialogContainerLike { _ariaLabelledBy: string | null; } /** The dialog reference behavior used by dialog content directives. */ interface SdsDialogRefLike { id: string; _containerInstance: SdsDialogContainerLike; close(dialogResult?: R): void; } /** The open-dialog registry used by dialog content directives. */ interface SdsDialogRegistry { openDialogs: SdsDialogRefLike[]; } /** Provides the current dialog reference to dynamically attached dialog content. */ declare const SDS_DIALOG_REF: InjectionToken>; /** Provides the service-level registry of currently open dialogs. */ declare const SDS_DIALOG_REGISTRY: InjectionToken; /** * Button that will close the current dialog. */ declare class SdsDialogCloseDirective implements OnInit, OnChanges { private _dialogRef; private _elementRef; private _dialog; /** Screenreader label for the button. */ ariaLabel: string; /** Dialog close input. */ dialogResult: any; _sdsDialogClose: any; constructor(_dialogRef: SdsDialogRefLike, _elementRef: ElementRef, _dialog: SdsDialogRegistry); /** Reference to the containing dialog. */ get dialogRef(): SdsDialogRef; set dialogRef(dialogRef: SdsDialogRef); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Title of a dialog element. Stays fixed to the top of the dialog when scrolling. */ declare class SdsDialogTitleDirective implements OnInit { private _dialogRef; private _elementRef; private _dialog; id: string; constructor(_dialogRef: SdsDialogRefLike, _elementRef: ElementRef, _dialog: SdsDialogRegistry); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * SubTitle of a dialog element */ declare class SdsDialogSubtitleDirective { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Scrollable content container of a dialog. */ declare class SdsDialogContentDirective { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Container for the bottom action buttons in a dialog. * Stays fixed to the bottom when scrolling. */ declare class SdsDialogActionsDirective { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class SdsDialogModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class SdsSideToolbarModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class SearchModel { results: any[]; metadata: { messages: Message[] | TemplateRef; }; } declare class Message { type: string; title: string; message: string; classes: string; buttons: Button[]; } declare class Button { id: string; text: string; classes: string; action: any; ariaLabel?: string; } declare class SdsSearchResultListComponent { private _location; updateModel: SearchModel; /** * Allow to insert a customized template for no results to use */ customResultsTemplate: TemplateRef; isDefaultModel: boolean; /** * Model for search results */ set model(value: any); /** * Show divider between results */ divider: boolean; constructor(_location: Location); /** * Child Template to be used to display the data for each item in the list of items */ resultContentTemplate: TemplateRef; goBack(): void; isTemplate(): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SdsSearchResultListModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** Marks menu items projected into a menu header. */ declare const SDS_MENU_HEADER: InjectionToken; declare class SearchSettings { placeholder: string; ariaLabel?: string; size?: string; inputClass?: string; parentSelector?: string; id?: string; dropdown?: any; isSuffixSearchIcon?: boolean; } declare class SdsSearchComponent implements AfterViewInit, ControlValueAccessor { private cd; private focusMonitor; private viewportRuler; inputEl: ElementRef; selectEl: ElementRef; buttonEl: ElementRef; searchSettings: SearchSettings; disabled: boolean; submit: EventEmitter<{ searchText: string; }>; model: any; inputState: { initial: { visible: any; }; visible: any; }; onChange: (_: any) => void; onTouched: () => void; constructor(cd: ChangeDetectorRef, focusMonitor: FocusMonitor, viewportRuler: ViewportRuler); ngAfterViewInit(): void; hasDropdown(): boolean; handleClick(event: any): void; writeValueToModel(): void; writeValue(value: any): void; registerOnTouched(fn: any): void; registerOnChange(fn: any): void; setDisabledState(isDisabled: boolean): void; isInputVisible(): boolean; setInputVisibleStyles(): void; removeInputVisibleStyles(): void; focusChange(): void; calculateInputWidth(): number; getClass(): string; clearInput(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SdsSearchModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * Directive that triggers a callback whenever the width of * its associated element has changed. */ declare class SdsObserveWidthDirective implements OnInit, OnDestroy { private _elementRef; private viewportRuler; /** Event emitted for each change in the element's width. */ elementWidth: EventEmitter; /** Subscription to window resize stream */ windowResize$: Subscription; constructor(_elementRef: ElementRef, viewportRuler: ViewportRuler); ngOnInit(): void; ngOnDestroy(): void; _emitEvent(): void; _getElementWidth(): number; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class SdsObserversModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class SdsTruncateTextByLineDirective implements OnInit, OnDestroy, AfterViewInit { private _overlay; private _injector; private _element; private _viewportRuler; private _viewContainerRef; /** Maximum lines of text limit */ get textLinesLimit(): any; set textLinesLimit(_textLinesLimit: any); private _textLinesLimit; /** PortalOutlet */ private _overlayRef; /** Holds subscription to stream of overlay closing events */ private _closingActionsSubscription; /** Holds initial text */ private initialText; /** Subscription to window resize stream */ windowResize$: Subscription; /** Approximated character width of the host text */ private approximatedCharacterWidth; constructor(_overlay: Overlay, _injector: Injector, _element: ElementRef, _viewportRuler: ViewportRuler, _viewContainerRef: ViewContainerRef); ngOnInit(): void; ngAfterViewInit(): void; ngOnDestroy(): void; /** Configures and creates the CDK overlay */ private _createOverlay; /** Attach a ComponentPortal to the overlay **/ private _attachContainer; /** Returns a stream that emits whenever an action that should close the overlay occurs. */ private _overlayClosingActions; /** Width of host element */ private _getHostWidth; /** Approximated number of characters that are visible in the container */ private _getVisibleCharacters; private _isNotLongEnough; openOverlay(): void; updateUI(): void; closeOverlay(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } interface SdsTruncateTextData { text: string; } declare class SdsTruncatedTextContainerComponent { data: SdsTruncateTextData; _animationState: string; constructor(data: SdsTruncateTextData); /** Starts the animation. */ startAnimation(): void; /** Resets the animation to its initial state. */ resetAnimation(): void; /** Intentionally left empty to trigger change detection */ _onAnimationDone(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SdsTruncateModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * Define expiration date for a given element. If current date is * past expiration date, the given element will not be displayed * to the user * usage: *
*
* The element above expires after January 13 2021 10:30:59pm at user's local timezone. * * You may also define desired timezone in following format: * YYYY-MM-DDThh:mm:ss.sssZ * example: 2021:01013T22:30:59.000+5:00 // Eastern time */ declare class SdsExpiresDirective { private templateRef; private viewContainer; /** * Expiration date string. This string should be parsable * through native Date object * */ set expires(date: string); private initialized; constructor(templateRef: TemplateRef, viewContainer: ViewContainerRef); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class SdsExpiresModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class ExternalLinkDirective implements OnChanges { private platformId; private el; private vc; private renderer; relAttr: string; targetAttr: string; hrefAttr: string; href: string; target: string; hideIcon: boolean; /** Treat these domains as internal links */ private internalLinks; private readonly emailLinkKeyword; constructor(platformId: string, el: ElementRef, vc: ViewContainerRef, renderer: Renderer2); ngOnChanges(): void; /** * Appends indication that the link will open in a separate window to the aria label. * If link does not contain any aria label, then an aria label will be generated using either the inner text * or href value based on whether the anchor element contains children elements or not * If link contains aria label, but the label does not contain key words 'new' or 'window', * then the text 'opens in a new window' will be appended to the end of the aria label * If link contains aria label as well as the key words 'new' and 'window', then aria label will * be kept as is */ private _getAriaLabel; private get isExternalLink(); private get iconVisible(); private createIcon; private removeIcon; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class SdsExternalLinkDirectivesModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } interface VPInterface { sourceWebm: string; sourceMp4: string; height?: string; width?: string; caption?: string; poster?: string; id: string; seekInterval?: number; debug?: boolean; preload?: string; description?: string; } declare class SdsVideoPlayerComponent implements AfterViewInit, OnChanges, OnInit, OnDestroy { private elementRef; private renderer2; private cdr; private document; VPConfiguration: VPInterface; videoWrapper: ElementRef; video: ElementRef; private config; crossorigin: string; loadVideoSource: boolean; constructor(elementRef: ElementRef, renderer2: Renderer2, cdr: ChangeDetectorRef, document: any); ngOnDestroy(): void; ngOnInit(): void; ngAfterViewInit(): void; ngOnChanges(changes: any): void; /** * IE and Edge ignore preload attribute and load video data eagerly. In order to * workaround those such browsers, we add video source only after user clicks * on play or restart button of the video. */ private _loadVideoSourceOnDemand; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SdsVideoPlayerModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class SdsPopupDirective implements AfterViewInit { private el; private renderer; sdsPopup: HTMLElement; position: string; placement: string; sdsPopupDiv: HTMLElement; constructor(el: ElementRef, renderer: Renderer2); ngAfterViewInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class SdsPopupModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class CollapseDirective { collapsed: boolean; constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class SdsCollapseModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class SdsTextComponent implements ControlValueAccessor { private cd; items: any[]; multiple: boolean; label: string; private _onChange; private _onTouched; constructor(cd: ChangeDetectorRef); addItem(val: any): void; updateItems($event: any): void; updateModel(): void; getModel(): any[]; writeValue(value: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SdsTextChildComponent { items: any; itemsChange: EventEmitter; removeItem(index: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SdsTextModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class SdsToastComponent extends Toast { protected toastrService: ToastrService; toastPackage: ToastPackage; constructor(toastrService: ToastrService, toastPackage: ToastPackage); action(event: Event): boolean; getIcon(toastType: any): "check2-circle" | "exclamation-triangle" | "info-circle" | "slash-circle"; getToastSr(toastType: any): "Success" | "Info" | "Warning" | "Error"; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare let SdsToastSettings: { toastComponent: typeof SdsToastComponent; timeOut: number; toastClass: string; positionClass: string; }; declare class SdsToastModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class SdsRichTextComponent implements ControlValueAccessor { private changeDetector; minHeight: number; maxHeight: number; editorComponent: CKEditorComponent; placeholder: string; disabled: boolean; model: string; get minHeightClass(): string; get maxHeightClass(): string; _onChange: (_: any) => void; _onTouched: (_: any) => void; onChange({ editor }: ChangeEvent): void; onTouched({ editor }: BlurEvent): void; writeValue(value: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; setDisabledState(isDisabled: boolean): void; constructor(changeDetector: ChangeDetectorRef); isLayoutReady: boolean; Editor: typeof ClassicEditor; config: EditorConfig; ngAfterViewInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SdsRichTextModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class SdsTopBannerComponent { showDetail: boolean; description: string; flagPath: string; toggleDetails(): void; ngOnInit(): void; closeDetail(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SdsTopBannerModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class SelectionPanelModel extends SideNavigationModel { /** * The mode selected impacts which version of the selection panel is used. * 'SELECTION' mode will only display the top level navigation items and * will not display children items. 'NAVIGATION' mode will display the children * navigation items indented under its parent. If a mode is not passed in, * then 'NAVIGATION' mode is assumed. */ selectionMode?: 'SELECTION' | 'NAVIGATION'; } declare class SdsSelectionPanelComponent { /** * Model containing navigation links as well as a selection mode property. * Navigation mode is implied if no selection mode is passed in */ model: SelectionPanelModel; /** * True if users would prefer to navigate on panel selection, false otherwise. * Navigation feature is not supported on SELECTION mode. On NAVIGATION mode, * this is enabled by default */ navigateOnClick: boolean; /** * Allows users to programatically select panel item. Can also be used * to select initial panel */ currentSelection: NavigationLink; /** * Outputs a NavigationLink item when it is selected from the panel */ panelSelected: EventEmitter; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SdsSubPanelComponent { model: NavigationLink[]; currentSelection: NavigationLink; subPanelClicked: EventEmitter; onSubPanelItemClicked(item: NavigationLink): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SdsSelectionPanelSelectionModeComponent { model: SideNavigationModel; currentSelection: NavigationLink; panelSelected: EventEmitter; onPanelItemClick(panelItem: NavigationLink): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SdsSelectionPanelNavigationModeComponent implements OnChanges { private router; private activatedRoute; model: SelectionPanelModel; navigateOnClick: boolean; currentSelection: NavigationLink; panelSelected: EventEmitter; constructor(router: Router, activatedRoute: ActivatedRoute); ngOnChanges(changes: SimpleChanges): void; onPanelItemClick(panelItem: NavigationLink): void; navigateToSelectedItem(selectedPanel: NavigationLink): void; /** Public interface to select panel item */ selectPanel(panelItem: NavigationLink): void; /** * Deselects any previously selected sidenav item * @param sidenavItems */ private deselectSideNav; /** * Selects the clicked sidenav item as we as any parent * @param selectedItem * @param allNavItems */ private selectSideNav; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SdsSelectionPanelModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class TabPanelComponent { /** * The associated id of this tab panel */ id: string; /** * True if panel is currently selected. * Only one tabpanel should be selected at a time */ selected: boolean; /** * Header content for the tab panel. May be a string or a template */ tabHeader: string | TemplateRef; /** * Aria label for tab header */ ariaLabel: string; /** * Whether this tab panel is disabled for selection */ disabled: boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class TabsComponent implements OnInit, OnChanges, AfterContentInit { /** * Currently selected tab for display. */ selectedTab: TabPanelComponent; /** * Enable automatic activation for tabs when cycling through tabs using * Left or Right arrow keys. Automatic activated tabs will automatically * be selected on focus as user presses left or right arrow to move * through each tab. By default, tabs will need to be manually selected * when using keyboard only by pressing either Enter or Space to select * the focused tab */ automaticActivation: boolean; /** * CSS styling class for tabs */ tabClass: string; interceptTabChange: boolean; /** * Emits an event whenever a tab is selected by the user containing the selected * TabPanelComponent. Please note that because this output contains `Change` suffix * to the `tabSelected` input, users can 2-way bind to the `selectedTab` input */ selectedTabChange: EventEmitter; preTabChange: EventEmitter; tabPanels: QueryList; /** * Currently focused tab - can differ from selected tab when tab panels are manually activated */ private focusedTab; /** * Assigns selected tab value was given. Otherwise, the first * tab panel in the list will be selected after content has initialized. */ ngOnInit(): void; /** * Listens for programmatic change to selected tab. When a tab is changed * programmatically, we must disable previously selected tab, set selected * property of the new tab to true, and adjust bookkeeping values. */ ngOnChanges(changes: SimpleChanges): void; /** * If user has not given any tabs to select initially, * select the first tab panel. */ ngAfterContentInit(): void; onTabClicked(clickEvent: MouseEvent, tabPanel: TabPanelComponent): void; /** * Looks for Left and Right arrow presses and moves selected tab accordingly. * @param $event - Keyboard Event */ onKeyDown($event: any): void; isObj(obj: any): boolean; /** * Internal method to change currently selected tab panel and display another panel * to the user. External components should not use this method, but rather * two-way bind the selectedTab input and modify that value. * @param newTabPanel */ private changeSelectedTabPanel; /** * Gets next tab panel to the left of currently selected panel when Left Arrow is pressed. * Skips disabled panels until it finds next left panel that is not disabled * @param tabPanels - List of TabPanelComponents in the tab group * @param startIndex - Current index of focused tab panel */ private getNextTabLeft; /** * Gets next tab panel to the right of currently selected panel when Right Arrow is pressed * Skips disabled panels until it finds next right panel that is not disabled * @param tabPanels - List of TabPanelComponents in the tab group * @param startIndex - Current index of focused tab panel */ private getNextTabRight; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SdsTabsModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class SdsDatePipe implements PipeTransform { private datePipe; constructor(datePipe: DatePipe); transform(value: string | number): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare class SdsDateModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class SdsEditorComponent implements ControlValueAccessor { private cd; private _document; searchInput: ElementRef; id: string; regex: string; validateOnBlur: boolean; model: string; private _onChange; private _onTouched; constructor(cd: ChangeDetectorRef, _document: any); onBlur(value: any): void; updateModel(): void; getModel(): string; validateRegex(value: string): void; writeValue(value: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; getCaretCharacterOffsetWithin(element: any): number; onValueChange(value: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SdsEditorModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } interface SdsTreeTableData { /** Id to use to uniquely idetntify the row */ id: string; /** Children of row - by default, children rows will be collapsed */ children?: SdsTreeTableData[]; /** * Total number of children for this table data. If this value * is greater than children's length, then a button will be shown * to users to load remaining children */ totalChildren: number; /** * Additional data to add in - primarly useful for adding in data * to display in the table */ [key: string]: any; /** * Whether this row is expanded to display its children or not */ expanded?: boolean; } declare class SdsTreeTableRow { templateRef: TemplateRef; constructor(templateRef: TemplateRef); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class SdsTreeTableComponent { private elementRef; cdr: ChangeDetectorRef; private ngZone; /** Rows of table tada to display */ dataSource: SdsTreeTableData[]; /** Column header text */ displayColumns: string[]; /** * Defines maximum number of children to show to the user * IE - if a row has 20 children available, and childrenLimit * value is 10, then the amount of children displayed to the * user will be numChildrenToDisplay amount, and the rest * is toggled behind a 'View All' button, * This should be greater than or equal to numChildrenToDisplay * @default - Number.MAX_SAFE_INTEGER */ childrenLimit: number; /** * Number of children to Display to users if a row's children length * exceeds childrenLimit. This should be less than or equal to childrenLimit * * General Cases: * If numChildrenToDisplay is 5, childrenLimit is 10, and row has 20 children * 5 children will be shown and the remaining can be displayed through View All button * * If numChildrenToDisplay is 5, childrenLimit is 10, and row has 10 children * All 10 children will be displayed because the row's children does not exceed childrenLimit * * If numChildren is 5, childrenLimit is 10, and row has 4 children * All 4 children will be displayed because row's children does not exceed childrenLimit * * @default - Number.MAX_SAFE_INTEGER */ numChildrenToDisplay: number; /** * Reference for content projection. User defined values for how to * display each cell in a row */ treetableRow: SdsTreeTableRow; /** Emitted for a row if there are more children to display and user clicked view all */ viewAll: EventEmitter; /** Emitted anytime a row 's expansion / collapse value changes */ rowExpanded: EventEmitter; _selectedRow: any; _selectedRowParent: any; constructor(elementRef: ElementRef, cdr: ChangeDetectorRef, ngZone: NgZone); /** * Public Interface - close all opened children */ collapseAll(): void; /** * Public interface - open all panels with children */ expandAll(): void; /** * Public interface - expand a single row given an ID. * The row's predecessors will also be expanded * @param rowId - id of row to expand */ expandRow(rowId: string): void; /** * Public Interface - Collapse a single row given an id. * The row's successors will also be collapsed * @param rowId - id of row to collapse */ collapseRow(rowId: string): void; viewAllClicked(row: SdsTreeTableData, currentRow: HTMLTableRowElement, tableRow: HTMLTableRowElement): void; private moreChildrenThanShowing; private moreChildrenThanInitialLimit; private toggleAllHelper; private expandRowHelper; private findRow; private collapseRowHelper; /** Sets height of vertical border on the tree table view */ setHeight(row: HTMLTableRowElement, parentRow: HTMLTableRowElement, border: HTMLSpanElement): void; /** * Defines whether or not to display vertical border from this row. Vertical borders generally * start from the last child and extend to the parent. However, if we are truncating the number * of children displayed, then the vertical border would need to start from the child we * truncate at. * */ displayVerticalBorder(parentRow: SdsTreeTableData, index: number, siblingRows: SdsTreeTableRow[]): boolean; getTemplateContext(parent: any, row: any, index: number, level: number, parentSelected?: boolean, parentRow?: HTMLTableRowElement): { row: any; level: number; index: number; size: any; rows: any; parentSelected: boolean; parent: any; parentRow: HTMLTableRowElement; }; onRowClicked(row: SdsTreeTableData, tableRow: HTMLTableRowElement): void; onKeyDown($event: KeyboardEvent, tableRow: HTMLTableRowElement): void; getParentOfRow(allRows: any[], row: any): any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SdsTreeTableModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class SdsStepArrowComponent { status: string; number: any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SdsStepArrowModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } type Placement = 'auto' | 'top' | 'bottom' | 'start' | 'left' | 'end' | 'right' | 'top-start' | 'top-left' | 'top-end' | 'top-right' | 'bottom-start' | 'bottom-left' | 'bottom-end' | 'bottom-right' | 'start-top' | 'left-top' | 'start-bottom' | 'left-bottom' | 'end-top' | 'right-top' | 'end-bottom' | 'right-bottom'; type PlacementArray = Placement | Array | string; /** * A configuration service for the [`NgbTooltip`](#/components/tooltip/api#NgbTooltip) component. * * You can inject this service, typically in your root component, and customize the values of its properties in * order to provide default values for all the tooltips used in the application. */ declare class SdsTooltipConfig { autoClose: boolean | 'inside' | 'outside'; placement: PlacementArray; popperOptions: (options: Partial) => Partial; triggers: string; container: string; disableTooltip: boolean; tooltipClass: string; openDelay: number; closeDelay: number; private _animation; constructor(); get animation(): boolean; set animation(animation: boolean); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class SdsTooltipWindow { animation: boolean; id: string; tooltipClass: string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * A lightweight and extensible directive for fancy tooltip creation. */ declare class SdsTooltip implements OnInit, OnDestroy, OnChanges { private _elementRef; private _renderer; private _ngZone; private _document; private _changeDetector; static ngAcceptInputType_autoClose: boolean | string; /** * If `true`, tooltip opening and closing will be animated. * * @since 8.0.0 */ animation: boolean; /** * Indicates whether the tooltip should be closed on `Escape` key and inside/outside clicks: * * * `true` - closes on both outside and inside clicks as well as `Escape` presses * * `false` - disables the autoClose feature (NB: triggers still apply) * * `"inside"` - closes on inside clicks as well as Escape presses * * `"outside"` - closes on outside clicks (sometimes also achievable through triggers) * as well as `Escape` presses * * @since 3.0.0 */ autoClose: boolean | 'inside' | 'outside'; /** * The preferred placement of the tooltip, among the [possible values](#/guides/positioning#api). * * The default order of preference is `"auto"`. * * Please see the [positioning overview](#/positioning) for more details. */ position: PlacementArray; /** * Allows to change default Popper options when positioning the tooltip. * Receives current popper options and returns modified ones. * * @since 13.1.0 */ popperOptions: (options: Partial) => Partial; /** * Specifies events that should trigger the tooltip. * * Supports a space separated list of event names. * For more details see the [triggers demo](#/components/tooltip/examples#triggers). */ triggers: string; /** * A css selector or html element specifying the element the tooltip should be positioned against. * By default, the element `sdsTooltip` directive is applied to will be set as a target. * * @since 13.1.0 */ positionTarget?: string | HTMLElement; /** * A selector specifying the element the tooltip should be appended to. * * Currently only supports `"body"`. */ container: string; /** * If `true`, tooltip is disabled and won't be displayed. * * @since 1.1.0 */ disableTooltip: boolean; /** * An optional class applied to the tooltip window element. * * @since 3.2.0 */ tooltipClass: string; /** * The opening delay in ms. Works only for "non-manual" opening triggers defined by the `triggers` input. * * @since 4.1.0 */ openDelay: number; /** * The closing delay in ms. Works only for "non-manual" opening triggers defined by the `triggers` input. * * @since 4.1.0 */ closeDelay: number; /** * An event emitted when the tooltip opening animation has finished. Contains no payload. */ shown: EventEmitter; /** * An event emitted when the tooltip closing animation has finished. Contains no payload. */ hidden: EventEmitter; private _sdsTooltip; private _sdsTooltipWindowId; private _popupService; private _windowRef; private _unregisterListenersFn; private _positioning; private _zoneSubscription; constructor(_elementRef: ElementRef, _renderer: Renderer2, injector: Injector, viewContainerRef: ViewContainerRef, config: SdsTooltipConfig, _ngZone: NgZone, _document: any, _changeDetector: ChangeDetectorRef, applicationRef: ApplicationRef); /** * The string content or a `TemplateRef` for the content to be displayed in the tooltip. * * If the content if falsy, the tooltip won't open. */ set sdsTooltip(value: string | TemplateRef | null | undefined); get sdsTooltip(): string | TemplateRef | null | undefined; /** * Opens the tooltip. * * This is considered to be a "manual" triggering. * The `context` is an optional value to be injected into the tooltip template when it is created. */ open(context?: any): void; /** * Closes the tooltip. * * This is considered to be a "manual" triggering of the tooltip. */ close(animation?: boolean): void; /** * Toggles the tooltip. * * This is considered to be a "manual" triggering of the tooltip. */ toggle(): void; /** * Returns `true`, if the popover is currently shown. */ isOpen(): boolean; ngOnInit(): void; ngOnChanges({ tooltipClass }: SimpleChanges): void; ngOnDestroy(): void; private _getPositionTargetElement; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class SdsTooltipModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * A configuration service for the [`NgbPopover`](#/components/popover/api#NgbPopover) component. * * You can inject this service, typically in your root component, and customize the values of its properties in * order to provide default values for all the popovers used in the application. */ declare class SdsPopoverConfig { autoClose: boolean | 'inside' | 'outside'; placement: PlacementArray; popperOptions: (options: Partial) => Partial; triggers: string; container: string; disablePopover: boolean; popoverClass: string; openDelay: number; closeDelay: number; private _animation; constructor(); get animation(): boolean; set animation(animation: boolean); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class SdsPopoverWindow { animation: boolean; title: string | TemplateRef | null | undefined; id: string; popoverClass: string; context: any; isTitleTemplate(): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * A lightweight and extensible directive for fancy popover creation. */ declare class SdsPopover implements OnInit, OnDestroy, OnChanges { private _elementRef; private _renderer; private _ngZone; private _document; private _changeDetector; static ngAcceptInputType_autoClose: boolean | string; /** * If `true`, popover opening and closing will be animated. * * @since 8.0.0 */ animation: boolean; /** * Indicates whether the popover should be closed on `Escape` key and inside/outside clicks: * * * `true` - closes on both outside and inside clicks as well as `Escape` presses * * `false` - disables the autoClose feature (NB: triggers still apply) * * `"inside"` - closes on inside clicks as well as Escape presses * * `"outside"` - closes on outside clicks (sometimes also achievable through triggers) * as well as `Escape` presses * * @since 3.0.0 */ autoClose: boolean | 'inside' | 'outside'; /** * | |closeOnContentClick|closeOnClickOutside| * |---------|-------------------|-------------------| * |'false' |false |false | * |'inside' |true |false | * |'outside'|false |true | * |'true' |true |true | * * * */ /** * The string content or a `TemplateRef` for the content to be displayed in the popover. * * If the title and the content are falsy, the popover won't open. */ sdsPopover: string | TemplateRef | null | undefined; /** * The title of the popover. * * If the title and the content are falsy, the popover won't open. */ sdsPopoverTitle: string | TemplateRef | null | undefined; /** * The preferred placement of the popover, among the [possible values](#/guides/positioning#api). * * The default order of preference is `"auto"`. * * Please see the [positioning overview](#/positioning) for more details. */ position: PlacementArray; /** * Allows to change default Popper options when positioning the popover. * Receives current popper options and returns modified ones. * * @since 13.1.0 */ popperOptions: (options: Partial) => Partial; /** * Specifies events that should trigger the tooltip. * * Supports a space separated list of event names. * For more details see the [triggers demo](#/components/popover/examples#triggers). */ triggers: string; /** * A css selector or html element specifying the element the popover should be positioned against. * By default, the element `sdsPopover` directive is applied to will be set as a target. * * @since 13.1.0 */ positionTarget?: string | HTMLElement; /** * A selector specifying the element the popover should be appended to. * * Currently only supports `body`. */ container: string; /** * If `true`, popover is disabled and won't be displayed. * * @since 1.1.0 */ disablePopover: boolean; /** * An optional class applied to the popover window element. * * @since 2.2.0 */ popoverClass: string; /** * Default template context for `TemplateRef`, can be overridden with `open` method. * * @since 15.1.0 */ popoverContext: any; /** * The opening delay in ms. Works only for "non-manual" opening triggers defined by the `triggers` input. * * @since 4.1.0 */ openDelay: number; /** * The closing delay in ms. Works only for "non-manual" opening triggers defined by the `triggers` input. * * @since 4.1.0 */ closeDelay: number; /** * An event emitted when the popover opening animation has finished. Contains no payload. */ shown: EventEmitter; /** * An event emitted when the popover closing animation has finished. Contains no payload. * * At this point popover is not in the DOM anymore. */ hidden: EventEmitter; private _sdsPopoverWindowId; private _popupService; private _windowRef; private _unregisterListenersFn; private _positioning; private _zoneSubscription; private _isDisabled; constructor(_elementRef: ElementRef, _renderer: Renderer2, injector: Injector, viewContainerRef: ViewContainerRef, config: SdsPopoverConfig, _ngZone: NgZone, _document: any, _changeDetector: ChangeDetectorRef, applicationRef: ApplicationRef); /** * Opens the popover. * * This is considered to be a "manual" triggering. * The `context` is an optional value to be injected into the popover template when it is created. */ open(context?: any): void; /** * Closes the popover. * * This is considered to be a "manual" triggering of the popover. */ close(animation?: boolean): void; /** * Toggles the popover. * * This is considered to be a "manual" triggering of the popover. */ toggle(): void; /** * Returns `true`, if the popover is currently shown. */ isOpen(): boolean; ngOnInit(): void; ngOnChanges({ sdsPopover, popoverTitle, disablePopover, popoverClass }: SimpleChanges): void; ngOnDestroy(): void; private _getPositionTargetElement; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class SdsPopoverModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class SdsProgressBarComponent { /** * Input to control the progress (value between 0 and 100) */ progress: number; /** * To display the top border */ topBorder: boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SdsProgressBarModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { ActionMenuMode, CollapseDirective, ExternalLinkDirective, NavigationHelper, NavigationLink, NavigationMode, PaginationComponent, PaginationModule, SDSAutocompleteComponent, SDSAutocompletelConfiguration, SDSClickOutsideDirective, SDSClickOutsideModule, SDSHiercarchicalServiceSearchItem, SDSSelectedItemModel, SDSSelectedItemModelHelper, SDSSelectedResultComponent, SDSSelectedResultConfiguration, SDSTabOutsideDirective, SDS_DIALOG_DATA, SDS_DIALOG_DEFAULT_OPTIONS, SDS_DIALOG_REF, SDS_DIALOG_REGISTRY, SDS_DIALOG_SCROLL_STRATEGY, SDS_DIALOG_SCROLL_STRATEGY_FACTORY, SDS_DIALOG_SCROLL_STRATEGY_PROVIDER, SDS_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY, SDS_MENU_HEADER, SDS_MENU_TOKEN, SDS_SLIDE_OUT_SCROLL_STRATEGY, SDS_SLIDE_OUT_SCROLL_STRATEGY_PROVIDER, SDS_SLIDE_OUT_SCROLL_STRATEGY_PROVIDER_FACTORY, SdsAccordionDirective, SdsAccordionItemComponent, SdsAccordionItemContentDirective, SdsAccordionItemHeaderComponent, SdsAccordionModule, SdsActionsMenuComponent, SdsActionsMenuModule, SdsAutocompleteModule, SdsCollapseModule, SdsDateModule, SdsDatePipe, SdsDialogActionsDirective, SdsDialogCloseDirective, SdsDialogConfig, SdsDialogContainerComponent, SdsDialogContentDirective, SdsDialogModule, SdsDialogRef, SdsDialogService, SdsDialogSubtitleDirective, SdsDialogTitleDirective, SdsEditorComponent, SdsEditorModule, SdsExpiresDirective, SdsExpiresModule, SdsExternalLinkDirectivesModule, SdsMenuComponent, SdsMenuHeaderComponent, SdsMenuItemComponent, SdsMenuModule, SdsMenuTriggerForDirective, SdsObserveWidthDirective, SdsObserversModule, SdsPageComponent, SdsPageModule, SdsPageOptionsComponent, SdsPopover, SdsPopoverConfig, SdsPopoverModule, SdsPopoverWindow, SdsPopupDirective, SdsPopupModule, SdsProgressBarComponent, SdsProgressBarModule, SdsRichTextComponent, SdsRichTextModule, SdsSearchComponent, SdsSearchModule, SdsSearchResultListComponent, SdsSearchResultListModule, SdsSelectedResultsModule, SdsSelectionPanelComponent, SdsSelectionPanelModule, SdsSideNavigationComponent, SdsSideNavigationModule, SdsSideToolbarComponent, SdsSideToolbarModule, SdsStepArrowComponent, SdsStepArrowModule, SdsSubPanelComponent, SdsTabOutsideModule, SdsTabsModule, SdsTextChildComponent, SdsTextComponent, SdsTextModule, SdsToastComponent, SdsToastModule, SdsToastSettings, SdsTooltip, SdsTooltipConfig, SdsTooltipModule, SdsTooltipWindow, SdsTopBannerComponent, SdsTopBannerModule, SdsTreeTableComponent, SdsTreeTableModule, SdsTreeTableRow, SdsTruncateModule, SdsTruncateTextByLineDirective, SdsVideoPlayerComponent, SdsVideoPlayerModule, SearchSettings, SelectionMode, SelectionPanelModel, SideNavigationModel, TabPanelComponent, TabsComponent, throwSdsDialogContentAlreadyAttachedError }; export type { ActionMenuActions, ActionMenuModel, DialogPosition, DialogRole, INavigationLink, MenuPositionX, MenuPositionY, MenuSizes, PaginationDisplayMode, Placement, SDSAutocompleteServiceInterface, SDSHiercarchicalServiceResult, SdsAccordionItemState, SdsDialogContainerLike, SdsDialogRefLike, SdsDialogRegistry, SdsMenuInterface, SdsTreeTableData, Selectable, SlideOutConfig, TriggerTypeModel };