@haloduck/ui 2.0.9 → 2.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/haloduck-ui.mjs +232 -1
- package/fesm2022/haloduck-ui.mjs.map +1 -1
- package/index.d.ts +54 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { FormGroup, FormBuilder, ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { EventEmitter, AfterViewInit, ElementRef, OnInit, OnDestroy,
|
|
4
|
+
import { EventEmitter, AfterViewInit, ElementRef, OnInit, OnDestroy, Type, OnChanges, SimpleChanges, Injector, TemplateRef } from '@angular/core';
|
|
5
5
|
import * as rxjs from 'rxjs';
|
|
6
6
|
import { Observable, Subject } from 'rxjs';
|
|
7
7
|
import { LngLat, MenuItemEx, SearchParams, TableRowProperty } from '@haloduck/core';
|
|
@@ -593,6 +593,57 @@ declare class ToggleComponent implements ControlValueAccessor, AfterViewInit {
|
|
|
593
593
|
static ɵcmp: i0.ɵɵComponentDeclaration<ToggleComponent, "haloduck-toggle", never, { "layout": { "alias": "layout"; "required": false; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "nullable": { "alias": "nullable"; "required": false; }; }, { "toggled": "toggled"; }, never, ["*"], true, never>;
|
|
594
594
|
}
|
|
595
595
|
|
|
596
|
+
interface TabItem {
|
|
597
|
+
id?: string;
|
|
598
|
+
label: string;
|
|
599
|
+
component: Type<any>;
|
|
600
|
+
inputs?: Record<string, any>;
|
|
601
|
+
}
|
|
602
|
+
declare class TabsComponent implements OnChanges, AfterViewInit {
|
|
603
|
+
tabs: TabItem[];
|
|
604
|
+
selectedIndex: number;
|
|
605
|
+
layout: 'horizontal' | 'vertical';
|
|
606
|
+
labelWidth: string;
|
|
607
|
+
selectedIndexChange: EventEmitter<number>;
|
|
608
|
+
label: ElementRef;
|
|
609
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
610
|
+
ngAfterViewInit(): void;
|
|
611
|
+
get current(): TabItem | null;
|
|
612
|
+
select(index: number): void;
|
|
613
|
+
private ensureSelectedInRange;
|
|
614
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabsComponent, never>;
|
|
615
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabsComponent, "haloduck-tabs", never, { "tabs": { "alias": "tabs"; "required": false; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "labelWidth": { "alias": "labelWidth"; "required": false; }; }, { "selectedIndexChange": "selectedIndexChange"; }, never, ["[slot=label]"], true, never>;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
declare class TagInputComponent implements ControlValueAccessor, AfterViewInit {
|
|
619
|
+
label: ElementRef;
|
|
620
|
+
inputEl: ElementRef<HTMLInputElement>;
|
|
621
|
+
placeholder: string;
|
|
622
|
+
disabled: boolean;
|
|
623
|
+
allowDuplicates: boolean;
|
|
624
|
+
set value(tags: string[] | null);
|
|
625
|
+
valueChange: EventEmitter<string[]>;
|
|
626
|
+
tags: string[];
|
|
627
|
+
inputValue: string;
|
|
628
|
+
onChange: (value: any) => void;
|
|
629
|
+
onTouched: () => void;
|
|
630
|
+
writeValue(value: string[] | null): void;
|
|
631
|
+
registerOnChange(fn: any): void;
|
|
632
|
+
registerOnTouched(fn: any): void;
|
|
633
|
+
setDisabledState(isDisabled: boolean): void;
|
|
634
|
+
ngAfterViewInit(): void;
|
|
635
|
+
focus(): void;
|
|
636
|
+
onInput(event: Event): void;
|
|
637
|
+
onBlur(): void;
|
|
638
|
+
onKeydown(event: KeyboardEvent): void;
|
|
639
|
+
removeTag(index: number): void;
|
|
640
|
+
private commitCurrentInput;
|
|
641
|
+
private addTag;
|
|
642
|
+
private emitChanges;
|
|
643
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TagInputComponent, never>;
|
|
644
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TagInputComponent, "haloduck-tag-input", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "allowDuplicates": { "alias": "allowDuplicates"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, ["*"], true, never>;
|
|
645
|
+
}
|
|
646
|
+
|
|
596
647
|
declare class BreadcrumbComponent implements OnInit {
|
|
597
648
|
private readonly breadcrumbService;
|
|
598
649
|
listBreadcrumb: {
|
|
@@ -664,5 +715,5 @@ declare const provideHaloduckTransloco: () => {
|
|
|
664
715
|
multi: boolean;
|
|
665
716
|
}[];
|
|
666
717
|
|
|
667
|
-
export { AuthenticateComponent, BreadcrumbComponent, ButtonComponent, CalendarComponent, ConfirmDialogService, CopyButtonComponent, DatePickerComponent, DateRangeComponent, DialogService, DrawCanvasComponent, ERROR_NOT_ACCEPTABLE_FILE_TYPE, ERROR_OVER_COUNT, ERROR_OVER_SIZE, ERROR_UPLOAD, FileUploaderComponent, FlipComponent, ImageUploaderComponent, ImageViewerComponent, InputComponent, LanguageSelectorComponent, MapToAddressComponent, NotificationComponent, NotificationService, PictureNameComponent, SelectComponent, SelectDropdownComponent, SideMenuComponent, SideMenuItemComponent, StlViewerComponent, TableComponent, ToggleComponent, dateToString, google, provideHaloduckTransloco };
|
|
668
|
-
export type { ButtonVariant, CalendarDate, DateRange, DateRangeDropdown, FileEx, Location, Notification, NotificationType, Option, TableColumn, TableRow };
|
|
718
|
+
export { AuthenticateComponent, BreadcrumbComponent, ButtonComponent, CalendarComponent, ConfirmDialogService, CopyButtonComponent, DatePickerComponent, DateRangeComponent, DialogService, DrawCanvasComponent, ERROR_NOT_ACCEPTABLE_FILE_TYPE, ERROR_OVER_COUNT, ERROR_OVER_SIZE, ERROR_UPLOAD, FileUploaderComponent, FlipComponent, ImageUploaderComponent, ImageViewerComponent, InputComponent, LanguageSelectorComponent, MapToAddressComponent, NotificationComponent, NotificationService, PictureNameComponent, SelectComponent, SelectDropdownComponent, SideMenuComponent, SideMenuItemComponent, StlViewerComponent, TableComponent, TabsComponent, TagInputComponent, ToggleComponent, dateToString, google, provideHaloduckTransloco };
|
|
719
|
+
export type { ButtonVariant, CalendarDate, DateRange, DateRangeDropdown, FileEx, Location, Notification, NotificationType, Option, TabItem, TableColumn, TableRow };
|