@eagami/ui 0.9.0 → 0.10.1

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.9.0",
3
+ "version": "0.10.1",
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",
@@ -277,12 +277,13 @@ declare class CardComponent {
277
277
  readonly padding: _angular_core.InputSignal<CardPadding>;
278
278
  readonly fullWidth: _angular_core.InputSignal<boolean>;
279
279
  readonly headerAlign: _angular_core.InputSignal<CardHeaderAlign>;
280
+ readonly headerDivider: _angular_core.InputSignal<boolean>;
280
281
  readonly hostClasses: _angular_core.Signal<{
281
282
  [x: string]: boolean;
282
283
  'ea-card--full-width': boolean;
283
284
  }>;
284
285
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CardComponent, never>;
285
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CardComponent, "ea-card", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "padding": { "alias": "padding"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "headerAlign": { "alias": "headerAlign"; "required": false; "isSignal": true; }; }, {}, never, ["[eaCardHeader]", "*", "[eaCardFooter]"], true, never>;
286
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CardComponent, "ea-card", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "padding": { "alias": "padding"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "headerAlign": { "alias": "headerAlign"; "required": false; "isSignal": true; }; "headerDivider": { "alias": "headerDivider"; "required": false; "isSignal": true; }; }, {}, never, ["[eaCardHeader]", "*", "[eaCardFooter]"], true, never>;
286
287
  }
287
288
 
288
289
  type CheckboxSize = 'sm' | 'md' | 'lg';
@@ -403,6 +404,84 @@ declare class CodeInputComponent implements ControlValueAccessor {
403
404
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CodeInputComponent, "ea-code-input", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "length": { "alias": "length"; "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; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "completed": "completed"; }, never, never, true, never>;
404
405
  }
405
406
 
407
+ type DatePickerSize = 'sm' | 'md' | 'lg';
408
+ type DatePickerFormat = 'short' | 'medium' | 'long';
409
+ type DatePickerWeekStart = 0 | 1;
410
+ type DatePickerValue = Date | string | null;
411
+ interface CalendarDay {
412
+ date: Date;
413
+ day: number;
414
+ isCurrentMonth: boolean;
415
+ isToday: boolean;
416
+ isSelected: boolean;
417
+ isDisabled: boolean;
418
+ isFocused: boolean;
419
+ }
420
+ declare class DatePickerComponent implements ControlValueAccessor {
421
+ private readonly hostEl;
422
+ private readonly triggerEl;
423
+ readonly label: _angular_core.InputSignal<string | undefined>;
424
+ readonly placeholder: _angular_core.InputSignal<string>;
425
+ readonly size: _angular_core.InputSignal<DatePickerSize>;
426
+ readonly disabled: _angular_core.InputSignal<boolean>;
427
+ readonly required: _angular_core.InputSignal<boolean>;
428
+ readonly hint: _angular_core.InputSignal<string | undefined>;
429
+ readonly errorMsg: _angular_core.InputSignal<string | undefined>;
430
+ readonly minDate: _angular_core.InputSignal<Date | null>;
431
+ readonly maxDate: _angular_core.InputSignal<Date | null>;
432
+ readonly format: _angular_core.InputSignal<DatePickerFormat>;
433
+ readonly weekStartsOn: _angular_core.InputSignal<DatePickerWeekStart>;
434
+ readonly locale: _angular_core.InputSignal<string | undefined>;
435
+ readonly id: _angular_core.InputSignal<string>;
436
+ readonly value: _angular_core.ModelSignal<Date | null>;
437
+ readonly changed: _angular_core.OutputEmitterRef<Date | null>;
438
+ readonly isOpen: _angular_core.WritableSignal<boolean>;
439
+ readonly viewYear: _angular_core.WritableSignal<number>;
440
+ readonly viewMonth: _angular_core.WritableSignal<number>;
441
+ readonly focusedDate: _angular_core.WritableSignal<Date | null>;
442
+ private readonly _formDisabled;
443
+ private onChange;
444
+ private onTouched;
445
+ readonly isDisabled: _angular_core.Signal<boolean>;
446
+ readonly resolvedStatus: _angular_core.Signal<"default" | "error">;
447
+ readonly showError: _angular_core.Signal<boolean>;
448
+ readonly showHint: _angular_core.Signal<boolean>;
449
+ readonly triggerClasses: _angular_core.Signal<{
450
+ [x: string]: boolean;
451
+ 'ea-date-picker__trigger--open': boolean;
452
+ 'ea-date-picker__trigger--disabled': boolean;
453
+ }>;
454
+ readonly displayValue: _angular_core.Signal<string>;
455
+ readonly monthYearLabel: _angular_core.Signal<string>;
456
+ readonly weekdayLabels: _angular_core.Signal<string[]>;
457
+ readonly weeks: _angular_core.Signal<CalendarDay[][]>;
458
+ writeValue(val: DatePickerValue): void;
459
+ registerOnChange(fn: (value: Date | null) => void): void;
460
+ registerOnTouched(fn: () => void): void;
461
+ setDisabledState(isDisabled: boolean): void;
462
+ toggle(): void;
463
+ open(): void;
464
+ close(): void;
465
+ selectDay(day: CalendarDay): void;
466
+ clear(event: Event): void;
467
+ goToPrevMonth(): void;
468
+ goToNextMonth(): void;
469
+ goToPrevYear(): void;
470
+ goToNextYear(): void;
471
+ goToToday(): void;
472
+ handleTriggerKeydown(event: KeyboardEvent): void;
473
+ handleGridKeydown(event: KeyboardEvent): void;
474
+ onDocumentClick(event: Event): void;
475
+ private formatOptions;
476
+ private toDate;
477
+ private startOfDay;
478
+ private isSameDay;
479
+ private addDays;
480
+ private addMonths;
481
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DatePickerComponent, never>;
482
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DatePickerComponent, "ea-date-picker", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "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; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "weekStartsOn": { "alias": "weekStartsOn"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "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>;
483
+ }
484
+
406
485
  type DialogSize = 'sm' | 'md' | 'lg' | 'full';
407
486
  declare class DialogComponent {
408
487
  private readonly dialogEl;
@@ -509,13 +588,18 @@ declare class DropdownComponent implements ControlValueAccessor {
509
588
  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>;
510
589
  }
511
590
 
512
- type EagamiWordmarkVariant = 'logo' | 'signature' | 'brand';
513
- type EagamiWordmarkSize = 'sm' | 'md' | 'lg';
591
+ type EagamiWordmarkVariant = 1 | 2 | 3 | 4;
592
+ type EagamiWordmarkLayout = 'stacked' | 'inline';
514
593
  declare class EagamiWordmarkComponent {
515
594
  readonly variant: _angular_core.InputSignal<EagamiWordmarkVariant>;
516
- readonly size: _angular_core.InputSignal<EagamiWordmarkSize>;
595
+ readonly layout: _angular_core.InputSignal<EagamiWordmarkLayout>;
596
+ readonly size: _angular_core.InputSignal<number>;
597
+ protected readonly showOverline: _angular_core.Signal<boolean>;
598
+ protected readonly showTagline: _angular_core.Signal<boolean>;
599
+ protected readonly brandText: _angular_core.Signal<"eagami" | "eagami design system">;
600
+ protected readonly ariaLabel: _angular_core.Signal<"eagami" | "eagami design system" | "handcrafted by eagami" | "eagami design system — elegant web design">;
517
601
  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>;
602
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<EagamiWordmarkComponent, "ea-eagami-wordmark", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
519
603
  }
520
604
 
521
605
  declare class AlertCircleIconComponent {
@@ -1148,5 +1232,5 @@ declare class TooltipDirective implements OnDestroy {
1148
1232
  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>;
1149
1233
  }
1150
1234
 
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 };
1235
+ 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, DatePickerComponent, 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 };
1236
+ 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, DatePickerFormat, DatePickerSize, DatePickerValue, DatePickerWeekStart, DialogSize, DividerOrientation, DrawerPosition, DrawerSize, DropdownOption, DropdownSize, EagamiWordmarkLayout, 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 };