@lesterarte/sefin-ui 0.0.20-dev.2 → 0.0.20-dev.4

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.20-dev.2",
3
+ "version": "0.0.20-dev.4",
4
4
  "description": "Sefin Design System - A comprehensive Angular UI library based on Atomic Design and design tokens",
5
5
  "keywords": [
6
6
  "angular",
@@ -1,6 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { EventEmitter, Injector, AfterViewInit, OnChanges, ElementRef, SimpleChanges, OnInit, OnDestroy, ChangeDetectorRef, NgZone } from '@angular/core';
3
3
  import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
4
+ import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
4
5
 
5
6
  /**
6
7
  * Color design tokens as TypeScript constants
@@ -1331,6 +1332,33 @@ declare class AutocompleteComponent implements OnInit, OnDestroy, OnChanges {
1331
1332
  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>;
1332
1333
  }
1333
1334
 
1335
+ interface BreadcrumbItem {
1336
+ label: string;
1337
+ href?: string;
1338
+ icon?: string;
1339
+ }
1340
+ type BreadcrumbSeparator = 'slash' | 'chevron' | 'arrow';
1341
+ type BreadcrumbSize = 'sm' | 'md' | 'lg';
1342
+ declare class BreadcrumbsComponent {
1343
+ private sanitizer;
1344
+ /** Array of breadcrumb items */
1345
+ items: BreadcrumbItem[];
1346
+ /** Separator style. Options: 'slash' | 'chevron' | 'arrow' */
1347
+ separator: BreadcrumbSeparator;
1348
+ /** Breadcrumb size. Options: 'sm' | 'md' | 'lg' */
1349
+ size: BreadcrumbSize;
1350
+ /** Additional CSS classes */
1351
+ class: string;
1352
+ constructor(sanitizer: DomSanitizer);
1353
+ get breadcrumbsClasses(): string;
1354
+ isLastItem(index: number): boolean;
1355
+ getSeparatorIcon(): string;
1356
+ sanitizeHtml(html: string | undefined): SafeHtml | string;
1357
+ getSeparatorIconSafe(): SafeHtml;
1358
+ static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbsComponent, never>;
1359
+ static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbsComponent, "sefin-breadcrumbs", never, { "items": { "alias": "items"; "required": false; }; "separator": { "alias": "separator"; "required": false; }; "size": { "alias": "size"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, never, true, never>;
1360
+ }
1361
+
1334
1362
  declare class CardComponent {
1335
1363
  /** Card variant style. Options: 'default' | 'elevated' | 'outlined' */
1336
1364
  variant: CardVariant;
@@ -1432,6 +1460,55 @@ declare class DatepickerComponent implements OnInit, OnChanges, AfterViewInit, O
1432
1460
  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>;
1433
1461
  }
1434
1462
 
1463
+ type PaginationSize = 'sm' | 'md' | 'lg';
1464
+ type PaginationVariant = 'default' | 'compact';
1465
+ declare class PaginationComponent {
1466
+ /** Current page (1-based) */
1467
+ set currentPage(value: number);
1468
+ get currentPage(): number;
1469
+ private _currentPage;
1470
+ /** Total number of pages */
1471
+ set totalPages(value: number);
1472
+ get totalPages(): number;
1473
+ private _totalPages;
1474
+ /** Total number of items (alternative to totalPages) */
1475
+ set totalItems(value: number | undefined);
1476
+ get totalItems(): number | undefined;
1477
+ private _totalItems;
1478
+ /** Items per page (used when totalItems is provided) */
1479
+ itemsPerPage: number;
1480
+ /** Number of page buttons to show on each side of current page */
1481
+ siblingCount: number;
1482
+ /** Show first and last page buttons */
1483
+ showFirstLast: boolean;
1484
+ /** Show previous and next buttons */
1485
+ showPrevNext: boolean;
1486
+ /** Pagination size. Options: 'sm' | 'md' | 'lg' */
1487
+ size: PaginationSize;
1488
+ /** Pagination variant. Options: 'default' | 'compact' */
1489
+ variant: PaginationVariant;
1490
+ /** Additional CSS classes */
1491
+ class: string;
1492
+ /** Event emitted when page changes */
1493
+ pageChange: EventEmitter<number>;
1494
+ /** Computed total pages (from totalItems or direct input) */
1495
+ readonly computedTotalPages: i0.Signal<number>;
1496
+ /** Computed page numbers to display */
1497
+ readonly pageNumbers: i0.Signal<(string | number)[]>;
1498
+ get paginationClasses(): string;
1499
+ isDisabled(direction: 'prev' | 'next'): boolean;
1500
+ goToPage(page: number | string): void;
1501
+ goToPrevious(): void;
1502
+ goToNext(): void;
1503
+ goToFirst(): void;
1504
+ goToLast(): void;
1505
+ isEllipsis(item: number | string): boolean;
1506
+ isCurrentPage(page: number | string): boolean;
1507
+ getAriaCurrent(page: number | string): string | null;
1508
+ static ɵfac: i0.ɵɵFactoryDeclaration<PaginationComponent, never>;
1509
+ static ɵcmp: i0.ɵɵComponentDeclaration<PaginationComponent, "sefin-pagination", never, { "currentPage": { "alias": "currentPage"; "required": false; }; "totalPages": { "alias": "totalPages"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; }; "siblingCount": { "alias": "siblingCount"; "required": false; }; "showFirstLast": { "alias": "showFirstLast"; "required": false; }; "showPrevNext": { "alias": "showPrevNext"; "required": false; }; "size": { "alias": "size"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, { "pageChange": "pageChange"; }, never, never, true, never>;
1510
+ }
1511
+
1435
1512
  type TextareaVariant = 'outlined' | 'filled' | 'standard';
1436
1513
  type TextareaSize = 'sm' | 'md' | 'lg';
1437
1514
  declare class TextareaComponent implements ControlValueAccessor, Validator, OnInit, AfterViewInit, OnDestroy {
@@ -1522,5 +1599,5 @@ declare class TextareaComponent implements ControlValueAccessor, Validator, OnIn
1522
1599
 
1523
1600
  declare const STYLES_PATH = "./styles/index.scss";
1524
1601
 
1525
- 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, TabComponent, TagComponent, TextFieldComponent, TextareaComponent, ThemeLoader, ToastComponent, TooltipComponent, TypographyComponent };
1526
- 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, TabSize, TabVariant, TagSize, TagVariant, TextFieldSize, TextFieldType, TextFieldVariant, TextareaSize, TextareaVariant, Theme, ThemeColors, ToastPosition, ToastVariant, TooltipPosition, TooltipTrigger, TypographyColor, TypographyLineHeight, TypographySize, TypographyToken, TypographyVariant, TypographyWeight };
1602
+ export { AccordionItemComponent, AlertComponent, AutocompleteComponent, AvatarComponent, BORDER_RADIUS_TOKENS, BRAND_THEME, BadgeComponent, BreadcrumbsComponent, ButtonComponent, COLOR_TOKENS, CardComponent, CheckboxComponent, ChipComponent, ContainerComponent, DARK_THEME, DESIGN_TOKENS, DatepickerComponent, DividerComponent, FabButtonComponent, IconButtonComponent, IconComponent, ImageComponent, LIGHT_THEME, LinkComponent, PaginationComponent, ProgressBarComponent, RadioComponent, SHADOW_TOKENS, SPACING_TOKENS, STYLES_PATH, SelectComponent, SpinnerComponent, StackComponent, SwitchComponent, TYPOGRAPHY_TOKENS, TabComponent, TagComponent, TextFieldComponent, TextareaComponent, ThemeLoader, ToastComponent, TooltipComponent, TypographyComponent };
1603
+ export type { AlertSize, AlertVariant, AutocompleteOption, AvatarSize, BadgeSize, BadgeVariant, BaseComponent, BorderRadiusToken, BreadcrumbItem, BreadcrumbSeparator, BreadcrumbSize, 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, SelectOption, ShadowToken, SpacingToken, SpinnerSize, SpinnerVariant, TabSize, TabVariant, TagSize, TagVariant, TextFieldSize, TextFieldType, TextFieldVariant, TextareaSize, TextareaVariant, Theme, ThemeColors, ToastPosition, ToastVariant, TooltipPosition, TooltipTrigger, TypographyColor, TypographyLineHeight, TypographySize, TypographyToken, TypographyVariant, TypographyWeight };