@lesterarte/sefin-ui 0.0.3-dev.20 → 0.0.3-dev.21
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,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter,
|
|
2
|
+
import { EventEmitter, AfterViewInit, OnChanges, ElementRef, SimpleChanges, OnInit, OnDestroy } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor } from '@angular/forms';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -589,6 +589,48 @@ declare class ThemeLoader {
|
|
|
589
589
|
static getThemeCSS(themeName?: Theme | CustomTheme, variant?: 'light' | 'dark'): string;
|
|
590
590
|
}
|
|
591
591
|
|
|
592
|
+
type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
593
|
+
declare class AvatarComponent {
|
|
594
|
+
/** Avatar size. Options: 'xs' | 'sm' | 'md' | 'lg' | 'xl' */
|
|
595
|
+
size: AvatarSize;
|
|
596
|
+
/** Image source URL */
|
|
597
|
+
src?: string;
|
|
598
|
+
/** Alt text for the image */
|
|
599
|
+
alt: string;
|
|
600
|
+
/** Initials to display when no image is provided */
|
|
601
|
+
initials?: string;
|
|
602
|
+
/** Whether to show a border/ring around the avatar */
|
|
603
|
+
bordered: boolean;
|
|
604
|
+
/** Additional CSS classes */
|
|
605
|
+
class: string;
|
|
606
|
+
get avatarClasses(): string;
|
|
607
|
+
get displayInitials(): string;
|
|
608
|
+
onImageError(event: Event): void;
|
|
609
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarComponent, never>;
|
|
610
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "sefin-avatar", never, { "size": { "alias": "size"; "required": false; }; "src": { "alias": "src"; "required": false; }; "alt": { "alias": "alt"; "required": false; }; "initials": { "alias": "initials"; "required": false; }; "bordered": { "alias": "bordered"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, never, true, never>;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
type BadgeVariant = 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'error';
|
|
614
|
+
type BadgeSize = 'sm' | 'md' | 'lg';
|
|
615
|
+
declare class BadgeComponent {
|
|
616
|
+
/** Badge variant style. Options: 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'error' */
|
|
617
|
+
variant: BadgeVariant;
|
|
618
|
+
/** Badge size. Options: 'sm' | 'md' | 'lg' */
|
|
619
|
+
size: BadgeSize;
|
|
620
|
+
/** Whether the badge should be displayed as a dot (no text) */
|
|
621
|
+
dot: boolean;
|
|
622
|
+
/** Maximum number to show before displaying as "+N" */
|
|
623
|
+
max?: number;
|
|
624
|
+
/** Badge value (number or text) */
|
|
625
|
+
value?: number | string;
|
|
626
|
+
/** Additional CSS classes */
|
|
627
|
+
class: string;
|
|
628
|
+
get badgeClasses(): string;
|
|
629
|
+
get displayValue(): string;
|
|
630
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BadgeComponent, never>;
|
|
631
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BadgeComponent, "sefin-badge", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "dot": { "alias": "dot"; "required": false; }; "max": { "alias": "max"; "required": false; }; "value": { "alias": "value"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, never, true, never>;
|
|
632
|
+
}
|
|
633
|
+
|
|
592
634
|
declare class ButtonComponent {
|
|
593
635
|
/** Button variant style. Options: 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger' */
|
|
594
636
|
variant: ButtonVariant;
|
|
@@ -629,6 +671,51 @@ declare class IconButtonComponent {
|
|
|
629
671
|
static ɵcmp: i0.ɵɵComponentDeclaration<IconButtonComponent, "sefin-icon-button", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "class": { "alias": "class"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; }, { "clicked": "clicked"; }, never, ["*"], true, never>;
|
|
630
672
|
}
|
|
631
673
|
|
|
674
|
+
type FabSize = 'sm' | 'md' | 'lg';
|
|
675
|
+
declare class FabButtonComponent {
|
|
676
|
+
/** Button variant style. Options: 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger' */
|
|
677
|
+
variant: ButtonVariant;
|
|
678
|
+
/** FAB size. Options: 'sm' | 'md' | 'lg' */
|
|
679
|
+
size: FabSize;
|
|
680
|
+
/** Whether the button is disabled */
|
|
681
|
+
disabled: boolean;
|
|
682
|
+
/** Button type. Options: 'button' | 'submit' | 'reset' */
|
|
683
|
+
type: 'button' | 'submit' | 'reset';
|
|
684
|
+
/** Additional CSS classes */
|
|
685
|
+
class: string;
|
|
686
|
+
/** Accessibility label for the button */
|
|
687
|
+
ariaLabel: string;
|
|
688
|
+
clicked: EventEmitter<MouseEvent>;
|
|
689
|
+
onClick(event: MouseEvent): void;
|
|
690
|
+
get buttonClasses(): string;
|
|
691
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FabButtonComponent, never>;
|
|
692
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FabButtonComponent, "sefin-fab-button", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "class": { "alias": "class"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, { "clicked": "clicked"; }, never, ["*"], true, never>;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
type ChipVariant = 'default' | 'primary' | 'secondary' | 'outline' | 'ghost';
|
|
696
|
+
type ChipSize = 'sm' | 'md' | 'lg';
|
|
697
|
+
declare class ChipComponent {
|
|
698
|
+
/** Chip variant style. Options: 'default' | 'primary' | 'secondary' | 'outline' | 'ghost' */
|
|
699
|
+
variant: ChipVariant;
|
|
700
|
+
/** Chip size. Options: 'sm' | 'md' | 'lg' */
|
|
701
|
+
size: ChipSize;
|
|
702
|
+
/** Whether the chip is disabled */
|
|
703
|
+
disabled: boolean;
|
|
704
|
+
/** Whether the chip can be removed (shows remove button) */
|
|
705
|
+
removable: boolean;
|
|
706
|
+
/** Whether the chip is selected (for selectable chips) */
|
|
707
|
+
selected: boolean;
|
|
708
|
+
/** Additional CSS classes */
|
|
709
|
+
class: string;
|
|
710
|
+
removed: EventEmitter<MouseEvent>;
|
|
711
|
+
clicked: EventEmitter<MouseEvent>;
|
|
712
|
+
onRemove(event: MouseEvent): void;
|
|
713
|
+
onClick(event: MouseEvent): void;
|
|
714
|
+
get chipClasses(): string;
|
|
715
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChipComponent, never>;
|
|
716
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChipComponent, "sefin-chip", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, { "removed": "removed"; "clicked": "clicked"; }, never, ["*"], true, never>;
|
|
717
|
+
}
|
|
718
|
+
|
|
632
719
|
type LinkVariant = 'default' | 'primary' | 'secondary' | 'underline';
|
|
633
720
|
type LinkSize = 'sm' | 'md' | 'lg';
|
|
634
721
|
declare class LinkComponent {
|
|
@@ -670,48 +757,6 @@ declare class StackComponent {
|
|
|
670
757
|
static ɵcmp: i0.ɵɵComponentDeclaration<StackComponent, "sefin-stack", never, { "direction": { "alias": "direction"; "required": false; }; "spacing": { "alias": "spacing"; "required": false; }; "align": { "alias": "align"; "required": false; }; "justify": { "alias": "justify"; "required": false; }; "wrap": { "alias": "wrap"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
671
758
|
}
|
|
672
759
|
|
|
673
|
-
interface AutocompleteOption {
|
|
674
|
-
value: string | number;
|
|
675
|
-
label: string;
|
|
676
|
-
disabled?: boolean;
|
|
677
|
-
}
|
|
678
|
-
declare class AutocompleteComponent implements OnInit, OnDestroy, OnChanges {
|
|
679
|
-
inputRef?: ElementRef<HTMLInputElement>;
|
|
680
|
-
dropdownRef?: ElementRef<HTMLDivElement>;
|
|
681
|
-
containerRef?: ElementRef<HTMLDivElement>;
|
|
682
|
-
options: AutocompleteOption[];
|
|
683
|
-
placeholder: string;
|
|
684
|
-
disabled: boolean;
|
|
685
|
-
size: InputSize;
|
|
686
|
-
class: string;
|
|
687
|
-
value: string | number | null;
|
|
688
|
-
minChars: number;
|
|
689
|
-
maxResults: number;
|
|
690
|
-
valueChange: EventEmitter<string | number>;
|
|
691
|
-
optionSelected: EventEmitter<AutocompleteOption>;
|
|
692
|
-
inputChange: EventEmitter<string>;
|
|
693
|
-
searchText: string;
|
|
694
|
-
filteredOptions: AutocompleteOption[];
|
|
695
|
-
isOpen: boolean;
|
|
696
|
-
selectedIndex: number;
|
|
697
|
-
ngOnInit(): void;
|
|
698
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
699
|
-
ngOnDestroy(): void;
|
|
700
|
-
onClickOutside(event: MouseEvent): void;
|
|
701
|
-
onInputChange(value: string): void;
|
|
702
|
-
filterOptions(): void;
|
|
703
|
-
selectOption(option: AutocompleteOption): void;
|
|
704
|
-
onInputFocus(): void;
|
|
705
|
-
onInputBlur(): void;
|
|
706
|
-
onKeyDown(event: KeyboardEvent): void;
|
|
707
|
-
private scrollToSelected;
|
|
708
|
-
clearValue(): void;
|
|
709
|
-
get inputClasses(): string;
|
|
710
|
-
get containerClasses(): string;
|
|
711
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteComponent, never>;
|
|
712
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteComponent, "sefin-autocomplete", never, { "options": { "alias": "options"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "size": { "alias": "size"; "required": false; }; "class": { "alias": "class"; "required": false; }; "value": { "alias": "value"; "required": false; }; "minChars": { "alias": "minChars"; "required": false; }; "maxResults": { "alias": "maxResults"; "required": false; }; }, { "valueChange": "valueChange"; "optionSelected": "optionSelected"; "inputChange": "inputChange"; }, never, never, true, never>;
|
|
713
|
-
}
|
|
714
|
-
|
|
715
760
|
declare class CheckboxComponent implements ControlValueAccessor, AfterViewInit, OnChanges {
|
|
716
761
|
checkboxInput?: ElementRef<HTMLInputElement>;
|
|
717
762
|
size: InputSize;
|
|
@@ -815,7 +860,49 @@ declare class TypographyComponent {
|
|
|
815
860
|
static ɵcmp: i0.ɵɵComponentDeclaration<TypographyComponent, "sefin-typography", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "weight": { "alias": "weight"; "required": false; }; "color": { "alias": "color"; "required": false; }; "lineHeight": { "alias": "lineHeight"; "required": false; }; "class": { "alias": "class"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, {}, never, ["*", "*", "*", "*", "*", "*", "*", "*"], true, never>;
|
|
816
861
|
}
|
|
817
862
|
|
|
863
|
+
interface AutocompleteOption {
|
|
864
|
+
value: string | number;
|
|
865
|
+
label: string;
|
|
866
|
+
disabled?: boolean;
|
|
867
|
+
}
|
|
868
|
+
declare class AutocompleteComponent implements OnInit, OnDestroy, OnChanges {
|
|
869
|
+
inputRef?: ElementRef<HTMLInputElement>;
|
|
870
|
+
dropdownRef?: ElementRef<HTMLDivElement>;
|
|
871
|
+
containerRef?: ElementRef<HTMLDivElement>;
|
|
872
|
+
options: AutocompleteOption[];
|
|
873
|
+
placeholder: string;
|
|
874
|
+
disabled: boolean;
|
|
875
|
+
size: InputSize;
|
|
876
|
+
class: string;
|
|
877
|
+
value: string | number | null;
|
|
878
|
+
minChars: number;
|
|
879
|
+
maxResults: number;
|
|
880
|
+
valueChange: EventEmitter<string | number>;
|
|
881
|
+
optionSelected: EventEmitter<AutocompleteOption>;
|
|
882
|
+
inputChange: EventEmitter<string>;
|
|
883
|
+
searchText: string;
|
|
884
|
+
filteredOptions: AutocompleteOption[];
|
|
885
|
+
isOpen: boolean;
|
|
886
|
+
selectedIndex: number;
|
|
887
|
+
ngOnInit(): void;
|
|
888
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
889
|
+
ngOnDestroy(): void;
|
|
890
|
+
onClickOutside(event: MouseEvent): void;
|
|
891
|
+
onInputChange(value: string): void;
|
|
892
|
+
filterOptions(): void;
|
|
893
|
+
selectOption(option: AutocompleteOption): void;
|
|
894
|
+
onInputFocus(): void;
|
|
895
|
+
onInputBlur(): void;
|
|
896
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
897
|
+
private scrollToSelected;
|
|
898
|
+
clearValue(): void;
|
|
899
|
+
get inputClasses(): string;
|
|
900
|
+
get containerClasses(): string;
|
|
901
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteComponent, never>;
|
|
902
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteComponent, "sefin-autocomplete", never, { "options": { "alias": "options"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "size": { "alias": "size"; "required": false; }; "class": { "alias": "class"; "required": false; }; "value": { "alias": "value"; "required": false; }; "minChars": { "alias": "minChars"; "required": false; }; "maxResults": { "alias": "maxResults"; "required": false; }; }, { "valueChange": "valueChange"; "optionSelected": "optionSelected"; "inputChange": "inputChange"; }, never, never, true, never>;
|
|
903
|
+
}
|
|
904
|
+
|
|
818
905
|
declare const STYLES_PATH = "./styles/index.scss";
|
|
819
906
|
|
|
820
|
-
export { AutocompleteComponent, BORDER_RADIUS_TOKENS, BRAND_THEME, ButtonComponent, COLOR_TOKENS, CheckboxComponent, DARK_THEME, DESIGN_TOKENS, IconButtonComponent, LIGHT_THEME, LinkComponent, SHADOW_TOKENS, SPACING_TOKENS, STYLES_PATH, SelectComponent, StackComponent, SwitchComponent, TYPOGRAPHY_TOKENS, ThemeLoader, TypographyComponent };
|
|
821
|
-
export type { AutocompleteOption, BaseComponent, BorderRadiusToken, ButtonSize, ButtonVariant, CardVariant, ColorShade, ColorTokenName, CustomTheme, InputSize, LinkSize, LinkVariant, SelectOption, ShadowToken, SpacingToken, Theme, ThemeColors, TypographyColor, TypographyLineHeight, TypographySize, TypographyToken, TypographyVariant, TypographyWeight };
|
|
907
|
+
export { AutocompleteComponent, AvatarComponent, BORDER_RADIUS_TOKENS, BRAND_THEME, BadgeComponent, ButtonComponent, COLOR_TOKENS, CheckboxComponent, ChipComponent, DARK_THEME, DESIGN_TOKENS, FabButtonComponent, IconButtonComponent, LIGHT_THEME, LinkComponent, SHADOW_TOKENS, SPACING_TOKENS, STYLES_PATH, SelectComponent, StackComponent, SwitchComponent, TYPOGRAPHY_TOKENS, ThemeLoader, TypographyComponent };
|
|
908
|
+
export type { AutocompleteOption, AvatarSize, BadgeSize, BadgeVariant, BaseComponent, BorderRadiusToken, ButtonSize, ButtonVariant, CardVariant, ChipSize, ChipVariant, ColorShade, ColorTokenName, CustomTheme, FabSize, InputSize, LinkSize, LinkVariant, SelectOption, ShadowToken, SpacingToken, Theme, ThemeColors, TypographyColor, TypographyLineHeight, TypographySize, TypographyToken, TypographyVariant, TypographyWeight };
|