@tolle_/tolle-ui 0.0.14-beta → 0.0.17-beta
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/data-table.component.mjs +31 -3
- package/esm2022/lib/date-range-picker.component.mjs +1 -1
- package/esm2022/lib/input.component.mjs +113 -52
- package/esm2022/lib/multi-select.component.mjs +1 -1
- package/esm2022/lib/pagination.component.mjs +2 -2
- package/esm2022/lib/select.component.mjs +17 -6
- package/esm2022/lib/textarea.component.mjs +177 -0
- package/esm2022/lib/toaster.component.mjs +94 -0
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/tolle_-tolle-ui.mjs +419 -62
- package/fesm2022/tolle_-tolle-ui.mjs.map +1 -1
- package/lib/button.component.d.ts +1 -1
- package/lib/data-table.component.d.ts +8 -1
- package/lib/input.component.d.ts +8 -3
- package/lib/select.component.d.ts +2 -1
- package/lib/textarea.component.d.ts +31 -0
- package/lib/toaster.component.d.ts +12 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -2,7 +2,7 @@ import { type VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
4
|
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
5
|
-
size?: "
|
|
5
|
+
size?: "xs" | "sm" | "default" | "lg" | "icon-xs" | "icon-sm" | "icon" | "icon-lg" | null | undefined;
|
|
6
6
|
block?: boolean | null | undefined;
|
|
7
7
|
readonly?: boolean | null | undefined;
|
|
8
8
|
disabled?: boolean | null | undefined;
|
|
@@ -16,6 +16,11 @@ export declare class DataTableComponent implements OnInit, OnChanges {
|
|
|
16
16
|
pageSize: number;
|
|
17
17
|
expandable: boolean;
|
|
18
18
|
size: 'xs' | 'sm' | 'default' | 'lg';
|
|
19
|
+
allowColumnHiding: boolean;
|
|
20
|
+
showSettings: boolean;
|
|
21
|
+
columnVisibility: Record<string, boolean>;
|
|
22
|
+
showColumnMenu: boolean;
|
|
23
|
+
get activeColumns(): TableColumn[];
|
|
19
24
|
expandedRows: Set<number>;
|
|
20
25
|
cellTemplates: QueryList<TolleCellDirective>;
|
|
21
26
|
expandedTemplate?: TemplateRef<any>;
|
|
@@ -31,8 +36,10 @@ export declare class DataTableComponent implements OnInit, OnChanges {
|
|
|
31
36
|
protected cn: typeof cn;
|
|
32
37
|
ngOnInit(): void;
|
|
33
38
|
ngOnChanges(changes: SimpleChanges): void;
|
|
39
|
+
private initializeVisibility;
|
|
34
40
|
refreshTable(): void;
|
|
35
41
|
onSearch(): void;
|
|
42
|
+
toggleColumn(key: string): void;
|
|
36
43
|
private applySearch;
|
|
37
44
|
private applySort;
|
|
38
45
|
updatePage(): void;
|
|
@@ -41,5 +48,5 @@ export declare class DataTableComponent implements OnInit, OnChanges {
|
|
|
41
48
|
toggleRow(index: number): void;
|
|
42
49
|
getTemplate(key: string): TolleCellDirective | undefined;
|
|
43
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableComponent, never>;
|
|
44
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableComponent, "tolle-data-table", never, { "data": { "alias": "data"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "paginate": { "alias": "paginate"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "expandable": { "alias": "expandable"; "required": false; }; "size": { "alias": "size"; "required": false; }; "expandedTemplate": { "alias": "expandedTemplate"; "required": false; }; }, {}, ["cellTemplates"], never, true, never>;
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableComponent, "tolle-data-table", never, { "data": { "alias": "data"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "paginate": { "alias": "paginate"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "expandable": { "alias": "expandable"; "required": false; }; "size": { "alias": "size"; "required": false; }; "allowColumnHiding": { "alias": "allowColumnHiding"; "required": false; }; "showSettings": { "alias": "showSettings"; "required": false; }; "expandedTemplate": { "alias": "expandedTemplate"; "required": false; }; }, {}, ["cellTemplates"], never, true, never>;
|
|
45
52
|
}
|
package/lib/input.component.d.ts
CHANGED
|
@@ -4,13 +4,18 @@ import { cn } from './utils/cn';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class InputComponent implements ControlValueAccessor {
|
|
6
6
|
private cdr;
|
|
7
|
+
id: string;
|
|
8
|
+
label: string;
|
|
9
|
+
hint: string;
|
|
10
|
+
errorMessage: string;
|
|
7
11
|
type: string;
|
|
8
12
|
placeholder: string;
|
|
9
|
-
disabled: boolean;
|
|
10
|
-
error: boolean;
|
|
11
13
|
size: 'xs' | 'sm' | 'default' | 'lg';
|
|
12
14
|
containerClass: string;
|
|
13
15
|
class: string;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
readonly: boolean;
|
|
18
|
+
error: boolean;
|
|
14
19
|
value: any;
|
|
15
20
|
onChange: any;
|
|
16
21
|
onTouched: any;
|
|
@@ -24,5 +29,5 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
24
29
|
get computedContainerClass(): string;
|
|
25
30
|
get computedInputClass(): string;
|
|
26
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "tolle-input", never, { "
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "tolle-input", never, { "id": { "alias": "id"; "required": false; }; "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "size": { "alias": "size"; "required": false; }; "containerClass": { "alias": "containerClass"; "required": false; }; "class": { "alias": "class"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "error": { "alias": "error"; "required": false; }; }, {}, never, ["[prefix]", "[suffix]"], true, never>;
|
|
28
33
|
}
|
|
@@ -11,6 +11,7 @@ export declare class SelectComponent implements ControlValueAccessor, AfterConte
|
|
|
11
11
|
disabled: boolean;
|
|
12
12
|
searchable: boolean;
|
|
13
13
|
size: 'xs' | 'sm' | 'default' | 'lg';
|
|
14
|
+
readonly: boolean;
|
|
14
15
|
trigger: ElementRef;
|
|
15
16
|
popover: ElementRef;
|
|
16
17
|
items: QueryList<SelectItemComponent>;
|
|
@@ -41,5 +42,5 @@ export declare class SelectComponent implements ControlValueAccessor, AfterConte
|
|
|
41
42
|
setDisabledState(isDisabled: boolean): void;
|
|
42
43
|
ngOnDestroy(): void;
|
|
43
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
44
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "tolle-select", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "class": { "alias": "class"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, ["items"], ["*"], true, never>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "tolle-select", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "class": { "alias": "class"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "size": { "alias": "size"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, {}, ["items"], ["*"], true, never>;
|
|
45
46
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TextareaComponent implements ControlValueAccessor, AfterViewInit {
|
|
5
|
+
textareaElement: ElementRef<HTMLTextAreaElement>;
|
|
6
|
+
id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
placeholder: string;
|
|
9
|
+
hint: string;
|
|
10
|
+
rows: number;
|
|
11
|
+
maxLength?: number;
|
|
12
|
+
showCharacterCount: boolean;
|
|
13
|
+
autoGrow: boolean;
|
|
14
|
+
error: boolean;
|
|
15
|
+
className: string;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
readonly: boolean;
|
|
18
|
+
value: string;
|
|
19
|
+
onChange: any;
|
|
20
|
+
onTouched: any;
|
|
21
|
+
ngAfterViewInit(): void;
|
|
22
|
+
get textareaClasses(): string;
|
|
23
|
+
handleInput(event: any): void;
|
|
24
|
+
private resize;
|
|
25
|
+
writeValue(value: any): void;
|
|
26
|
+
registerOnChange(fn: any): void;
|
|
27
|
+
registerOnTouched(fn: any): void;
|
|
28
|
+
setDisabledState(isDisabled: boolean): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextareaComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextareaComponent, "tolle-textarea", never, { "id": { "alias": "id"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "showCharacterCount": { "alias": "showCharacterCount"; "required": false; }; "autoGrow": { "alias": "autoGrow"; "required": false; }; "error": { "alias": "error"; "required": false; }; "className": { "alias": "className"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, {}, never, never, true, never>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ToastService, Toast, ToastPosition } from './toast.service';
|
|
2
|
+
import { cn } from './utils/cn';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ToastContainerComponent {
|
|
5
|
+
toastService: ToastService;
|
|
6
|
+
position: ToastPosition;
|
|
7
|
+
toasts$: import("rxjs").Observable<Toast[]>;
|
|
8
|
+
get positionClasses(): string;
|
|
9
|
+
protected cn: typeof cn;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToastContainerComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToastContainerComponent, "tolle-toaster", never, { "position": { "alias": "position"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './lib/skeleton.component';
|
|
|
12
12
|
export * from './lib/checkbox.component';
|
|
13
13
|
export * from './lib/tooltip.directive';
|
|
14
14
|
export * from './lib/toast.service';
|
|
15
|
+
export * from './lib/toaster.component';
|
|
15
16
|
export * from './lib/tolle-config';
|
|
16
17
|
export * from './lib/multi-select.component';
|
|
17
18
|
export * from './lib/calendar.component';
|
|
@@ -36,3 +37,4 @@ export * from './lib/dropdown-label.component';
|
|
|
36
37
|
export * from './lib/dropdown-menu.component';
|
|
37
38
|
export * from './lib/dropdown-separator.component';
|
|
38
39
|
export * from './lib/dropdown-trigger.directive';
|
|
40
|
+
export * from './lib/textarea.component';
|