@ucme-ui/angular 0.1.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/LICENSE +21 -0
- package/README.md +151 -0
- package/fesm2022/ucme-ui-angular.mjs +2628 -0
- package/fesm2022/ucme-ui-angular.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/alert/alert.component.d.ts +18 -0
- package/lib/avatar/avatar.component.d.ts +15 -0
- package/lib/badge/badge.component.d.ts +12 -0
- package/lib/breadcrumb/breadcrumb.component.d.ts +12 -0
- package/lib/button/button-group.component.d.ts +17 -0
- package/lib/button/button.component.d.ts +39 -0
- package/lib/calendar/calendar.component.d.ts +105 -0
- package/lib/calendar/date-picker.component.d.ts +87 -0
- package/lib/calendar/date-utils.d.ts +27 -0
- package/lib/card/card.component.d.ts +30 -0
- package/lib/checkbox/checkbox.component.d.ts +36 -0
- package/lib/core/media.d.ts +6 -0
- package/lib/core/theme.service.d.ts +21 -0
- package/lib/core/unique-id.d.ts +2 -0
- package/lib/dialog/dialog.component.d.ts +39 -0
- package/lib/form-field/form-field.component.d.ts +38 -0
- package/lib/form-field/form-field.tokens.d.ts +31 -0
- package/lib/form-field/input.directive.d.ts +28 -0
- package/lib/icon/icon.component.d.ts +16 -0
- package/lib/icon/icons.d.ts +11 -0
- package/lib/imports.d.ts +15 -0
- package/lib/layout/nav.types.d.ts +15 -0
- package/lib/layout/shell.component.d.ts +51 -0
- package/lib/layout/sidebar-nav.component.d.ts +19 -0
- package/lib/layout/theme-toggle.component.d.ts +9 -0
- package/lib/menu/menu.component.d.ts +38 -0
- package/lib/paginator/paginator.component.d.ts +21 -0
- package/lib/spinner/spinner.component.d.ts +9 -0
- package/lib/switch/switch.component.d.ts +24 -0
- package/lib/table/table.component.d.ts +57 -0
- package/lib/table/table.types.d.ts +18 -0
- package/lib/tabs/tabs.component.d.ts +33 -0
- package/lib/toast/toast.service.d.ts +32 -0
- package/lib/toast/toaster.component.d.ts +11 -0
- package/package.json +65 -0
- package/public-api.d.ts +34 -0
- package/styles/_base.scss +84 -0
- package/styles/_controls.scss +146 -0
- package/styles/_tokens.scss +203 -0
- package/styles/hu-ui.scss +5 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export type HuStatusVariant = 'info' | 'success' | 'warning' | 'danger';
|
|
3
|
+
export declare const HU_STATUS_ICONS: Record<HuStatusVariant, string>;
|
|
4
|
+
/**
|
|
5
|
+
* Sayfa içi bilgi / uyarı mesajı.
|
|
6
|
+
* @example <hu-alert variant="warning" title="Dikkat">Dönem kayıtları 5 gün içinde kapanacak.</hu-alert>
|
|
7
|
+
*/
|
|
8
|
+
export declare class HuAlert {
|
|
9
|
+
readonly variant: import("@angular/core").InputSignal<HuStatusVariant>;
|
|
10
|
+
readonly title: import("@angular/core").InputSignal<string | undefined>;
|
|
11
|
+
readonly dismissible: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
12
|
+
readonly dismissed: import("@angular/core").WritableSignal<boolean>;
|
|
13
|
+
readonly closed: import("@angular/core").OutputEmitterRef<void>;
|
|
14
|
+
protected readonly icon: import("@angular/core").Signal<string>;
|
|
15
|
+
dismiss(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuAlert, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuAlert, "hu-alert", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["*"], true, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export type HuAvatarSize = 'sm' | 'md' | 'lg';
|
|
3
|
+
/**
|
|
4
|
+
* Kullanıcı avatarı. Görsel yoksa veya yüklenemezse baş harfleri gösterir.
|
|
5
|
+
* @example <hu-avatar name="Ayşe Yılmaz" /> <hu-avatar name="Ali Can" [src]="user.photo" size="lg" />
|
|
6
|
+
*/
|
|
7
|
+
export declare class HuAvatar {
|
|
8
|
+
readonly name: import("@angular/core").InputSignal<string>;
|
|
9
|
+
readonly src: import("@angular/core").InputSignal<string | null | undefined>;
|
|
10
|
+
readonly size: import("@angular/core").InputSignal<HuAvatarSize>;
|
|
11
|
+
protected readonly failed: import("@angular/core").WritableSignal<boolean>;
|
|
12
|
+
protected readonly initials: import("@angular/core").Signal<string>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuAvatar, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuAvatar, "hu-avatar", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "src": { "alias": "src"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export type HuBadgeVariant = 'neutral' | 'primary' | 'info' | 'success' | 'warning' | 'danger';
|
|
3
|
+
/**
|
|
4
|
+
* Durum etiketi.
|
|
5
|
+
* @example <hu-badge variant="success" dot>Aktif</hu-badge>
|
|
6
|
+
*/
|
|
7
|
+
export declare class HuBadge {
|
|
8
|
+
readonly variant: import("@angular/core").InputSignal<HuBadgeVariant>;
|
|
9
|
+
readonly dot: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuBadge, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuBadge, "hu-badge", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "dot": { "alias": "dot"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface HuBreadcrumbItem {
|
|
3
|
+
label: string;
|
|
4
|
+
link?: string | unknown[];
|
|
5
|
+
icon?: string;
|
|
6
|
+
}
|
|
7
|
+
/** @example <hu-breadcrumb [items]="[{ label: 'Ana Sayfa', link: '/' }, { label: 'Kullanıcılar' }]" /> */
|
|
8
|
+
export declare class HuBreadcrumb {
|
|
9
|
+
readonly items: import("@angular/core").InputSignal<HuBreadcrumbItem[]>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuBreadcrumb, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuBreadcrumb, "hu-breadcrumb", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* Butonları birleşik bir grup olarak gösterir (araç çubuğu, görünüm seçici, sayfalama).
|
|
4
|
+
* Aç/kapa davranışı için butonlara `[attr.aria-pressed]` verin.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <hu-button-group aria-label="Görünüm">
|
|
8
|
+
* <button hu-button variant="outline" [attr.aria-pressed]="view() === 'list'" (click)="view.set('list')">Liste</button>
|
|
9
|
+
* <button hu-button variant="outline" [attr.aria-pressed]="view() === 'grid'" (click)="view.set('grid')">Kart</button>
|
|
10
|
+
* </hu-button-group>
|
|
11
|
+
*/
|
|
12
|
+
export declare class HuButtonGroup {
|
|
13
|
+
readonly vertical: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
14
|
+
readonly pill: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuButtonGroup, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuButtonGroup, "hu-button-group", never, { "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; "pill": { "alias": "pill"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/** Görünüm. */
|
|
3
|
+
export type HuButtonVariant = 'solid' | 'soft' | 'outline' | 'ghost' | 'link';
|
|
4
|
+
/** Renk. */
|
|
5
|
+
export type HuButtonColor = 'primary' | 'neutral' | 'success' | 'warning' | 'danger' | 'info';
|
|
6
|
+
export type HuButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
7
|
+
/**
|
|
8
|
+
* Buton. Native `<button>` ve `<a>` elementlerine uygulanır; böylece form
|
|
9
|
+
* davranışı, routerLink ve erişilebilirlik tarayıcıdan hazır gelir.
|
|
10
|
+
*
|
|
11
|
+
* Görünüm (`variant`) ve renk (`color`) birbirinden bağımsızdır:
|
|
12
|
+
* 5 görünüm × 6 renk.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* <button hu-button>Kaydet</button>
|
|
16
|
+
* <button hu-button variant="soft" color="success">Onayla</button>
|
|
17
|
+
* <button hu-button variant="outline" color="danger" size="sm"><hu-icon name="trash" /> Sil</button>
|
|
18
|
+
* <button hu-button variant="ghost" iconOnly aria-label="Düzenle"><hu-icon name="edit" /></button>
|
|
19
|
+
* <a hu-button variant="link" routerLink="/users">Tüm kullanıcılar</a>
|
|
20
|
+
*/
|
|
21
|
+
export declare class HuButton {
|
|
22
|
+
protected readonly isButton: boolean;
|
|
23
|
+
readonly variant: import("@angular/core").InputSignal<HuButtonVariant>;
|
|
24
|
+
/** Verilmezse: solid/soft/link → primary, outline/ghost → neutral. */
|
|
25
|
+
readonly color: import("@angular/core").InputSignal<HuButtonColor | undefined>;
|
|
26
|
+
readonly size: import("@angular/core").InputSignal<HuButtonSize>;
|
|
27
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
28
|
+
readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
29
|
+
/** Butonu kapsayıcı genişliğine yayar. */
|
|
30
|
+
readonly block: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
31
|
+
/** Kare, yalnızca ikon içeren buton. `aria-label` vermeyi unutmayın. */
|
|
32
|
+
readonly iconOnly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
33
|
+
/** Tam yuvarlak köşeler. */
|
|
34
|
+
readonly pill: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
35
|
+
protected readonly resolvedColor: import("@angular/core").Signal<HuButtonColor>;
|
|
36
|
+
protected readonly isDisabled: import("@angular/core").Signal<boolean>;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuButton, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuButton, "button[hu-button], a[hu-button]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "block": { "alias": "block"; "required": false; "isSignal": true; }; "iconOnly": { "alias": "iconOnly"; "required": false; "isSignal": true; }; "pill": { "alias": "pill"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { HuDateRange } from './date-utils';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export type HuCalendarMode = 'single' | 'range';
|
|
4
|
+
export type HuCalendarView = 'days' | 'months' | 'years';
|
|
5
|
+
export type HuMarkerVariant = 'primary' | 'info' | 'success' | 'warning' | 'danger';
|
|
6
|
+
/** Takvimde bir güne işaret (nokta) koyar; örn. sınav, tatil, son başvuru. */
|
|
7
|
+
export interface HuCalendarMarker {
|
|
8
|
+
date: Date;
|
|
9
|
+
label?: string;
|
|
10
|
+
variant?: HuMarkerVariant;
|
|
11
|
+
}
|
|
12
|
+
interface DayCell {
|
|
13
|
+
date: Date;
|
|
14
|
+
key: string;
|
|
15
|
+
day: number;
|
|
16
|
+
inMonth: boolean;
|
|
17
|
+
today: boolean;
|
|
18
|
+
selected: boolean;
|
|
19
|
+
rangeStart: boolean;
|
|
20
|
+
rangeEnd: boolean;
|
|
21
|
+
inRange: boolean;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
markers: HuCalendarMarker[];
|
|
24
|
+
label: string;
|
|
25
|
+
}
|
|
26
|
+
interface PickerCell {
|
|
27
|
+
value: number;
|
|
28
|
+
label: string;
|
|
29
|
+
current: boolean;
|
|
30
|
+
selected: boolean;
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Satır içi takvim. Tek gün veya tarih aralığı seçer; ay/yıl görünümü ve
|
|
35
|
+
* tam klavye desteği vardır (oklar, Home/End, PageUp/PageDown, Enter).
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* <hu-calendar [(value)]="date" [min]="today" [markers]="events" />
|
|
39
|
+
* <hu-calendar mode="range" [(range)]="period" />
|
|
40
|
+
*/
|
|
41
|
+
export declare class HuCalendar {
|
|
42
|
+
private readonly host;
|
|
43
|
+
private readonly injector;
|
|
44
|
+
readonly mode: import("@angular/core").InputSignal<HuCalendarMode>;
|
|
45
|
+
/** Seçili gün (`mode="single"`). */
|
|
46
|
+
readonly value: import("@angular/core").ModelSignal<Date | null>;
|
|
47
|
+
/** Seçili aralık (`mode="range"`). */
|
|
48
|
+
readonly range: import("@angular/core").ModelSignal<HuDateRange | null>;
|
|
49
|
+
readonly min: import("@angular/core").InputSignal<Date | null>;
|
|
50
|
+
readonly max: import("@angular/core").InputSignal<Date | null>;
|
|
51
|
+
/** `false` döndüren günler seçilemez (örn. hafta sonları). */
|
|
52
|
+
readonly dateFilter: import("@angular/core").InputSignal<((date: Date) => boolean) | null>;
|
|
53
|
+
readonly markers: import("@angular/core").InputSignal<HuCalendarMarker[]>;
|
|
54
|
+
/** Hiç seçim yokken açılacak ay. */
|
|
55
|
+
readonly startAt: import("@angular/core").InputSignal<Date | null>;
|
|
56
|
+
readonly locale: import("@angular/core").InputSignal<string>;
|
|
57
|
+
readonly firstDayOfWeek: import("@angular/core").InputSignal<number>;
|
|
58
|
+
/** Kullanıcı bir gün seçtiğinde. */
|
|
59
|
+
readonly dateSelected: import("@angular/core").OutputEmitterRef<Date>;
|
|
60
|
+
/** Görüntülenen ay değiştiğinde (ayın ilk günü). */
|
|
61
|
+
readonly monthChange: import("@angular/core").OutputEmitterRef<Date>;
|
|
62
|
+
protected readonly today: Date;
|
|
63
|
+
protected readonly gridId: string;
|
|
64
|
+
protected readonly view: import("@angular/core").WritableSignal<HuCalendarView>;
|
|
65
|
+
protected readonly activeDate: import("@angular/core").WritableSignal<Date>;
|
|
66
|
+
protected readonly hoverDate: import("@angular/core").WritableSignal<Date | null>;
|
|
67
|
+
/** Roving tabindex: yalnızca aktif gün Tab ile odaklanabilir. */
|
|
68
|
+
protected readonly activeKey: import("@angular/core").Signal<string>;
|
|
69
|
+
private readonly fmt;
|
|
70
|
+
protected readonly weekdays: import("@angular/core").Signal<{
|
|
71
|
+
short: string;
|
|
72
|
+
long: string;
|
|
73
|
+
}[]>;
|
|
74
|
+
protected readonly headerLabel: import("@angular/core").Signal<string>;
|
|
75
|
+
private readonly markerMap;
|
|
76
|
+
protected readonly weeks: import("@angular/core").Signal<DayCell[][]>;
|
|
77
|
+
/** Aralık seçiminde bitiş henüz seçilmemişken fareyle önizleme. */
|
|
78
|
+
private readonly previewEnd;
|
|
79
|
+
protected readonly months: import("@angular/core").Signal<PickerCell[]>;
|
|
80
|
+
private readonly yearPageStart;
|
|
81
|
+
protected readonly years: import("@angular/core").Signal<PickerCell[]>;
|
|
82
|
+
private readonly selectedAnchor;
|
|
83
|
+
protected readonly prevDisabled: import("@angular/core").Signal<boolean>;
|
|
84
|
+
protected readonly nextDisabled: import("@angular/core").Signal<boolean>;
|
|
85
|
+
constructor();
|
|
86
|
+
select(date: Date): void;
|
|
87
|
+
/** Klavye odağını takvime taşır (tarih seçici açıldığında kullanılır). */
|
|
88
|
+
focusActiveCell(): void;
|
|
89
|
+
/** Görünüm değişince tıklanan buton DOM'dan kalkar; odağı yeni görünüme taşı. */
|
|
90
|
+
private focusAfterRender;
|
|
91
|
+
private focusPicker;
|
|
92
|
+
protected previous(): void;
|
|
93
|
+
protected next(): void;
|
|
94
|
+
private navigate;
|
|
95
|
+
protected toggleView(): void;
|
|
96
|
+
protected pickMonth(month: number): void;
|
|
97
|
+
protected pickYear(year: number): void;
|
|
98
|
+
protected onGridKeydown(event: KeyboardEvent): void;
|
|
99
|
+
private setActive;
|
|
100
|
+
private isSelectable;
|
|
101
|
+
private isRangeAllowed;
|
|
102
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuCalendar, never>;
|
|
103
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuCalendar, "hu-calendar", never, { "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "range": { "alias": "range"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "dateFilter": { "alias": "dateFilter"; "required": false; "isSignal": true; }; "markers": { "alias": "markers"; "required": false; "isSignal": true; }; "startAt": { "alias": "startAt"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "range": "rangeChange"; "dateSelected": "dateSelected"; "monthChange": "monthChange"; }, never, never, true, never>;
|
|
104
|
+
}
|
|
105
|
+
export {};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { DoCheck } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
|
|
3
|
+
import { HuFormFieldControl } from '../form-field/form-field.tokens';
|
|
4
|
+
import { HuInputSize } from '../form-field/input.directive';
|
|
5
|
+
import { HuCalendarMarker, HuCalendarMode } from './calendar.component';
|
|
6
|
+
import { HuDateRange } from './date-utils';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export type HuDatePickerValue = Date | HuDateRange | null;
|
|
9
|
+
/**
|
|
10
|
+
* Tarih seçici form kontrolü. Tarih elle (`gg.aa.yyyy`) yazılabilir veya
|
|
11
|
+
* takvimden seçilebilir. `mode="range"` ile değer `{ start, end }` olur.
|
|
12
|
+
* Validasyon hataları: `huDateParse`, `huDateMin`, `huDateMax`, `huDateUnavailable`.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* <hu-form-field label="Başlangıç tarihi">
|
|
16
|
+
* <hu-date-picker formControlName="startDate" [min]="today" />
|
|
17
|
+
* </hu-form-field>
|
|
18
|
+
* <hu-date-picker mode="range" [(value)]="period" placeholder="Tarih aralığı" />
|
|
19
|
+
*/
|
|
20
|
+
export declare class HuDatePicker implements ControlValueAccessor, Validator, HuFormFieldControl, DoCheck {
|
|
21
|
+
private readonly injector;
|
|
22
|
+
private readonly host;
|
|
23
|
+
private readonly win;
|
|
24
|
+
protected readonly field: import("@ucme-ui/angular").HuFormFieldParent | null;
|
|
25
|
+
readonly mode: import("@angular/core").InputSignal<HuCalendarMode>;
|
|
26
|
+
readonly value: import("@angular/core").ModelSignal<HuDatePickerValue>;
|
|
27
|
+
readonly min: import("@angular/core").InputSignal<Date | null>;
|
|
28
|
+
readonly max: import("@angular/core").InputSignal<Date | null>;
|
|
29
|
+
readonly dateFilter: import("@angular/core").InputSignal<((date: Date) => boolean) | null>;
|
|
30
|
+
readonly markers: import("@angular/core").InputSignal<HuCalendarMarker[]>;
|
|
31
|
+
readonly placeholder: import("@angular/core").InputSignal<string | undefined>;
|
|
32
|
+
readonly size: import("@angular/core").InputSignal<HuInputSize>;
|
|
33
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
34
|
+
readonly id: import("@angular/core").InputSignal<string>;
|
|
35
|
+
protected readonly open: import("@angular/core").WritableSignal<boolean>;
|
|
36
|
+
protected readonly text: import("@angular/core").WritableSignal<string>;
|
|
37
|
+
protected readonly panelId: string;
|
|
38
|
+
private readonly parseError;
|
|
39
|
+
private readonly formDisabled;
|
|
40
|
+
protected readonly isDisabled: import("@angular/core").Signal<boolean>;
|
|
41
|
+
private ngControl;
|
|
42
|
+
get hasControl(): boolean;
|
|
43
|
+
readonly controlErrorVisible: import("@angular/core").WritableSignal<boolean>;
|
|
44
|
+
readonly errors: import("@angular/core").WritableSignal<ValidationErrors | null>;
|
|
45
|
+
protected readonly isInvalid: import("@angular/core").Signal<boolean>;
|
|
46
|
+
protected readonly placeholderText: import("@angular/core").Signal<string>;
|
|
47
|
+
protected readonly singleValue: import("@angular/core").Signal<Date | null>;
|
|
48
|
+
protected readonly rangeValue: import("@angular/core").Signal<HuDateRange | null>;
|
|
49
|
+
/** Takvimde aralık seçilirken geçici değer (bitiş seçilene kadar forma yazılmaz). */
|
|
50
|
+
protected readonly draftRange: import("@angular/core").WritableSignal<HuDateRange | null>;
|
|
51
|
+
private readonly input;
|
|
52
|
+
private readonly panel;
|
|
53
|
+
private readonly calendar;
|
|
54
|
+
protected readonly supportsPopover: boolean;
|
|
55
|
+
/** Son fare basışı bileşenin içinde mi? (DOM'dan kalkan butonlar focusout'u yanıltmasın) */
|
|
56
|
+
private pointerInside;
|
|
57
|
+
private onChange;
|
|
58
|
+
private onTouched;
|
|
59
|
+
private onValidatorChange;
|
|
60
|
+
constructor();
|
|
61
|
+
ngDoCheck(): void;
|
|
62
|
+
toggle(): void;
|
|
63
|
+
openPanel(): void;
|
|
64
|
+
close(restoreFocus?: boolean): void;
|
|
65
|
+
private positionPanel;
|
|
66
|
+
protected onCalendarDate(date: Date): void;
|
|
67
|
+
protected onCalendarRange(range: HuDateRange | null): void;
|
|
68
|
+
protected selectToday(): void;
|
|
69
|
+
protected clear(): void;
|
|
70
|
+
protected onInput(event: Event): void;
|
|
71
|
+
protected onInputKeydown(event: KeyboardEvent): void;
|
|
72
|
+
protected onPanelKeydown(event: KeyboardEvent): void;
|
|
73
|
+
private commitText;
|
|
74
|
+
private commit;
|
|
75
|
+
protected onFocusOut(event: FocusEvent): void;
|
|
76
|
+
protected onDocumentPointer(event: MouseEvent): void;
|
|
77
|
+
writeValue(value: unknown): void;
|
|
78
|
+
registerOnChange(fn: (value: HuDatePickerValue) => void): void;
|
|
79
|
+
registerOnTouched(fn: () => void): void;
|
|
80
|
+
setDisabledState(disabled: boolean): void;
|
|
81
|
+
validate(_control: AbstractControl): ValidationErrors | null;
|
|
82
|
+
registerOnValidatorChange(fn: () => void): void;
|
|
83
|
+
private format;
|
|
84
|
+
private resolveControl;
|
|
85
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuDatePicker, never>;
|
|
86
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuDatePicker, "hu-date-picker", never, { "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "dateFilter": { "alias": "dateFilter"; "required": false; "isSignal": true; }; "markers": { "alias": "markers"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
87
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface HuDateRange {
|
|
2
|
+
start: Date | null;
|
|
3
|
+
end: Date | null;
|
|
4
|
+
}
|
|
5
|
+
export declare function startOfDay(date: Date): Date;
|
|
6
|
+
export declare function addDays(date: Date, days: number): Date;
|
|
7
|
+
/** Ay ekler; hedef ayda o gün yoksa ayın son gününe sabitler (31 Ocak + 1 ay = 28/29 Şubat). */
|
|
8
|
+
export declare function addMonths(date: Date, months: number): Date;
|
|
9
|
+
export declare function daysInMonth(year: number, month: number): number;
|
|
10
|
+
export declare function isSameDay(a: Date | null | undefined, b: Date | null | undefined): boolean;
|
|
11
|
+
export declare function isSameMonth(a: Date, b: Date): boolean;
|
|
12
|
+
/** Gün bazında karşılaştırma: a < b → negatif. */
|
|
13
|
+
export declare function compareDays(a: Date, b: Date): number;
|
|
14
|
+
/** Haftanın başlangıcı (varsayılan Pazartesi). */
|
|
15
|
+
export declare function startOfWeek(date: Date, firstDayOfWeek?: number): Date;
|
|
16
|
+
export declare function clampDate(date: Date, min?: Date | null, max?: Date | null): Date;
|
|
17
|
+
export declare function isValidDate(value: unknown): value is Date;
|
|
18
|
+
/** `gg.aa.yyyy` biçiminde yazar. */
|
|
19
|
+
export declare function formatDate(date: Date | null | undefined): string;
|
|
20
|
+
/**
|
|
21
|
+
* Kullanıcı girdisini ayrıştırır. Kabul edilenler: `5.10.2026`, `05/10/2026`,
|
|
22
|
+
* `05-10-2026`, `05102026`. Geçersiz tarihte (31.02.2026 gibi) `null` döner.
|
|
23
|
+
*/
|
|
24
|
+
export declare function parseDate(text: string): Date | null;
|
|
25
|
+
export declare function formatRange(range: HuDateRange | null | undefined): string;
|
|
26
|
+
/** `gg.aa.yyyy – gg.aa.yyyy` ayrıştırır. Başarısızsa `null`. */
|
|
27
|
+
export declare function parseRange(text: string): HuDateRange | null;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/** Kart başlığının sağındaki aksiyonlar. */
|
|
3
|
+
export declare class HuCardActions {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuCardActions, never>;
|
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HuCardActions, "[huCardActions]", never, {}, {}, never, never, true, never>;
|
|
6
|
+
}
|
|
7
|
+
/** Kart alt bilgisi. */
|
|
8
|
+
export declare class HuCardFooter {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuCardFooter, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HuCardFooter, "[huCardFooter]", never, {}, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
12
|
+
export type HuCardPadding = 'none' | 'sm' | 'md';
|
|
13
|
+
/**
|
|
14
|
+
* İçerik kartı.
|
|
15
|
+
* @example
|
|
16
|
+
* <hu-card title="Son başvurular" subtitle="Son 7 gün">
|
|
17
|
+
* <button huCardActions hu-button variant="ghost" size="sm">Tümü</button>
|
|
18
|
+
* ...
|
|
19
|
+
* <div huCardFooter>...</div>
|
|
20
|
+
* </hu-card>
|
|
21
|
+
*/
|
|
22
|
+
export declare class HuCard {
|
|
23
|
+
readonly title: import("@angular/core").InputSignal<string | undefined>;
|
|
24
|
+
readonly subtitle: import("@angular/core").InputSignal<string | undefined>;
|
|
25
|
+
readonly padding: import("@angular/core").InputSignal<HuCardPadding>;
|
|
26
|
+
private readonly actions;
|
|
27
|
+
protected readonly hasHeader: import("@angular/core").Signal<boolean>;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuCard, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuCard, "hu-card", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "padding": { "alias": "padding"; "required": false; "isSignal": true; }; }, {}, ["actions"], ["[huCardActions]", "*", "[huCardFooter]"], true, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Onay kutusu. Reactive/template-driven formlarla ya da `[(checked)]` ile çalışır.
|
|
5
|
+
*
|
|
6
|
+
* `indeterminate` (kısmen seçili) yalnızca görsel bir durumdur ve tıklanınca
|
|
7
|
+
* tarayıcı standardı gereği kalkar; değeri alt seçimlerden hesaplayıp siz verin:
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* <hu-checkbox formControlName="kvkk">KVKK metnini okudum</hu-checkbox>
|
|
11
|
+
*
|
|
12
|
+
* <!-- "Tümünü seç" -->
|
|
13
|
+
* <hu-checkbox [checked]="allSelected()" [indeterminate]="someSelected()" (checkedChange)="selectAll($event)">
|
|
14
|
+
* Tümünü seç
|
|
15
|
+
* </hu-checkbox>
|
|
16
|
+
*/
|
|
17
|
+
export declare class HuCheckbox implements ControlValueAccessor {
|
|
18
|
+
readonly checked: import("@angular/core").ModelSignal<boolean>;
|
|
19
|
+
readonly indeterminate: import("@angular/core").ModelSignal<boolean>;
|
|
20
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
21
|
+
readonly name: import("@angular/core").InputSignal<string | undefined>;
|
|
22
|
+
readonly inputId: import("@angular/core").InputSignal<string>;
|
|
23
|
+
/** Görünür etiket yoksa ekran okuyucu etiketi. */
|
|
24
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | null>;
|
|
25
|
+
private readonly formDisabled;
|
|
26
|
+
protected readonly isDisabled: import("@angular/core").Signal<boolean>;
|
|
27
|
+
private onChange;
|
|
28
|
+
protected onTouched: () => void;
|
|
29
|
+
protected onInputChange(event: Event): void;
|
|
30
|
+
writeValue(value: unknown): void;
|
|
31
|
+
registerOnChange(fn: (value: boolean) => void): void;
|
|
32
|
+
registerOnTouched(fn: () => void): void;
|
|
33
|
+
setDisabledState(disabled: boolean): void;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuCheckbox, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuCheckbox, "hu-checkbox", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "indeterminate": "indeterminateChange"; }, never, ["*"], true, never>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Signal } from '@angular/core';
|
|
2
|
+
/**
|
|
3
|
+
* Bir media query'yi signal olarak döndürür. Injection context içinde çağrılmalıdır.
|
|
4
|
+
* @example readonly isMobile = huMediaQuery('(max-width: 1023.98px)');
|
|
5
|
+
*/
|
|
6
|
+
export declare function huMediaQuery(query: string): Signal<boolean>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export type HuThemeMode = 'light' | 'dark' | 'system';
|
|
3
|
+
export type HuResolvedTheme = 'light' | 'dark';
|
|
4
|
+
/**
|
|
5
|
+
* Açık / koyu / sistem temasını yönetir. Seçim localStorage'da saklanır ve
|
|
6
|
+
* `<html data-theme="...">` özniteliği üzerinden token'lara yansır.
|
|
7
|
+
*/
|
|
8
|
+
export declare class HuThemeService {
|
|
9
|
+
private readonly doc;
|
|
10
|
+
private readonly win;
|
|
11
|
+
private readonly media;
|
|
12
|
+
private readonly systemDark;
|
|
13
|
+
readonly mode: import("@angular/core").WritableSignal<HuThemeMode>;
|
|
14
|
+
readonly resolved: import("@angular/core").Signal<HuResolvedTheme>;
|
|
15
|
+
constructor();
|
|
16
|
+
setMode(mode: HuThemeMode): void;
|
|
17
|
+
toggle(): void;
|
|
18
|
+
private readStoredMode;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuThemeService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HuThemeService>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export type HuDialogSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
3
|
+
/** Dialog alt kısmındaki aksiyon alanı. */
|
|
4
|
+
export declare class HuDialogFooter {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuDialogFooter, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HuDialogFooter, "[huDialogFooter]", never, {}, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Modal pencere. Native `<dialog>` elementini kullanır; odak hapsi, Esc ile
|
|
10
|
+
* kapanma ve üst katman (top layer) tarayıcıdan gelir.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* <hu-dialog [(open)]="editOpen" title="Kullanıcıyı düzenle">
|
|
14
|
+
* ...form...
|
|
15
|
+
* <div huDialogFooter>
|
|
16
|
+
* <button hu-button variant="outline" (click)="editOpen.set(false)">Vazgeç</button>
|
|
17
|
+
* <button hu-button (click)="save()">Kaydet</button>
|
|
18
|
+
* </div>
|
|
19
|
+
* </hu-dialog>
|
|
20
|
+
*/
|
|
21
|
+
export declare class HuDialog {
|
|
22
|
+
readonly open: import("@angular/core").ModelSignal<boolean>;
|
|
23
|
+
readonly title: import("@angular/core").InputSignal<string>;
|
|
24
|
+
readonly description: import("@angular/core").InputSignal<string | undefined>;
|
|
25
|
+
readonly size: import("@angular/core").InputSignal<HuDialogSize>;
|
|
26
|
+
readonly closeOnBackdrop: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
27
|
+
readonly closeOnEsc: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
28
|
+
readonly closed: import("@angular/core").OutputEmitterRef<void>;
|
|
29
|
+
protected readonly titleId: string;
|
|
30
|
+
protected pointerDownOnBackdrop: boolean;
|
|
31
|
+
private readonly dialogRef;
|
|
32
|
+
constructor();
|
|
33
|
+
close(): void;
|
|
34
|
+
protected onNativeClose(): void;
|
|
35
|
+
protected onCancel(event: Event): void;
|
|
36
|
+
protected onClick(event: MouseEvent): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuDialog, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuDialog, "hu-dialog", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "closeOnBackdrop": { "alias": "closeOnBackdrop"; "required": false; "isSignal": true; }; "closeOnEsc": { "alias": "closeOnEsc"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "closed": "closed"; }, never, ["*", "[huDialogFooter]"], true, never>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { HuFormFieldControl, HuFormFieldParent } from './form-field.tokens';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/** Kontrolün soluna yerleşen içerik (ikon, para birimi vb.). */
|
|
4
|
+
export declare class HuPrefix {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuPrefix, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HuPrefix, "[huPrefix]", never, {}, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
8
|
+
/** Kontrolün sağına yerleşen içerik. */
|
|
9
|
+
export declare class HuSuffix {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuSuffix, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HuSuffix, "[huSuffix]", never, {}, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Label, yardım metni ve validasyon hatasını bir kontrol etrafında toplar.
|
|
15
|
+
* Reactive form hataları otomatik olarak Türkçe mesaja çevrilir.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* <hu-form-field label="E-posta" hint="Kurumsal adresinizi kullanın" required>
|
|
19
|
+
* <hu-icon huPrefix name="mail" />
|
|
20
|
+
* <input huInput type="email" formControlName="email" />
|
|
21
|
+
* </hu-form-field>
|
|
22
|
+
*/
|
|
23
|
+
export declare class HuFormField implements HuFormFieldParent {
|
|
24
|
+
private readonly messages;
|
|
25
|
+
readonly label: import("@angular/core").InputSignal<string | undefined>;
|
|
26
|
+
readonly hint: import("@angular/core").InputSignal<string | undefined>;
|
|
27
|
+
/** Sabit hata mesajı. Verilmezse validator hatasından üretilir. */
|
|
28
|
+
readonly error: import("@angular/core").InputSignal<string | null | undefined>;
|
|
29
|
+
readonly required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
30
|
+
protected readonly control: import("@angular/core").Signal<HuFormFieldControl | undefined>;
|
|
31
|
+
protected readonly hintId: string;
|
|
32
|
+
protected readonly errorId: string;
|
|
33
|
+
protected readonly errorText: import("@angular/core").Signal<string | null>;
|
|
34
|
+
readonly showError: import("@angular/core").Signal<boolean>;
|
|
35
|
+
readonly describedBy: import("@angular/core").Signal<string | null>;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuFormField, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuFormField, "hu-form-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; }, {}, ["control"], ["[huPrefix]", "*", "[huSuffix]"], true, never>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { InjectionToken, Provider, Signal } from '@angular/core';
|
|
2
|
+
import { ValidationErrors } from '@angular/forms';
|
|
3
|
+
/** hu-form-field'ın, içindeki kontrole sunduğu arayüz. */
|
|
4
|
+
export interface HuFormFieldParent {
|
|
5
|
+
readonly describedBy: Signal<string | null>;
|
|
6
|
+
readonly showError: Signal<boolean>;
|
|
7
|
+
}
|
|
8
|
+
export declare const HU_FORM_FIELD: InjectionToken<HuFormFieldParent>;
|
|
9
|
+
/**
|
|
10
|
+
* hu-form-field içine yerleştirilebilen her kontrolün uyguladığı sözleşme
|
|
11
|
+
* (huInput, hu-date-picker, ...). Kendi kontrolünüzü yazarken
|
|
12
|
+
* `providers: [{ provide: HuFormFieldControl, useExisting: MyControl }]` verin.
|
|
13
|
+
*/
|
|
14
|
+
export declare abstract class HuFormFieldControl {
|
|
15
|
+
/** Label'ın `for` özniteliği bu id'ye bağlanır. */
|
|
16
|
+
abstract readonly id: Signal<string>;
|
|
17
|
+
/** Bir Angular form kontrolüne bağlı mı? */
|
|
18
|
+
abstract readonly hasControl: boolean;
|
|
19
|
+
/** Kontrol geçersiz ve kullanıcı etkileşime girmiş. */
|
|
20
|
+
abstract readonly controlErrorVisible: Signal<boolean>;
|
|
21
|
+
abstract readonly errors: Signal<ValidationErrors | null>;
|
|
22
|
+
}
|
|
23
|
+
/** Validator hata anahtarı → kullanıcıya gösterilecek mesaj. */
|
|
24
|
+
export type HuErrorMessages = Record<string, string | ((error: any) => string)>;
|
|
25
|
+
export declare const HU_DEFAULT_ERROR_MESSAGES: HuErrorMessages;
|
|
26
|
+
export declare const HU_ERROR_MESSAGES: InjectionToken<HuErrorMessages>;
|
|
27
|
+
/**
|
|
28
|
+
* Varsayılan validasyon mesajlarını genişletir / değiştirir.
|
|
29
|
+
* @example provideHuErrorMessages({ tckn: 'Geçerli bir T.C. kimlik numarası giriniz.' })
|
|
30
|
+
*/
|
|
31
|
+
export declare function provideHuErrorMessages(messages: HuErrorMessages): Provider;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DoCheck } from '@angular/core';
|
|
2
|
+
import { ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { HuFormFieldControl } from './form-field.tokens';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export type HuInputSize = 'sm' | 'md' | 'lg';
|
|
6
|
+
/**
|
|
7
|
+
* Native input / textarea / select elementlerine HU görünümünü ve
|
|
8
|
+
* hu-form-field entegrasyonunu (label, hata, aria) ekler.
|
|
9
|
+
*
|
|
10
|
+
* @example <input huInput formControlName="email" placeholder="ornek@example.com" />
|
|
11
|
+
*/
|
|
12
|
+
export declare class HuInput implements HuFormFieldControl, DoCheck {
|
|
13
|
+
private readonly ngControl;
|
|
14
|
+
protected readonly field: import("@ucme-ui/angular").HuFormFieldParent | null;
|
|
15
|
+
readonly id: import("@angular/core").InputSignal<string>;
|
|
16
|
+
readonly size: import("@angular/core").InputSignal<HuInputSize>;
|
|
17
|
+
/** Form kontrolü olmadan hatalı görünümü zorlar. */
|
|
18
|
+
readonly invalid: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
19
|
+
/** Bir Angular form kontrolüne bağlı mı? */
|
|
20
|
+
readonly hasControl: boolean;
|
|
21
|
+
/** Kontrol geçersiz ve kullanıcı etkileşime girmiş. */
|
|
22
|
+
readonly controlErrorVisible: import("@angular/core").WritableSignal<boolean>;
|
|
23
|
+
readonly errors: import("@angular/core").WritableSignal<ValidationErrors | null>;
|
|
24
|
+
protected readonly isInvalid: import("@angular/core").Signal<boolean>;
|
|
25
|
+
ngDoCheck(): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuInput, never>;
|
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HuInput, "input[huInput], textarea[huInput], select[huInput]", ["huInput"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* SVG ikon.
|
|
4
|
+
* @example <hu-icon name="users" /> <hu-icon name="bell" [size]="20" label="Bildirimler" />
|
|
5
|
+
*/
|
|
6
|
+
export declare class HuIcon {
|
|
7
|
+
private readonly customSets;
|
|
8
|
+
readonly name: import("@angular/core").InputSignal<string>;
|
|
9
|
+
readonly size: import("@angular/core").InputSignal<number>;
|
|
10
|
+
readonly strokeWidth: import("@angular/core").InputSignal<number>;
|
|
11
|
+
/** Ekran okuyucular için etiket. Verilmezse ikon dekoratif kabul edilir. */
|
|
12
|
+
readonly label: import("@angular/core").InputSignal<string | undefined>;
|
|
13
|
+
protected readonly path: import("@angular/core").Signal<string>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuIcon, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuIcon, "hu-icon", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|