@lesterarte/sefin-ui 0.0.20-dev.8 → 0.0.20-dev.9
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
|
@@ -1563,6 +1563,98 @@ declare class DatepickerComponent implements OnInit, OnChanges, AfterViewInit, O
|
|
|
1563
1563
|
static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "sefin-datepicker", never, { "value": { "alias": "value"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "size": { "alias": "size"; "required": false; }; "format": { "alias": "format"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "showTodayButton": { "alias": "showTodayButton"; "required": false; }; "showClearButton": { "alias": "showClearButton"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; }, { "valueChange": "valueChange"; "dateSelected": "dateSelected"; }, never, never, true, never>;
|
|
1564
1564
|
}
|
|
1565
1565
|
|
|
1566
|
+
type FormFieldVariant = 'outlined' | 'filled' | 'standard';
|
|
1567
|
+
type FormFieldSize = 'sm' | 'md' | 'lg';
|
|
1568
|
+
type FormFieldType = 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search';
|
|
1569
|
+
declare class FormFieldComponent implements ControlValueAccessor, Validator, OnInit, AfterViewInit, OnDestroy {
|
|
1570
|
+
private cdr;
|
|
1571
|
+
inputRef?: ElementRef<HTMLInputElement>;
|
|
1572
|
+
/** Label text for the field */
|
|
1573
|
+
label: string;
|
|
1574
|
+
/** FormField variant style. Options: 'outlined' | 'filled' | 'standard' */
|
|
1575
|
+
variant: FormFieldVariant;
|
|
1576
|
+
/** FormField size. Options: 'sm' | 'md' | 'lg' */
|
|
1577
|
+
size: FormFieldSize;
|
|
1578
|
+
/** Input type. Options: 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search' */
|
|
1579
|
+
type: FormFieldType;
|
|
1580
|
+
/** Placeholder text */
|
|
1581
|
+
placeholder: string;
|
|
1582
|
+
/** Helper text shown below the input */
|
|
1583
|
+
hint: string;
|
|
1584
|
+
/** Error message to display */
|
|
1585
|
+
errorMessage: string;
|
|
1586
|
+
/** Whether the field is required */
|
|
1587
|
+
required: boolean;
|
|
1588
|
+
/** Whether the field is disabled */
|
|
1589
|
+
disabled: boolean;
|
|
1590
|
+
/** Whether the field is readonly */
|
|
1591
|
+
readonly: boolean;
|
|
1592
|
+
/** Maximum length of the input */
|
|
1593
|
+
maxLength?: number;
|
|
1594
|
+
/** Minimum length of the input */
|
|
1595
|
+
minLength?: number;
|
|
1596
|
+
/** Pattern for validation (regex string) */
|
|
1597
|
+
pattern?: string;
|
|
1598
|
+
/** Leading icon name */
|
|
1599
|
+
leadingIcon?: string;
|
|
1600
|
+
/** Trailing icon name */
|
|
1601
|
+
trailingIcon?: string;
|
|
1602
|
+
/** Whether to show character counter */
|
|
1603
|
+
showCounter: boolean;
|
|
1604
|
+
/** Autocomplete attribute */
|
|
1605
|
+
autocomplete?: string;
|
|
1606
|
+
/** Input name attribute */
|
|
1607
|
+
name: string;
|
|
1608
|
+
/** Input id attribute */
|
|
1609
|
+
id: string;
|
|
1610
|
+
/** Additional CSS classes */
|
|
1611
|
+
class: string;
|
|
1612
|
+
/** Custom validation function */
|
|
1613
|
+
customValidator?: (value: string) => string | null;
|
|
1614
|
+
/** Event emitted when the value changes */
|
|
1615
|
+
valueChange: EventEmitter<string>;
|
|
1616
|
+
/** Event emitted when the input is focused */
|
|
1617
|
+
focused: EventEmitter<FocusEvent>;
|
|
1618
|
+
/** Event emitted when the input is blurred */
|
|
1619
|
+
blurred: EventEmitter<FocusEvent>;
|
|
1620
|
+
/** Event emitted when trailing icon is clicked */
|
|
1621
|
+
trailingIconClick: EventEmitter<MouseEvent>;
|
|
1622
|
+
value: string;
|
|
1623
|
+
isFocused: boolean;
|
|
1624
|
+
hasError: boolean;
|
|
1625
|
+
internalErrorMessage: string;
|
|
1626
|
+
internalId: string;
|
|
1627
|
+
private onChange;
|
|
1628
|
+
private onTouched;
|
|
1629
|
+
private destroy$;
|
|
1630
|
+
private control?;
|
|
1631
|
+
constructor(cdr: ChangeDetectorRef);
|
|
1632
|
+
ngOnInit(): void;
|
|
1633
|
+
ngAfterViewInit(): void;
|
|
1634
|
+
ngOnDestroy(): void;
|
|
1635
|
+
private generateIdIfNeeded;
|
|
1636
|
+
get fieldId(): string;
|
|
1637
|
+
get labelId(): string;
|
|
1638
|
+
get inputId(): string;
|
|
1639
|
+
get hintId(): string;
|
|
1640
|
+
onInput(event: Event): void;
|
|
1641
|
+
onFocus(event: FocusEvent): void;
|
|
1642
|
+
onBlur(event: FocusEvent): void;
|
|
1643
|
+
onTrailingIconClick(event: MouseEvent): void;
|
|
1644
|
+
private validateField;
|
|
1645
|
+
get displayError(): boolean;
|
|
1646
|
+
get displayErrorMessage(): string;
|
|
1647
|
+
get characterCount(): number;
|
|
1648
|
+
get formFieldClasses(): string;
|
|
1649
|
+
writeValue(value: string | null | undefined): void;
|
|
1650
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
1651
|
+
registerOnTouched(fn: () => void): void;
|
|
1652
|
+
setDisabledState(isDisabled: boolean): void;
|
|
1653
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
1654
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldComponent, never>;
|
|
1655
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "sefin-form-field", never, { "label": { "alias": "label"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "leadingIcon": { "alias": "leadingIcon"; "required": false; }; "trailingIcon": { "alias": "trailingIcon"; "required": false; }; "showCounter": { "alias": "showCounter"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "class": { "alias": "class"; "required": false; }; "customValidator": { "alias": "customValidator"; "required": false; }; }, { "valueChange": "valueChange"; "focused": "focused"; "blurred": "blurred"; "trailingIconClick": "trailingIconClick"; }, never, never, true, never>;
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1566
1658
|
type PaginationSize = 'sm' | 'md' | 'lg';
|
|
1567
1659
|
type PaginationVariant = 'default' | 'compact';
|
|
1568
1660
|
declare class PaginationComponent {
|
|
@@ -1702,5 +1794,5 @@ declare class TextareaComponent implements ControlValueAccessor, Validator, OnIn
|
|
|
1702
1794
|
|
|
1703
1795
|
declare const STYLES_PATH = "./styles/index.scss";
|
|
1704
1796
|
|
|
1705
|
-
export { AccordionItemComponent, AlertComponent, AutocompleteComponent, AvatarComponent, BORDER_RADIUS_TOKENS, BRAND_THEME, BadgeComponent, BreadcrumbsComponent, ButtonComponent, ButtonGroupComponent, COLOR_TOKENS, CardComponent, CheckboxComponent, ChipComponent, ContainerComponent, DARK_THEME, DESIGN_TOKENS, DatepickerComponent, DividerComponent, FabButtonComponent, IconButtonComponent, IconComponent, ImageComponent, LIGHT_THEME, LinkComponent, PaginationComponent, ProgressBarComponent, RadioComponent, RateComponent, SHADOW_TOKENS, SPACING_TOKENS, STYLES_PATH, SelectComponent, SpacerComponent, SpinnerComponent, StackComponent, SwitchComponent, TYPOGRAPHY_TOKENS, TabComponent, TagComponent, TextFieldComponent, TextareaComponent, ThemeLoader, ToastComponent, TooltipComponent, TypographyComponent };
|
|
1706
|
-
export type { AlertSize, AlertVariant, AutocompleteOption, AvatarSize, BadgeSize, BadgeVariant, BaseComponent, BorderRadiusToken, BreadcrumbItem, BreadcrumbSeparator, BreadcrumbSize, ButtonGroupOption, ButtonGroupSize, ButtonGroupVariant, ButtonSize, ButtonVariant, CardVariant, ChipSize, ChipVariant, ColorShade, ColorTokenName, ContainerSize, ContainerVariant, CustomTheme, DateFormat, DatePickerMode, DateRange, DividerOrientation, DividerVariant, FabSize, IconSize, ImageFit, ImageLoading, ImageRounded, InputSize, LinkSize, LinkVariant, PaginationSize, PaginationVariant, ProgressBarSize, ProgressBarVariant, RateIcon, RateSize, SelectOption, ShadowToken, SpacerOrientation, SpacerSize, SpacingToken, SpinnerSize, SpinnerVariant, TabSize, TabVariant, TagSize, TagVariant, TextFieldSize, TextFieldType, TextFieldVariant, TextareaSize, TextareaVariant, Theme, ThemeColors, ToastPosition, ToastVariant, TooltipPosition, TooltipTrigger, TypographyColor, TypographyLineHeight, TypographySize, TypographyToken, TypographyVariant, TypographyWeight };
|
|
1797
|
+
export { AccordionItemComponent, AlertComponent, AutocompleteComponent, AvatarComponent, BORDER_RADIUS_TOKENS, BRAND_THEME, BadgeComponent, BreadcrumbsComponent, ButtonComponent, ButtonGroupComponent, COLOR_TOKENS, CardComponent, CheckboxComponent, ChipComponent, ContainerComponent, DARK_THEME, DESIGN_TOKENS, DatepickerComponent, DividerComponent, FabButtonComponent, FormFieldComponent, IconButtonComponent, IconComponent, ImageComponent, LIGHT_THEME, LinkComponent, PaginationComponent, ProgressBarComponent, RadioComponent, RateComponent, SHADOW_TOKENS, SPACING_TOKENS, STYLES_PATH, SelectComponent, SpacerComponent, SpinnerComponent, StackComponent, SwitchComponent, TYPOGRAPHY_TOKENS, TabComponent, TagComponent, TextFieldComponent, TextareaComponent, ThemeLoader, ToastComponent, TooltipComponent, TypographyComponent };
|
|
1798
|
+
export type { AlertSize, AlertVariant, AutocompleteOption, AvatarSize, BadgeSize, BadgeVariant, BaseComponent, BorderRadiusToken, BreadcrumbItem, BreadcrumbSeparator, BreadcrumbSize, ButtonGroupOption, ButtonGroupSize, ButtonGroupVariant, ButtonSize, ButtonVariant, CardVariant, ChipSize, ChipVariant, ColorShade, ColorTokenName, ContainerSize, ContainerVariant, CustomTheme, DateFormat, DatePickerMode, DateRange, DividerOrientation, DividerVariant, FabSize, FormFieldSize, FormFieldType, FormFieldVariant, IconSize, ImageFit, ImageLoading, ImageRounded, InputSize, LinkSize, LinkVariant, PaginationSize, PaginationVariant, ProgressBarSize, ProgressBarVariant, RateIcon, RateSize, SelectOption, ShadowToken, SpacerOrientation, SpacerSize, SpacingToken, SpinnerSize, SpinnerVariant, TabSize, TabVariant, TagSize, TagVariant, TextFieldSize, TextFieldType, TextFieldVariant, TextareaSize, TextareaVariant, Theme, ThemeColors, ToastPosition, ToastVariant, TooltipPosition, TooltipTrigger, TypographyColor, TypographyLineHeight, TypographySize, TypographyToken, TypographyVariant, TypographyWeight };
|