@tolle_/tolle-ui 18.2.21 → 18.2.22
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/modal.component.mjs +2 -2
- package/esm2022/lib/modal.mjs +2 -1
- package/esm2022/lib/select.component.mjs +50 -20
- package/esm2022/lib/tag-input.component.mjs +337 -0
- package/esm2022/lib/toaster.component.mjs +3 -3
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/tolle-ui.mjs +383 -23
- package/fesm2022/tolle-ui.mjs.map +1 -1
- package/lib/modal.d.ts +2 -1
- package/lib/select.component.d.ts +7 -2
- package/lib/tag-input.component.d.ts +46 -0
- package/lib/toaster.component.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
package/lib/modal.d.ts
CHANGED
|
@@ -9,9 +9,10 @@ export declare class Modal<T = any> {
|
|
|
9
9
|
* - sm: 425px (Standard dialogs)
|
|
10
10
|
* - default: 544px (Forms)
|
|
11
11
|
* - lg: 90% / 1024px (Data tables)
|
|
12
|
+
* - xl: 1280px (Large forms, dashboards)
|
|
12
13
|
* - fullscreen: 100vw/100vh (Complex workflows)
|
|
13
14
|
*/
|
|
14
|
-
size?: 'xs' | 'sm' | 'default' | 'lg' | 'fullscreen';
|
|
15
|
+
size?: 'xs' | 'sm' | 'default' | 'lg' | 'xl' | 'fullscreen';
|
|
15
16
|
/** * If true (default), clicking the backdrop closes the modal.
|
|
16
17
|
* Set to false for "blocking" modals (e.g., Terms of Service).
|
|
17
18
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef, OnDestroy, QueryList, AfterContentInit } from '@angular/core';
|
|
1
|
+
import { ElementRef, OnDestroy, QueryList, AfterContentInit, ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import { cn } from './utils/cn';
|
|
4
4
|
import { SelectItemComponent } from './select-item.component';
|
|
@@ -6,6 +6,7 @@ import { SelectService } from './select.service';
|
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class SelectComponent implements ControlValueAccessor, AfterContentInit, OnDestroy {
|
|
8
8
|
private selectService;
|
|
9
|
+
private cdr;
|
|
9
10
|
placeholder: string;
|
|
10
11
|
class: string;
|
|
11
12
|
disabled: boolean;
|
|
@@ -17,6 +18,8 @@ export declare class SelectComponent implements ControlValueAccessor, AfterConte
|
|
|
17
18
|
container: ElementRef;
|
|
18
19
|
items: QueryList<SelectItemComponent>;
|
|
19
20
|
private sub;
|
|
21
|
+
private itemsChangeSub?;
|
|
22
|
+
private pendingValue;
|
|
20
23
|
searchQuery: string;
|
|
21
24
|
noResults: boolean;
|
|
22
25
|
isOpen: boolean;
|
|
@@ -26,11 +29,13 @@ export declare class SelectComponent implements ControlValueAccessor, AfterConte
|
|
|
26
29
|
onChange: any;
|
|
27
30
|
onTouched: any;
|
|
28
31
|
protected cn: typeof cn;
|
|
29
|
-
constructor(selectService: SelectService);
|
|
32
|
+
constructor(selectService: SelectService, cdr: ChangeDetectorRef);
|
|
30
33
|
get computedTriggerClass(): string;
|
|
31
34
|
get iconClass(): string;
|
|
32
35
|
ngAfterContentInit(): void;
|
|
36
|
+
private applyPendingValue;
|
|
33
37
|
private updateItemSelection;
|
|
38
|
+
private syncSelectedLabel;
|
|
34
39
|
private _outsideClickHandler;
|
|
35
40
|
toggle(): void;
|
|
36
41
|
open(): void;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { cn } from './utils/cn';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TagInputComponent implements ControlValueAccessor {
|
|
6
|
+
private cdr;
|
|
7
|
+
tagInputElement: ElementRef<HTMLInputElement>;
|
|
8
|
+
id: string;
|
|
9
|
+
label: string;
|
|
10
|
+
hint: string;
|
|
11
|
+
errorMessage: string;
|
|
12
|
+
placeholder: string;
|
|
13
|
+
size: 'xs' | 'sm' | 'default' | 'lg';
|
|
14
|
+
class: string;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
readonly: boolean;
|
|
17
|
+
error: boolean;
|
|
18
|
+
delimiter: string;
|
|
19
|
+
maxTags: number | null;
|
|
20
|
+
allowDuplicates: boolean;
|
|
21
|
+
tagPrefix: string;
|
|
22
|
+
tagSuffix: string;
|
|
23
|
+
tags: string[];
|
|
24
|
+
inputValue: string;
|
|
25
|
+
isFocused: boolean;
|
|
26
|
+
onChange: any;
|
|
27
|
+
onTouched: any;
|
|
28
|
+
constructor(cdr: ChangeDetectorRef);
|
|
29
|
+
writeValue(values: string[]): void;
|
|
30
|
+
registerOnChange(fn: any): void;
|
|
31
|
+
registerOnTouched(fn: any): void;
|
|
32
|
+
setDisabledState(isDisabled: boolean): void;
|
|
33
|
+
onKeydown(event: KeyboardEvent): void;
|
|
34
|
+
onBlur(): void;
|
|
35
|
+
onFocus(): void;
|
|
36
|
+
removeTag(index: number, event?: MouseEvent): void;
|
|
37
|
+
focusInput(): void;
|
|
38
|
+
private commitInput;
|
|
39
|
+
private emitChange;
|
|
40
|
+
protected readonly cn: typeof cn;
|
|
41
|
+
get computedLabelClass(): string;
|
|
42
|
+
get computedContainerClass(): string;
|
|
43
|
+
get computedInputClass(): string;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TagInputComponent, never>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TagInputComponent, "tolle-tag-input", never, { "id": { "alias": "id"; "required": false; }; "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "size": { "alias": "size"; "required": false; }; "class": { "alias": "class"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "error": { "alias": "error"; "required": false; }; "delimiter": { "alias": "delimiter"; "required": false; }; "maxTags": { "alias": "maxTags"; "required": false; }; "allowDuplicates": { "alias": "allowDuplicates"; "required": false; }; "tagPrefix": { "alias": "tagPrefix"; "required": false; }; "tagSuffix": { "alias": "tagSuffix"; "required": false; }; }, {}, never, never, true, never>;
|
|
46
|
+
}
|
|
@@ -10,7 +10,7 @@ export declare class ToastContainerComponent {
|
|
|
10
10
|
success: string;
|
|
11
11
|
default: string;
|
|
12
12
|
};
|
|
13
|
-
getVariantClasses(variant?: string): "border-destructive/50 bg-destructive/5 dark:bg-
|
|
13
|
+
getVariantClasses(variant?: string): "border-destructive/50 bg-destructive/5 dark:bg-red-950 text-destructive dark:text-red-400" | "border-emerald-500/50 bg-emerald-50 dark:bg-emerald-950 text-emerald-700 dark:text-emerald-400" | "bg-background text-foreground border-border";
|
|
14
14
|
getProgressClasses(variant?: string): "bg-destructive dark:bg-red-400" | "bg-emerald-600 dark:bg-emerald-400" | "bg-primary";
|
|
15
15
|
get positionClasses(): string;
|
|
16
16
|
protected cn: typeof cn;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from './lib/switch.component';
|
|
|
10
10
|
export * from './lib/badge.component';
|
|
11
11
|
export * from './lib/skeleton.component';
|
|
12
12
|
export * from './lib/checkbox.component';
|
|
13
|
+
export * from './lib/tag-input.component';
|
|
13
14
|
export * from './lib/tooltip.directive';
|
|
14
15
|
export * from './lib/toast.service';
|
|
15
16
|
export * from './lib/toaster.component';
|