@lesterarte/sefin-ui 0.0.3-dev.2 → 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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { EventEmitter, AfterViewInit, OnChanges, ElementRef, SimpleChanges, OnInit, OnDestroy } from '@angular/core';
|
|
3
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Color design tokens as TypeScript constants
|
|
@@ -443,37 +444,55 @@ type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger';
|
|
|
443
444
|
type ButtonSize = 'sm' | 'md' | 'lg';
|
|
444
445
|
type InputSize = 'sm' | 'md' | 'lg';
|
|
445
446
|
type CardVariant = 'default' | 'elevated' | 'outlined';
|
|
447
|
+
type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
|
|
448
|
+
type TypographySize = 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl';
|
|
449
|
+
type TypographyWeight = 'light' | 'normal' | 'medium' | 'semibold' | 'bold';
|
|
450
|
+
type TypographyColor = 'text' | 'text-secondary' | 'text-disabled' | 'primary' | 'secondary' | 'success' | 'warning' | 'error';
|
|
451
|
+
type TypographyLineHeight = 'tight' | 'normal' | 'relaxed';
|
|
446
452
|
interface BaseComponent {
|
|
447
453
|
disabled?: boolean;
|
|
448
454
|
class?: string;
|
|
449
455
|
}
|
|
456
|
+
/**
|
|
457
|
+
* Theme color configuration
|
|
458
|
+
*/
|
|
459
|
+
interface ThemeColors {
|
|
460
|
+
primary: string;
|
|
461
|
+
'primary-dark'?: string;
|
|
462
|
+
'primary-light'?: string;
|
|
463
|
+
secondary: string;
|
|
464
|
+
'secondary-dark'?: string;
|
|
465
|
+
'secondary-light'?: string;
|
|
466
|
+
background: string;
|
|
467
|
+
'background-elevated'?: string;
|
|
468
|
+
surface: string;
|
|
469
|
+
'surface-hover'?: string;
|
|
470
|
+
text: string;
|
|
471
|
+
'text-secondary'?: string;
|
|
472
|
+
'text-disabled'?: string;
|
|
473
|
+
border: string;
|
|
474
|
+
'border-focus'?: string;
|
|
475
|
+
success?: string;
|
|
476
|
+
warning?: string;
|
|
477
|
+
error?: string;
|
|
478
|
+
info?: string;
|
|
479
|
+
[key: string]: string | undefined;
|
|
480
|
+
}
|
|
450
481
|
/**
|
|
451
482
|
* Custom theme configuration interface
|
|
452
483
|
* Allows users to create their own themes with custom colors, typography, spacing, etc.
|
|
484
|
+
* Supports both single theme and light/dark variants.
|
|
453
485
|
*/
|
|
454
486
|
interface CustomTheme {
|
|
455
487
|
name: string;
|
|
456
|
-
colors:
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
'background-elevated'?: string;
|
|
465
|
-
surface: string;
|
|
466
|
-
'surface-hover'?: string;
|
|
467
|
-
text: string;
|
|
468
|
-
'text-secondary'?: string;
|
|
469
|
-
'text-disabled'?: string;
|
|
470
|
-
border: string;
|
|
471
|
-
'border-focus'?: string;
|
|
472
|
-
success?: string;
|
|
473
|
-
warning?: string;
|
|
474
|
-
error?: string;
|
|
475
|
-
info?: string;
|
|
476
|
-
[key: string]: string | undefined;
|
|
488
|
+
colors: ThemeColors;
|
|
489
|
+
/**
|
|
490
|
+
* Optional light and dark variants for the theme
|
|
491
|
+
* If provided, allows switching between light and dark modes
|
|
492
|
+
*/
|
|
493
|
+
variants?: {
|
|
494
|
+
light?: ThemeColors;
|
|
495
|
+
dark?: ThemeColors;
|
|
477
496
|
};
|
|
478
497
|
typography?: {
|
|
479
498
|
fontFamily?: {
|
|
@@ -549,8 +568,15 @@ declare class ThemeLoader {
|
|
|
549
568
|
/**
|
|
550
569
|
* Load a theme and apply it to the document root
|
|
551
570
|
* @param themeName - Predefined theme name ('light', 'dark', 'brand') or a CustomTheme object
|
|
571
|
+
* @param variant - Optional variant ('light' or 'dark') for CustomTheme with variants support
|
|
572
|
+
*/
|
|
573
|
+
static loadTheme(themeName?: Theme | CustomTheme, variant?: 'light' | 'dark'): void;
|
|
574
|
+
/**
|
|
575
|
+
* Load a custom theme variant (light or dark)
|
|
576
|
+
* @param customTheme - CustomTheme object with variants support
|
|
577
|
+
* @param variant - Variant to load ('light' or 'dark')
|
|
552
578
|
*/
|
|
553
|
-
static
|
|
579
|
+
static loadThemeVariant(customTheme: CustomTheme, variant: 'light' | 'dark'): void;
|
|
554
580
|
/**
|
|
555
581
|
* Get theme configuration by name
|
|
556
582
|
*/
|
|
@@ -558,15 +584,63 @@ declare class ThemeLoader {
|
|
|
558
584
|
/**
|
|
559
585
|
* Get all CSS variables as a string (useful for SSR or static generation)
|
|
560
586
|
* @param themeName - Predefined theme name ('light', 'dark', 'brand') or a CustomTheme object
|
|
587
|
+
* @param variant - Optional variant ('light' or 'dark') for CustomTheme with variants support
|
|
561
588
|
*/
|
|
562
|
-
static getThemeCSS(themeName?: Theme | CustomTheme): string;
|
|
589
|
+
static getThemeCSS(themeName?: Theme | CustomTheme, variant?: 'light' | 'dark'): string;
|
|
590
|
+
}
|
|
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>;
|
|
563
632
|
}
|
|
564
633
|
|
|
565
634
|
declare class ButtonComponent {
|
|
635
|
+
/** Button variant style. Options: 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger' */
|
|
566
636
|
variant: ButtonVariant;
|
|
637
|
+
/** Button size. Options: 'sm' | 'md' | 'lg' */
|
|
567
638
|
size: ButtonSize;
|
|
639
|
+
/** Whether the button is disabled */
|
|
568
640
|
disabled: boolean;
|
|
641
|
+
/** Button type. Options: 'button' | 'submit' | 'reset' */
|
|
569
642
|
type: 'button' | 'submit' | 'reset';
|
|
643
|
+
/** Additional CSS classes */
|
|
570
644
|
class: string;
|
|
571
645
|
clicked: EventEmitter<MouseEvent>;
|
|
572
646
|
onClick(event: MouseEvent): void;
|
|
@@ -575,7 +649,260 @@ declare class ButtonComponent {
|
|
|
575
649
|
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "sefin-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; }; }, { "clicked": "clicked"; }, never, ["*"], true, never>;
|
|
576
650
|
}
|
|
577
651
|
|
|
652
|
+
declare class IconButtonComponent {
|
|
653
|
+
/** Button variant style. Options: 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger' */
|
|
654
|
+
variant: ButtonVariant;
|
|
655
|
+
/** Button size. Options: 'sm' | 'md' | 'lg' */
|
|
656
|
+
size: ButtonSize;
|
|
657
|
+
/** Whether the button is disabled */
|
|
658
|
+
disabled: boolean;
|
|
659
|
+
/** Button type. Options: 'button' | 'submit' | 'reset' */
|
|
660
|
+
type: 'button' | 'submit' | 'reset';
|
|
661
|
+
/** Additional CSS classes */
|
|
662
|
+
class: string;
|
|
663
|
+
/** Accessibility label for the button */
|
|
664
|
+
ariaLabel: string;
|
|
665
|
+
/** Whether the button should be rounded (circular) */
|
|
666
|
+
rounded: boolean;
|
|
667
|
+
clicked: EventEmitter<MouseEvent>;
|
|
668
|
+
onClick(event: MouseEvent): void;
|
|
669
|
+
get buttonClasses(): string;
|
|
670
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconButtonComponent, never>;
|
|
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>;
|
|
672
|
+
}
|
|
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
|
+
|
|
719
|
+
type LinkVariant = 'default' | 'primary' | 'secondary' | 'underline';
|
|
720
|
+
type LinkSize = 'sm' | 'md' | 'lg';
|
|
721
|
+
declare class LinkComponent {
|
|
722
|
+
/** Link variant style. Options: 'default' | 'primary' | 'secondary' | 'underline' */
|
|
723
|
+
variant: LinkVariant;
|
|
724
|
+
/** Link size. Options: 'sm' | 'md' | 'lg' */
|
|
725
|
+
size: LinkSize;
|
|
726
|
+
/** Whether the link is disabled */
|
|
727
|
+
disabled: boolean;
|
|
728
|
+
/** Link URL */
|
|
729
|
+
href?: string;
|
|
730
|
+
/** Link target attribute (e.g., '_blank') */
|
|
731
|
+
target?: string;
|
|
732
|
+
/** Link rel attribute */
|
|
733
|
+
rel?: string;
|
|
734
|
+
/** Additional CSS classes */
|
|
735
|
+
class: string;
|
|
736
|
+
/** Whether to show underline */
|
|
737
|
+
underline: boolean;
|
|
738
|
+
get linkClasses(): string;
|
|
739
|
+
onClick(event: Event): void;
|
|
740
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LinkComponent, never>;
|
|
741
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LinkComponent, "sefin-link", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "href": { "alias": "href"; "required": false; }; "target": { "alias": "target"; "required": false; }; "rel": { "alias": "rel"; "required": false; }; "class": { "alias": "class"; "required": false; }; "underline": { "alias": "underline"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
declare class StackComponent {
|
|
745
|
+
direction: 'row' | 'column';
|
|
746
|
+
spacing: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
747
|
+
align: 'start' | 'center' | 'end' | 'stretch';
|
|
748
|
+
justify: 'start' | 'center' | 'end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
749
|
+
wrap: boolean;
|
|
750
|
+
class: string;
|
|
751
|
+
get stackClasses(): string;
|
|
752
|
+
get spacingValue(): string;
|
|
753
|
+
get stackStyles(): {
|
|
754
|
+
[key: string]: string;
|
|
755
|
+
};
|
|
756
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StackComponent, never>;
|
|
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>;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
declare class CheckboxComponent implements ControlValueAccessor, AfterViewInit, OnChanges {
|
|
761
|
+
checkboxInput?: ElementRef<HTMLInputElement>;
|
|
762
|
+
size: InputSize;
|
|
763
|
+
disabled: boolean;
|
|
764
|
+
indeterminate: boolean;
|
|
765
|
+
class: string;
|
|
766
|
+
label: string;
|
|
767
|
+
name: string;
|
|
768
|
+
value: boolean;
|
|
769
|
+
valueChange: EventEmitter<boolean>;
|
|
770
|
+
checkedChange: EventEmitter<boolean>;
|
|
771
|
+
private onChange;
|
|
772
|
+
private onTouched;
|
|
773
|
+
ngAfterViewInit(): void;
|
|
774
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
775
|
+
onCheckboxChange(event: Event): void;
|
|
776
|
+
writeValue(value: boolean): void;
|
|
777
|
+
registerOnChange(fn: (value: boolean) => void): void;
|
|
778
|
+
registerOnTouched(fn: () => void): void;
|
|
779
|
+
setDisabledState(isDisabled: boolean): void;
|
|
780
|
+
get wrapperClasses(): string;
|
|
781
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
|
782
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "sefin-checkbox", never, { "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "class": { "alias": "class"; "required": false; }; "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "checkedChange": "checkedChange"; }, never, never, true, never>;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
interface SelectOption {
|
|
786
|
+
value: string | number;
|
|
787
|
+
label: string;
|
|
788
|
+
disabled?: boolean;
|
|
789
|
+
}
|
|
790
|
+
declare class SelectComponent implements ControlValueAccessor, OnInit, OnDestroy, OnChanges {
|
|
791
|
+
containerRef?: ElementRef<HTMLDivElement>;
|
|
792
|
+
dropdownRef?: ElementRef<HTMLDivElement>;
|
|
793
|
+
buttonRef?: ElementRef<HTMLButtonElement>;
|
|
794
|
+
options: SelectOption[];
|
|
795
|
+
placeholder: string;
|
|
796
|
+
disabled: boolean;
|
|
797
|
+
size: InputSize;
|
|
798
|
+
class: string;
|
|
799
|
+
value: string | number | null;
|
|
800
|
+
valueChange: EventEmitter<string | number>;
|
|
801
|
+
optionSelected: EventEmitter<SelectOption>;
|
|
802
|
+
isOpen: boolean;
|
|
803
|
+
selectedIndex: number;
|
|
804
|
+
private onChange;
|
|
805
|
+
private onTouched;
|
|
806
|
+
ngOnInit(): void;
|
|
807
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
808
|
+
ngOnDestroy(): void;
|
|
809
|
+
onClickOutside(event: MouseEvent): void;
|
|
810
|
+
onEscapeKey(event: Event): void;
|
|
811
|
+
toggleDropdown(): void;
|
|
812
|
+
openDropdown(): void;
|
|
813
|
+
closeDropdown(): void;
|
|
814
|
+
selectOption(option: SelectOption): void;
|
|
815
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
816
|
+
private updateSelectedIndex;
|
|
817
|
+
private scrollToSelected;
|
|
818
|
+
getSelectedLabel(): string;
|
|
819
|
+
writeValue(value: string | number | null): void;
|
|
820
|
+
registerOnChange(fn: (value: string | number | null) => void): void;
|
|
821
|
+
registerOnTouched(fn: () => void): void;
|
|
822
|
+
setDisabledState(isDisabled: boolean): void;
|
|
823
|
+
get buttonClasses(): string;
|
|
824
|
+
get containerClasses(): string;
|
|
825
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
826
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "sefin-select", 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; }; }, { "valueChange": "valueChange"; "optionSelected": "optionSelected"; }, never, never, true, never>;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
declare class SwitchComponent implements ControlValueAccessor {
|
|
830
|
+
size: InputSize;
|
|
831
|
+
disabled: boolean;
|
|
832
|
+
class: string;
|
|
833
|
+
label: string;
|
|
834
|
+
name: string;
|
|
835
|
+
value: boolean;
|
|
836
|
+
valueChange: EventEmitter<boolean>;
|
|
837
|
+
checkedChange: EventEmitter<boolean>;
|
|
838
|
+
private onChange;
|
|
839
|
+
private onTouched;
|
|
840
|
+
onSwitchChange(event: Event): void;
|
|
841
|
+
writeValue(value: boolean): void;
|
|
842
|
+
registerOnChange(fn: (value: boolean) => void): void;
|
|
843
|
+
registerOnTouched(fn: () => void): void;
|
|
844
|
+
setDisabledState(isDisabled: boolean): void;
|
|
845
|
+
get wrapperClasses(): string;
|
|
846
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SwitchComponent, never>;
|
|
847
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SwitchComponent, "sefin-switch", never, { "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "class": { "alias": "class"; "required": false; }; "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "checkedChange": "checkedChange"; }, never, never, true, never>;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
declare class TypographyComponent {
|
|
851
|
+
variant: TypographyVariant;
|
|
852
|
+
size?: TypographySize;
|
|
853
|
+
weight?: TypographyWeight;
|
|
854
|
+
color: TypographyColor;
|
|
855
|
+
lineHeight?: TypographyLineHeight;
|
|
856
|
+
class: string;
|
|
857
|
+
text?: string;
|
|
858
|
+
get typographyClasses(): string;
|
|
859
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TypographyComponent, never>;
|
|
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>;
|
|
861
|
+
}
|
|
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
|
+
|
|
578
905
|
declare const STYLES_PATH = "./styles/index.scss";
|
|
579
906
|
|
|
580
|
-
export { BORDER_RADIUS_TOKENS, BRAND_THEME, ButtonComponent, COLOR_TOKENS, DARK_THEME, DESIGN_TOKENS, LIGHT_THEME, SHADOW_TOKENS, SPACING_TOKENS, STYLES_PATH, TYPOGRAPHY_TOKENS, ThemeLoader };
|
|
581
|
-
export type { BaseComponent, BorderRadiusToken, ButtonSize, ButtonVariant, CardVariant, ColorShade, ColorTokenName, CustomTheme, InputSize, ShadowToken, SpacingToken, Theme, TypographyToken };
|
|
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 };
|