@tolle_/tolle-ui 18.2.21 → 18.2.23

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/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
  */
@@ -0,0 +1,16 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ResizablePanelItemComponent {
3
+ size: number;
4
+ minSize: number;
5
+ maxSize?: number;
6
+ resizable: boolean;
7
+ class: string;
8
+ isLast: boolean;
9
+ private container;
10
+ get computedContainerClass(): string;
11
+ get computedHandleClass(): string;
12
+ get computedHandleIndicatorClass(): string;
13
+ onHandleMouseDown(event: MouseEvent): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<ResizablePanelItemComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<ResizablePanelItemComponent, "tolle-resizable-panel-item", never, { "size": { "alias": "size"; "required": false; }; "minSize": { "alias": "minSize"; "required": false; }; "maxSize": { "alias": "maxSize"; "required": false; }; "resizable": { "alias": "resizable"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
16
+ }
@@ -0,0 +1,28 @@
1
+ import { QueryList, AfterContentInit, OnDestroy } from '@angular/core';
2
+ import { ResizablePanelItemComponent } from './resizable-panel-item.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ResizablePanelComponent implements AfterContentInit, OnDestroy {
5
+ direction: 'horizontal' | 'vertical';
6
+ class: string;
7
+ panels: QueryList<ResizablePanelItemComponent>;
8
+ private el;
9
+ private cdr;
10
+ private isResizing;
11
+ private activePanelIndex;
12
+ private startCursorPosition;
13
+ private startPanelSizes;
14
+ private mouseMoveListener?;
15
+ private mouseUpListener?;
16
+ ngAfterContentInit(): void;
17
+ ngOnDestroy(): void;
18
+ private updateLastStatus;
19
+ startResize(item: ResizablePanelItemComponent, event: MouseEvent): void;
20
+ private setupListeners;
21
+ private cleanupListeners;
22
+ private onMouseMove;
23
+ private stopResize;
24
+ private updatePanelSizes;
25
+ get computedContainerClass(): string;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<ResizablePanelComponent, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<ResizablePanelComponent, "tolle-resizable-panel", never, { "direction": { "alias": "direction"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, ["panels"], ["*"], true, never>;
28
+ }
@@ -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-destructive/10 text-destructive dark:text-red-400" | "border-emerald-500/50 bg-emerald-50 dark:bg-emerald-500/10 text-emerald-700 dark:text-emerald-400" | "bg-background text-foreground border-border";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolle_/tolle-ui",
3
- "version": "18.2.21",
3
+ "version": "18.2.23",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
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';
@@ -79,3 +80,5 @@ export * from './lib/country-selector.component';
79
80
  export * from './lib/phone-number-input.component';
80
81
  export * from './lib/phone-number.service';
81
82
  export * from './lib/country-codes.service';
83
+ export * from './lib/resizable-panel.component';
84
+ export * from './lib/resizable-panel-item.component';