@lesterarte/sefin-ui 0.0.20-dev.4 → 0.0.20-dev.6
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
|
@@ -1270,6 +1270,47 @@ declare class TabComponent {
|
|
|
1270
1270
|
static ɵcmp: i0.ɵɵComponentDeclaration<TabComponent, "sefin-tab", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "active": { "alias": "active"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, { "clicked": "clicked"; }, never, ["*"], true, never>;
|
|
1271
1271
|
}
|
|
1272
1272
|
|
|
1273
|
+
type RateSize = 'sm' | 'md' | 'lg';
|
|
1274
|
+
type RateIcon = 'star' | 'heart' | 'thumb';
|
|
1275
|
+
declare class RateComponent {
|
|
1276
|
+
/** Current rating value (0 to max) */
|
|
1277
|
+
set value(value: number);
|
|
1278
|
+
get value(): number;
|
|
1279
|
+
private _value;
|
|
1280
|
+
/** Maximum rating value */
|
|
1281
|
+
max: number;
|
|
1282
|
+
/** Whether the rating is disabled */
|
|
1283
|
+
disabled: boolean;
|
|
1284
|
+
/** Whether the rating is readonly */
|
|
1285
|
+
readonly: boolean;
|
|
1286
|
+
/** Whether to allow half stars */
|
|
1287
|
+
allowHalf: boolean;
|
|
1288
|
+
/** Icon type. Options: 'star' | 'heart' | 'thumb' */
|
|
1289
|
+
icon: RateIcon;
|
|
1290
|
+
/** Rate size. Options: 'sm' | 'md' | 'lg' */
|
|
1291
|
+
size: RateSize;
|
|
1292
|
+
/** Whether to show text with rating */
|
|
1293
|
+
showText: boolean;
|
|
1294
|
+
/** Additional CSS classes */
|
|
1295
|
+
class: string;
|
|
1296
|
+
/** Event emitted when rating changes */
|
|
1297
|
+
valueChange: EventEmitter<number>;
|
|
1298
|
+
/** Event emitted when rating is hovered */
|
|
1299
|
+
hoverChange: EventEmitter<number>;
|
|
1300
|
+
/** Internal hover value */
|
|
1301
|
+
private _hoverValue;
|
|
1302
|
+
readonly items: i0.Signal<number[]>;
|
|
1303
|
+
get rateClasses(): string;
|
|
1304
|
+
isInteractive(): boolean;
|
|
1305
|
+
getDisplayValue(): number;
|
|
1306
|
+
getIconState(index: number): 'full' | 'half' | 'empty';
|
|
1307
|
+
onItemClick(index: number): void;
|
|
1308
|
+
onItemHover(index: number | null): void;
|
|
1309
|
+
onHalfClick(index: number, isLeftHalf: boolean): void;
|
|
1310
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RateComponent, never>;
|
|
1311
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RateComponent, "sefin-rate", never, { "value": { "alias": "value"; "required": false; }; "max": { "alias": "max"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "allowHalf": { "alias": "allowHalf"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "size": { "alias": "size"; "required": false; }; "showText": { "alias": "showText"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, { "valueChange": "valueChange"; "hoverChange": "hoverChange"; }, never, never, true, never>;
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1273
1314
|
declare class AccordionItemComponent {
|
|
1274
1315
|
/** Title text for the accordion header */
|
|
1275
1316
|
title: string;
|
|
@@ -1359,6 +1400,50 @@ declare class BreadcrumbsComponent {
|
|
|
1359
1400
|
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
1401
|
}
|
|
1361
1402
|
|
|
1403
|
+
interface ButtonGroupOption {
|
|
1404
|
+
label: string;
|
|
1405
|
+
value: string | number;
|
|
1406
|
+
disabled?: boolean;
|
|
1407
|
+
icon?: string;
|
|
1408
|
+
}
|
|
1409
|
+
type ButtonGroupVariant = 'default' | 'segmented';
|
|
1410
|
+
type ButtonGroupSize = 'sm' | 'md' | 'lg';
|
|
1411
|
+
declare class ButtonGroupComponent {
|
|
1412
|
+
private sanitizer;
|
|
1413
|
+
constructor(sanitizer: DomSanitizer);
|
|
1414
|
+
/** Array of button options */
|
|
1415
|
+
options: ButtonGroupOption[];
|
|
1416
|
+
/** Selected value (for segmented variant) */
|
|
1417
|
+
value: string | number | null;
|
|
1418
|
+
/** Whether multiple selection is allowed (for default variant) */
|
|
1419
|
+
multiple: boolean;
|
|
1420
|
+
/** Selected values (for multiple selection) */
|
|
1421
|
+
selectedValues: (string | number)[];
|
|
1422
|
+
/** Button variant style. Options: 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger' */
|
|
1423
|
+
variant: ButtonVariant;
|
|
1424
|
+
/** Button size. Options: 'sm' | 'md' | 'lg' */
|
|
1425
|
+
size: ButtonSize;
|
|
1426
|
+
/** Button group variant. Options: 'default' | 'segmented' */
|
|
1427
|
+
groupVariant: ButtonGroupVariant;
|
|
1428
|
+
/** Whether the button group is disabled */
|
|
1429
|
+
disabled: boolean;
|
|
1430
|
+
/** Additional CSS classes */
|
|
1431
|
+
class: string;
|
|
1432
|
+
/** Event emitted when value changes (for segmented variant) */
|
|
1433
|
+
valueChange: EventEmitter<string | number>;
|
|
1434
|
+
/** Event emitted when selected values change (for multiple selection) */
|
|
1435
|
+
selectedValuesChange: EventEmitter<(string | number)[]>;
|
|
1436
|
+
/** Event emitted when a button is clicked */
|
|
1437
|
+
buttonClick: EventEmitter<ButtonGroupOption>;
|
|
1438
|
+
get buttonGroupClasses(): string;
|
|
1439
|
+
isSelected(option: ButtonGroupOption): boolean;
|
|
1440
|
+
onButtonClick(option: ButtonGroupOption): void;
|
|
1441
|
+
getButtonVariant(option: ButtonGroupOption): ButtonVariant;
|
|
1442
|
+
sanitizeHtml(html: string | undefined): SafeHtml | string;
|
|
1443
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonGroupComponent, never>;
|
|
1444
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonGroupComponent, "sefin-button-group", never, { "options": { "alias": "options"; "required": false; }; "value": { "alias": "value"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "selectedValues": { "alias": "selectedValues"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "groupVariant": { "alias": "groupVariant"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, { "valueChange": "valueChange"; "selectedValuesChange": "selectedValuesChange"; "buttonClick": "buttonClick"; }, never, never, true, never>;
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1362
1447
|
declare class CardComponent {
|
|
1363
1448
|
/** Card variant style. Options: 'default' | 'elevated' | 'outlined' */
|
|
1364
1449
|
variant: CardVariant;
|
|
@@ -1599,5 +1684,5 @@ declare class TextareaComponent implements ControlValueAccessor, Validator, OnIn
|
|
|
1599
1684
|
|
|
1600
1685
|
declare const STYLES_PATH = "./styles/index.scss";
|
|
1601
1686
|
|
|
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 };
|
|
1687
|
+
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, SpinnerComponent, StackComponent, SwitchComponent, TYPOGRAPHY_TOKENS, TabComponent, TagComponent, TextFieldComponent, TextareaComponent, ThemeLoader, ToastComponent, TooltipComponent, TypographyComponent };
|
|
1688
|
+
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, SpacingToken, SpinnerSize, SpinnerVariant, TabSize, TabVariant, TagSize, TagVariant, TextFieldSize, TextFieldType, TextFieldVariant, TextareaSize, TextareaVariant, Theme, ThemeColors, ToastPosition, ToastVariant, TooltipPosition, TooltipTrigger, TypographyColor, TypographyLineHeight, TypographySize, TypographyToken, TypographyVariant, TypographyWeight };
|