@eagami/ui 0.9.0 → 0.10.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/README.md +29 -8
- package/fesm2022/eagami-ui.mjs +511 -144
- package/fesm2022/eagami-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/eagami-ui.d.ts +86 -4
package/package.json
CHANGED
package/types/eagami-ui.d.ts
CHANGED
|
@@ -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;
|
|
@@ -511,11 +590,14 @@ declare class DropdownComponent implements ControlValueAccessor {
|
|
|
511
590
|
|
|
512
591
|
type EagamiWordmarkVariant = 'logo' | 'signature' | 'brand';
|
|
513
592
|
type EagamiWordmarkSize = 'sm' | 'md' | 'lg';
|
|
593
|
+
type EagamiWordmarkText = 'eagami' | 'eagami design system';
|
|
514
594
|
declare class EagamiWordmarkComponent {
|
|
515
595
|
readonly variant: _angular_core.InputSignal<EagamiWordmarkVariant>;
|
|
516
596
|
readonly size: _angular_core.InputSignal<EagamiWordmarkSize>;
|
|
597
|
+
readonly text: _angular_core.InputSignal<EagamiWordmarkText>;
|
|
598
|
+
protected readonly ariaLabel: _angular_core.Signal<string>;
|
|
517
599
|
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>;
|
|
600
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EagamiWordmarkComponent, "ea-eagami-wordmark", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
519
601
|
}
|
|
520
602
|
|
|
521
603
|
declare class AlertCircleIconComponent {
|
|
@@ -1148,5 +1230,5 @@ declare class TooltipDirective implements OnDestroy {
|
|
|
1148
1230
|
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
1231
|
}
|
|
1150
1232
|
|
|
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 };
|
|
1233
|
+
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 };
|
|
1234
|
+
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, EagamiWordmarkSize, EagamiWordmarkText, 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 };
|