@obliczeniowo/elementary
Version:
Library made in Angular version 20
70 lines (65 loc) • 3.73 kB
TypeScript
import * as i0 from '@angular/core';
import { EventEmitter } from '@angular/core';
import { ValidationErrors, AbstractControl } from '@angular/forms';
import * as i6 from '@obliczeniowo/elementary/dropdown-select';
import { DragBarComponent } from '@obliczeniowo/elementary/dropdown-select';
import * as i8 from '@obliczeniowo/elementary/radio';
import { RadioItem } from '@obliczeniowo/elementary/radio';
import * as i3 from '@angular/common';
import * as i4 from '@angular/cdk/overlay';
import * as i5 from '@angular/cdk/drag-drop';
import * as i7 from '@obliczeniowo/elementary/buttons';
import * as i9 from '@obliczeniowo/elementary/animations';
interface DropdownGroupSelectItem<T> {
id: string;
value: string | number;
title: string;
options: RadioItem[];
templateData?: T;
}
declare class DropdownGroupSelectItemComponent {
group: i0.InputSignal<DropdownGroupSelectItem<any>>;
getSelected(): string | undefined;
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownGroupSelectItemComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownGroupSelectItemComponent, "obl-dropdown-group-select-item", never, { "group": { "alias": "group"; "required": true; "isSignal": true; }; }, {}, never, never, false, never>;
}
declare class DropdownGroupSelectComponent {
touchedDragbar: boolean;
isOpen: boolean;
value: (number | string)[];
items: DropdownGroupSelectItem<any>[];
label: i0.InputSignal<string | undefined>;
labelAnimation: i0.InputSignal<boolean>;
disabled: boolean;
get error(): ValidationErrors | null;
changed: EventEmitter<DropdownGroupSelectItem<any>[]>;
protected abstractControl: AbstractControl | undefined;
onChange: (value: {
[key: string]: any;
}) => void;
onTouched: () => void;
validate(control: AbstractControl): ValidationErrors | null;
registerOnValidatorChange(fn: () => void): void;
writeValue(ids: {
[key: string]: (number | string) | {
[key: string]: string | number;
};
}): void;
registerOnChange(onChange: any): void;
registerOnTouched(onTouched: any): void;
close(touched?: boolean): void;
open(): void;
toggle(event: any, touched?: boolean): void;
onSelect(dragBar: DragBarComponent): void;
onTouchedDragBar(touched: boolean, element: any): void;
setDisabledState(disabled: boolean): void;
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownGroupSelectComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownGroupSelectComponent, "obl-dropdown-group-select", never, { "value": { "alias": "value"; "required": false; }; "items": { "alias": "items"; "required": false; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelAnimation": { "alias": "labelAnimation"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "changed": "changed"; }, never, never, false, never>;
}
declare class DropdownGroupSelectModule {
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownGroupSelectModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<DropdownGroupSelectModule, [typeof DropdownGroupSelectComponent, typeof DropdownGroupSelectItemComponent], [typeof i3.CommonModule, typeof i4.OverlayModule, typeof i5.DragDropModule, typeof i6.DropdownSelectModule, typeof i7.ButtonsModule, typeof i8.RadioModule, typeof i9.AnimationsModule], [typeof DropdownGroupSelectComponent, typeof DropdownGroupSelectItemComponent]>;
static ɵinj: i0.ɵɵInjectorDeclaration<DropdownGroupSelectModule>;
}
export { DropdownGroupSelectComponent, DropdownGroupSelectItemComponent, DropdownGroupSelectModule };
export type { DropdownGroupSelectItem };