@ibragim-dev-org/ui-forge-library 1.2.4 → 1.2.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
|
@@ -5,7 +5,7 @@ import { NavigationStart, NavigationEnd, NavigationCancel, NavigationError, Rout
|
|
|
5
5
|
import { ComponentType, Overlay, OverlayRef } from '@angular/cdk/overlay';
|
|
6
6
|
import { ComponentType as ComponentType$1 } from '@angular/cdk/portal';
|
|
7
7
|
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
8
|
-
import { WithOptionalField, ValidationError, FormValueControl, FormCheckboxControl } from '@angular/forms/signals';
|
|
8
|
+
import { WithOptionalField, ValidationError, FormValueControl, FormCheckboxControl, FieldTree } from '@angular/forms/signals';
|
|
9
9
|
|
|
10
10
|
declare class DateUtils {
|
|
11
11
|
static parse(value: string, isUsaDateFormat?: boolean): Date | null;
|
|
@@ -264,11 +264,15 @@ declare class UiAlertMessagesService {
|
|
|
264
264
|
readonly $alerts: WritableSignal<Alert[]>;
|
|
265
265
|
private overlayRef?;
|
|
266
266
|
private component;
|
|
267
|
+
private timerSubscriptions;
|
|
268
|
+
private timerState;
|
|
267
269
|
constructor(overlay: Overlay, router: Router);
|
|
268
270
|
success(params: AlertParams): void;
|
|
269
271
|
error(params: AlertParams): void;
|
|
270
272
|
information(params: AlertParams): void;
|
|
271
273
|
warning(params: AlertParams): void;
|
|
274
|
+
pauseTimer(alert: Alert): void;
|
|
275
|
+
resumeTimer(alert: Alert): void;
|
|
272
276
|
remove(alert: Alert): void;
|
|
273
277
|
removeAll(): void;
|
|
274
278
|
init(component: ComponentType$1<unknown>): void;
|
|
@@ -292,6 +296,7 @@ declare abstract class UiAvatarDirective {
|
|
|
292
296
|
|
|
293
297
|
interface CalendarDay {
|
|
294
298
|
date: Date;
|
|
299
|
+
isDisabled: boolean;
|
|
295
300
|
isSelected: boolean;
|
|
296
301
|
isStart?: boolean;
|
|
297
302
|
isEnd?: boolean;
|
|
@@ -316,6 +321,8 @@ declare class UiDailyCalendarDirective {
|
|
|
316
321
|
private readonly weekDaysEuropean;
|
|
317
322
|
private readonly weekDaysUsa;
|
|
318
323
|
readonly $isRangeSelection: InputSignal<boolean>;
|
|
324
|
+
readonly $minDate: InputSignal<Date | undefined>;
|
|
325
|
+
readonly $maxDate: InputSignal<Date | undefined>;
|
|
319
326
|
get weekDays(): string[];
|
|
320
327
|
readonly $dateStart: ModelSignal<Date | null>;
|
|
321
328
|
readonly $dateEnd: ModelSignal<Date | null>;
|
|
@@ -330,13 +337,15 @@ declare class UiDailyCalendarDirective {
|
|
|
330
337
|
protected readonly $calendarDays: Signal<CalendarDay[]>;
|
|
331
338
|
private generateCalendar;
|
|
332
339
|
private isSameDay;
|
|
340
|
+
private normalizeDate;
|
|
341
|
+
private isDisabledDate;
|
|
333
342
|
private isBetween;
|
|
334
343
|
private getDayState;
|
|
335
344
|
protected onHover(date: Date | null, inHoverRange: boolean): void;
|
|
336
345
|
private isUsaDateFormat;
|
|
337
346
|
protected select(date: Date): void;
|
|
338
347
|
static ɵfac: i0.ɵɵFactoryDeclaration<UiDailyCalendarDirective, never>;
|
|
339
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<UiDailyCalendarDirective, "app-ui-daily-calendar", never, { "$isRangeSelection": { "alias": "$isRangeSelection"; "required": false; "isSignal": true; }; "$dateStart": { "alias": "$dateStart"; "required": false; "isSignal": true; }; "$dateEnd": { "alias": "$dateEnd"; "required": false; "isSignal": true; }; "$currentMonth": { "alias": "$currentMonth"; "required": true; "isSignal": true; }; "$currentYear": { "alias": "$currentYear"; "required": true; "isSignal": true; }; }, { "$dateStart": "$dateStartChange"; "$dateEnd": "$dateEndChange"; "$currentMonth": "$currentMonthChange"; "$currentYear": "$currentYearChange"; "$onRangeSelect": "$onRangeSelect"; "$onSelect": "$onSelect"; }, never, never, true, never>;
|
|
348
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<UiDailyCalendarDirective, "app-ui-daily-calendar", never, { "$isRangeSelection": { "alias": "$isRangeSelection"; "required": false; "isSignal": true; }; "$minDate": { "alias": "$minDate"; "required": false; "isSignal": true; }; "$maxDate": { "alias": "$maxDate"; "required": false; "isSignal": true; }; "$dateStart": { "alias": "$dateStart"; "required": false; "isSignal": true; }; "$dateEnd": { "alias": "$dateEnd"; "required": false; "isSignal": true; }; "$currentMonth": { "alias": "$currentMonth"; "required": true; "isSignal": true; }; "$currentYear": { "alias": "$currentYear"; "required": true; "isSignal": true; }; }, { "$dateStart": "$dateStartChange"; "$dateEnd": "$dateEndChange"; "$currentMonth": "$currentMonthChange"; "$currentYear": "$currentYearChange"; "$onRangeSelect": "$onRangeSelect"; "$onSelect": "$onSelect"; }, never, never, true, never>;
|
|
340
349
|
}
|
|
341
350
|
|
|
342
351
|
declare abstract class UiMonthlyCalendarDirective {
|
|
@@ -363,6 +372,56 @@ declare class UiYearlyCalendarDirective {
|
|
|
363
372
|
static ɵdir: i0.ɵɵDirectiveDeclaration<UiYearlyCalendarDirective, "app-ui-yearly-calendar", never, { "$date": { "alias": "$date"; "required": false; "isSignal": true; }; "$currentYear": { "alias": "$currentYear"; "required": true; "isSignal": true; }; }, { "$date": "$dateChange"; "$onSelect": "$onSelect"; "$currentYear": "$currentYearChange"; }, never, never, true, never>;
|
|
364
373
|
}
|
|
365
374
|
|
|
375
|
+
type CalendarType = 'day' | 'month' | 'year';
|
|
376
|
+
interface ViewItem {
|
|
377
|
+
key: CalendarType;
|
|
378
|
+
state: 'enter-up' | 'enter-down' | 'leave-up' | 'leave-down';
|
|
379
|
+
}
|
|
380
|
+
declare class UiCalendarDropdownDirective {
|
|
381
|
+
action: (date: Date) => void;
|
|
382
|
+
rangeSelect: (dates: {
|
|
383
|
+
start: Date | null;
|
|
384
|
+
end: Date | null;
|
|
385
|
+
}) => void;
|
|
386
|
+
startDate: Date | null;
|
|
387
|
+
endDate: Date | null;
|
|
388
|
+
isRangeSelection: boolean;
|
|
389
|
+
minDate: Date | undefined;
|
|
390
|
+
maxDate: Date | undefined;
|
|
391
|
+
protected $close: WritableSignal<boolean>;
|
|
392
|
+
protected $height: WritableSignal<number>;
|
|
393
|
+
protected $width: WritableSignal<number>;
|
|
394
|
+
protected $currentMonth: WritableSignal<number>;
|
|
395
|
+
protected $currentYear: WritableSignal<number>;
|
|
396
|
+
$mode: WritableSignal<CalendarType>;
|
|
397
|
+
protected $view: WritableSignal<ViewItem>;
|
|
398
|
+
protected levels: {
|
|
399
|
+
day: number;
|
|
400
|
+
month: number;
|
|
401
|
+
year: number;
|
|
402
|
+
};
|
|
403
|
+
protected $current: WritableSignal<CalendarType>;
|
|
404
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
405
|
+
private normalizeDate;
|
|
406
|
+
private getInitialViewDate;
|
|
407
|
+
private clampToRange;
|
|
408
|
+
protected select(date: Date): void;
|
|
409
|
+
protected selectMonth(date: Date): void;
|
|
410
|
+
protected selectYear(date: Date): void;
|
|
411
|
+
protected onRangeSelect(dates: {
|
|
412
|
+
start: Date | null;
|
|
413
|
+
end: Date | null;
|
|
414
|
+
}): void;
|
|
415
|
+
protected setToday(): void;
|
|
416
|
+
protected setMode(next: CalendarType): void;
|
|
417
|
+
protected setSize(size: {
|
|
418
|
+
width: number;
|
|
419
|
+
height: number;
|
|
420
|
+
}): void;
|
|
421
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiCalendarDropdownDirective, never>;
|
|
422
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<UiCalendarDropdownDirective, "app-ui-calendar-dropdown-calendar", never, { "action": { "alias": "action"; "required": false; }; "rangeSelect": { "alias": "rangeSelect"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "endDate": { "alias": "endDate"; "required": false; }; "isRangeSelection": { "alias": "isRangeSelection"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; }, {}, never, never, true, never>;
|
|
423
|
+
}
|
|
424
|
+
|
|
366
425
|
interface Highlighted {
|
|
367
426
|
string: string;
|
|
368
427
|
index: number;
|
|
@@ -849,28 +908,30 @@ declare abstract class UiInputCheckboxDirective implements FormCheckboxControl {
|
|
|
849
908
|
static ɵdir: i0.ɵɵDirectiveDeclaration<UiInputCheckboxDirective, "app-ui-input", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "$style": { "alias": "$style"; "required": false; "isSignal": true; }; "$label": { "alias": "$label"; "required": false; "isSignal": true; }; "$hideValidatorErrors": { "alias": "$hideValidatorErrors"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "dirty": { "alias": "dirty"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "invalid": "invalidChange"; "touched": "touchedChange"; "dirty": "dirtyChange"; }, never, never, true, never>;
|
|
850
909
|
}
|
|
851
910
|
|
|
911
|
+
type InputMode = 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';
|
|
852
912
|
type Size = 'small' | 'medium' | 'large';
|
|
853
913
|
declare abstract class UiInputDirective extends UiFieldBaseDirective<string> {
|
|
854
|
-
protected readonly elementRef: ElementRef<
|
|
914
|
+
protected readonly elementRef: ElementRef<HTMLInputElement>;
|
|
855
915
|
protected readonly renderer: Renderer2;
|
|
856
916
|
readonly $size: InputSignal<Size>;
|
|
857
917
|
readonly $placeholder: InputSignal<string>;
|
|
918
|
+
readonly $inputMode: InputSignal<InputMode>;
|
|
858
919
|
readonly $label: InputSignal<string>;
|
|
859
920
|
readonly $shouldFocusedAfterViewInit: InputSignal<boolean>;
|
|
860
921
|
readonly $isRounded: InputSignal<boolean>;
|
|
861
922
|
readonly $hideValidatorErrors: InputSignal<boolean>;
|
|
862
923
|
readonly $icon: InputSignal<AppIcon | null>;
|
|
863
924
|
protected readonly $isError: Signal<boolean>;
|
|
864
|
-
constructor(elementRef: ElementRef<
|
|
925
|
+
constructor(elementRef: ElementRef<HTMLInputElement>, renderer: Renderer2);
|
|
865
926
|
static ɵfac: i0.ɵɵFactoryDeclaration<UiInputDirective, never>;
|
|
866
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<UiInputDirective, "app-ui-input", never, { "$size": { "alias": "$size"; "required": false; "isSignal": true; }; "$placeholder": { "alias": "$placeholder"; "required": false; "isSignal": true; }; "$label": { "alias": "$label"; "required": false; "isSignal": true; }; "$shouldFocusedAfterViewInit": { "alias": "$shouldFocusedAfterViewInit"; "required": false; "isSignal": true; }; "$isRounded": { "alias": "$isRounded"; "required": false; "isSignal": true; }; "$hideValidatorErrors": { "alias": "$hideValidatorErrors"; "required": false; "isSignal": true; }; "$icon": { "alias": "$icon"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
927
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<UiInputDirective, "app-ui-input", never, { "$size": { "alias": "$size"; "required": false; "isSignal": true; }; "$placeholder": { "alias": "$placeholder"; "required": false; "isSignal": true; }; "$inputMode": { "alias": "$inputMode"; "required": false; "isSignal": true; }; "$label": { "alias": "$label"; "required": false; "isSignal": true; }; "$shouldFocusedAfterViewInit": { "alias": "$shouldFocusedAfterViewInit"; "required": false; "isSignal": true; }; "$isRounded": { "alias": "$isRounded"; "required": false; "isSignal": true; }; "$hideValidatorErrors": { "alias": "$hideValidatorErrors"; "required": false; "isSignal": true; }; "$icon": { "alias": "$icon"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
867
928
|
}
|
|
868
929
|
|
|
869
930
|
declare abstract class UiInputCountryDirective extends UiInputDirective implements AfterViewInit {
|
|
870
931
|
protected $selectedCountry: WritableSignal<CountryData>;
|
|
871
932
|
protected $isOpen: WritableSignal<boolean>;
|
|
872
933
|
private $inputElement;
|
|
873
|
-
constructor(elementRef: ElementRef<
|
|
934
|
+
constructor(elementRef: ElementRef<HTMLInputElement>, renderer: Renderer2);
|
|
874
935
|
ngAfterViewInit(): void;
|
|
875
936
|
protected onPaste(event: ClipboardEvent): void;
|
|
876
937
|
private searchCountry;
|
|
@@ -884,6 +945,8 @@ declare abstract class UIInputDateDirective extends UiInputDirective {
|
|
|
884
945
|
protected readonly $isOpen: WritableSignal<boolean>;
|
|
885
946
|
readonly $isRangeSelection: InputSignal<boolean>;
|
|
886
947
|
readonly $dividePattern: InputSignal<string>;
|
|
948
|
+
readonly $minDate: InputSignal<Date | undefined>;
|
|
949
|
+
readonly $maxDate: InputSignal<Date | undefined>;
|
|
887
950
|
private $inputElement;
|
|
888
951
|
protected setDate(date: Date): void;
|
|
889
952
|
private formatDate;
|
|
@@ -895,7 +958,7 @@ declare abstract class UIInputDateDirective extends UiInputDirective {
|
|
|
895
958
|
onInput(value: string): void;
|
|
896
959
|
private maskDate;
|
|
897
960
|
static ɵfac: i0.ɵɵFactoryDeclaration<UIInputDateDirective, never>;
|
|
898
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<UIInputDateDirective, "app-ui-input-date", never, { "$isRangeSelection": { "alias": "$isRangeSelection"; "required": false; "isSignal": true; }; "$dividePattern": { "alias": "$dividePattern"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
961
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<UIInputDateDirective, "app-ui-input-date", never, { "$isRangeSelection": { "alias": "$isRangeSelection"; "required": false; "isSignal": true; }; "$dividePattern": { "alias": "$dividePattern"; "required": false; "isSignal": true; }; "$minDate": { "alias": "$minDate"; "required": false; "isSignal": true; }; "$maxDate": { "alias": "$maxDate"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
899
962
|
}
|
|
900
963
|
|
|
901
964
|
declare abstract class UIPhoneNumberDirective extends UiInputDirective implements AfterViewInit {
|
|
@@ -903,7 +966,7 @@ declare abstract class UIPhoneNumberDirective extends UiInputDirective implement
|
|
|
903
966
|
protected $isOpen: WritableSignal<boolean>;
|
|
904
967
|
protected $countryCode: WritableSignal<string>;
|
|
905
968
|
private $inputElement;
|
|
906
|
-
constructor(elementRef: ElementRef<
|
|
969
|
+
constructor(elementRef: ElementRef<HTMLInputElement>, renderer: Renderer2);
|
|
907
970
|
ngAfterViewInit(): void;
|
|
908
971
|
protected onInput(value: string): void;
|
|
909
972
|
protected onPaste(event: ClipboardEvent): void;
|
|
@@ -939,14 +1002,57 @@ declare abstract class UiInputSequenceDirective extends UiInputDirective {
|
|
|
939
1002
|
}
|
|
940
1003
|
|
|
941
1004
|
declare abstract class UiInputTimeDirective extends UiInputDirective {
|
|
942
|
-
protected
|
|
1005
|
+
protected get times(): string[];
|
|
1006
|
+
protected get inputMode(): 'numeric' | 'text';
|
|
943
1007
|
private $inputElement;
|
|
944
1008
|
protected readonly $isOpen: WritableSignal<boolean>;
|
|
945
1009
|
onInput(value: string): void;
|
|
946
1010
|
maskTime(value: string): string;
|
|
1011
|
+
private mask12HourTime;
|
|
1012
|
+
private appendMeridiem;
|
|
1013
|
+
private clampTwelveHour;
|
|
1014
|
+
private clampMinutes;
|
|
1015
|
+
private extractMeridiem;
|
|
1016
|
+
private uses12HourTime;
|
|
1017
|
+
private formatTime;
|
|
947
1018
|
static ɵfac: i0.ɵɵFactoryDeclaration<UiInputTimeDirective, never>;
|
|
948
1019
|
static ɵdir: i0.ɵɵDirectiveDeclaration<UiInputTimeDirective, "app-ui-input-time", never, {}, {}, never, never, true, never>;
|
|
949
1020
|
}
|
|
950
1021
|
|
|
951
|
-
|
|
1022
|
+
declare class UiTimeDropdownDirective {
|
|
1023
|
+
protected readonly $close: WritableSignal<boolean>;
|
|
1024
|
+
protected readonly is12HourFormat: boolean;
|
|
1025
|
+
protected readonly $hourForm: WritableSignal<string>;
|
|
1026
|
+
protected readonly $minuteForm: WritableSignal<string>;
|
|
1027
|
+
protected readonly $periodForm: WritableSignal<string>;
|
|
1028
|
+
protected readonly $hour: FieldTree<string>;
|
|
1029
|
+
protected readonly $minute: FieldTree<string>;
|
|
1030
|
+
protected readonly $period: FieldTree<string>;
|
|
1031
|
+
action: (time: string) => void;
|
|
1032
|
+
initialValue: string | null;
|
|
1033
|
+
ngOnInit(): void;
|
|
1034
|
+
protected onHourInput(event: Event): void;
|
|
1035
|
+
protected onMinuteInput(event: Event): void;
|
|
1036
|
+
protected onPeriodInput(event: Event): void;
|
|
1037
|
+
protected increaseHour(): void;
|
|
1038
|
+
protected decreaseHour(): void;
|
|
1039
|
+
protected increaseMinute(): void;
|
|
1040
|
+
protected decreaseMinute(): void;
|
|
1041
|
+
protected increasePeriod(): void;
|
|
1042
|
+
protected decreasePeriod(): void;
|
|
1043
|
+
private incrementWithinRange;
|
|
1044
|
+
private decrementWithinRange;
|
|
1045
|
+
private parseNumber;
|
|
1046
|
+
private normalizeHourInput;
|
|
1047
|
+
private normalizeMinuteInput;
|
|
1048
|
+
private normalizePeriodInput;
|
|
1049
|
+
private setInitialTime;
|
|
1050
|
+
private parseInitialValue;
|
|
1051
|
+
private emitTime;
|
|
1052
|
+
onTimeSelect(time: string): void;
|
|
1053
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiTimeDropdownDirective, never>;
|
|
1054
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<UiTimeDropdownDirective, "app-ui-time-dropdown", never, { "action": { "alias": "action"; "required": false; }; "initialValue": { "alias": "initialValue"; "required": false; }; }, {}, never, never, true, never>;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
export { Alert, AlertType, AppIconsLibrary, AutoFocusDirective, CenterEllipsisPipe, CountryService, DateUtils, EMAIL, HAS_CAPITAL_CASE, HAS_NUMBER, HAS_SMALL_CASE, HAS_SPECIAL_CHARTERS, HoverTipDirective, IconComponent, LazyImgDirective, MIN_LENGTH, MaskGradientDirective, SkeletonDirective, StickyObserverDirective, ThemeService, TrackLifecycleDirective, UIInputDateDirective, UIPhoneNumberDirective, UiAccordionComponent, UiAlertMessagesService, UiAvatarDirective, UiButtonDirective, UiCalendarDropdownDirective, UiCodeDirective, UiCopyButtonDirective, UiDailyCalendarDirective, UiDropdownContainerDirective, UiDropdownService, UiFieldBaseDirective, UiImageDirective, UiInputCheckboxDirective, UiInputCountryDirective, UiInputDirective, UiInputSelectDirective, UiInputSequenceDirective, UiInputTimeDirective, UiMonthlyCalendarDirective, UiPaginationDirective, UiPopupBackdropDirective, UiPopupContainerDirective, UiPopupImageDirective, UiPopupInstance, UiPopupService, UiSelectButtonsDirective, UiTabsDirective, UiTimeDropdownDirective, UiValidationErrorsDirective, UiYearlyCalendarDirective, emptyCountry, getAspectRatioFit, stringToHslColor };
|
|
952
1058
|
export type { AlertParams, AppIcon, AppIconName, ButtonColor, CalendarDay, CalendarMonthItem, CalendarYearItem, CheckboxStyles, CountryData, DropdownItem, DropdownParameters, DropdownPosition, InputSelectData, NavigationEvent, OverflowMode, PopupAnimationOptions, RawSVG, TabsAlignment, UiPopupAnimation, UiPopupOptions, UiPopupParameters, UiSelectButton, UiSelectButtonAlignment, UiTab, ValidationErrorsType };
|