@lesterarte/sefin-ui 0.0.18-dev.0 → 0.0.19-dev.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lesterarte/sefin-ui",
3
- "version": "0.0.18-dev.0",
3
+ "version": "0.0.19-dev.0",
4
4
  "description": "Sefin Design System - A comprehensive Angular UI library based on Atomic Design and design tokens",
5
5
  "keywords": [
6
6
  "angular",
@@ -1113,6 +1113,7 @@ declare class ToastComponent implements OnInit, OnDestroy {
1113
1113
  private clearExitAnimation;
1114
1114
  pauseTimer(): void;
1115
1115
  resumeTimer(): void;
1116
+ onCloseClick(event: MouseEvent): void;
1116
1117
  dismiss(): void;
1117
1118
  get toastClasses(): string;
1118
1119
  get iconName(): string;
@@ -1203,6 +1204,69 @@ declare class TextFieldComponent implements ControlValueAccessor, Validator, OnI
1203
1204
  static ɵcmp: i0.ɵɵComponentDeclaration<TextFieldComponent, "sefin-textfield", never, { "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>;
1204
1205
  }
1205
1206
 
1207
+ type ImageFit = 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
1208
+ type ImageLoading = 'lazy' | 'eager';
1209
+ type ImageRounded = 'none' | 'sm' | 'md' | 'lg' | 'full';
1210
+ declare class ImageComponent implements OnInit, OnChanges {
1211
+ /** Image source URL (required) */
1212
+ src?: string;
1213
+ /** Alt text for the image (required for accessibility) */
1214
+ alt: string;
1215
+ /** Image width (can be a number in pixels or a string like '100%', 'auto', etc.) */
1216
+ width?: string | number;
1217
+ /** Image height (can be a number in pixels or a string like '100%', 'auto', etc.) */
1218
+ height?: string | number;
1219
+ /** How the image should be resized to fit its container. Options: 'cover' | 'contain' | 'fill' | 'none' | 'scale-down' */
1220
+ fit: ImageFit;
1221
+ /** Loading strategy. Options: 'lazy' | 'eager' */
1222
+ loading: ImageLoading;
1223
+ /** Whether the image should have rounded corners. Options: 'none' | 'sm' | 'md' | 'lg' | 'full' */
1224
+ rounded: ImageRounded;
1225
+ /** Aspect ratio (e.g., '16/9', '4/3', '1/1') */
1226
+ aspectRatio?: string;
1227
+ /** Placeholder/fallback image URL to show if main image fails to load */
1228
+ fallback?: string;
1229
+ /** Whether the image is disabled (reduced opacity) */
1230
+ disabled: boolean;
1231
+ /** Additional CSS classes */
1232
+ class: string;
1233
+ /** Sizes attribute for responsive images */
1234
+ sizes?: string;
1235
+ /** Srcset attribute for responsive images */
1236
+ srcset?: string;
1237
+ hasError: boolean;
1238
+ currentSrc: string | null;
1239
+ ngOnInit(): void;
1240
+ ngOnChanges(changes: SimpleChanges): void;
1241
+ private updateCurrentSrc;
1242
+ onImageError(event: Event): void;
1243
+ onImageLoad(): void;
1244
+ get imageClasses(): string;
1245
+ get imageStyles(): {
1246
+ [key: string]: string | number;
1247
+ };
1248
+ static ɵfac: i0.ɵɵFactoryDeclaration<ImageComponent, never>;
1249
+ static ɵcmp: i0.ɵɵComponentDeclaration<ImageComponent, "sefin-image", never, { "src": { "alias": "src"; "required": false; }; "alt": { "alias": "alt"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "fit": { "alias": "fit"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "aspectRatio": { "alias": "aspectRatio"; "required": false; }; "fallback": { "alias": "fallback"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "class": { "alias": "class"; "required": false; }; "sizes": { "alias": "sizes"; "required": false; }; "srcset": { "alias": "srcset"; "required": false; }; }, {}, never, never, true, never>;
1250
+ }
1251
+
1252
+ declare class AccordionItemComponent {
1253
+ /** Title text for the accordion header */
1254
+ title: string;
1255
+ /** Whether the accordion item is expanded */
1256
+ expanded: boolean;
1257
+ /** Whether the accordion item is disabled */
1258
+ disabled: boolean;
1259
+ /** Additional CSS classes */
1260
+ class: string;
1261
+ /** Event emitted when the accordion item is toggled */
1262
+ toggle: EventEmitter<boolean>;
1263
+ onHeaderClick(): void;
1264
+ get accordionClasses(): string;
1265
+ get headerClasses(): string;
1266
+ static ɵfac: i0.ɵɵFactoryDeclaration<AccordionItemComponent, never>;
1267
+ static ɵcmp: i0.ɵɵComponentDeclaration<AccordionItemComponent, "sefin-accordion-item", never, { "title": { "alias": "title"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, { "toggle": "toggle"; }, never, ["*"], true, never>;
1268
+ }
1269
+
1206
1270
  interface AutocompleteOption {
1207
1271
  value: string | number;
1208
1272
  label: string;
@@ -1227,12 +1291,14 @@ declare class AutocompleteComponent implements OnInit, OnDestroy, OnChanges {
1227
1291
  filteredOptions: AutocompleteOption[];
1228
1292
  isOpen: boolean;
1229
1293
  selectedIndex: number;
1294
+ private isSelectingOption;
1230
1295
  ngOnInit(): void;
1231
1296
  ngOnChanges(changes: SimpleChanges): void;
1232
1297
  ngOnDestroy(): void;
1233
1298
  onClickOutside(event: MouseEvent): void;
1234
1299
  onInputChange(value: string): void;
1235
1300
  filterOptions(): void;
1301
+ onOptionMouseDown(event: MouseEvent, option: AutocompleteOption): void;
1236
1302
  selectOption(option: AutocompleteOption): void;
1237
1303
  onInputFocus(): void;
1238
1304
  onInputBlur(): void;
@@ -1436,5 +1502,5 @@ declare class TextareaComponent implements ControlValueAccessor, Validator, OnIn
1436
1502
 
1437
1503
  declare const STYLES_PATH = "./styles/index.scss";
1438
1504
 
1439
- export { AlertComponent, AutocompleteComponent, AvatarComponent, BORDER_RADIUS_TOKENS, BRAND_THEME, BadgeComponent, ButtonComponent, COLOR_TOKENS, CardComponent, CheckboxComponent, ChipComponent, ContainerComponent, DARK_THEME, DESIGN_TOKENS, DatepickerComponent, DividerComponent, FabButtonComponent, IconButtonComponent, IconComponent, LIGHT_THEME, LinkComponent, ProgressBarComponent, RadioComponent, SHADOW_TOKENS, SPACING_TOKENS, STYLES_PATH, SelectComponent, SpinnerComponent, StackComponent, SwitchComponent, TYPOGRAPHY_TOKENS, TagComponent, TextFieldComponent, TextareaComponent, ThemeLoader, ToastComponent, TooltipComponent, TypographyComponent };
1440
- export type { AlertSize, AlertVariant, AutocompleteOption, AvatarSize, BadgeSize, BadgeVariant, BaseComponent, BorderRadiusToken, ButtonSize, ButtonVariant, CardVariant, ChipSize, ChipVariant, ColorShade, ColorTokenName, ContainerSize, ContainerVariant, CustomTheme, DateFormat, DatePickerMode, DateRange, DividerOrientation, DividerVariant, FabSize, IconSize, InputSize, LinkSize, LinkVariant, ProgressBarSize, ProgressBarVariant, SelectOption, ShadowToken, SpacingToken, SpinnerSize, SpinnerVariant, TagSize, TagVariant, TextFieldSize, TextFieldType, TextFieldVariant, TextareaSize, TextareaVariant, Theme, ThemeColors, ToastPosition, ToastVariant, TooltipPosition, TooltipTrigger, TypographyColor, TypographyLineHeight, TypographySize, TypographyToken, TypographyVariant, TypographyWeight };
1505
+ export { AccordionItemComponent, AlertComponent, AutocompleteComponent, AvatarComponent, BORDER_RADIUS_TOKENS, BRAND_THEME, BadgeComponent, ButtonComponent, COLOR_TOKENS, CardComponent, CheckboxComponent, ChipComponent, ContainerComponent, DARK_THEME, DESIGN_TOKENS, DatepickerComponent, DividerComponent, FabButtonComponent, IconButtonComponent, IconComponent, ImageComponent, LIGHT_THEME, LinkComponent, ProgressBarComponent, RadioComponent, SHADOW_TOKENS, SPACING_TOKENS, STYLES_PATH, SelectComponent, SpinnerComponent, StackComponent, SwitchComponent, TYPOGRAPHY_TOKENS, TagComponent, TextFieldComponent, TextareaComponent, ThemeLoader, ToastComponent, TooltipComponent, TypographyComponent };
1506
+ export type { AlertSize, AlertVariant, AutocompleteOption, AvatarSize, BadgeSize, BadgeVariant, BaseComponent, BorderRadiusToken, ButtonSize, ButtonVariant, CardVariant, ChipSize, ChipVariant, ColorShade, ColorTokenName, ContainerSize, ContainerVariant, CustomTheme, DateFormat, DatePickerMode, DateRange, DividerOrientation, DividerVariant, FabSize, IconSize, ImageFit, ImageLoading, ImageRounded, InputSize, LinkSize, LinkVariant, ProgressBarSize, ProgressBarVariant, SelectOption, ShadowToken, SpacingToken, SpinnerSize, SpinnerVariant, TagSize, TagVariant, TextFieldSize, TextFieldType, TextFieldVariant, TextareaSize, TextareaVariant, Theme, ThemeColors, ToastPosition, ToastVariant, TooltipPosition, TooltipTrigger, TypographyColor, TypographyLineHeight, TypographySize, TypographyToken, TypographyVariant, TypographyWeight };