@lesterarte/sefin-ui 0.0.9-dev.0 → 0.0.10-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,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, Injector, AfterViewInit, OnChanges, ElementRef, SimpleChanges, OnInit, OnDestroy, ChangeDetectorRef } from '@angular/core';
|
|
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
4
|
|
|
5
5
|
/**
|
|
@@ -1243,7 +1243,82 @@ declare class AutocompleteComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
1243
1243
|
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>;
|
|
1244
1244
|
}
|
|
1245
1245
|
|
|
1246
|
+
type DateFormat = 'DD/MM/YYYY' | 'MM/DD/YYYY' | 'YYYY-MM-DD' | 'DD-MM-YYYY';
|
|
1247
|
+
type DatePickerMode = 'single' | 'range';
|
|
1248
|
+
interface DateRange {
|
|
1249
|
+
start: Date | null;
|
|
1250
|
+
end: Date | null;
|
|
1251
|
+
}
|
|
1252
|
+
declare class DatepickerComponent implements OnInit, OnDestroy, OnChanges {
|
|
1253
|
+
private cdr;
|
|
1254
|
+
private ngZone;
|
|
1255
|
+
containerRef?: ElementRef<HTMLDivElement>;
|
|
1256
|
+
calendarRef?: ElementRef<HTMLDivElement>;
|
|
1257
|
+
textfieldRef?: TextFieldComponent;
|
|
1258
|
+
value: Date | DateRange | null;
|
|
1259
|
+
placeholder: string;
|
|
1260
|
+
disabled: boolean;
|
|
1261
|
+
size: InputSize;
|
|
1262
|
+
class: string;
|
|
1263
|
+
format: DateFormat;
|
|
1264
|
+
mode: DatePickerMode;
|
|
1265
|
+
minDate?: Date;
|
|
1266
|
+
maxDate?: Date;
|
|
1267
|
+
showTodayButton: boolean;
|
|
1268
|
+
showClearButton: boolean;
|
|
1269
|
+
locale: string;
|
|
1270
|
+
firstDayOfWeek: 0 | 1;
|
|
1271
|
+
valueChange: EventEmitter<DateRange | Date>;
|
|
1272
|
+
dateSelected: EventEmitter<DateRange | Date>;
|
|
1273
|
+
isOpen: boolean;
|
|
1274
|
+
currentMonth: Date;
|
|
1275
|
+
selectedDate: Date | null;
|
|
1276
|
+
rangeStart: Date | null;
|
|
1277
|
+
rangeEnd: Date | null;
|
|
1278
|
+
displayValue: string;
|
|
1279
|
+
hoveredDate: Date | null;
|
|
1280
|
+
private monthsES;
|
|
1281
|
+
private daysES;
|
|
1282
|
+
private daysESFull;
|
|
1283
|
+
constructor(cdr: ChangeDetectorRef, ngZone: NgZone);
|
|
1284
|
+
ngOnInit(): void;
|
|
1285
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1286
|
+
ngOnDestroy(): void;
|
|
1287
|
+
onClickOutside(event: MouseEvent): void;
|
|
1288
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
1289
|
+
private initializeDates;
|
|
1290
|
+
toggleCalendar(): void;
|
|
1291
|
+
closeCalendar(): void;
|
|
1292
|
+
onInputClick(): void;
|
|
1293
|
+
onInputFocus(): void;
|
|
1294
|
+
getDaysInMonth(date: Date): number;
|
|
1295
|
+
getFirstDayOfMonth(date: Date): number;
|
|
1296
|
+
getCalendarDays(): (Date | null)[];
|
|
1297
|
+
isToday(date: Date): boolean;
|
|
1298
|
+
isSelected(date: Date): boolean;
|
|
1299
|
+
isInRange(date: Date): boolean;
|
|
1300
|
+
isDisabled(date: Date): boolean;
|
|
1301
|
+
onDayClick(date: Date | null, event: MouseEvent): void;
|
|
1302
|
+
selectDate(date: Date): void;
|
|
1303
|
+
private updateTextField;
|
|
1304
|
+
onDateHover(date: Date): void;
|
|
1305
|
+
previousMonth(): void;
|
|
1306
|
+
nextMonth(): void;
|
|
1307
|
+
goToToday(): void;
|
|
1308
|
+
clearValue(): void;
|
|
1309
|
+
formatDate(date: Date | null): string;
|
|
1310
|
+
private updateDisplayValue;
|
|
1311
|
+
getMonthName(): string;
|
|
1312
|
+
getYear(): number;
|
|
1313
|
+
getDayNames(): string[];
|
|
1314
|
+
get containerClasses(): string;
|
|
1315
|
+
get todayDate(): Date;
|
|
1316
|
+
isTodayDisabled(): boolean;
|
|
1317
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerComponent, never>;
|
|
1318
|
+
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; }; "class": { "alias": "class"; "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; }; "locale": { "alias": "locale"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; }, { "valueChange": "valueChange"; "dateSelected": "dateSelected"; }, never, never, true, never>;
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1246
1321
|
declare const STYLES_PATH = "./styles/index.scss";
|
|
1247
1322
|
|
|
1248
|
-
export { AlertComponent, AutocompleteComponent, AvatarComponent, BORDER_RADIUS_TOKENS, BRAND_THEME, BadgeComponent, ButtonComponent, COLOR_TOKENS, CheckboxComponent, ChipComponent, ContainerComponent, DARK_THEME, DESIGN_TOKENS, 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 };
|
|
1249
|
-
export type { AlertSize, AlertVariant, AutocompleteOption, AvatarSize, BadgeSize, BadgeVariant, BaseComponent, BorderRadiusToken, ButtonSize, ButtonVariant, CardVariant, ChipSize, ChipVariant, ColorShade, ColorTokenName, ContainerSize, ContainerVariant, CustomTheme, 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 };
|
|
1323
|
+
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 };
|
|
1324
|
+
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 };
|