@ucme-ui/angular 0.1.0 → 0.2.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/README.md +6 -6
- package/fesm2022/ucme-ui-angular.mjs +5296 -2061
- package/fesm2022/ucme-ui-angular.mjs.map +1 -1
- package/package.json +12 -9
- package/styles/_controls.scss +5 -5
- package/types/ucme-ui-angular.d.ts +1454 -0
- package/index.d.ts +0 -5
- package/lib/alert/alert.component.d.ts +0 -18
- package/lib/avatar/avatar.component.d.ts +0 -15
- package/lib/badge/badge.component.d.ts +0 -12
- package/lib/breadcrumb/breadcrumb.component.d.ts +0 -12
- package/lib/button/button-group.component.d.ts +0 -17
- package/lib/button/button.component.d.ts +0 -39
- package/lib/calendar/calendar.component.d.ts +0 -105
- package/lib/calendar/date-picker.component.d.ts +0 -87
- package/lib/calendar/date-utils.d.ts +0 -27
- package/lib/card/card.component.d.ts +0 -30
- package/lib/checkbox/checkbox.component.d.ts +0 -36
- package/lib/core/media.d.ts +0 -6
- package/lib/core/theme.service.d.ts +0 -21
- package/lib/core/unique-id.d.ts +0 -2
- package/lib/dialog/dialog.component.d.ts +0 -39
- package/lib/form-field/form-field.component.d.ts +0 -38
- package/lib/form-field/form-field.tokens.d.ts +0 -31
- package/lib/form-field/input.directive.d.ts +0 -28
- package/lib/icon/icon.component.d.ts +0 -16
- package/lib/icon/icons.d.ts +0 -11
- package/lib/imports.d.ts +0 -15
- package/lib/layout/nav.types.d.ts +0 -15
- package/lib/layout/shell.component.d.ts +0 -51
- package/lib/layout/sidebar-nav.component.d.ts +0 -19
- package/lib/layout/theme-toggle.component.d.ts +0 -9
- package/lib/menu/menu.component.d.ts +0 -38
- package/lib/paginator/paginator.component.d.ts +0 -21
- package/lib/spinner/spinner.component.d.ts +0 -9
- package/lib/switch/switch.component.d.ts +0 -24
- package/lib/table/table.component.d.ts +0 -57
- package/lib/table/table.types.d.ts +0 -18
- package/lib/tabs/tabs.component.d.ts +0 -33
- package/lib/toast/toast.service.d.ts +0 -32
- package/lib/toast/toaster.component.d.ts +0 -11
- package/public-api.d.ts +0 -34
|
@@ -0,0 +1,1454 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { DoCheck, InjectionToken, Provider, Signal, TemplateRef } from "@angular/core";
|
|
3
|
+
import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from "@angular/forms";
|
|
4
|
+
/** Sayfa içinde benzersiz bir DOM id'si üretir (label/aria bağlantıları için). */
|
|
5
|
+
export declare function huUniqueId(prefix?: string): string;
|
|
6
|
+
/**
|
|
7
|
+
* Bir media query'yi signal olarak döndürür. Injection context içinde çağrılmalıdır.
|
|
8
|
+
* @example readonly isMobile = huMediaQuery('(max-width: 1023.98px)');
|
|
9
|
+
*/
|
|
10
|
+
export declare function huMediaQuery(query: string): Signal<boolean>;
|
|
11
|
+
export type HuThemeMode = 'light' | 'dark' | 'system';
|
|
12
|
+
export type HuResolvedTheme = 'light' | 'dark';
|
|
13
|
+
/**
|
|
14
|
+
* Açık / koyu / sistem temasını yönetir. Seçim localStorage'da saklanır ve
|
|
15
|
+
* `<html data-theme="...">` özniteliği üzerinden token'lara yansır.
|
|
16
|
+
*/
|
|
17
|
+
export declare class HuThemeService {
|
|
18
|
+
private readonly doc;
|
|
19
|
+
private readonly win;
|
|
20
|
+
private readonly media;
|
|
21
|
+
private readonly systemDark;
|
|
22
|
+
readonly mode: import("@angular/core").WritableSignal<HuThemeMode>;
|
|
23
|
+
readonly resolved: import("@angular/core").Signal<HuResolvedTheme>;
|
|
24
|
+
constructor();
|
|
25
|
+
setMode(mode: HuThemeMode): void;
|
|
26
|
+
toggle(): void;
|
|
27
|
+
private readStoredMode;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuThemeService, never>;
|
|
29
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
30
|
+
}
|
|
31
|
+
/** İkon adı → SVG path verisi (24x24 viewBox, stroke tabanlı). */
|
|
32
|
+
export type HuIconSet = Record<string, string>;
|
|
33
|
+
export declare const HU_ICON_SETS: InjectionToken<HuIconSet[]>;
|
|
34
|
+
/**
|
|
35
|
+
* Uygulamaya özel ikon ekler.
|
|
36
|
+
* @example providers: [provideHuIcons({ rocket: 'M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2' })]
|
|
37
|
+
*/
|
|
38
|
+
export declare function provideHuIcons(icons: HuIconSet): Provider;
|
|
39
|
+
/** Yerleşik ikon seti (Lucide stilinde, 2px stroke). */
|
|
40
|
+
export declare const HU_BUILTIN_ICONS: HuIconSet;
|
|
41
|
+
/**
|
|
42
|
+
* SVG ikon.
|
|
43
|
+
* @example <hu-icon name="users" /> <hu-icon name="bell" [size]="20" label="Bildirimler" />
|
|
44
|
+
*/
|
|
45
|
+
export declare class HuIcon {
|
|
46
|
+
private readonly customSets;
|
|
47
|
+
readonly name: import("@angular/core").InputSignal<string>;
|
|
48
|
+
readonly size: import("@angular/core").InputSignal<number>;
|
|
49
|
+
readonly strokeWidth: import("@angular/core").InputSignal<number>;
|
|
50
|
+
/** Ekran okuyucular için etiket. Verilmezse ikon dekoratif kabul edilir. */
|
|
51
|
+
readonly label: import("@angular/core").InputSignal<string | undefined>;
|
|
52
|
+
protected readonly path: import("@angular/core").Signal<string>;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuIcon, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuIcon, "hu-icon", never, {
|
|
55
|
+
"name": {
|
|
56
|
+
"alias": "name";
|
|
57
|
+
"required": true;
|
|
58
|
+
"isSignal": true;
|
|
59
|
+
};
|
|
60
|
+
"size": {
|
|
61
|
+
"alias": "size";
|
|
62
|
+
"required": false;
|
|
63
|
+
"isSignal": true;
|
|
64
|
+
};
|
|
65
|
+
"strokeWidth": {
|
|
66
|
+
"alias": "strokeWidth";
|
|
67
|
+
"required": false;
|
|
68
|
+
"isSignal": true;
|
|
69
|
+
};
|
|
70
|
+
"label": {
|
|
71
|
+
"alias": "label";
|
|
72
|
+
"required": false;
|
|
73
|
+
"isSignal": true;
|
|
74
|
+
};
|
|
75
|
+
}, {}, never, never, true, never>;
|
|
76
|
+
}
|
|
77
|
+
/** Görünüm. */
|
|
78
|
+
export type HuButtonVariant = 'solid' | 'soft' | 'outline' | 'ghost' | 'link';
|
|
79
|
+
/** Renk. */
|
|
80
|
+
export type HuButtonColor = 'primary' | 'neutral' | 'success' | 'warning' | 'danger' | 'info';
|
|
81
|
+
export type HuButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
82
|
+
/**
|
|
83
|
+
* Buton. Native `<button>` ve `<a>` elementlerine uygulanır; böylece form
|
|
84
|
+
* davranışı, routerLink ve erişilebilirlik tarayıcıdan hazır gelir.
|
|
85
|
+
*
|
|
86
|
+
* Görünüm (`variant`) ve renk (`color`) birbirinden bağımsızdır:
|
|
87
|
+
* 5 görünüm × 6 renk.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* <button hu-button>Kaydet</button>
|
|
91
|
+
* <button hu-button variant="soft" color="success">Onayla</button>
|
|
92
|
+
* <button hu-button variant="outline" color="danger" size="sm"><hu-icon name="trash" /> Sil</button>
|
|
93
|
+
* <button hu-button variant="ghost" iconOnly aria-label="Düzenle"><hu-icon name="edit" /></button>
|
|
94
|
+
* <a hu-button variant="link" routerLink="/users">Tüm kullanıcılar</a>
|
|
95
|
+
*/
|
|
96
|
+
export declare class HuButton {
|
|
97
|
+
protected readonly isButton: boolean;
|
|
98
|
+
readonly variant: import("@angular/core").InputSignal<HuButtonVariant>;
|
|
99
|
+
/** Verilmezse: solid/soft/link → primary, outline/ghost → neutral. */
|
|
100
|
+
readonly color: import("@angular/core").InputSignal<HuButtonColor | undefined>;
|
|
101
|
+
readonly size: import("@angular/core").InputSignal<HuButtonSize>;
|
|
102
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
103
|
+
readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
104
|
+
/** Butonu kapsayıcı genişliğine yayar. */
|
|
105
|
+
readonly block: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
106
|
+
/** Kare, yalnızca ikon içeren buton. `aria-label` vermeyi unutmayın. */
|
|
107
|
+
readonly iconOnly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
108
|
+
/** Tam yuvarlak köşeler. */
|
|
109
|
+
readonly pill: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
110
|
+
protected readonly resolvedColor: import("@angular/core").Signal<HuButtonColor>;
|
|
111
|
+
protected readonly isDisabled: import("@angular/core").Signal<boolean>;
|
|
112
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuButton, never>;
|
|
113
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuButton, "button[hu-button], a[hu-button]", never, {
|
|
114
|
+
"variant": {
|
|
115
|
+
"alias": "variant";
|
|
116
|
+
"required": false;
|
|
117
|
+
"isSignal": true;
|
|
118
|
+
};
|
|
119
|
+
"color": {
|
|
120
|
+
"alias": "color";
|
|
121
|
+
"required": false;
|
|
122
|
+
"isSignal": true;
|
|
123
|
+
};
|
|
124
|
+
"size": {
|
|
125
|
+
"alias": "size";
|
|
126
|
+
"required": false;
|
|
127
|
+
"isSignal": true;
|
|
128
|
+
};
|
|
129
|
+
"disabled": {
|
|
130
|
+
"alias": "disabled";
|
|
131
|
+
"required": false;
|
|
132
|
+
"isSignal": true;
|
|
133
|
+
};
|
|
134
|
+
"loading": {
|
|
135
|
+
"alias": "loading";
|
|
136
|
+
"required": false;
|
|
137
|
+
"isSignal": true;
|
|
138
|
+
};
|
|
139
|
+
"block": {
|
|
140
|
+
"alias": "block";
|
|
141
|
+
"required": false;
|
|
142
|
+
"isSignal": true;
|
|
143
|
+
};
|
|
144
|
+
"iconOnly": {
|
|
145
|
+
"alias": "iconOnly";
|
|
146
|
+
"required": false;
|
|
147
|
+
"isSignal": true;
|
|
148
|
+
};
|
|
149
|
+
"pill": {
|
|
150
|
+
"alias": "pill";
|
|
151
|
+
"required": false;
|
|
152
|
+
"isSignal": true;
|
|
153
|
+
};
|
|
154
|
+
}, {}, never, ["*"], true, never>;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Butonları birleşik bir grup olarak gösterir (araç çubuğu, görünüm seçici, sayfalama).
|
|
158
|
+
* Aç/kapa davranışı için butonlara `[attr.aria-pressed]` verin.
|
|
159
|
+
*
|
|
160
|
+
* @example
|
|
161
|
+
* <hu-button-group aria-label="Görünüm">
|
|
162
|
+
* <button hu-button variant="outline" [attr.aria-pressed]="view() === 'list'" (click)="view.set('list')">Liste</button>
|
|
163
|
+
* <button hu-button variant="outline" [attr.aria-pressed]="view() === 'grid'" (click)="view.set('grid')">Kart</button>
|
|
164
|
+
* </hu-button-group>
|
|
165
|
+
*/
|
|
166
|
+
export declare class HuButtonGroup {
|
|
167
|
+
readonly vertical: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
168
|
+
readonly pill: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
169
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuButtonGroup, never>;
|
|
170
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuButtonGroup, "hu-button-group", never, {
|
|
171
|
+
"vertical": {
|
|
172
|
+
"alias": "vertical";
|
|
173
|
+
"required": false;
|
|
174
|
+
"isSignal": true;
|
|
175
|
+
};
|
|
176
|
+
"pill": {
|
|
177
|
+
"alias": "pill";
|
|
178
|
+
"required": false;
|
|
179
|
+
"isSignal": true;
|
|
180
|
+
};
|
|
181
|
+
}, {}, never, ["*"], true, never>;
|
|
182
|
+
}
|
|
183
|
+
/** hu-form-field'ın, içindeki kontrole sunduğu arayüz. */
|
|
184
|
+
export interface HuFormFieldParent {
|
|
185
|
+
readonly describedBy: Signal<string | null>;
|
|
186
|
+
readonly showError: Signal<boolean>;
|
|
187
|
+
}
|
|
188
|
+
export declare const HU_FORM_FIELD: InjectionToken<HuFormFieldParent>;
|
|
189
|
+
/**
|
|
190
|
+
* hu-form-field içine yerleştirilebilen her kontrolün uyguladığı sözleşme
|
|
191
|
+
* (huInput, hu-date-picker, ...). Kendi kontrolünüzü yazarken
|
|
192
|
+
* `providers: [{ provide: HuFormFieldControl, useExisting: MyControl }]` verin.
|
|
193
|
+
*/
|
|
194
|
+
export declare abstract class HuFormFieldControl {
|
|
195
|
+
/** Label'ın `for` özniteliği bu id'ye bağlanır. */
|
|
196
|
+
abstract readonly id: Signal<string>;
|
|
197
|
+
/** Bir Angular form kontrolüne bağlı mı? */
|
|
198
|
+
abstract readonly hasControl: boolean;
|
|
199
|
+
/** Kontrol geçersiz ve kullanıcı etkileşime girmiş. */
|
|
200
|
+
abstract readonly controlErrorVisible: Signal<boolean>;
|
|
201
|
+
abstract readonly errors: Signal<ValidationErrors | null>;
|
|
202
|
+
}
|
|
203
|
+
/** Validator hata anahtarı → kullanıcıya gösterilecek mesaj. */
|
|
204
|
+
export type HuErrorMessages = Record<string, string | ((error: any) => string)>;
|
|
205
|
+
export declare const HU_DEFAULT_ERROR_MESSAGES: HuErrorMessages;
|
|
206
|
+
export declare const HU_ERROR_MESSAGES: InjectionToken<HuErrorMessages>;
|
|
207
|
+
/**
|
|
208
|
+
* Varsayılan validasyon mesajlarını genişletir / değiştirir.
|
|
209
|
+
* @example provideHuErrorMessages({ tckn: 'Geçerli bir T.C. kimlik numarası giriniz.' })
|
|
210
|
+
*/
|
|
211
|
+
export declare function provideHuErrorMessages(messages: HuErrorMessages): Provider;
|
|
212
|
+
export type HuInputSize = 'sm' | 'md' | 'lg';
|
|
213
|
+
/**
|
|
214
|
+
* Native input / textarea / select elementlerine HU görünümünü ve
|
|
215
|
+
* hu-form-field entegrasyonunu (label, hata, aria) ekler.
|
|
216
|
+
*
|
|
217
|
+
* @example <input huInput formControlName="email" placeholder="ornek@example.com" />
|
|
218
|
+
*/
|
|
219
|
+
export declare class HuInput implements HuFormFieldControl, DoCheck {
|
|
220
|
+
private readonly ngControl;
|
|
221
|
+
protected readonly field: import("@ucme-ui/angular").HuFormFieldParent | null;
|
|
222
|
+
readonly id: import("@angular/core").InputSignal<string>;
|
|
223
|
+
readonly size: import("@angular/core").InputSignal<HuInputSize>;
|
|
224
|
+
/** Form kontrolü olmadan hatalı görünümü zorlar. */
|
|
225
|
+
readonly invalid: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
226
|
+
/** Bir Angular form kontrolüne bağlı mı? */
|
|
227
|
+
readonly hasControl: boolean;
|
|
228
|
+
/** Kontrol geçersiz ve kullanıcı etkileşime girmiş. */
|
|
229
|
+
readonly controlErrorVisible: import("@angular/core").WritableSignal<boolean>;
|
|
230
|
+
readonly errors: import("@angular/core").WritableSignal<ValidationErrors | null>;
|
|
231
|
+
protected readonly isInvalid: import("@angular/core").Signal<boolean>;
|
|
232
|
+
ngDoCheck(): void;
|
|
233
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuInput, never>;
|
|
234
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HuInput, "input[huInput], textarea[huInput], select[huInput]", ["huInput"], {
|
|
235
|
+
"id": {
|
|
236
|
+
"alias": "id";
|
|
237
|
+
"required": false;
|
|
238
|
+
"isSignal": true;
|
|
239
|
+
};
|
|
240
|
+
"size": {
|
|
241
|
+
"alias": "size";
|
|
242
|
+
"required": false;
|
|
243
|
+
"isSignal": true;
|
|
244
|
+
};
|
|
245
|
+
"invalid": {
|
|
246
|
+
"alias": "invalid";
|
|
247
|
+
"required": false;
|
|
248
|
+
"isSignal": true;
|
|
249
|
+
};
|
|
250
|
+
}, {}, never, never, true, never>;
|
|
251
|
+
}
|
|
252
|
+
/** Kontrolün soluna yerleşen içerik (ikon, para birimi vb.). */
|
|
253
|
+
export declare class HuPrefix {
|
|
254
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuPrefix, never>;
|
|
255
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HuPrefix, "[huPrefix]", never, {}, {}, never, never, true, never>;
|
|
256
|
+
}
|
|
257
|
+
/** Kontrolün sağına yerleşen içerik. */
|
|
258
|
+
export declare class HuSuffix {
|
|
259
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuSuffix, never>;
|
|
260
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HuSuffix, "[huSuffix]", never, {}, {}, never, never, true, never>;
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Label, yardım metni ve validasyon hatasını bir kontrol etrafında toplar.
|
|
264
|
+
* Reactive form hataları otomatik olarak Türkçe mesaja çevrilir.
|
|
265
|
+
*
|
|
266
|
+
* @example
|
|
267
|
+
* <hu-form-field label="E-posta" hint="Kurumsal adresinizi kullanın" required>
|
|
268
|
+
* <hu-icon huPrefix name="mail" />
|
|
269
|
+
* <input huInput type="email" formControlName="email" />
|
|
270
|
+
* </hu-form-field>
|
|
271
|
+
*/
|
|
272
|
+
export declare class HuFormField implements HuFormFieldParent {
|
|
273
|
+
private readonly messages;
|
|
274
|
+
readonly label: import("@angular/core").InputSignal<string | undefined>;
|
|
275
|
+
readonly hint: import("@angular/core").InputSignal<string | undefined>;
|
|
276
|
+
/** Sabit hata mesajı. Verilmezse validator hatasından üretilir. */
|
|
277
|
+
readonly error: import("@angular/core").InputSignal<string | null | undefined>;
|
|
278
|
+
readonly required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
279
|
+
protected readonly control: import("@angular/core").Signal<HuFormFieldControl | undefined>;
|
|
280
|
+
protected readonly hintId: string;
|
|
281
|
+
protected readonly errorId: string;
|
|
282
|
+
protected readonly errorText: import("@angular/core").Signal<string | null>;
|
|
283
|
+
readonly showError: import("@angular/core").Signal<boolean>;
|
|
284
|
+
readonly describedBy: import("@angular/core").Signal<string | null>;
|
|
285
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuFormField, never>;
|
|
286
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuFormField, "hu-form-field", never, {
|
|
287
|
+
"label": {
|
|
288
|
+
"alias": "label";
|
|
289
|
+
"required": false;
|
|
290
|
+
"isSignal": true;
|
|
291
|
+
};
|
|
292
|
+
"hint": {
|
|
293
|
+
"alias": "hint";
|
|
294
|
+
"required": false;
|
|
295
|
+
"isSignal": true;
|
|
296
|
+
};
|
|
297
|
+
"error": {
|
|
298
|
+
"alias": "error";
|
|
299
|
+
"required": false;
|
|
300
|
+
"isSignal": true;
|
|
301
|
+
};
|
|
302
|
+
"required": {
|
|
303
|
+
"alias": "required";
|
|
304
|
+
"required": false;
|
|
305
|
+
"isSignal": true;
|
|
306
|
+
};
|
|
307
|
+
}, {}, ["control"], ["[huPrefix]", "*", "[huSuffix]"], true, never>;
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Onay kutusu. Reactive/template-driven formlarla ya da `[(checked)]` ile çalışır.
|
|
311
|
+
*
|
|
312
|
+
* `indeterminate` (kısmen seçili) yalnızca görsel bir durumdur ve tıklanınca
|
|
313
|
+
* tarayıcı standardı gereği kalkar; değeri alt seçimlerden hesaplayıp siz verin:
|
|
314
|
+
*
|
|
315
|
+
* @example
|
|
316
|
+
* <hu-checkbox formControlName="kvkk">KVKK metnini okudum</hu-checkbox>
|
|
317
|
+
*
|
|
318
|
+
* <!-- "Tümünü seç" -->
|
|
319
|
+
* <hu-checkbox [checked]="allSelected()" [indeterminate]="someSelected()" (checkedChange)="selectAll($event)">
|
|
320
|
+
* Tümünü seç
|
|
321
|
+
* </hu-checkbox>
|
|
322
|
+
*/
|
|
323
|
+
export declare class HuCheckbox implements ControlValueAccessor {
|
|
324
|
+
readonly checked: import("@angular/core").ModelSignal<boolean>;
|
|
325
|
+
readonly indeterminate: import("@angular/core").ModelSignal<boolean>;
|
|
326
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
327
|
+
readonly name: import("@angular/core").InputSignal<string | undefined>;
|
|
328
|
+
readonly inputId: import("@angular/core").InputSignal<string>;
|
|
329
|
+
/** Görünür etiket yoksa ekran okuyucu etiketi. */
|
|
330
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | null>;
|
|
331
|
+
private readonly formDisabled;
|
|
332
|
+
protected readonly isDisabled: import("@angular/core").Signal<boolean>;
|
|
333
|
+
private onChange;
|
|
334
|
+
protected onTouched: () => void;
|
|
335
|
+
protected onInputChange(event: Event): void;
|
|
336
|
+
writeValue(value: unknown): void;
|
|
337
|
+
registerOnChange(fn: (value: boolean) => void): void;
|
|
338
|
+
registerOnTouched(fn: () => void): void;
|
|
339
|
+
setDisabledState(disabled: boolean): void;
|
|
340
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuCheckbox, never>;
|
|
341
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuCheckbox, "hu-checkbox", never, {
|
|
342
|
+
"checked": {
|
|
343
|
+
"alias": "checked";
|
|
344
|
+
"required": false;
|
|
345
|
+
"isSignal": true;
|
|
346
|
+
};
|
|
347
|
+
"indeterminate": {
|
|
348
|
+
"alias": "indeterminate";
|
|
349
|
+
"required": false;
|
|
350
|
+
"isSignal": true;
|
|
351
|
+
};
|
|
352
|
+
"disabled": {
|
|
353
|
+
"alias": "disabled";
|
|
354
|
+
"required": false;
|
|
355
|
+
"isSignal": true;
|
|
356
|
+
};
|
|
357
|
+
"name": {
|
|
358
|
+
"alias": "name";
|
|
359
|
+
"required": false;
|
|
360
|
+
"isSignal": true;
|
|
361
|
+
};
|
|
362
|
+
"inputId": {
|
|
363
|
+
"alias": "inputId";
|
|
364
|
+
"required": false;
|
|
365
|
+
"isSignal": true;
|
|
366
|
+
};
|
|
367
|
+
"ariaLabel": {
|
|
368
|
+
"alias": "aria-label";
|
|
369
|
+
"required": false;
|
|
370
|
+
"isSignal": true;
|
|
371
|
+
};
|
|
372
|
+
}, {
|
|
373
|
+
"checked": "checkedChange";
|
|
374
|
+
"indeterminate": "indeterminateChange";
|
|
375
|
+
}, never, ["*"], true, never>;
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* Açık/kapalı anahtarı (ayarlar için). Formlarla ya da `[(checked)]` ile çalışır.
|
|
379
|
+
* @example <hu-switch formControlName="emailNotifications">E-posta bildirimleri</hu-switch>
|
|
380
|
+
*/
|
|
381
|
+
export declare class HuSwitch implements ControlValueAccessor {
|
|
382
|
+
readonly checked: import("@angular/core").ModelSignal<boolean>;
|
|
383
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
384
|
+
readonly inputId: import("@angular/core").InputSignal<string>;
|
|
385
|
+
/** Görünür etiket yoksa ekran okuyucu etiketi. */
|
|
386
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | null>;
|
|
387
|
+
private readonly formDisabled;
|
|
388
|
+
protected readonly isDisabled: import("@angular/core").Signal<boolean>;
|
|
389
|
+
private onChange;
|
|
390
|
+
protected onTouched: () => void;
|
|
391
|
+
protected onInputChange(event: Event): void;
|
|
392
|
+
writeValue(value: unknown): void;
|
|
393
|
+
registerOnChange(fn: (value: boolean) => void): void;
|
|
394
|
+
registerOnTouched(fn: () => void): void;
|
|
395
|
+
setDisabledState(disabled: boolean): void;
|
|
396
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuSwitch, never>;
|
|
397
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuSwitch, "hu-switch", never, {
|
|
398
|
+
"checked": {
|
|
399
|
+
"alias": "checked";
|
|
400
|
+
"required": false;
|
|
401
|
+
"isSignal": true;
|
|
402
|
+
};
|
|
403
|
+
"disabled": {
|
|
404
|
+
"alias": "disabled";
|
|
405
|
+
"required": false;
|
|
406
|
+
"isSignal": true;
|
|
407
|
+
};
|
|
408
|
+
"inputId": {
|
|
409
|
+
"alias": "inputId";
|
|
410
|
+
"required": false;
|
|
411
|
+
"isSignal": true;
|
|
412
|
+
};
|
|
413
|
+
"ariaLabel": {
|
|
414
|
+
"alias": "aria-label";
|
|
415
|
+
"required": false;
|
|
416
|
+
"isSignal": true;
|
|
417
|
+
};
|
|
418
|
+
}, {
|
|
419
|
+
"checked": "checkedChange";
|
|
420
|
+
}, never, ["*"], true, never>;
|
|
421
|
+
}
|
|
422
|
+
export interface HuDateRange {
|
|
423
|
+
start: Date | null;
|
|
424
|
+
end: Date | null;
|
|
425
|
+
}
|
|
426
|
+
export declare function startOfDay(date: Date): Date;
|
|
427
|
+
export declare function addDays(date: Date, days: number): Date;
|
|
428
|
+
/** Ay ekler; hedef ayda o gün yoksa ayın son gününe sabitler (31 Ocak + 1 ay = 28/29 Şubat). */
|
|
429
|
+
export declare function addMonths(date: Date, months: number): Date;
|
|
430
|
+
export declare function daysInMonth(year: number, month: number): number;
|
|
431
|
+
export declare function isSameDay(a: Date | null | undefined, b: Date | null | undefined): boolean;
|
|
432
|
+
export declare function isSameMonth(a: Date, b: Date): boolean;
|
|
433
|
+
/** Gün bazında karşılaştırma: a < b → negatif. */
|
|
434
|
+
export declare function compareDays(a: Date, b: Date): number;
|
|
435
|
+
/** Haftanın başlangıcı (varsayılan Pazartesi). */
|
|
436
|
+
export declare function startOfWeek(date: Date, firstDayOfWeek?: number): Date;
|
|
437
|
+
export declare function clampDate(date: Date, min?: Date | null, max?: Date | null): Date;
|
|
438
|
+
export declare function isValidDate(value: unknown): value is Date;
|
|
439
|
+
/** `gg.aa.yyyy` biçiminde yazar. */
|
|
440
|
+
export declare function formatDate(date: Date | null | undefined): string;
|
|
441
|
+
/**
|
|
442
|
+
* Kullanıcı girdisini ayrıştırır. Kabul edilenler: `5.10.2026`, `05/10/2026`,
|
|
443
|
+
* `05-10-2026`, `05102026`. Geçersiz tarihte (31.02.2026 gibi) `null` döner.
|
|
444
|
+
*/
|
|
445
|
+
export declare function parseDate(text: string): Date | null;
|
|
446
|
+
export declare function formatRange(range: HuDateRange | null | undefined): string;
|
|
447
|
+
/** `gg.aa.yyyy – gg.aa.yyyy` ayrıştırır. Başarısızsa `null`. */
|
|
448
|
+
export declare function parseRange(text: string): HuDateRange | null;
|
|
449
|
+
export type HuCalendarMode = 'single' | 'range';
|
|
450
|
+
export type HuCalendarView = 'days' | 'months' | 'years';
|
|
451
|
+
export type HuMarkerVariant = 'primary' | 'info' | 'success' | 'warning' | 'danger';
|
|
452
|
+
/** Takvimde bir güne işaret (nokta) koyar; örn. sınav, tatil, son başvuru. */
|
|
453
|
+
export interface HuCalendarMarker {
|
|
454
|
+
date: Date;
|
|
455
|
+
label?: string;
|
|
456
|
+
variant?: HuMarkerVariant;
|
|
457
|
+
}
|
|
458
|
+
interface DayCell {
|
|
459
|
+
date: Date;
|
|
460
|
+
key: string;
|
|
461
|
+
day: number;
|
|
462
|
+
inMonth: boolean;
|
|
463
|
+
today: boolean;
|
|
464
|
+
selected: boolean;
|
|
465
|
+
rangeStart: boolean;
|
|
466
|
+
rangeEnd: boolean;
|
|
467
|
+
inRange: boolean;
|
|
468
|
+
disabled: boolean;
|
|
469
|
+
markers: HuCalendarMarker[];
|
|
470
|
+
label: string;
|
|
471
|
+
}
|
|
472
|
+
interface PickerCell {
|
|
473
|
+
value: number;
|
|
474
|
+
label: string;
|
|
475
|
+
current: boolean;
|
|
476
|
+
selected: boolean;
|
|
477
|
+
disabled: boolean;
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* Satır içi takvim. Tek gün veya tarih aralığı seçer; ay/yıl görünümü ve
|
|
481
|
+
* tam klavye desteği vardır (oklar, Home/End, PageUp/PageDown, Enter).
|
|
482
|
+
*
|
|
483
|
+
* @example
|
|
484
|
+
* <hu-calendar [(value)]="date" [min]="today" [markers]="events" />
|
|
485
|
+
* <hu-calendar mode="range" [(range)]="period" />
|
|
486
|
+
*/
|
|
487
|
+
export declare class HuCalendar {
|
|
488
|
+
private readonly host;
|
|
489
|
+
private readonly injector;
|
|
490
|
+
readonly mode: import("@angular/core").InputSignal<HuCalendarMode>;
|
|
491
|
+
/** Seçili gün (`mode="single"`). */
|
|
492
|
+
readonly value: import("@angular/core").ModelSignal<Date | null>;
|
|
493
|
+
/** Seçili aralık (`mode="range"`). */
|
|
494
|
+
readonly range: import("@angular/core").ModelSignal<HuDateRange | null>;
|
|
495
|
+
readonly min: import("@angular/core").InputSignal<Date | null>;
|
|
496
|
+
readonly max: import("@angular/core").InputSignal<Date | null>;
|
|
497
|
+
/** `false` döndüren günler seçilemez (örn. hafta sonları). */
|
|
498
|
+
readonly dateFilter: import("@angular/core").InputSignal<((date: Date) => boolean) | null>;
|
|
499
|
+
readonly markers: import("@angular/core").InputSignal<HuCalendarMarker[]>;
|
|
500
|
+
/** Hiç seçim yokken açılacak ay. */
|
|
501
|
+
readonly startAt: import("@angular/core").InputSignal<Date | null>;
|
|
502
|
+
readonly locale: import("@angular/core").InputSignal<string>;
|
|
503
|
+
readonly firstDayOfWeek: import("@angular/core").InputSignal<number>;
|
|
504
|
+
/** Kullanıcı bir gün seçtiğinde. */
|
|
505
|
+
readonly dateSelected: import("@angular/core").OutputEmitterRef<Date>;
|
|
506
|
+
/** Görüntülenen ay değiştiğinde (ayın ilk günü). */
|
|
507
|
+
readonly monthChange: import("@angular/core").OutputEmitterRef<Date>;
|
|
508
|
+
protected readonly today: Date;
|
|
509
|
+
protected readonly gridId: string;
|
|
510
|
+
protected readonly view: import("@angular/core").WritableSignal<HuCalendarView>;
|
|
511
|
+
protected readonly activeDate: import("@angular/core").WritableSignal<Date>;
|
|
512
|
+
protected readonly hoverDate: import("@angular/core").WritableSignal<Date | null>;
|
|
513
|
+
/** Roving tabindex: yalnızca aktif gün Tab ile odaklanabilir. */
|
|
514
|
+
protected readonly activeKey: import("@angular/core").Signal<string>;
|
|
515
|
+
private readonly fmt;
|
|
516
|
+
protected readonly weekdays: import("@angular/core").Signal<{
|
|
517
|
+
short: string;
|
|
518
|
+
long: string;
|
|
519
|
+
}[]>;
|
|
520
|
+
protected readonly headerLabel: import("@angular/core").Signal<string>;
|
|
521
|
+
private readonly markerMap;
|
|
522
|
+
protected readonly weeks: import("@angular/core").Signal<DayCell[][]>;
|
|
523
|
+
/** Aralık seçiminde bitiş henüz seçilmemişken fareyle önizleme. */
|
|
524
|
+
private readonly previewEnd;
|
|
525
|
+
protected readonly months: import("@angular/core").Signal<PickerCell[]>;
|
|
526
|
+
private readonly yearPageStart;
|
|
527
|
+
protected readonly years: import("@angular/core").Signal<PickerCell[]>;
|
|
528
|
+
private readonly selectedAnchor;
|
|
529
|
+
protected readonly prevDisabled: import("@angular/core").Signal<boolean>;
|
|
530
|
+
protected readonly nextDisabled: import("@angular/core").Signal<boolean>;
|
|
531
|
+
constructor();
|
|
532
|
+
select(date: Date): void;
|
|
533
|
+
/** Klavye odağını takvime taşır (tarih seçici açıldığında kullanılır). */
|
|
534
|
+
focusActiveCell(): void;
|
|
535
|
+
/** Görünüm değişince tıklanan buton DOM'dan kalkar; odağı yeni görünüme taşı. */
|
|
536
|
+
private focusAfterRender;
|
|
537
|
+
private focusPicker;
|
|
538
|
+
protected previous(): void;
|
|
539
|
+
protected next(): void;
|
|
540
|
+
private navigate;
|
|
541
|
+
protected toggleView(): void;
|
|
542
|
+
protected pickMonth(month: number): void;
|
|
543
|
+
protected pickYear(year: number): void;
|
|
544
|
+
protected onGridKeydown(event: KeyboardEvent): void;
|
|
545
|
+
private setActive;
|
|
546
|
+
private isSelectable;
|
|
547
|
+
private isRangeAllowed;
|
|
548
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuCalendar, never>;
|
|
549
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuCalendar, "hu-calendar", never, {
|
|
550
|
+
"mode": {
|
|
551
|
+
"alias": "mode";
|
|
552
|
+
"required": false;
|
|
553
|
+
"isSignal": true;
|
|
554
|
+
};
|
|
555
|
+
"value": {
|
|
556
|
+
"alias": "value";
|
|
557
|
+
"required": false;
|
|
558
|
+
"isSignal": true;
|
|
559
|
+
};
|
|
560
|
+
"range": {
|
|
561
|
+
"alias": "range";
|
|
562
|
+
"required": false;
|
|
563
|
+
"isSignal": true;
|
|
564
|
+
};
|
|
565
|
+
"min": {
|
|
566
|
+
"alias": "min";
|
|
567
|
+
"required": false;
|
|
568
|
+
"isSignal": true;
|
|
569
|
+
};
|
|
570
|
+
"max": {
|
|
571
|
+
"alias": "max";
|
|
572
|
+
"required": false;
|
|
573
|
+
"isSignal": true;
|
|
574
|
+
};
|
|
575
|
+
"dateFilter": {
|
|
576
|
+
"alias": "dateFilter";
|
|
577
|
+
"required": false;
|
|
578
|
+
"isSignal": true;
|
|
579
|
+
};
|
|
580
|
+
"markers": {
|
|
581
|
+
"alias": "markers";
|
|
582
|
+
"required": false;
|
|
583
|
+
"isSignal": true;
|
|
584
|
+
};
|
|
585
|
+
"startAt": {
|
|
586
|
+
"alias": "startAt";
|
|
587
|
+
"required": false;
|
|
588
|
+
"isSignal": true;
|
|
589
|
+
};
|
|
590
|
+
"locale": {
|
|
591
|
+
"alias": "locale";
|
|
592
|
+
"required": false;
|
|
593
|
+
"isSignal": true;
|
|
594
|
+
};
|
|
595
|
+
"firstDayOfWeek": {
|
|
596
|
+
"alias": "firstDayOfWeek";
|
|
597
|
+
"required": false;
|
|
598
|
+
"isSignal": true;
|
|
599
|
+
};
|
|
600
|
+
}, {
|
|
601
|
+
"value": "valueChange";
|
|
602
|
+
"range": "rangeChange";
|
|
603
|
+
"dateSelected": "dateSelected";
|
|
604
|
+
"monthChange": "monthChange";
|
|
605
|
+
}, never, never, true, never>;
|
|
606
|
+
}
|
|
607
|
+
export type HuDatePickerValue = Date | HuDateRange | null;
|
|
608
|
+
/**
|
|
609
|
+
* Tarih seçici form kontrolü. Tarih elle (`gg.aa.yyyy`) yazılabilir veya
|
|
610
|
+
* takvimden seçilebilir. `mode="range"` ile değer `{ start, end }` olur.
|
|
611
|
+
* Validasyon hataları: `huDateParse`, `huDateMin`, `huDateMax`, `huDateUnavailable`.
|
|
612
|
+
*
|
|
613
|
+
* @example
|
|
614
|
+
* <hu-form-field label="Başlangıç tarihi">
|
|
615
|
+
* <hu-date-picker formControlName="startDate" [min]="today" />
|
|
616
|
+
* </hu-form-field>
|
|
617
|
+
* <hu-date-picker mode="range" [(value)]="period" placeholder="Tarih aralığı" />
|
|
618
|
+
*/
|
|
619
|
+
export declare class HuDatePicker implements ControlValueAccessor, Validator, HuFormFieldControl, DoCheck {
|
|
620
|
+
private readonly injector;
|
|
621
|
+
private readonly host;
|
|
622
|
+
private readonly win;
|
|
623
|
+
protected readonly field: import("@ucme-ui/angular").HuFormFieldParent | null;
|
|
624
|
+
readonly mode: import("@angular/core").InputSignal<HuCalendarMode>;
|
|
625
|
+
readonly value: import("@angular/core").ModelSignal<HuDatePickerValue>;
|
|
626
|
+
readonly min: import("@angular/core").InputSignal<Date | null>;
|
|
627
|
+
readonly max: import("@angular/core").InputSignal<Date | null>;
|
|
628
|
+
readonly dateFilter: import("@angular/core").InputSignal<((date: Date) => boolean) | null>;
|
|
629
|
+
readonly markers: import("@angular/core").InputSignal<HuCalendarMarker[]>;
|
|
630
|
+
readonly placeholder: import("@angular/core").InputSignal<string | undefined>;
|
|
631
|
+
readonly size: import("@angular/core").InputSignal<HuInputSize>;
|
|
632
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
633
|
+
readonly id: import("@angular/core").InputSignal<string>;
|
|
634
|
+
protected readonly open: import("@angular/core").WritableSignal<boolean>;
|
|
635
|
+
protected readonly text: import("@angular/core").WritableSignal<string>;
|
|
636
|
+
protected readonly panelId: string;
|
|
637
|
+
private readonly parseError;
|
|
638
|
+
private readonly formDisabled;
|
|
639
|
+
protected readonly isDisabled: import("@angular/core").Signal<boolean>;
|
|
640
|
+
private ngControl;
|
|
641
|
+
get hasControl(): boolean;
|
|
642
|
+
readonly controlErrorVisible: import("@angular/core").WritableSignal<boolean>;
|
|
643
|
+
readonly errors: import("@angular/core").WritableSignal<ValidationErrors | null>;
|
|
644
|
+
protected readonly isInvalid: import("@angular/core").Signal<boolean>;
|
|
645
|
+
protected readonly placeholderText: import("@angular/core").Signal<string>;
|
|
646
|
+
protected readonly singleValue: import("@angular/core").Signal<Date | null>;
|
|
647
|
+
protected readonly rangeValue: import("@angular/core").Signal<HuDateRange | null>;
|
|
648
|
+
/** Takvimde aralık seçilirken geçici değer (bitiş seçilene kadar forma yazılmaz). */
|
|
649
|
+
protected readonly draftRange: import("@angular/core").WritableSignal<HuDateRange | null>;
|
|
650
|
+
private readonly input;
|
|
651
|
+
private readonly panel;
|
|
652
|
+
private readonly calendar;
|
|
653
|
+
protected readonly supportsPopover: boolean;
|
|
654
|
+
/** Son fare basışı bileşenin içinde mi? (DOM'dan kalkan butonlar focusout'u yanıltmasın) */
|
|
655
|
+
private pointerInside;
|
|
656
|
+
private onChange;
|
|
657
|
+
private onTouched;
|
|
658
|
+
private onValidatorChange;
|
|
659
|
+
constructor();
|
|
660
|
+
ngDoCheck(): void;
|
|
661
|
+
toggle(): void;
|
|
662
|
+
openPanel(): void;
|
|
663
|
+
close(restoreFocus?: boolean): void;
|
|
664
|
+
private positionPanel;
|
|
665
|
+
protected onCalendarDate(date: Date): void;
|
|
666
|
+
protected onCalendarRange(range: HuDateRange | null): void;
|
|
667
|
+
protected selectToday(): void;
|
|
668
|
+
protected clear(): void;
|
|
669
|
+
protected onInput(event: Event): void;
|
|
670
|
+
protected onInputKeydown(event: KeyboardEvent): void;
|
|
671
|
+
protected onPanelKeydown(event: KeyboardEvent): void;
|
|
672
|
+
private commitText;
|
|
673
|
+
private commit;
|
|
674
|
+
protected onFocusOut(event: FocusEvent): void;
|
|
675
|
+
protected onDocumentPointer(event: MouseEvent): void;
|
|
676
|
+
writeValue(value: unknown): void;
|
|
677
|
+
registerOnChange(fn: (value: HuDatePickerValue) => void): void;
|
|
678
|
+
registerOnTouched(fn: () => void): void;
|
|
679
|
+
setDisabledState(disabled: boolean): void;
|
|
680
|
+
validate(_control: AbstractControl): ValidationErrors | null;
|
|
681
|
+
registerOnValidatorChange(fn: () => void): void;
|
|
682
|
+
private format;
|
|
683
|
+
private resolveControl;
|
|
684
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuDatePicker, never>;
|
|
685
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuDatePicker, "hu-date-picker", never, {
|
|
686
|
+
"mode": {
|
|
687
|
+
"alias": "mode";
|
|
688
|
+
"required": false;
|
|
689
|
+
"isSignal": true;
|
|
690
|
+
};
|
|
691
|
+
"value": {
|
|
692
|
+
"alias": "value";
|
|
693
|
+
"required": false;
|
|
694
|
+
"isSignal": true;
|
|
695
|
+
};
|
|
696
|
+
"min": {
|
|
697
|
+
"alias": "min";
|
|
698
|
+
"required": false;
|
|
699
|
+
"isSignal": true;
|
|
700
|
+
};
|
|
701
|
+
"max": {
|
|
702
|
+
"alias": "max";
|
|
703
|
+
"required": false;
|
|
704
|
+
"isSignal": true;
|
|
705
|
+
};
|
|
706
|
+
"dateFilter": {
|
|
707
|
+
"alias": "dateFilter";
|
|
708
|
+
"required": false;
|
|
709
|
+
"isSignal": true;
|
|
710
|
+
};
|
|
711
|
+
"markers": {
|
|
712
|
+
"alias": "markers";
|
|
713
|
+
"required": false;
|
|
714
|
+
"isSignal": true;
|
|
715
|
+
};
|
|
716
|
+
"placeholder": {
|
|
717
|
+
"alias": "placeholder";
|
|
718
|
+
"required": false;
|
|
719
|
+
"isSignal": true;
|
|
720
|
+
};
|
|
721
|
+
"size": {
|
|
722
|
+
"alias": "size";
|
|
723
|
+
"required": false;
|
|
724
|
+
"isSignal": true;
|
|
725
|
+
};
|
|
726
|
+
"disabled": {
|
|
727
|
+
"alias": "disabled";
|
|
728
|
+
"required": false;
|
|
729
|
+
"isSignal": true;
|
|
730
|
+
};
|
|
731
|
+
"id": {
|
|
732
|
+
"alias": "id";
|
|
733
|
+
"required": false;
|
|
734
|
+
"isSignal": true;
|
|
735
|
+
};
|
|
736
|
+
}, {
|
|
737
|
+
"value": "valueChange";
|
|
738
|
+
}, never, never, true, never>;
|
|
739
|
+
}
|
|
740
|
+
export type HuSpinnerSize = 'sm' | 'md' | 'lg';
|
|
741
|
+
/** @example <hu-spinner /> <hu-spinner size="lg" label="Veriler yükleniyor" /> */
|
|
742
|
+
export declare class HuSpinner {
|
|
743
|
+
readonly size: import("@angular/core").InputSignal<HuSpinnerSize>;
|
|
744
|
+
readonly label: import("@angular/core").InputSignal<string>;
|
|
745
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuSpinner, never>;
|
|
746
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuSpinner, "hu-spinner", never, {
|
|
747
|
+
"size": {
|
|
748
|
+
"alias": "size";
|
|
749
|
+
"required": false;
|
|
750
|
+
"isSignal": true;
|
|
751
|
+
};
|
|
752
|
+
"label": {
|
|
753
|
+
"alias": "label";
|
|
754
|
+
"required": false;
|
|
755
|
+
"isSignal": true;
|
|
756
|
+
};
|
|
757
|
+
}, {}, never, never, true, never>;
|
|
758
|
+
}
|
|
759
|
+
export type HuStatusVariant = 'info' | 'success' | 'warning' | 'danger';
|
|
760
|
+
export declare const HU_STATUS_ICONS: Record<HuStatusVariant, string>;
|
|
761
|
+
/**
|
|
762
|
+
* Sayfa içi bilgi / uyarı mesajı.
|
|
763
|
+
* @example <hu-alert variant="warning" title="Dikkat">Dönem kayıtları 5 gün içinde kapanacak.</hu-alert>
|
|
764
|
+
*/
|
|
765
|
+
export declare class HuAlert {
|
|
766
|
+
readonly variant: import("@angular/core").InputSignal<HuStatusVariant>;
|
|
767
|
+
readonly title: import("@angular/core").InputSignal<string | undefined>;
|
|
768
|
+
readonly dismissible: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
769
|
+
readonly dismissed: import("@angular/core").WritableSignal<boolean>;
|
|
770
|
+
readonly closed: import("@angular/core").OutputEmitterRef<void>;
|
|
771
|
+
protected readonly icon: import("@angular/core").Signal<string>;
|
|
772
|
+
dismiss(): void;
|
|
773
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuAlert, never>;
|
|
774
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuAlert, "hu-alert", never, {
|
|
775
|
+
"variant": {
|
|
776
|
+
"alias": "variant";
|
|
777
|
+
"required": false;
|
|
778
|
+
"isSignal": true;
|
|
779
|
+
};
|
|
780
|
+
"title": {
|
|
781
|
+
"alias": "title";
|
|
782
|
+
"required": false;
|
|
783
|
+
"isSignal": true;
|
|
784
|
+
};
|
|
785
|
+
"dismissible": {
|
|
786
|
+
"alias": "dismissible";
|
|
787
|
+
"required": false;
|
|
788
|
+
"isSignal": true;
|
|
789
|
+
};
|
|
790
|
+
}, {
|
|
791
|
+
"closed": "closed";
|
|
792
|
+
}, never, ["*"], true, never>;
|
|
793
|
+
}
|
|
794
|
+
export type HuBadgeVariant = 'neutral' | 'primary' | 'info' | 'success' | 'warning' | 'danger';
|
|
795
|
+
/**
|
|
796
|
+
* Durum etiketi.
|
|
797
|
+
* @example <hu-badge variant="success" dot>Aktif</hu-badge>
|
|
798
|
+
*/
|
|
799
|
+
export declare class HuBadge {
|
|
800
|
+
readonly variant: import("@angular/core").InputSignal<HuBadgeVariant>;
|
|
801
|
+
readonly dot: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
802
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuBadge, never>;
|
|
803
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuBadge, "hu-badge", never, {
|
|
804
|
+
"variant": {
|
|
805
|
+
"alias": "variant";
|
|
806
|
+
"required": false;
|
|
807
|
+
"isSignal": true;
|
|
808
|
+
};
|
|
809
|
+
"dot": {
|
|
810
|
+
"alias": "dot";
|
|
811
|
+
"required": false;
|
|
812
|
+
"isSignal": true;
|
|
813
|
+
};
|
|
814
|
+
}, {}, never, ["*"], true, never>;
|
|
815
|
+
}
|
|
816
|
+
export type HuAvatarSize = 'sm' | 'md' | 'lg';
|
|
817
|
+
/**
|
|
818
|
+
* Kullanıcı avatarı. Görsel yoksa veya yüklenemezse baş harfleri gösterir.
|
|
819
|
+
* @example <hu-avatar name="Ayşe Yılmaz" /> <hu-avatar name="Ali Can" [src]="user.photo" size="lg" />
|
|
820
|
+
*/
|
|
821
|
+
export declare class HuAvatar {
|
|
822
|
+
readonly name: import("@angular/core").InputSignal<string>;
|
|
823
|
+
readonly src: import("@angular/core").InputSignal<string | null | undefined>;
|
|
824
|
+
readonly size: import("@angular/core").InputSignal<HuAvatarSize>;
|
|
825
|
+
protected readonly failed: import("@angular/core").WritableSignal<boolean>;
|
|
826
|
+
protected readonly initials: import("@angular/core").Signal<string>;
|
|
827
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuAvatar, never>;
|
|
828
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuAvatar, "hu-avatar", never, {
|
|
829
|
+
"name": {
|
|
830
|
+
"alias": "name";
|
|
831
|
+
"required": false;
|
|
832
|
+
"isSignal": true;
|
|
833
|
+
};
|
|
834
|
+
"src": {
|
|
835
|
+
"alias": "src";
|
|
836
|
+
"required": false;
|
|
837
|
+
"isSignal": true;
|
|
838
|
+
};
|
|
839
|
+
"size": {
|
|
840
|
+
"alias": "size";
|
|
841
|
+
"required": false;
|
|
842
|
+
"isSignal": true;
|
|
843
|
+
};
|
|
844
|
+
}, {}, never, never, true, never>;
|
|
845
|
+
}
|
|
846
|
+
export interface HuToastOptions {
|
|
847
|
+
message: string;
|
|
848
|
+
title?: string;
|
|
849
|
+
variant?: HuStatusVariant;
|
|
850
|
+
/** Milisaniye. 0 verilirse kullanıcı kapatana kadar kalır. */
|
|
851
|
+
duration?: number;
|
|
852
|
+
}
|
|
853
|
+
export interface HuToast extends Required<Omit<HuToastOptions, 'title'>> {
|
|
854
|
+
id: number;
|
|
855
|
+
title?: string;
|
|
856
|
+
}
|
|
857
|
+
/**
|
|
858
|
+
* Geçici bildirimler. Uygulamada bir kez `<hu-toaster />` yerleştirilmelidir.
|
|
859
|
+
* @example inject(HuToastService).success('Kayıt güncellendi.');
|
|
860
|
+
*/
|
|
861
|
+
export declare class HuToastService {
|
|
862
|
+
private nextId;
|
|
863
|
+
private readonly timers;
|
|
864
|
+
private readonly _toasts;
|
|
865
|
+
readonly toasts: import("@angular/core").Signal<HuToast[]>;
|
|
866
|
+
show(options: HuToastOptions): number;
|
|
867
|
+
info(message: string, title?: string): number;
|
|
868
|
+
success(message: string, title?: string): number;
|
|
869
|
+
warning(message: string, title?: string): number;
|
|
870
|
+
error(message: string, title?: string): number;
|
|
871
|
+
dismiss(id: number): void;
|
|
872
|
+
clear(): void;
|
|
873
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuToastService, never>;
|
|
874
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
875
|
+
}
|
|
876
|
+
export type HuToasterPosition = 'top-right' | 'top-center' | 'bottom-right' | 'bottom-center';
|
|
877
|
+
/** Toast'ların gösterildiği alan. Kök componentte bir kez kullanın: `<hu-toaster />` */
|
|
878
|
+
export declare class HuToaster {
|
|
879
|
+
protected readonly service: HuToastService;
|
|
880
|
+
protected readonly icons: Record<import("@ucme-ui/angular").HuStatusVariant, string>;
|
|
881
|
+
readonly position: import("@angular/core").InputSignal<HuToasterPosition>;
|
|
882
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuToaster, never>;
|
|
883
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuToaster, "hu-toaster", never, {
|
|
884
|
+
"position": {
|
|
885
|
+
"alias": "position";
|
|
886
|
+
"required": false;
|
|
887
|
+
"isSignal": true;
|
|
888
|
+
};
|
|
889
|
+
}, {}, never, never, true, never>;
|
|
890
|
+
}
|
|
891
|
+
export type HuDialogSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
892
|
+
/** Dialog alt kısmındaki aksiyon alanı. */
|
|
893
|
+
export declare class HuDialogFooter {
|
|
894
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuDialogFooter, never>;
|
|
895
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HuDialogFooter, "[huDialogFooter]", never, {}, {}, never, never, true, never>;
|
|
896
|
+
}
|
|
897
|
+
/**
|
|
898
|
+
* Modal pencere. Native `<dialog>` elementini kullanır; odak hapsi, Esc ile
|
|
899
|
+
* kapanma ve üst katman (top layer) tarayıcıdan gelir.
|
|
900
|
+
*
|
|
901
|
+
* @example
|
|
902
|
+
* <hu-dialog [(open)]="editOpen" title="Kullanıcıyı düzenle">
|
|
903
|
+
* ...form...
|
|
904
|
+
* <div huDialogFooter>
|
|
905
|
+
* <button hu-button variant="outline" (click)="editOpen.set(false)">Vazgeç</button>
|
|
906
|
+
* <button hu-button (click)="save()">Kaydet</button>
|
|
907
|
+
* </div>
|
|
908
|
+
* </hu-dialog>
|
|
909
|
+
*/
|
|
910
|
+
export declare class HuDialog {
|
|
911
|
+
readonly open: import("@angular/core").ModelSignal<boolean>;
|
|
912
|
+
readonly title: import("@angular/core").InputSignal<string>;
|
|
913
|
+
readonly description: import("@angular/core").InputSignal<string | undefined>;
|
|
914
|
+
readonly size: import("@angular/core").InputSignal<HuDialogSize>;
|
|
915
|
+
readonly closeOnBackdrop: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
916
|
+
readonly closeOnEsc: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
917
|
+
readonly closed: import("@angular/core").OutputEmitterRef<void>;
|
|
918
|
+
protected readonly titleId: string;
|
|
919
|
+
protected pointerDownOnBackdrop: boolean;
|
|
920
|
+
private readonly dialogRef;
|
|
921
|
+
constructor();
|
|
922
|
+
close(): void;
|
|
923
|
+
protected onNativeClose(): void;
|
|
924
|
+
protected onCancel(event: Event): void;
|
|
925
|
+
protected onClick(event: MouseEvent): void;
|
|
926
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuDialog, never>;
|
|
927
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuDialog, "hu-dialog", never, {
|
|
928
|
+
"open": {
|
|
929
|
+
"alias": "open";
|
|
930
|
+
"required": false;
|
|
931
|
+
"isSignal": true;
|
|
932
|
+
};
|
|
933
|
+
"title": {
|
|
934
|
+
"alias": "title";
|
|
935
|
+
"required": false;
|
|
936
|
+
"isSignal": true;
|
|
937
|
+
};
|
|
938
|
+
"description": {
|
|
939
|
+
"alias": "description";
|
|
940
|
+
"required": false;
|
|
941
|
+
"isSignal": true;
|
|
942
|
+
};
|
|
943
|
+
"size": {
|
|
944
|
+
"alias": "size";
|
|
945
|
+
"required": false;
|
|
946
|
+
"isSignal": true;
|
|
947
|
+
};
|
|
948
|
+
"closeOnBackdrop": {
|
|
949
|
+
"alias": "closeOnBackdrop";
|
|
950
|
+
"required": false;
|
|
951
|
+
"isSignal": true;
|
|
952
|
+
};
|
|
953
|
+
"closeOnEsc": {
|
|
954
|
+
"alias": "closeOnEsc";
|
|
955
|
+
"required": false;
|
|
956
|
+
"isSignal": true;
|
|
957
|
+
};
|
|
958
|
+
}, {
|
|
959
|
+
"open": "openChange";
|
|
960
|
+
"closed": "closed";
|
|
961
|
+
}, never, ["*", "[huDialogFooter]"], true, never>;
|
|
962
|
+
}
|
|
963
|
+
/** Kart başlığının sağındaki aksiyonlar. */
|
|
964
|
+
export declare class HuCardActions {
|
|
965
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuCardActions, never>;
|
|
966
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HuCardActions, "[huCardActions]", never, {}, {}, never, never, true, never>;
|
|
967
|
+
}
|
|
968
|
+
/** Kart alt bilgisi. */
|
|
969
|
+
export declare class HuCardFooter {
|
|
970
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuCardFooter, never>;
|
|
971
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HuCardFooter, "[huCardFooter]", never, {}, {}, never, never, true, never>;
|
|
972
|
+
}
|
|
973
|
+
export type HuCardPadding = 'none' | 'sm' | 'md';
|
|
974
|
+
/**
|
|
975
|
+
* İçerik kartı.
|
|
976
|
+
* @example
|
|
977
|
+
* <hu-card title="Son başvurular" subtitle="Son 7 gün">
|
|
978
|
+
* <button huCardActions hu-button variant="ghost" size="sm">Tümü</button>
|
|
979
|
+
* ...
|
|
980
|
+
* <div huCardFooter>...</div>
|
|
981
|
+
* </hu-card>
|
|
982
|
+
*/
|
|
983
|
+
export declare class HuCard {
|
|
984
|
+
readonly title: import("@angular/core").InputSignal<string | undefined>;
|
|
985
|
+
readonly subtitle: import("@angular/core").InputSignal<string | undefined>;
|
|
986
|
+
readonly padding: import("@angular/core").InputSignal<HuCardPadding>;
|
|
987
|
+
private readonly actions;
|
|
988
|
+
protected readonly hasHeader: import("@angular/core").Signal<boolean>;
|
|
989
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuCard, never>;
|
|
990
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuCard, "hu-card", never, {
|
|
991
|
+
"title": {
|
|
992
|
+
"alias": "title";
|
|
993
|
+
"required": false;
|
|
994
|
+
"isSignal": true;
|
|
995
|
+
};
|
|
996
|
+
"subtitle": {
|
|
997
|
+
"alias": "subtitle";
|
|
998
|
+
"required": false;
|
|
999
|
+
"isSignal": true;
|
|
1000
|
+
};
|
|
1001
|
+
"padding": {
|
|
1002
|
+
"alias": "padding";
|
|
1003
|
+
"required": false;
|
|
1004
|
+
"isSignal": true;
|
|
1005
|
+
};
|
|
1006
|
+
}, {}, ["actions"], ["[huCardActions]", "*", "[huCardFooter]"], true, never>;
|
|
1007
|
+
}
|
|
1008
|
+
export type HuSortDirection = 'asc' | 'desc' | '';
|
|
1009
|
+
export interface HuSort {
|
|
1010
|
+
key: string;
|
|
1011
|
+
direction: HuSortDirection;
|
|
1012
|
+
}
|
|
1013
|
+
export interface HuColumn<T = any> {
|
|
1014
|
+
/** Satır nesnesindeki alan adı veya `huCell` şablonunun anahtarı. */
|
|
1015
|
+
key: string;
|
|
1016
|
+
header: string;
|
|
1017
|
+
sortable?: boolean;
|
|
1018
|
+
align?: 'start' | 'center' | 'end';
|
|
1019
|
+
/** Örn. '120px' veya '20%'. */
|
|
1020
|
+
width?: string;
|
|
1021
|
+
/** Hücre değeri / sıralama değeri için özel erişimci. */
|
|
1022
|
+
value?: (row: T) => unknown;
|
|
1023
|
+
/** Dar ekranlarda gizlenir. */
|
|
1024
|
+
hideOnMobile?: boolean;
|
|
1025
|
+
}
|
|
1026
|
+
export interface HuCellContext<T = any> {
|
|
1027
|
+
$implicit: T;
|
|
1028
|
+
index: number;
|
|
1029
|
+
}
|
|
1030
|
+
/**
|
|
1031
|
+
* Bir sütun için özel hücre şablonu. `huCellOf` ile tabloya verilen veriyi
|
|
1032
|
+
* bağlarsanız `let-row` değişkeni tip güvenli olur.
|
|
1033
|
+
* @example <ng-template huCell="status" [huCellOf]="users()" let-row><hu-badge>{{ row.status }}</hu-badge></ng-template>
|
|
1034
|
+
*/
|
|
1035
|
+
export declare class HuCellDef<T = any> {
|
|
1036
|
+
readonly key: import("@angular/core").InputSignal<string>;
|
|
1037
|
+
/** Yalnızca tip çıkarımı içindir; çalışma zamanında kullanılmaz. */
|
|
1038
|
+
readonly of: import("@angular/core").InputSignal<readonly T[] | undefined>;
|
|
1039
|
+
readonly template: TemplateRef<HuCellContext<T>>;
|
|
1040
|
+
static ngTemplateContextGuard<T>(_dir: HuCellDef<T>, ctx: unknown): ctx is HuCellContext<T>;
|
|
1041
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuCellDef<any>, never>;
|
|
1042
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HuCellDef<any>, "ng-template[huCell]", never, {
|
|
1043
|
+
"key": {
|
|
1044
|
+
"alias": "huCell";
|
|
1045
|
+
"required": true;
|
|
1046
|
+
"isSignal": true;
|
|
1047
|
+
};
|
|
1048
|
+
"of": {
|
|
1049
|
+
"alias": "huCellOf";
|
|
1050
|
+
"required": false;
|
|
1051
|
+
"isSignal": true;
|
|
1052
|
+
};
|
|
1053
|
+
}, {}, never, never, true, never>;
|
|
1054
|
+
}
|
|
1055
|
+
/**
|
|
1056
|
+
* Veri tablosu: sıralama, özel hücre şablonları, yükleniyor ve boş durumları.
|
|
1057
|
+
* Sayfalama için `hu-paginator` ile birlikte kullanın.
|
|
1058
|
+
*
|
|
1059
|
+
* @example
|
|
1060
|
+
* <hu-table [data]="users()" [columns]="columns" [(sort)]="sort">
|
|
1061
|
+
* <ng-template huCell="status" let-user>
|
|
1062
|
+
* <hu-badge [variant]="user.active ? 'success' : 'neutral'">{{ user.active ? 'Aktif' : 'Pasif' }}</hu-badge>
|
|
1063
|
+
* </ng-template>
|
|
1064
|
+
* </hu-table>
|
|
1065
|
+
*/
|
|
1066
|
+
export declare class HuTable<T = any> {
|
|
1067
|
+
readonly data: import("@angular/core").InputSignal<readonly T[]>;
|
|
1068
|
+
readonly columns: import("@angular/core").InputSignal<HuColumn<T>[]>;
|
|
1069
|
+
readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
1070
|
+
readonly emptyText: import("@angular/core").InputSignal<string>;
|
|
1071
|
+
/** `client`: tablo kendisi sıralar. `server`: yalnızca `sort` değişir, veriyi siz getirirsiniz. */
|
|
1072
|
+
readonly sortMode: import("@angular/core").InputSignal<"client" | "server">;
|
|
1073
|
+
readonly sort: import("@angular/core").ModelSignal<HuSort>;
|
|
1074
|
+
readonly trackBy: import("@angular/core").InputSignal<(row: T) => unknown>;
|
|
1075
|
+
readonly striped: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
1076
|
+
readonly dense: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
1077
|
+
readonly stickyHeader: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
1078
|
+
readonly clickableRows: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
1079
|
+
readonly rowClick: import("@angular/core").OutputEmitterRef<T>;
|
|
1080
|
+
private readonly cellDefs;
|
|
1081
|
+
protected readonly templates: import("@angular/core").Signal<Map<string, TemplateRef<HuCellContext<any>>>>;
|
|
1082
|
+
protected readonly rows: import("@angular/core").Signal<readonly T[]>;
|
|
1083
|
+
protected cellValue(row: T, column: HuColumn<T>): unknown;
|
|
1084
|
+
protected toggleSort(column: HuColumn<T>): void;
|
|
1085
|
+
protected sortIcon(column: HuColumn<T>): string;
|
|
1086
|
+
protected ariaSort(column: HuColumn<T>): string | null;
|
|
1087
|
+
protected onRowClick(row: T): void;
|
|
1088
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuTable<any>, never>;
|
|
1089
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuTable<any>, "hu-table", never, {
|
|
1090
|
+
"data": {
|
|
1091
|
+
"alias": "data";
|
|
1092
|
+
"required": false;
|
|
1093
|
+
"isSignal": true;
|
|
1094
|
+
};
|
|
1095
|
+
"columns": {
|
|
1096
|
+
"alias": "columns";
|
|
1097
|
+
"required": true;
|
|
1098
|
+
"isSignal": true;
|
|
1099
|
+
};
|
|
1100
|
+
"loading": {
|
|
1101
|
+
"alias": "loading";
|
|
1102
|
+
"required": false;
|
|
1103
|
+
"isSignal": true;
|
|
1104
|
+
};
|
|
1105
|
+
"emptyText": {
|
|
1106
|
+
"alias": "emptyText";
|
|
1107
|
+
"required": false;
|
|
1108
|
+
"isSignal": true;
|
|
1109
|
+
};
|
|
1110
|
+
"sortMode": {
|
|
1111
|
+
"alias": "sortMode";
|
|
1112
|
+
"required": false;
|
|
1113
|
+
"isSignal": true;
|
|
1114
|
+
};
|
|
1115
|
+
"sort": {
|
|
1116
|
+
"alias": "sort";
|
|
1117
|
+
"required": false;
|
|
1118
|
+
"isSignal": true;
|
|
1119
|
+
};
|
|
1120
|
+
"trackBy": {
|
|
1121
|
+
"alias": "trackBy";
|
|
1122
|
+
"required": false;
|
|
1123
|
+
"isSignal": true;
|
|
1124
|
+
};
|
|
1125
|
+
"striped": {
|
|
1126
|
+
"alias": "striped";
|
|
1127
|
+
"required": false;
|
|
1128
|
+
"isSignal": true;
|
|
1129
|
+
};
|
|
1130
|
+
"dense": {
|
|
1131
|
+
"alias": "dense";
|
|
1132
|
+
"required": false;
|
|
1133
|
+
"isSignal": true;
|
|
1134
|
+
};
|
|
1135
|
+
"stickyHeader": {
|
|
1136
|
+
"alias": "stickyHeader";
|
|
1137
|
+
"required": false;
|
|
1138
|
+
"isSignal": true;
|
|
1139
|
+
};
|
|
1140
|
+
"clickableRows": {
|
|
1141
|
+
"alias": "clickableRows";
|
|
1142
|
+
"required": false;
|
|
1143
|
+
"isSignal": true;
|
|
1144
|
+
};
|
|
1145
|
+
}, {
|
|
1146
|
+
"sort": "sortChange";
|
|
1147
|
+
"rowClick": "rowClick";
|
|
1148
|
+
}, ["cellDefs"], ["[huTableEmpty]"], true, never>;
|
|
1149
|
+
}
|
|
1150
|
+
type PageItem = number | 'gap-start' | 'gap-end';
|
|
1151
|
+
/**
|
|
1152
|
+
* Sayfalama.
|
|
1153
|
+
* @example <hu-paginator [length]="total()" [(pageIndex)]="page" [(pageSize)]="size" />
|
|
1154
|
+
*/
|
|
1155
|
+
export declare class HuPaginator {
|
|
1156
|
+
readonly length: import("@angular/core").InputSignal<number>;
|
|
1157
|
+
readonly pageIndex: import("@angular/core").ModelSignal<number>;
|
|
1158
|
+
readonly pageSize: import("@angular/core").ModelSignal<number>;
|
|
1159
|
+
readonly pageSizeOptions: import("@angular/core").InputSignal<number[]>;
|
|
1160
|
+
protected readonly pageCount: import("@angular/core").Signal<number>;
|
|
1161
|
+
protected readonly rangeLabel: import("@angular/core").Signal<string>;
|
|
1162
|
+
/** Mevcut sayfanın etrafında en fazla 7 öğe (ilk, son, komşular ve boşluklar). */
|
|
1163
|
+
protected readonly pages: import("@angular/core").Signal<PageItem[]>;
|
|
1164
|
+
protected goTo(index: number): void;
|
|
1165
|
+
protected changePageSize(event: Event): void;
|
|
1166
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuPaginator, never>;
|
|
1167
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuPaginator, "hu-paginator", never, {
|
|
1168
|
+
"length": {
|
|
1169
|
+
"alias": "length";
|
|
1170
|
+
"required": true;
|
|
1171
|
+
"isSignal": true;
|
|
1172
|
+
};
|
|
1173
|
+
"pageIndex": {
|
|
1174
|
+
"alias": "pageIndex";
|
|
1175
|
+
"required": false;
|
|
1176
|
+
"isSignal": true;
|
|
1177
|
+
};
|
|
1178
|
+
"pageSize": {
|
|
1179
|
+
"alias": "pageSize";
|
|
1180
|
+
"required": false;
|
|
1181
|
+
"isSignal": true;
|
|
1182
|
+
};
|
|
1183
|
+
"pageSizeOptions": {
|
|
1184
|
+
"alias": "pageSizeOptions";
|
|
1185
|
+
"required": false;
|
|
1186
|
+
"isSignal": true;
|
|
1187
|
+
};
|
|
1188
|
+
}, {
|
|
1189
|
+
"pageIndex": "pageIndexChange";
|
|
1190
|
+
"pageSize": "pageSizeChange";
|
|
1191
|
+
}, never, never, true, never>;
|
|
1192
|
+
}
|
|
1193
|
+
/** Tek bir sekme. İçeriği yalnızca aktifken render edilir. */
|
|
1194
|
+
export declare class HuTab {
|
|
1195
|
+
readonly label: import("@angular/core").InputSignal<string>;
|
|
1196
|
+
readonly icon: import("@angular/core").InputSignal<string | undefined>;
|
|
1197
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
1198
|
+
readonly content: import("@angular/core").Signal<TemplateRef<any>>;
|
|
1199
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuTab, never>;
|
|
1200
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuTab, "hu-tab", never, {
|
|
1201
|
+
"label": {
|
|
1202
|
+
"alias": "label";
|
|
1203
|
+
"required": true;
|
|
1204
|
+
"isSignal": true;
|
|
1205
|
+
};
|
|
1206
|
+
"icon": {
|
|
1207
|
+
"alias": "icon";
|
|
1208
|
+
"required": false;
|
|
1209
|
+
"isSignal": true;
|
|
1210
|
+
};
|
|
1211
|
+
"disabled": {
|
|
1212
|
+
"alias": "disabled";
|
|
1213
|
+
"required": false;
|
|
1214
|
+
"isSignal": true;
|
|
1215
|
+
};
|
|
1216
|
+
}, {}, never, ["*"], true, never>;
|
|
1217
|
+
}
|
|
1218
|
+
export type HuTabsVariant = 'line' | 'pills';
|
|
1219
|
+
/**
|
|
1220
|
+
* Sekmeler. Ok tuşları, Home/End ile klavye gezintisi destekler.
|
|
1221
|
+
* @example
|
|
1222
|
+
* <hu-tabs [(selectedIndex)]="tab">
|
|
1223
|
+
* <hu-tab label="Profil" icon="user">...</hu-tab>
|
|
1224
|
+
* <hu-tab label="Güvenlik" icon="lock">...</hu-tab>
|
|
1225
|
+
* </hu-tabs>
|
|
1226
|
+
*/
|
|
1227
|
+
export declare class HuTabs {
|
|
1228
|
+
private readonly host;
|
|
1229
|
+
readonly selectedIndex: import("@angular/core").ModelSignal<number>;
|
|
1230
|
+
readonly variant: import("@angular/core").InputSignal<HuTabsVariant>;
|
|
1231
|
+
protected readonly tabs: import("@angular/core").Signal<readonly HuTab[]>;
|
|
1232
|
+
protected readonly baseId: string;
|
|
1233
|
+
protected readonly activeIndex: import("@angular/core").Signal<number>;
|
|
1234
|
+
protected readonly activeTab: import("@angular/core").Signal<HuTab>;
|
|
1235
|
+
select(index: number): void;
|
|
1236
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
1237
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuTabs, never>;
|
|
1238
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuTabs, "hu-tabs", never, {
|
|
1239
|
+
"selectedIndex": {
|
|
1240
|
+
"alias": "selectedIndex";
|
|
1241
|
+
"required": false;
|
|
1242
|
+
"isSignal": true;
|
|
1243
|
+
};
|
|
1244
|
+
"variant": {
|
|
1245
|
+
"alias": "variant";
|
|
1246
|
+
"required": false;
|
|
1247
|
+
"isSignal": true;
|
|
1248
|
+
};
|
|
1249
|
+
}, {
|
|
1250
|
+
"selectedIndex": "selectedIndexChange";
|
|
1251
|
+
}, ["tabs"], never, true, never>;
|
|
1252
|
+
}
|
|
1253
|
+
export interface HuBreadcrumbItem {
|
|
1254
|
+
label: string;
|
|
1255
|
+
link?: string | unknown[];
|
|
1256
|
+
icon?: string;
|
|
1257
|
+
}
|
|
1258
|
+
/** @example <hu-breadcrumb [items]="[{ label: 'Ana Sayfa', link: '/' }, { label: 'Kullanıcılar' }]" /> */
|
|
1259
|
+
export declare class HuBreadcrumb {
|
|
1260
|
+
readonly items: import("@angular/core").InputSignal<HuBreadcrumbItem[]>;
|
|
1261
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuBreadcrumb, never>;
|
|
1262
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuBreadcrumb, "hu-breadcrumb", never, {
|
|
1263
|
+
"items": {
|
|
1264
|
+
"alias": "items";
|
|
1265
|
+
"required": false;
|
|
1266
|
+
"isSignal": true;
|
|
1267
|
+
};
|
|
1268
|
+
}, {}, never, never, true, never>;
|
|
1269
|
+
}
|
|
1270
|
+
export type HuDropdownAlign = 'start' | 'end';
|
|
1271
|
+
/**
|
|
1272
|
+
* Açılır menü (dropdown). Tetikleyiciye `huDropdownTrigger`, öğelere `huDropdownItem` verin.
|
|
1273
|
+
*
|
|
1274
|
+
* @example
|
|
1275
|
+
* <hu-dropdown align="end">
|
|
1276
|
+
* <button huDropdownTrigger hu-button variant="ghost" iconOnly aria-label="İşlemler"><hu-icon name="more-vertical" /></button>
|
|
1277
|
+
* <button huDropdownItem (click)="edit()"><hu-icon name="edit" /> Düzenle</button>
|
|
1278
|
+
* <hr class="hu-dropdown-divider" />
|
|
1279
|
+
* <button huDropdownItem class="hu-dropdown-item--danger" (click)="remove()"><hu-icon name="trash" /> Sil</button>
|
|
1280
|
+
* </hu-dropdown>
|
|
1281
|
+
*/
|
|
1282
|
+
export declare class HuDropdown {
|
|
1283
|
+
private readonly host;
|
|
1284
|
+
private readonly injector;
|
|
1285
|
+
readonly align: import("@angular/core").InputSignal<HuDropdownAlign>;
|
|
1286
|
+
readonly isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
1287
|
+
readonly panelId: string;
|
|
1288
|
+
toggle(): void;
|
|
1289
|
+
openMenu(): void;
|
|
1290
|
+
close(restoreFocus?: boolean): void;
|
|
1291
|
+
protected onDocumentClick(event: MouseEvent): void;
|
|
1292
|
+
protected onPanelKeydown(event: KeyboardEvent): void;
|
|
1293
|
+
private items;
|
|
1294
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuDropdown, never>;
|
|
1295
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuDropdown, "hu-dropdown", never, {
|
|
1296
|
+
"align": {
|
|
1297
|
+
"alias": "align";
|
|
1298
|
+
"required": false;
|
|
1299
|
+
"isSignal": true;
|
|
1300
|
+
};
|
|
1301
|
+
}, {}, never, ["[huDropdownTrigger]", "*"], true, never>;
|
|
1302
|
+
}
|
|
1303
|
+
export declare class HuDropdownTrigger {
|
|
1304
|
+
protected readonly menu: HuDropdown;
|
|
1305
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuDropdownTrigger, never>;
|
|
1306
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HuDropdownTrigger, "[huDropdownTrigger]", never, {}, {}, never, never, true, never>;
|
|
1307
|
+
}
|
|
1308
|
+
export declare class HuDropdownItem {
|
|
1309
|
+
protected readonly menu: HuDropdown;
|
|
1310
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuDropdownItem, never>;
|
|
1311
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HuDropdownItem, "[huDropdownItem]", never, {}, {}, never, never, true, never>;
|
|
1312
|
+
}
|
|
1313
|
+
export interface HuNavItem {
|
|
1314
|
+
label: string;
|
|
1315
|
+
icon?: string;
|
|
1316
|
+
/** Router linki. Alt öğesi olan öğelerde verilmez. */
|
|
1317
|
+
link?: string;
|
|
1318
|
+
/** Link yalnızca birebir eşleştiğinde aktif sayılsın. */
|
|
1319
|
+
exact?: boolean;
|
|
1320
|
+
badge?: string | number;
|
|
1321
|
+
children?: HuNavItem[];
|
|
1322
|
+
}
|
|
1323
|
+
export interface HuNavGroup {
|
|
1324
|
+
/** Grup başlığı (örn. "Yönetim"). */
|
|
1325
|
+
title?: string;
|
|
1326
|
+
items: HuNavItem[];
|
|
1327
|
+
}
|
|
1328
|
+
/** Yan menü navigasyonu. Genellikle `hu-shell` içinde otomatik kullanılır. */
|
|
1329
|
+
export declare class HuSidebarNav {
|
|
1330
|
+
private readonly router;
|
|
1331
|
+
readonly groups: import("@angular/core").InputSignal<HuNavGroup[]>;
|
|
1332
|
+
readonly collapsed: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
1333
|
+
/** Bir linke tıklandı (mobilde menüyü kapatmak için). */
|
|
1334
|
+
readonly navigate: import("@angular/core").OutputEmitterRef<void>;
|
|
1335
|
+
/** Daraltılmış moddayken alt menülü öğeye tıklandı. */
|
|
1336
|
+
readonly expandRequest: import("@angular/core").OutputEmitterRef<void>;
|
|
1337
|
+
private readonly url;
|
|
1338
|
+
protected readonly openItems: import("@angular/core").WritableSignal<ReadonlySet<HuNavItem>>;
|
|
1339
|
+
constructor();
|
|
1340
|
+
protected isParentActive(item: HuNavItem, url?: string): boolean;
|
|
1341
|
+
protected toggle(item: HuNavItem): void;
|
|
1342
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuSidebarNav, never>;
|
|
1343
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuSidebarNav, "hu-sidebar-nav", never, {
|
|
1344
|
+
"groups": {
|
|
1345
|
+
"alias": "groups";
|
|
1346
|
+
"required": false;
|
|
1347
|
+
"isSignal": true;
|
|
1348
|
+
};
|
|
1349
|
+
"collapsed": {
|
|
1350
|
+
"alias": "collapsed";
|
|
1351
|
+
"required": false;
|
|
1352
|
+
"isSignal": true;
|
|
1353
|
+
};
|
|
1354
|
+
}, {
|
|
1355
|
+
"navigate": "navigate";
|
|
1356
|
+
"expandRequest": "expandRequest";
|
|
1357
|
+
}, never, never, true, never>;
|
|
1358
|
+
}
|
|
1359
|
+
/** Topbar'ın sol tarafı (breadcrumb, arama vb.). */
|
|
1360
|
+
export declare class HuTopbarStart {
|
|
1361
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuTopbarStart, never>;
|
|
1362
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HuTopbarStart, "[huTopbarStart]", never, {}, {}, never, never, true, never>;
|
|
1363
|
+
}
|
|
1364
|
+
/** Topbar'ın sağ tarafı (tema, bildirim, kullanıcı menüsü). */
|
|
1365
|
+
export declare class HuTopbarEnd {
|
|
1366
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuTopbarEnd, never>;
|
|
1367
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HuTopbarEnd, "[huTopbarEnd]", never, {}, {}, never, never, true, never>;
|
|
1368
|
+
}
|
|
1369
|
+
/** Sidebar'ın alt kısmı. */
|
|
1370
|
+
export declare class HuSidebarFooter {
|
|
1371
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuSidebarFooter, never>;
|
|
1372
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HuSidebarFooter, "[huSidebarFooter]", never, {}, {}, never, never, true, never>;
|
|
1373
|
+
}
|
|
1374
|
+
/** Marka alanında varsayılan logonun yerine geçer. */
|
|
1375
|
+
export declare class HuShellLogo {
|
|
1376
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuShellLogo, never>;
|
|
1377
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HuShellLogo, "[huShellLogo]", never, {}, {}, never, never, true, never>;
|
|
1378
|
+
}
|
|
1379
|
+
/**
|
|
1380
|
+
* Admin uygulama iskeleti: daraltılabilir sidebar, mobilde çekmece menü, topbar.
|
|
1381
|
+
*
|
|
1382
|
+
* @example
|
|
1383
|
+
* <hu-shell [nav]="nav" brand="Yönetim Paneli" brandSubtitle="Kurum adı">
|
|
1384
|
+
* <hu-breadcrumb huTopbarStart [items]="crumbs()" />
|
|
1385
|
+
* <div huTopbarEnd><hu-theme-toggle /></div>
|
|
1386
|
+
* <router-outlet />
|
|
1387
|
+
* </hu-shell>
|
|
1388
|
+
*/
|
|
1389
|
+
export declare class HuShell {
|
|
1390
|
+
private readonly storage;
|
|
1391
|
+
readonly nav: import("@angular/core").InputSignal<HuNavGroup[]>;
|
|
1392
|
+
readonly brand: import("@angular/core").InputSignal<string>;
|
|
1393
|
+
readonly brandSubtitle: import("@angular/core").InputSignal<string | undefined>;
|
|
1394
|
+
readonly brandLink: import("@angular/core").InputSignal<string>;
|
|
1395
|
+
/** Sidebar rengi. `dark`, açık temada da koyu sidebar kullanır. */
|
|
1396
|
+
readonly sidebarTheme: import("@angular/core").InputSignal<"dark" | "default">;
|
|
1397
|
+
/** Masaüstünde sidebar daraltılmış mı? Tercih localStorage'da saklanır. */
|
|
1398
|
+
readonly collapsed: import("@angular/core").ModelSignal<boolean>;
|
|
1399
|
+
protected readonly isMobile: import("@angular/core").Signal<boolean>;
|
|
1400
|
+
protected readonly mobileOpen: import("@angular/core").WritableSignal<boolean>;
|
|
1401
|
+
protected readonly isCollapsed: import("@angular/core").Signal<boolean>;
|
|
1402
|
+
constructor();
|
|
1403
|
+
toggleSidebar(): void;
|
|
1404
|
+
private readCollapsed;
|
|
1405
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuShell, never>;
|
|
1406
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuShell, "hu-shell", never, {
|
|
1407
|
+
"nav": {
|
|
1408
|
+
"alias": "nav";
|
|
1409
|
+
"required": false;
|
|
1410
|
+
"isSignal": true;
|
|
1411
|
+
};
|
|
1412
|
+
"brand": {
|
|
1413
|
+
"alias": "brand";
|
|
1414
|
+
"required": false;
|
|
1415
|
+
"isSignal": true;
|
|
1416
|
+
};
|
|
1417
|
+
"brandSubtitle": {
|
|
1418
|
+
"alias": "brandSubtitle";
|
|
1419
|
+
"required": false;
|
|
1420
|
+
"isSignal": true;
|
|
1421
|
+
};
|
|
1422
|
+
"brandLink": {
|
|
1423
|
+
"alias": "brandLink";
|
|
1424
|
+
"required": false;
|
|
1425
|
+
"isSignal": true;
|
|
1426
|
+
};
|
|
1427
|
+
"sidebarTheme": {
|
|
1428
|
+
"alias": "sidebarTheme";
|
|
1429
|
+
"required": false;
|
|
1430
|
+
"isSignal": true;
|
|
1431
|
+
};
|
|
1432
|
+
"collapsed": {
|
|
1433
|
+
"alias": "collapsed";
|
|
1434
|
+
"required": false;
|
|
1435
|
+
"isSignal": true;
|
|
1436
|
+
};
|
|
1437
|
+
}, {
|
|
1438
|
+
"collapsed": "collapsedChange";
|
|
1439
|
+
}, never, ["[huShellLogo]", "[huSidebarFooter]", "[huTopbarStart]", "[huTopbarEnd]", "*"], true, never>;
|
|
1440
|
+
}
|
|
1441
|
+
/** Açık / koyu tema arasında geçiş yapan buton. */
|
|
1442
|
+
export declare class HuThemeToggle {
|
|
1443
|
+
protected readonly theme: HuThemeService;
|
|
1444
|
+
protected readonly label: import("@angular/core").Signal<"Açık temaya geç" | "Koyu temaya geç">;
|
|
1445
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HuThemeToggle, never>;
|
|
1446
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HuThemeToggle, "hu-theme-toggle", never, {}, {}, never, never, true, never>;
|
|
1447
|
+
}
|
|
1448
|
+
export declare const HU_FORM_FIELD_IMPORTS: readonly [typeof HuFormField, typeof HuInput, typeof HuPrefix, typeof HuSuffix];
|
|
1449
|
+
export declare const HU_CARD_IMPORTS: readonly [typeof HuCard, typeof HuCardActions, typeof HuCardFooter];
|
|
1450
|
+
export declare const HU_DIALOG_IMPORTS: readonly [typeof HuDialog, typeof HuDialogFooter];
|
|
1451
|
+
export declare const HU_DROPDOWN_IMPORTS: readonly [typeof HuDropdown, typeof HuDropdownTrigger, typeof HuDropdownItem];
|
|
1452
|
+
export declare const HU_TABLE_IMPORTS: readonly [typeof HuTable, typeof HuCellDef];
|
|
1453
|
+
export declare const HU_TABS_IMPORTS: readonly [typeof HuTabs, typeof HuTab];
|
|
1454
|
+
export declare const HU_SHELL_IMPORTS: readonly [typeof HuShell, typeof HuTopbarStart, typeof HuTopbarEnd, typeof HuSidebarFooter, typeof HuShellLogo];
|