@lesterarte/sefin-ui 0.0.15 → 0.0.17-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
|
@@ -1330,7 +1330,92 @@ declare class DatepickerComponent implements OnInit, OnChanges, AfterViewInit, O
|
|
|
1330
1330
|
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>;
|
|
1331
1331
|
}
|
|
1332
1332
|
|
|
1333
|
+
type TextareaVariant = 'outlined' | 'filled' | 'standard';
|
|
1334
|
+
type TextareaSize = 'sm' | 'md' | 'lg';
|
|
1335
|
+
declare class TextareaComponent implements ControlValueAccessor, Validator, OnInit, AfterViewInit, OnDestroy {
|
|
1336
|
+
textareaRef?: ElementRef<HTMLTextAreaElement>;
|
|
1337
|
+
/** Textarea variant style. Options: 'outlined' | 'filled' | 'standard' */
|
|
1338
|
+
variant: TextareaVariant;
|
|
1339
|
+
/** Textarea size. Options: 'sm' | 'md' | 'lg' */
|
|
1340
|
+
size: TextareaSize;
|
|
1341
|
+
/** Placeholder text */
|
|
1342
|
+
placeholder: string;
|
|
1343
|
+
/** Helper text shown below the textarea */
|
|
1344
|
+
hint: string;
|
|
1345
|
+
/** Error message to display */
|
|
1346
|
+
errorMessage: string;
|
|
1347
|
+
/** Whether the field is required */
|
|
1348
|
+
required: boolean;
|
|
1349
|
+
/** Whether the field is disabled */
|
|
1350
|
+
disabled: boolean;
|
|
1351
|
+
/** Whether the field is readonly */
|
|
1352
|
+
readonly: boolean;
|
|
1353
|
+
/** Maximum length of the input */
|
|
1354
|
+
maxLength?: number;
|
|
1355
|
+
/** Minimum length of the input */
|
|
1356
|
+
minLength?: number;
|
|
1357
|
+
/** Pattern for validation (regex string) */
|
|
1358
|
+
pattern?: string;
|
|
1359
|
+
/** Number of visible text lines */
|
|
1360
|
+
rows: number;
|
|
1361
|
+
/** Number of visible text columns */
|
|
1362
|
+
cols?: number;
|
|
1363
|
+
/** Whether to auto-resize based on content */
|
|
1364
|
+
autoResize: boolean;
|
|
1365
|
+
/** Minimum height when auto-resize is enabled */
|
|
1366
|
+
minHeight?: number;
|
|
1367
|
+
/** Maximum height when auto-resize is enabled */
|
|
1368
|
+
maxHeight?: number;
|
|
1369
|
+
/** Whether to show character counter */
|
|
1370
|
+
showCounter: boolean;
|
|
1371
|
+
/** Autocomplete attribute */
|
|
1372
|
+
autocomplete?: string;
|
|
1373
|
+
/** Textarea name attribute */
|
|
1374
|
+
name: string;
|
|
1375
|
+
/** Textarea id attribute */
|
|
1376
|
+
id: string;
|
|
1377
|
+
/** Additional CSS classes */
|
|
1378
|
+
class: string;
|
|
1379
|
+
/** Custom validation function */
|
|
1380
|
+
customValidator?: (value: string) => string | null;
|
|
1381
|
+
/** Event emitted when the value changes */
|
|
1382
|
+
valueChange: EventEmitter<string>;
|
|
1383
|
+
/** Event emitted when the textarea is focused */
|
|
1384
|
+
focused: EventEmitter<FocusEvent>;
|
|
1385
|
+
/** Event emitted when the textarea is blurred */
|
|
1386
|
+
blurred: EventEmitter<FocusEvent>;
|
|
1387
|
+
value: string;
|
|
1388
|
+
isFocused: boolean;
|
|
1389
|
+
hasError: boolean;
|
|
1390
|
+
internalErrorMessage: string;
|
|
1391
|
+
currentHeight: number;
|
|
1392
|
+
private onChange;
|
|
1393
|
+
private onTouched;
|
|
1394
|
+
private destroy$;
|
|
1395
|
+
private control?;
|
|
1396
|
+
ngOnInit(): void;
|
|
1397
|
+
ngAfterViewInit(): void;
|
|
1398
|
+
ngOnDestroy(): void;
|
|
1399
|
+
private generateIdIfNeeded;
|
|
1400
|
+
onInput(event: Event): void;
|
|
1401
|
+
onFocus(event: FocusEvent): void;
|
|
1402
|
+
onBlur(event: FocusEvent): void;
|
|
1403
|
+
private adjustHeight;
|
|
1404
|
+
private validateField;
|
|
1405
|
+
get displayError(): boolean;
|
|
1406
|
+
get displayErrorMessage(): string;
|
|
1407
|
+
get characterCount(): number;
|
|
1408
|
+
get textareaClasses(): string;
|
|
1409
|
+
writeValue(value: string): void;
|
|
1410
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
1411
|
+
registerOnTouched(fn: () => void): void;
|
|
1412
|
+
setDisabledState(isDisabled: boolean): void;
|
|
1413
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
1414
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextareaComponent, never>;
|
|
1415
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextareaComponent, "sefin-textarea", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "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; }; "rows": { "alias": "rows"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; "autoResize": { "alias": "autoResize"; "required": false; }; "minHeight": { "alias": "minHeight"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "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"; }, never, never, true, never>;
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1333
1418
|
declare const STYLES_PATH = "./styles/index.scss";
|
|
1334
1419
|
|
|
1335
|
-
export { AlertComponent, AutocompleteComponent, AvatarComponent, BORDER_RADIUS_TOKENS, BRAND_THEME, BadgeComponent, ButtonComponent, COLOR_TOKENS, 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, ThemeLoader, ToastComponent, TooltipComponent, TypographyComponent };
|
|
1336
|
-
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, Theme, ThemeColors, ToastPosition, ToastVariant, TooltipPosition, TooltipTrigger, TypographyColor, TypographyLineHeight, TypographySize, TypographyToken, TypographyVariant, TypographyWeight };
|
|
1420
|
+
export { AlertComponent, AutocompleteComponent, AvatarComponent, BORDER_RADIUS_TOKENS, BRAND_THEME, BadgeComponent, ButtonComponent, COLOR_TOKENS, 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 };
|
|
1421
|
+
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 };
|