import * as i0 from '@angular/core';
import { TemplateRef, EventEmitter, ElementRef, ModuleWithProviders, OnInit, AfterContentInit, AfterContentChecked, Renderer2, ChangeDetectorRef, OnDestroy, PipeTransform, AfterViewChecked, OnChanges, SimpleChanges, AfterViewInit, NgZone, QueryList, InjectionToken, ViewContainerRef, Injector, ComponentRef, Optional, DoCheck } from '@angular/core';
import * as i1 from '@angular/common';
import * as rxjs from 'rxjs';
import { Observable, Subscription, Subject, BehaviorSubject } from 'rxjs';
import * as i1$1 from '@angular/cdk/overlay';
import { CdkConnectedOverlay, ConnectedOverlayPositionChange, ScrollStrategy, ComponentType, OverlayRef, FlexibleConnectedPositionStrategyOrigin, ViewportRuler, Overlay, ConnectedPosition } from '@angular/cdk/overlay';
import * as i5 from '@angular/forms';
import { ControlValueAccessor, AbstractControl, FormGroupDirective, NgForm, NgControl, Validator, ValidationErrors } from '@angular/forms';
import * as i7 from '@angular/cdk/bidi';
import { Directionality, Direction } from '@angular/cdk/bidi';
import { CdkAccordion, CdkAccordionItem } from '@angular/cdk/accordion';
import * as i3 from '@angular/cdk/portal';
import { TemplatePortal, ComponentPortal, CdkPortalOutlet, CdkPortal } from '@angular/cdk/portal';
import { FocusableOption, FocusOrigin, ActiveDescendantKeyManager, FocusKeyManager } from '@angular/cdk/a11y';
import * as i1$3 from '@angular/cdk/dialog';
import { DialogConfig, CdkDialogContainer, DialogRef, Dialog } from '@angular/cdk/dialog';
import * as i1$2 from '@angular/cdk/scrolling';
import * as i3$1 from '@angular/cdk/stepper';
import { CdkStepLabel, StepState, CdkStep, CdkStepper, CdkStepperNext, CdkStepperPrevious, CdkStepHeader } from '@angular/cdk/stepper';
export { StepState, StepperOrientation } from '@angular/cdk/stepper';
import { SelectionModel } from '@angular/cdk/collections';
import { ModifierKey } from '@angular/cdk/keycodes';
/**
* Component for displaying a collapsible content.
*
*
* Example of usage:
*```
*
*
*
*
Card Title
*
*
*
*
Content inside collapse
*
*
*
*```
* https://platform.mef.dev/ui_kit_demo/view/page_components/collapse
*/
declare class CollapseComponent {
private _collapseSet;
private _elementRef;
private _disabled;
_active: boolean;
_el: any;
/**
* ContentChild for the template of the card title.
*
* Example:
* ```
*
*
Card Title
*
* ```
*/
CardTitle: TemplateRef;
/**
* Indicates whether the collapse is disabled.
* Set this to `true` to disable the collapse. Defaults to `false`.
*/
set Disabled(value: boolean);
get Disabled(): boolean;
/**
* Indicates whether the collapse is active or not.
*/
set Active(value: boolean);
get Active(): boolean;
/**
* Event emitter for the state change of the collapse.
* Emits a boolean value indicating whether the collapse is active or not.
*
* Example:
* ```
*
* ```
*/
stateChange: EventEmitter;
/**
* Event handler for the header click event.
* Toggles the active state of the collapse and emits the state change event.
*
* @param $event The mouse event object.
*/
clickHeader($event: MouseEvent): void;
constructor(_collapseSet: CollapseSetComponent, _elementRef: ElementRef);
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵcmp: i0.ɵɵComponentDeclaration;
}
/**
* Component representing a set of collapsible panels.
*
* Example of usage:
*
*```
*
*
*
*
Panel 1
*
Panel 1 content...
*
*
*
*
Panel 2
*
Panel 2 content...
*
*
*
*
Panel 3
*
Panel 3 content...
*
*
*```
*/
declare class CollapseSetComponent {
private _accordion;
private _horizontal;
private _expandAny;
panels: CollapseComponent[];
/**
* Indicates whether multiple panels can be expanded simultaneously.
* Set this to `true` to allow multiple panels to be expanded. Defaults to `false`.
*/
set expandAny(value: boolean);
get expandAny(): boolean;
/**
* Indicates whether the collapse set operates as an accordion.
* Set this to `true` to enable accordion behavior. Defaults to `false`.
*/
set Accordion(value: boolean);
get Accordion(): boolean;
/**
* Indicates whether the collapse set is displayed horizontally or vertically.
* Set this to `true` for horizontal display and `false` for vertical display. Defaults to `true`.
*/
set Horizontal(value: boolean);
get Horizontal(): boolean;
/**
* Event handler for the click event on a collapse panel.
* Closes other panels if the collapse set is an accordion and does not allow multiple expansions.
*
* @param collapse The clicked collapse component.
*/
pgClick(collapse: CollapseComponent): void;
/**
* Adds a collapse panel to the collapse set.
*
* @param collapse The collapse component to be added.
*/
addTab(collapse: CollapseComponent): void;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵcmp: i0.ɵɵComponentDeclaration;
}
declare const mefDevCollapseModuleComponents: (typeof CollapseComponent | typeof CollapseSetComponent)[];
declare class MefDevCollapseModule {
static forRoot(): ModuleWithProviders;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵmod: i0.ɵɵNgModuleDeclaration;
static ɵinj: i0.ɵɵInjectorDeclaration;
}
declare class FiltredItemModel {
constructor(id: string, newValue: string, standartValue: string, discard: (standartValue: string) => any);
id: string;
newValue: string;
standartValue: string;
discard: (standartValue: string) => any;
}
declare class FilteredFieldService {
private newFilterItem;
private openFilter;
constructor();
/**
* Returns an observable that emits the open filter events.
*/
getOpenFilter(): Observable;
/**
* Sends an open filter event with the specified item.
* @param item The filtered item model.
*/
sendOpenFilter(item: FiltredItemModel): void;
/**
* Returns an observable that emits the new filter item events.
*/
getNewFilterItem(): Observable;
/**
* Sends a new filter item event with the specified item.
* @param item The filtered item model.
*/
sendNewFilterItem(item: FiltredItemModel): void;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵprov: i0.ɵɵInjectableDeclaration;
}
/**
* A container component for filtered fields.
*
* Example of usage:
* ```
*
*
*
*
*
*
* ```
* Example of usage:
* https://platform.mef.dev/ui_kit_demo/view/utils/filtered_field
*/
declare class FilteredFieldContainerComponent implements OnInit {
private service;
/**
* An array of filtered item models.
*/
items: FiltredItemModel[];
constructor(service: FilteredFieldService);
/**
* Event handler for opening the filter.
*
* @param item The filtered item model.
*/
onOpenFilter(item: FiltredItemModel): void;
/**
* Event handler for discarding the filter.
*
* @param item The filtered item model.
*/
onDiscard(item: FiltredItemModel): void;
ngOnInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵcmp: i0.ɵɵComponentDeclaration;
}
/**
* Component representing a filtered field item.
*
* Example of usage:
* ```
*
*
*```
*
*/
declare class FilteredFieldItemComponent implements OnInit {
/**
* The filtered item model.
* ```
*
* Content goes here...
*
* ```
*/
item: FiltredItemModel;
/**
* Event emitted when the filter is discarded.
* ```
*
* Content goes here...
*
* ```
*/
discard: EventEmitter;
/**
* Event emitted when the filter is opened.
* ```
*
* Content goes here...
*
* ```
*/
openFilter: EventEmitter;
constructor();
ngOnInit(): void;
/**
* Event handler for opening the filter.
* Emits the `openFilter` event.
*/
onOpenFilter(): void;
/**
* Event handler for discarding the filter.
* Emits the `discard` event with the `item` as the payload.
*/
onDiscard(): void;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵcmp: i0.ɵɵComponentDeclaration;
}
declare class MefDevFilteredFieldModule {
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵmod: i0.ɵɵNgModuleDeclaration;
static ɵinj: i0.ɵɵInjectorDeclaration;
}
/**
* Component for displaying a simple card with a title.
*
* Example of usage:
*```
*
*
*
*
*
*```
*
* https://platform.mef.dev/ui_kit_demo/view/page_components/card/card_simple
*/
declare class CardSimpleComponent implements OnInit {
/**
* Determines whether the card is disabled or not.
*/
isDisabled: boolean;
/**
* Template for displaying the title of the card.
*```
*
*
*
Card Title
*
*
*```
*/
card_title: TemplateRef;
constructor();
ngOnInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵcmp: i0.ɵɵComponentDeclaration;
}
/**
* Example of usage:
* https://platform.mef.dev/ui_kit_demo/view/controls/select
*/
declare class MefDevSelectComponent implements OnInit, AfterContentInit, AfterContentChecked, ControlValueAccessor {
private _elementRef;
private _renderer;
private cDRef;
private _allowClear;
private _disabled;
private _isTags;
private _isMultiple;
private _keepUnListOptions;
private _showSearch;
_el: HTMLElement;
_isOpen: boolean;
_prefixCls: string;
_classList: string[];
_dropDownClassMap: any;
_dropDownPrefixCls: string;
_selectionClassMap: any;
_selectionPrefixCls: string;
_size: string;
_value: string[] | string;
_placeholder: string;
_notFoundContent: string;
_searchText: string;
_triggerWidth: number;
_selectedOption: MefDevOptionComponent;
_operatingMultipleOption: MefDevOptionComponent;
_selectedOptions: Set;
_options: MefDevOptionComponent[];
_cacheOptions: MefDevOptionComponent[];
_filterOptions: MefDevOptionComponent[];
_tagsOptions: MefDevOptionComponent[];
_activeFilterOption: MefDevOptionComponent;
_isMultiInit: boolean;
_dropDownPosition: "top" | "center" | "bottom";
_composing: boolean;
_mode: any;
onChange: (value: string | string[]) => void;
onTouched: () => void;
searchInputElementRef: any;
trigger: ElementRef;
dropdownUl: ElementRef;
SearchChange: EventEmitter;
change: EventEmitter;
OpenChange: EventEmitter;
ScrollToBottom: EventEmitter;
Filter: boolean;
MaxMultiple: number;
FirstDefault: boolean;
_cdkOverlay: CdkConnectedOverlay;
set AllowClear(value: boolean);
get AllowClear(): boolean;
set KeepUnListOptions(value: boolean);
get KeepUnListOptions(): boolean;
set Mode(value: string);
set Multiple(value: boolean);
get Multiple(): boolean;
set PlaceHolder(value: string);
get PlaceHolder(): string;
set NotFoundContent(value: string);
get NotFoundContent(): string;
set Size(value: string);
get Size(): string;
set ShowSearch(value: boolean);
get ShowSearch(): boolean;
set Tags(value: boolean);
get Tags(): boolean;
set Disabled(value: boolean);
get Disabled(): boolean;
set Open(value: boolean);
get Open(): boolean;
/** new -option insert or new tags insert */
addOption: (option: any) => void;
/** -option remove or tags remove */
removeOption(option: MefDevOptionComponent): void;
/** dropdown position changed */
onPositionChange(position: ConnectedOverlayPositionChange): void;
compositionStart(): void;
compositionEnd(): void;
/** clear single selected option */
clearSelect($event?: MouseEvent): void;
/** click dropdown option by user */
clickOption(option: MefDevOptionComponent, $event?: MouseEvent): void;
/** choose option */
chooseOption(option: MefDevOptionComponent, isUserClick?: boolean, $event?: MouseEvent): void;
updateWidth(element: HTMLInputElement, text: string): void;
/** determine if option in set */
isInSet(set: Set, option: MefDevOptionComponent): MefDevOptionComponent;
/** cancel select multiple option */ unSelectMultipleOption: (option: any, $event?: any, emitChange?: boolean) => void;
/** select multiple option */
selectMultipleOption(option: MefDevOptionComponent, $event?: MouseEvent): void;
/** emit multiple options */
emitMultipleOptions(): void;
/** update selected option when add remove option etc */
updateSelectedOption(currentModelValue: string | string[], triggerByNgModel?: boolean): void;
forceUpdateSelectedOption(value: string | string[]): void;
get Value(): string | string[];
set Value(value: string | string[]);
clearAllSelectedOption(emitChange?: boolean): void;
handleKeyEnterEvent(event: KeyboardEvent): void;
handleKeyBackspaceEvent(event: KeyboardEvent): void;
handleKeyDownEvent($event: MouseEvent): void;
handleKeyUpEvent($event: MouseEvent): void;
preOption(option: MefDevOptionComponent, options: MefDevOptionComponent[]): MefDevOptionComponent;
nextOption(option: MefDevOptionComponent, options: MefDevOptionComponent[]): MefDevOptionComponent;
clearSearchText(): void;
updateFilterOption(updateActiveFilter?: boolean): void;
onSearchChange(searchValue: string): void;
onClick(e: MouseEvent): void;
onKeyDown(e: KeyboardEvent): void;
closeDropDown(): void;
setClassMap(): void;
setDropDownClassMap(): void;
scrollToActive(): void;
flushComponentState(): void;
_setTriggerWidth(): void;
_getTriggerRect(): ClientRect;
writeValue(value: string | string[]): void;
registerOnChange(fn: (value: string | string[]) => void): void;
registerOnTouched(fn: () => void): void;
setDisabledState(isDisabled: boolean): void;
dropDownScroll(ul: HTMLUListElement): void;
checkDropDownScroll(): void;
constructor(_elementRef: ElementRef, _renderer: Renderer2, cDRef: ChangeDetectorRef);
ngAfterContentInit(): void;
ngOnInit(): void;
ngAfterContentChecked(): void;
private _updateValue;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵcmp: i0.ɵɵComponentDeclaration;
}
/**
* @skipTemplateDoc true
* Component for representing an option in a dropdown list.
*
*```
*
*
*
*
*
*```
*
*/
declare class MefDevOptionComponent implements OnDestroy, OnInit {
private _Select;
private _disabled;
_value: string;
_label: string;
/**
* Template for the content of the option.
*/
OptionTemplate: any;
/**
* The value of the option.
*/
set Value(value: string);
get Value(): string;
/**
* The label of the option.
*/
set Label(value: string);
get Label(): string;
/**
* Indicates whether the option is disabled.
*/
set Disabled(value: boolean);
get Disabled(): boolean;
constructor(_Select: MefDevSelectComponent);
/**
* Initialization lifecycle hook.
* Adds the option to the dropdown list.
*/
ngOnInit(): void;
/**
* Destruction lifecycle hook.
* Removes the option from the dropdown list.
*/
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵcmp: i0.ɵɵComponentDeclaration;
}
declare class OptionPipe implements PipeTransform {
transform(options: MefDevOptionComponent[], value: any): any;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵpipe: i0.ɵɵPipeDeclaration;
}
declare class MefDevSelectModule {
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵmod: i0.ɵɵNgModuleDeclaration;
static ɵinj: i0.ɵɵInjectorDeclaration;
}
declare const mefDevCardComponents: (typeof CardSimpleComponent)[];
declare class MefDevCardModule {
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵmod: i0.ɵɵNgModuleDeclaration;
static ɵinj: i0.ɵɵInjectorDeclaration;
}
/**
* Fill Component for a modal window.
*
* Example of usage:
* ```
*
*
*
*
*
*
*
*
*
*
*
* ```
*
* https://platform.mef.dev/ui_kit_demo/view/page_components/modals/fill
*/
declare class FillComponent implements OnInit {
protected visible: boolean;
protected dialog?: ElementRef;
/**
* The header template of the modal window.
* ```
*
*
*
*
*
* ```
*/
modal_header: TemplateRef;
/**
* The footer template of the modal window.
* ```
*
*
*
*
*
* ```
*/
modal_footer: TemplateRef;
/**
* Input parameter that determines whether to show the modal window.
*/
set show(val: boolean);
/**
* Event emitted when the modal is change state.
* Emits a boolean value indicating if the modal is closed(false), or open(true).
* Example:
* ```
*
* ```
*/
visibleChange: EventEmitter;
constructor();
ngOnInit(): void;
/**
* Shows the modal state.
* Return a boolean value indicating if the modal is closed(false), or open(true)
*/
getModalState(): boolean;
/**
* Shows the modal.
* Call this method to open the modal window.
*/
showModal(): void;
/**
* Hides the modal.
* Call this method to close the modal window.
*/
hideModal(): void;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵcmp: i0.ɵɵComponentDeclaration;
}
/**
* A component representing a slide-up modal window.
*
* Example of usage:
*
* ```
*
*
*