@eagami/ui 0.8.1 → 0.9.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eagami/ui",
3
- "version": "0.8.1",
3
+ "version": "0.9.0",
4
4
  "description": "Lightweight, accessible Angular UI component library built on CSS custom properties",
5
5
  "author": "Michal Wiraszka <michal@eagami.com>",
6
6
  "license": "MIT",
@@ -37,6 +37,66 @@ declare class AlertComponent {
37
37
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<AlertComponent, "ea-alert", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; }, { "visible": "visibleChange"; "dismissed": "dismissed"; }, never, ["*"], true, never>;
38
38
  }
39
39
 
40
+ type AutocompleteSize = 'sm' | 'md' | 'lg';
41
+ interface AutocompleteOption {
42
+ value: string;
43
+ label: string;
44
+ disabled?: boolean;
45
+ }
46
+ declare class AutocompleteComponent implements ControlValueAccessor {
47
+ private readonly inputEl;
48
+ private readonly hostEl;
49
+ readonly label: _angular_core.InputSignal<string | undefined>;
50
+ readonly placeholder: _angular_core.InputSignal<string>;
51
+ readonly options: _angular_core.InputSignal<AutocompleteOption[]>;
52
+ readonly size: _angular_core.InputSignal<AutocompleteSize>;
53
+ readonly disabled: _angular_core.InputSignal<boolean>;
54
+ readonly readonly: _angular_core.InputSignal<boolean>;
55
+ readonly required: _angular_core.InputSignal<boolean>;
56
+ readonly hint: _angular_core.InputSignal<string | undefined>;
57
+ readonly errorMsg: _angular_core.InputSignal<string | undefined>;
58
+ readonly minLength: _angular_core.InputSignal<number>;
59
+ readonly maxResults: _angular_core.InputSignal<number>;
60
+ readonly emptyMessage: _angular_core.InputSignal<string>;
61
+ readonly id: _angular_core.InputSignal<string>;
62
+ readonly value: _angular_core.ModelSignal<string>;
63
+ readonly optionSelected: _angular_core.OutputEmitterRef<AutocompleteOption>;
64
+ readonly valueChanged: _angular_core.OutputEmitterRef<string>;
65
+ readonly isOpen: _angular_core.WritableSignal<boolean>;
66
+ readonly focused: _angular_core.WritableSignal<boolean>;
67
+ readonly focusedIndex: _angular_core.WritableSignal<number>;
68
+ private readonly _formDisabled;
69
+ private justSelected;
70
+ private onChange;
71
+ private onTouched;
72
+ readonly isDisabled: _angular_core.Signal<boolean>;
73
+ readonly resolvedStatus: _angular_core.Signal<"default" | "error">;
74
+ readonly showError: _angular_core.Signal<boolean>;
75
+ readonly showHint: _angular_core.Signal<boolean>;
76
+ readonly filteredOptions: _angular_core.Signal<AutocompleteOption[]>;
77
+ readonly showList: _angular_core.Signal<boolean>;
78
+ readonly showEmpty: _angular_core.Signal<boolean>;
79
+ readonly wrapperClasses: _angular_core.Signal<{
80
+ [x: string]: boolean;
81
+ 'ea-autocomplete__wrapper--focused': boolean;
82
+ 'ea-autocomplete__wrapper--disabled': boolean;
83
+ }>;
84
+ writeValue(val: string): void;
85
+ registerOnChange(fn: (value: string) => void): void;
86
+ registerOnTouched(fn: () => void): void;
87
+ setDisabledState(isDisabled: boolean): void;
88
+ handleInput(event: Event): void;
89
+ handleFocus(): void;
90
+ handleBlur(): void;
91
+ handleKeydown(event: KeyboardEvent): void;
92
+ selectOption(option: AutocompleteOption): void;
93
+ close(): void;
94
+ private moveFocus;
95
+ onDocumentClick(event: Event): void;
96
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AutocompleteComponent, never>;
97
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AutocompleteComponent, "ea-autocomplete", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "errorMsg": { "alias": "error"; "required": false; "isSignal": true; }; "minLength": { "alias": "minLength"; "required": false; "isSignal": true; }; "maxResults": { "alias": "maxResults"; "required": false; "isSignal": true; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "optionSelected": "optionSelected"; "valueChanged": "valueChanged"; }, never, ["[slot=prefix]", "[slot=suffix]"], true, never>;
98
+ }
99
+
40
100
  type AvatarEditorShape = 'circle' | 'square';
41
101
  interface AvatarEditorCropEvent {
42
102
  blob: Blob;
@@ -162,6 +222,28 @@ declare class BadgeComponent {
162
222
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<BadgeComponent, "ea-badge", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
163
223
  }
164
224
 
225
+ type BreadcrumbsSeparator = 'chevron' | 'slash';
226
+ interface BreadcrumbItem {
227
+ label: string;
228
+ href?: string;
229
+ disabled?: boolean;
230
+ }
231
+ interface BreadcrumbClickEvent {
232
+ item: BreadcrumbItem;
233
+ index: number;
234
+ event: MouseEvent;
235
+ }
236
+ declare class BreadcrumbsComponent {
237
+ readonly items: _angular_core.InputSignal<BreadcrumbItem[]>;
238
+ readonly separator: _angular_core.InputSignal<BreadcrumbsSeparator>;
239
+ readonly ariaLabel: _angular_core.InputSignal<string>;
240
+ readonly itemClicked: _angular_core.OutputEmitterRef<BreadcrumbClickEvent>;
241
+ isLast(index: number): boolean;
242
+ handleClick(item: BreadcrumbItem, index: number, event: MouseEvent): void;
243
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BreadcrumbsComponent, never>;
244
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BreadcrumbsComponent, "ea-breadcrumbs", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "separator": { "alias": "separator"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; }, { "itemClicked": "itemClicked"; }, never, never, true, never>;
245
+ }
246
+
165
247
  type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'danger';
166
248
  type ButtonSize = 'sm' | 'md' | 'lg';
167
249
  type ButtonType = 'button' | 'submit' | 'reset';
@@ -355,6 +437,30 @@ declare class DividerComponent {
355
437
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<DividerComponent, "ea-divider", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
356
438
  }
357
439
 
440
+ type DrawerPosition = 'left' | 'right' | 'top' | 'bottom';
441
+ type DrawerSize = 'sm' | 'md' | 'lg' | 'full';
442
+ declare class DrawerComponent {
443
+ private readonly drawerEl;
444
+ readonly position: _angular_core.InputSignal<DrawerPosition>;
445
+ readonly size: _angular_core.InputSignal<DrawerSize>;
446
+ readonly closeOnBackdrop: _angular_core.InputSignal<boolean>;
447
+ readonly closeOnEscape: _angular_core.InputSignal<boolean>;
448
+ readonly showClose: _angular_core.InputSignal<boolean>;
449
+ readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
450
+ readonly open: _angular_core.ModelSignal<boolean>;
451
+ readonly opened: _angular_core.OutputEmitterRef<void>;
452
+ readonly closed: _angular_core.OutputEmitterRef<void>;
453
+ readonly panelClasses: _angular_core.Signal<{
454
+ [x: string]: boolean;
455
+ }>;
456
+ constructor();
457
+ handleClose(): void;
458
+ handleBackdropClick(event: MouseEvent): void;
459
+ handleCancel(event: Event): void;
460
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DrawerComponent, never>;
461
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DrawerComponent, "ea-drawer", never, { "position": { "alias": "position"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "closeOnBackdrop": { "alias": "closeOnBackdrop"; "required": false; "isSignal": true; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; "isSignal": true; }; "showClose": { "alias": "showClose"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "opened": "opened"; "closed": "closed"; }, never, ["[slot=header]", "*", "[slot=footer]"], true, never>;
462
+ }
463
+
358
464
  type DropdownSize = 'sm' | 'md' | 'lg';
359
465
  interface DropdownOption {
360
466
  value: string;
@@ -403,6 +509,15 @@ declare class DropdownComponent implements ControlValueAccessor {
403
509
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownComponent, "ea-dropdown", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "errorMsg": { "alias": "error"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "changed": "changed"; }, never, never, true, never>;
404
510
  }
405
511
 
512
+ type EagamiWordmarkVariant = 'logo' | 'signature' | 'brand';
513
+ type EagamiWordmarkSize = 'sm' | 'md' | 'lg';
514
+ declare class EagamiWordmarkComponent {
515
+ readonly variant: _angular_core.InputSignal<EagamiWordmarkVariant>;
516
+ readonly size: _angular_core.InputSignal<EagamiWordmarkSize>;
517
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<EagamiWordmarkComponent, never>;
518
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<EagamiWordmarkComponent, "ea-eagami-wordmark", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
519
+ }
520
+
406
521
  declare class AlertCircleIconComponent {
407
522
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AlertCircleIconComponent, never>;
408
523
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<AlertCircleIconComponent, "ea-icon-alert-circle", never, {}, {}, never, never, true, never>;
@@ -503,6 +618,11 @@ declare class DownloadIconComponent {
503
618
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<DownloadIconComponent, "ea-icon-download", never, {}, {}, never, never, true, never>;
504
619
  }
505
620
 
621
+ declare class EagamiIconComponent {
622
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<EagamiIconComponent, never>;
623
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<EagamiIconComponent, "ea-icon-eagami", never, {}, {}, never, never, true, never>;
624
+ }
625
+
506
626
  declare class ExternalLinkIconComponent {
507
627
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ExternalLinkIconComponent, never>;
508
628
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ExternalLinkIconComponent, "ea-icon-external-link", never, {}, {}, never, never, true, never>;
@@ -710,6 +830,39 @@ declare class InputComponent implements ControlValueAccessor, AfterViewInit {
710
830
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<InputComponent, "ea-input", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "errorMsg": { "alias": "error"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; "autofocus": { "alias": "autofocus"; "required": false; "isSignal": true; }; "showPasswordToggle": { "alias": "showPasswordToggle"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "inputFocused": "inputFocused"; "inputBlurred": "inputBlurred"; }, never, ["[slot=prefix]", "[slot=suffix]"], true, never>;
711
831
  }
712
832
 
833
+ type MenuPlacement = 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end';
834
+ declare class MenuComponent {
835
+ private readonly elRef;
836
+ readonly placement: _angular_core.InputSignal<MenuPlacement>;
837
+ readonly disabled: _angular_core.InputSignal<boolean>;
838
+ readonly ariaLabel: _angular_core.InputSignal<string>;
839
+ readonly open: _angular_core.ModelSignal<boolean>;
840
+ readonly opened: _angular_core.OutputEmitterRef<void>;
841
+ readonly closed: _angular_core.OutputEmitterRef<void>;
842
+ readonly menuId: _angular_core.WritableSignal<string>;
843
+ readonly menuClasses: _angular_core.Signal<{
844
+ [x: string]: boolean;
845
+ }>;
846
+ toggle(): void;
847
+ close(): void;
848
+ handleTriggerKeydown(event: KeyboardEvent): void;
849
+ onDocumentClick(event: Event): void;
850
+ onEscape(): void;
851
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuComponent, never>;
852
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<MenuComponent, "ea-menu", never, { "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "opened": "opened"; "closed": "closed"; }, never, ["[slot=trigger]", "*"], true, never>;
853
+ }
854
+
855
+ type MenuItemVariant = 'default' | 'danger';
856
+ declare class MenuItemComponent {
857
+ private readonly menu;
858
+ readonly disabled: _angular_core.InputSignal<boolean>;
859
+ readonly variant: _angular_core.InputSignal<MenuItemVariant>;
860
+ readonly itemClicked: _angular_core.OutputEmitterRef<MouseEvent>;
861
+ handleClick(event: MouseEvent): void;
862
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuItemComponent, never>;
863
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<MenuItemComponent, "ea-menu-item", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, { "itemClicked": "itemClicked"; }, never, ["[slot=icon]", "*"], true, never>;
864
+ }
865
+
713
866
  type PaginatorPlacement = 'left' | 'center' | 'right';
714
867
  interface PaginatorState {
715
868
  page: number;
@@ -995,5 +1148,5 @@ declare class TooltipDirective implements OnDestroy {
995
1148
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TooltipDirective, "[eaTooltip]", never, { "eaTooltip": { "alias": "eaTooltip"; "required": true; "isSignal": true; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
996
1149
  }
997
1150
 
998
- export { AccordionComponent, AccordionItemComponent, AlertCircleIconComponent, AlertComponent, AlertTriangleIconComponent, AppleIconComponent, ArrowDownIconComponent, ArrowLeftIconComponent, ArrowRightIconComponent, ArrowUpIconComponent, AvatarComponent, AvatarEditorComponent, BadgeComponent, BellIconComponent, ButtonComponent, CalendarIconComponent, CameraIconComponent, CardComponent, CheckCircleIconComponent, CheckIconComponent, CheckboxComponent, ChevronDownIconComponent, ChevronLeftIconComponent, ChevronRightIconComponent, ChevronUpIconComponent, ChevronsUpDownIconComponent, ClockIconComponent, CodeInputComponent, CopyIconComponent, DataTableComponent, DialogComponent, DividerComponent, DownloadIconComponent, DropdownComponent, ExternalLinkIconComponent, EyeIconComponent, EyeOffIconComponent, FacebookIconComponent, FileIconComponent, FilterIconComponent, GithubIconComponent, GoogleIconComponent, HeartIconComponent, ImageIconComponent, InfoIconComponent, InputComponent, LinkIconComponent, LoaderIconComponent, LogOutIconComponent, MailIconComponent, MenuIconComponent, MicrosoftIconComponent, MinusIconComponent, MoreHorizontalIconComponent, PaginatorComponent, PencilIconComponent, PlusIconComponent, ProgressBarComponent, RadioComponent, RadioGroupComponent, RotateCcwIconComponent, SearchIconComponent, SettingsIconComponent, SkeletonComponent, SpinnerComponent, StarIconComponent, SwitchComponent, TabComponent, TabsComponent, TagComponent, TextareaComponent, ToastComponent, ToastService, TooltipDirective, TrashIconComponent, UploadIconComponent, UserIconComponent, XCircleIconComponent, XIconComponent, XTwitterIconComponent };
999
- export type { AlertVariant, AvatarEditorCropEvent, AvatarEditorCropState, AvatarEditorShape, AvatarShape, AvatarSize, BadgeSize, BadgeVariant, ButtonSize, ButtonType, ButtonVariant, CardHeaderAlign, CardPadding, CardVariant, CheckboxSize, CodeInputSize, CodeInputStatus, DataTableColumn, DataTableDensity, DataTableSortState, DialogSize, DividerOrientation, DropdownOption, DropdownSize, InputSize, InputStatus, InputType, PaginatorPlacement, PaginatorState, ProgressBarSize, ProgressBarVariant, RadioOrientation, RadioSize, SkeletonVariant, SortDirection, SpinnerSize, SwitchSize, TabsSize, TabsVariant, TagSize, TagVariant, TextareaResize, TextareaSize, TextareaStatus, Toast, ToastOptions, ToastVariant, TooltipPosition };
1151
+ export { AccordionComponent, AccordionItemComponent, AlertCircleIconComponent, AlertComponent, AlertTriangleIconComponent, AppleIconComponent, ArrowDownIconComponent, ArrowLeftIconComponent, ArrowRightIconComponent, ArrowUpIconComponent, AutocompleteComponent, AvatarComponent, AvatarEditorComponent, BadgeComponent, BellIconComponent, BreadcrumbsComponent, ButtonComponent, CalendarIconComponent, CameraIconComponent, CardComponent, CheckCircleIconComponent, CheckIconComponent, CheckboxComponent, ChevronDownIconComponent, ChevronLeftIconComponent, ChevronRightIconComponent, ChevronUpIconComponent, ChevronsUpDownIconComponent, ClockIconComponent, CodeInputComponent, CopyIconComponent, DataTableComponent, DialogComponent, DividerComponent, DownloadIconComponent, DrawerComponent, DropdownComponent, EagamiIconComponent, EagamiWordmarkComponent, ExternalLinkIconComponent, EyeIconComponent, EyeOffIconComponent, FacebookIconComponent, FileIconComponent, FilterIconComponent, GithubIconComponent, GoogleIconComponent, HeartIconComponent, ImageIconComponent, InfoIconComponent, InputComponent, LinkIconComponent, LoaderIconComponent, LogOutIconComponent, MailIconComponent, MenuComponent, MenuIconComponent, MenuItemComponent, MicrosoftIconComponent, MinusIconComponent, MoreHorizontalIconComponent, PaginatorComponent, PencilIconComponent, PlusIconComponent, ProgressBarComponent, RadioComponent, RadioGroupComponent, RotateCcwIconComponent, SearchIconComponent, SettingsIconComponent, SkeletonComponent, SpinnerComponent, StarIconComponent, SwitchComponent, TabComponent, TabsComponent, TagComponent, TextareaComponent, ToastComponent, ToastService, TooltipDirective, TrashIconComponent, UploadIconComponent, UserIconComponent, XCircleIconComponent, XIconComponent, XTwitterIconComponent };
1152
+ export type { AlertVariant, AutocompleteOption, AutocompleteSize, AvatarEditorCropEvent, AvatarEditorCropState, AvatarEditorShape, AvatarShape, AvatarSize, BadgeSize, BadgeVariant, BreadcrumbClickEvent, BreadcrumbItem, BreadcrumbsSeparator, ButtonSize, ButtonType, ButtonVariant, CardHeaderAlign, CardPadding, CardVariant, CheckboxSize, CodeInputSize, CodeInputStatus, DataTableColumn, DataTableDensity, DataTableSortState, DialogSize, DividerOrientation, DrawerPosition, DrawerSize, DropdownOption, DropdownSize, EagamiWordmarkSize, EagamiWordmarkVariant, InputSize, InputStatus, InputType, MenuItemVariant, MenuPlacement, PaginatorPlacement, PaginatorState, ProgressBarSize, ProgressBarVariant, RadioOrientation, RadioSize, SkeletonVariant, SortDirection, SpinnerSize, SwitchSize, TabsSize, TabsVariant, TagSize, TagVariant, TextareaResize, TextareaSize, TextareaStatus, Toast, ToastOptions, ToastVariant, TooltipPosition };