@tolle_/tolle-ui 18.2.12 → 18.2.13
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/esm2022/lib/date-picker.component.mjs +17 -13
- package/esm2022/lib/date-range-picker.component.mjs +16 -12
- package/esm2022/lib/multi-select.component.mjs +17 -11
- package/esm2022/lib/popover.component.mjs +14 -14
- package/esm2022/lib/select.component.mjs +14 -12
- package/fesm2022/tolle-ui.mjs +69 -53
- package/fesm2022/tolle-ui.mjs.map +1 -1
- package/lib/date-picker.component.d.ts +4 -3
- package/lib/date-range-picker.component.d.ts +4 -3
- package/lib/multi-select.component.d.ts +4 -3
- package/lib/popover.component.d.ts +1 -1
- package/lib/select.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ElementRef, ChangeDetectorRef } from '@angular/core';
|
|
1
|
+
import { ElementRef, ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import { cn } from './utils/cn';
|
|
4
4
|
import { CalendarMode } from './calendar.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class DatePickerComponent implements ControlValueAccessor {
|
|
6
|
+
export declare class DatePickerComponent implements ControlValueAccessor, OnDestroy {
|
|
7
7
|
private cdr;
|
|
8
8
|
placeholder: string;
|
|
9
9
|
disabled: boolean;
|
|
@@ -23,6 +23,7 @@ export declare class DatePickerComponent implements ControlValueAccessor {
|
|
|
23
23
|
inputValue: string;
|
|
24
24
|
isOpen: boolean;
|
|
25
25
|
cleanupAutoUpdate?: () => void;
|
|
26
|
+
private _outsideClickHandler;
|
|
26
27
|
constructor(cdr: ChangeDetectorRef);
|
|
27
28
|
getMask(): string;
|
|
28
29
|
getPlaceholder(): string;
|
|
@@ -36,7 +37,7 @@ export declare class DatePickerComponent implements ControlValueAccessor {
|
|
|
36
37
|
close(): void;
|
|
37
38
|
clear(event: MouseEvent): void;
|
|
38
39
|
private updatePosition;
|
|
39
|
-
|
|
40
|
+
ngOnDestroy(): void;
|
|
40
41
|
onChange: any;
|
|
41
42
|
onTouched: any;
|
|
42
43
|
writeValue(val: any): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ElementRef, ChangeDetectorRef } from '@angular/core';
|
|
1
|
+
import { ElementRef, ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import { cn } from './utils/cn';
|
|
4
4
|
import { DateRange } from './types/date-range';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class DateRangePickerComponent implements ControlValueAccessor {
|
|
6
|
+
export declare class DateRangePickerComponent implements ControlValueAccessor, OnDestroy {
|
|
7
7
|
private cdr;
|
|
8
8
|
disabled: boolean;
|
|
9
9
|
placeholder: string;
|
|
@@ -15,6 +15,7 @@ export declare class DateRangePickerComponent implements ControlValueAccessor {
|
|
|
15
15
|
value: DateRange;
|
|
16
16
|
isOpen: boolean;
|
|
17
17
|
cleanupAutoUpdate?: () => void;
|
|
18
|
+
private _outsideClickHandler;
|
|
18
19
|
constructor(cdr: ChangeDetectorRef);
|
|
19
20
|
get displayValue(): string;
|
|
20
21
|
onCalendarSelect(range: DateRange): void;
|
|
@@ -23,7 +24,7 @@ export declare class DateRangePickerComponent implements ControlValueAccessor {
|
|
|
23
24
|
close(): void;
|
|
24
25
|
clear(event: MouseEvent): void;
|
|
25
26
|
private updatePosition;
|
|
26
|
-
|
|
27
|
+
ngOnDestroy(): void;
|
|
27
28
|
onWindowResize(): void;
|
|
28
29
|
onWindowScroll(): void;
|
|
29
30
|
onChange: any;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { QueryList, AfterContentInit, ElementRef } from '@angular/core';
|
|
1
|
+
import { QueryList, AfterContentInit, ElementRef, OnDestroy } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import { SelectItemComponent } from './select-item.component';
|
|
4
4
|
import { SelectService } from './select.service';
|
|
5
5
|
import { cn } from './utils/cn';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class MultiSelectComponent implements ControlValueAccessor, AfterContentInit {
|
|
7
|
+
export declare class MultiSelectComponent implements ControlValueAccessor, AfterContentInit, OnDestroy {
|
|
8
8
|
private selectService;
|
|
9
9
|
placeholder: string;
|
|
10
10
|
size: 'xs' | 'sm' | 'default' | 'lg';
|
|
@@ -36,6 +36,7 @@ export declare class MultiSelectComponent implements ControlValueAccessor, After
|
|
|
36
36
|
get exceedsDisplayLimit(): boolean;
|
|
37
37
|
get selectableItems(): SelectItemComponent[];
|
|
38
38
|
get availableSelections(): number;
|
|
39
|
+
private _outsideClickHandler;
|
|
39
40
|
toggle(): void;
|
|
40
41
|
open(): void;
|
|
41
42
|
close(): void;
|
|
@@ -46,7 +47,7 @@ export declare class MultiSelectComponent implements ControlValueAccessor, After
|
|
|
46
47
|
removeValue(event: MouseEvent, val: any): void;
|
|
47
48
|
private syncItems;
|
|
48
49
|
onSearchChange(q: string): void;
|
|
49
|
-
|
|
50
|
+
ngOnDestroy(): void;
|
|
50
51
|
onChange: any;
|
|
51
52
|
onTouched: any;
|
|
52
53
|
writeValue(v: any[]): void;
|
|
@@ -8,11 +8,11 @@ export declare class PopoverComponent implements OnDestroy {
|
|
|
8
8
|
popoverEl: ElementRef;
|
|
9
9
|
isOpen: boolean;
|
|
10
10
|
private cleanup?;
|
|
11
|
+
private _outsideClickHandler;
|
|
11
12
|
toggle(): void;
|
|
12
13
|
open(): void;
|
|
13
14
|
close(): void;
|
|
14
15
|
private updatePosition;
|
|
15
|
-
onClickOutside(event: MouseEvent): void;
|
|
16
16
|
ngOnDestroy(): void;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<PopoverComponent, never>;
|
|
18
18
|
static ɵcmp: i0.ɵɵComponentDeclaration<PopoverComponent, "tolle-popover", never, { "placement": { "alias": "placement"; "required": false; }; }, { "onOpen": "onOpen"; "onClose": "onClose"; }, never, ["[trigger]", "*"], true, never>;
|
|
@@ -31,12 +31,12 @@ export declare class SelectComponent implements ControlValueAccessor, AfterConte
|
|
|
31
31
|
get iconClass(): string;
|
|
32
32
|
ngAfterContentInit(): void;
|
|
33
33
|
private updateItemSelection;
|
|
34
|
+
private _outsideClickHandler;
|
|
34
35
|
toggle(): void;
|
|
35
36
|
open(): void;
|
|
36
37
|
close(): void;
|
|
37
38
|
private updatePosition;
|
|
38
39
|
onSearchChange(query: string): void;
|
|
39
|
-
onDocumentClick(event: MouseEvent): void;
|
|
40
40
|
writeValue(value: any): void;
|
|
41
41
|
registerOnChange(fn: any): void;
|
|
42
42
|
registerOnTouched(fn: any): void;
|