@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.
Files changed (45) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +151 -0
  3. package/fesm2022/ucme-ui-angular.mjs +2628 -0
  4. package/fesm2022/ucme-ui-angular.mjs.map +1 -0
  5. package/index.d.ts +5 -0
  6. package/lib/alert/alert.component.d.ts +18 -0
  7. package/lib/avatar/avatar.component.d.ts +15 -0
  8. package/lib/badge/badge.component.d.ts +12 -0
  9. package/lib/breadcrumb/breadcrumb.component.d.ts +12 -0
  10. package/lib/button/button-group.component.d.ts +17 -0
  11. package/lib/button/button.component.d.ts +39 -0
  12. package/lib/calendar/calendar.component.d.ts +105 -0
  13. package/lib/calendar/date-picker.component.d.ts +87 -0
  14. package/lib/calendar/date-utils.d.ts +27 -0
  15. package/lib/card/card.component.d.ts +30 -0
  16. package/lib/checkbox/checkbox.component.d.ts +36 -0
  17. package/lib/core/media.d.ts +6 -0
  18. package/lib/core/theme.service.d.ts +21 -0
  19. package/lib/core/unique-id.d.ts +2 -0
  20. package/lib/dialog/dialog.component.d.ts +39 -0
  21. package/lib/form-field/form-field.component.d.ts +38 -0
  22. package/lib/form-field/form-field.tokens.d.ts +31 -0
  23. package/lib/form-field/input.directive.d.ts +28 -0
  24. package/lib/icon/icon.component.d.ts +16 -0
  25. package/lib/icon/icons.d.ts +11 -0
  26. package/lib/imports.d.ts +15 -0
  27. package/lib/layout/nav.types.d.ts +15 -0
  28. package/lib/layout/shell.component.d.ts +51 -0
  29. package/lib/layout/sidebar-nav.component.d.ts +19 -0
  30. package/lib/layout/theme-toggle.component.d.ts +9 -0
  31. package/lib/menu/menu.component.d.ts +38 -0
  32. package/lib/paginator/paginator.component.d.ts +21 -0
  33. package/lib/spinner/spinner.component.d.ts +9 -0
  34. package/lib/switch/switch.component.d.ts +24 -0
  35. package/lib/table/table.component.d.ts +57 -0
  36. package/lib/table/table.types.d.ts +18 -0
  37. package/lib/tabs/tabs.component.d.ts +33 -0
  38. package/lib/toast/toast.service.d.ts +32 -0
  39. package/lib/toast/toaster.component.d.ts +11 -0
  40. package/package.json +65 -0
  41. package/public-api.d.ts +34 -0
  42. package/styles/_base.scss +84 -0
  43. package/styles/_controls.scss +146 -0
  44. package/styles/_tokens.scss +203 -0
  45. package/styles/hu-ui.scss +5 -0
@@ -0,0 +1,11 @@
1
+ import { InjectionToken, Provider } from '@angular/core';
2
+ /** İkon adı → SVG path verisi (24x24 viewBox, stroke tabanlı). */
3
+ export type HuIconSet = Record<string, string>;
4
+ export declare const HU_ICON_SETS: InjectionToken<HuIconSet[]>;
5
+ /**
6
+ * Uygulamaya özel ikon ekler.
7
+ * @example providers: [provideHuIcons({ rocket: 'M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2' })]
8
+ */
9
+ export declare function provideHuIcons(icons: HuIconSet): Provider;
10
+ /** Yerleşik ikon seti (Lucide stilinde, 2px stroke). */
11
+ export declare const HU_BUILTIN_ICONS: HuIconSet;
@@ -0,0 +1,15 @@
1
+ import { HuCard, HuCardActions, HuCardFooter } from './card/card.component';
2
+ import { HuDialog, HuDialogFooter } from './dialog/dialog.component';
3
+ import { HuFormField, HuPrefix, HuSuffix } from './form-field/form-field.component';
4
+ import { HuInput } from './form-field/input.directive';
5
+ import { HuShell, HuShellLogo, HuSidebarFooter, HuTopbarEnd, HuTopbarStart } from './layout/shell.component';
6
+ import { HuMenu, HuMenuItem, HuMenuTrigger } from './menu/menu.component';
7
+ import { HuCellDef, HuTable } from './table/table.component';
8
+ import { HuTab, HuTabs } from './tabs/tabs.component';
9
+ export declare const HU_FORM_FIELD_IMPORTS: readonly [typeof HuFormField, typeof HuInput, typeof HuPrefix, typeof HuSuffix];
10
+ export declare const HU_CARD_IMPORTS: readonly [typeof HuCard, typeof HuCardActions, typeof HuCardFooter];
11
+ export declare const HU_DIALOG_IMPORTS: readonly [typeof HuDialog, typeof HuDialogFooter];
12
+ export declare const HU_MENU_IMPORTS: readonly [typeof HuMenu, typeof HuMenuTrigger, typeof HuMenuItem];
13
+ export declare const HU_TABLE_IMPORTS: readonly [typeof HuTable, typeof HuCellDef];
14
+ export declare const HU_TABS_IMPORTS: readonly [typeof HuTabs, typeof HuTab];
15
+ export declare const HU_SHELL_IMPORTS: readonly [typeof HuShell, typeof HuTopbarStart, typeof HuTopbarEnd, typeof HuSidebarFooter, typeof HuShellLogo];
@@ -0,0 +1,15 @@
1
+ export interface HuNavItem {
2
+ label: string;
3
+ icon?: string;
4
+ /** Router linki. Alt öğesi olan öğelerde verilmez. */
5
+ link?: string;
6
+ /** Link yalnızca birebir eşleştiğinde aktif sayılsın. */
7
+ exact?: boolean;
8
+ badge?: string | number;
9
+ children?: HuNavItem[];
10
+ }
11
+ export interface HuNavGroup {
12
+ /** Grup başlığı (örn. "Yönetim"). */
13
+ title?: string;
14
+ items: HuNavItem[];
15
+ }
@@ -0,0 +1,51 @@
1
+ import { HuNavGroup } from './nav.types';
2
+ import * as i0 from "@angular/core";
3
+ /** Topbar'ın sol tarafı (breadcrumb, arama vb.). */
4
+ export declare class HuTopbarStart {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<HuTopbarStart, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HuTopbarStart, "[huTopbarStart]", never, {}, {}, never, never, true, never>;
7
+ }
8
+ /** Topbar'ın sağ tarafı (tema, bildirim, kullanıcı menüsü). */
9
+ export declare class HuTopbarEnd {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<HuTopbarEnd, never>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HuTopbarEnd, "[huTopbarEnd]", never, {}, {}, never, never, true, never>;
12
+ }
13
+ /** Sidebar'ın alt kısmı. */
14
+ export declare class HuSidebarFooter {
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<HuSidebarFooter, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HuSidebarFooter, "[huSidebarFooter]", never, {}, {}, never, never, true, never>;
17
+ }
18
+ /** Marka alanında varsayılan logonun yerine geçer. */
19
+ export declare class HuShellLogo {
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<HuShellLogo, never>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HuShellLogo, "[huShellLogo]", never, {}, {}, never, never, true, never>;
22
+ }
23
+ /**
24
+ * Admin uygulama iskeleti: daraltılabilir sidebar, mobilde çekmece menü, topbar.
25
+ *
26
+ * @example
27
+ * <hu-shell [nav]="nav" brand="Yönetim Paneli" brandSubtitle="Kurum adı">
28
+ * <hu-breadcrumb huTopbarStart [items]="crumbs()" />
29
+ * <div huTopbarEnd><hu-theme-toggle /></div>
30
+ * <router-outlet />
31
+ * </hu-shell>
32
+ */
33
+ export declare class HuShell {
34
+ private readonly storage;
35
+ readonly nav: import("@angular/core").InputSignal<HuNavGroup[]>;
36
+ readonly brand: import("@angular/core").InputSignal<string>;
37
+ readonly brandSubtitle: import("@angular/core").InputSignal<string | undefined>;
38
+ readonly brandLink: import("@angular/core").InputSignal<string>;
39
+ /** Sidebar rengi. `dark`, açık temada da koyu sidebar kullanır. */
40
+ readonly sidebarTheme: import("@angular/core").InputSignal<"dark" | "default">;
41
+ /** Masaüstünde sidebar daraltılmış mı? Tercih localStorage'da saklanır. */
42
+ readonly collapsed: import("@angular/core").ModelSignal<boolean>;
43
+ protected readonly isMobile: import("@angular/core").Signal<boolean>;
44
+ protected readonly mobileOpen: import("@angular/core").WritableSignal<boolean>;
45
+ protected readonly isCollapsed: import("@angular/core").Signal<boolean>;
46
+ constructor();
47
+ toggleSidebar(): void;
48
+ private readCollapsed;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<HuShell, never>;
50
+ static ɵcmp: i0.ɵɵComponentDeclaration<HuShell, "hu-shell", never, { "nav": { "alias": "nav"; "required": false; "isSignal": true; }; "brand": { "alias": "brand"; "required": false; "isSignal": true; }; "brandSubtitle": { "alias": "brandSubtitle"; "required": false; "isSignal": true; }; "brandLink": { "alias": "brandLink"; "required": false; "isSignal": true; }; "sidebarTheme": { "alias": "sidebarTheme"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; }, never, ["[huShellLogo]", "[huSidebarFooter]", "[huTopbarStart]", "[huTopbarEnd]", "*"], true, never>;
51
+ }
@@ -0,0 +1,19 @@
1
+ import { HuNavGroup, HuNavItem } from './nav.types';
2
+ import * as i0 from "@angular/core";
3
+ /** Yan menü navigasyonu. Genellikle `hu-shell` içinde otomatik kullanılır. */
4
+ export declare class HuSidebarNav {
5
+ private readonly router;
6
+ readonly groups: import("@angular/core").InputSignal<HuNavGroup[]>;
7
+ readonly collapsed: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
8
+ /** Bir linke tıklandı (mobilde menüyü kapatmak için). */
9
+ readonly navigate: import("@angular/core").OutputEmitterRef<void>;
10
+ /** Daraltılmış moddayken alt menülü öğeye tıklandı. */
11
+ readonly expandRequest: import("@angular/core").OutputEmitterRef<void>;
12
+ private readonly url;
13
+ protected readonly openItems: import("@angular/core").WritableSignal<ReadonlySet<HuNavItem>>;
14
+ constructor();
15
+ protected isParentActive(item: HuNavItem, url?: string): boolean;
16
+ protected toggle(item: HuNavItem): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<HuSidebarNav, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<HuSidebarNav, "hu-sidebar-nav", never, { "groups": { "alias": "groups"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; }, { "navigate": "navigate"; "expandRequest": "expandRequest"; }, never, never, true, never>;
19
+ }
@@ -0,0 +1,9 @@
1
+ import { HuThemeService } from '../core/theme.service';
2
+ import * as i0 from "@angular/core";
3
+ /** Açık / koyu tema arasında geçiş yapan buton. */
4
+ export declare class HuThemeToggle {
5
+ protected readonly theme: HuThemeService;
6
+ protected readonly label: import("@angular/core").Signal<"Açık temaya geç" | "Koyu temaya geç">;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<HuThemeToggle, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<HuThemeToggle, "hu-theme-toggle", never, {}, {}, never, never, true, never>;
9
+ }
@@ -0,0 +1,38 @@
1
+ import * as i0 from "@angular/core";
2
+ export type HuMenuAlign = 'start' | 'end';
3
+ /**
4
+ * Açılır menü (dropdown). Tetikleyiciye `huMenuTrigger`, öğelere `huMenuItem` verin.
5
+ *
6
+ * @example
7
+ * <hu-menu align="end">
8
+ * <button huMenuTrigger hu-button variant="ghost" iconOnly aria-label="İşlemler"><hu-icon name="more-vertical" /></button>
9
+ * <button huMenuItem (click)="edit()"><hu-icon name="edit" /> Düzenle</button>
10
+ * <hr class="hu-menu-divider" />
11
+ * <button huMenuItem class="hu-menu-item--danger" (click)="remove()"><hu-icon name="trash" /> Sil</button>
12
+ * </hu-menu>
13
+ */
14
+ export declare class HuMenu {
15
+ private readonly host;
16
+ private readonly injector;
17
+ readonly align: import("@angular/core").InputSignal<HuMenuAlign>;
18
+ readonly isOpen: import("@angular/core").WritableSignal<boolean>;
19
+ readonly panelId: string;
20
+ toggle(): void;
21
+ openMenu(): void;
22
+ close(restoreFocus?: boolean): void;
23
+ protected onDocumentClick(event: MouseEvent): void;
24
+ protected onPanelKeydown(event: KeyboardEvent): void;
25
+ private items;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<HuMenu, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<HuMenu, "hu-menu", never, { "align": { "alias": "align"; "required": false; "isSignal": true; }; }, {}, never, ["[huMenuTrigger]", "*"], true, never>;
28
+ }
29
+ export declare class HuMenuTrigger {
30
+ protected readonly menu: HuMenu;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<HuMenuTrigger, never>;
32
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HuMenuTrigger, "[huMenuTrigger]", never, {}, {}, never, never, true, never>;
33
+ }
34
+ export declare class HuMenuItem {
35
+ protected readonly menu: HuMenu;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<HuMenuItem, never>;
37
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HuMenuItem, "[huMenuItem]", never, {}, {}, never, never, true, never>;
38
+ }
@@ -0,0 +1,21 @@
1
+ import * as i0 from "@angular/core";
2
+ type PageItem = number | 'gap-start' | 'gap-end';
3
+ /**
4
+ * Sayfalama.
5
+ * @example <hu-paginator [length]="total()" [(pageIndex)]="page" [(pageSize)]="size" />
6
+ */
7
+ export declare class HuPaginator {
8
+ readonly length: import("@angular/core").InputSignal<number>;
9
+ readonly pageIndex: import("@angular/core").ModelSignal<number>;
10
+ readonly pageSize: import("@angular/core").ModelSignal<number>;
11
+ readonly pageSizeOptions: import("@angular/core").InputSignal<number[]>;
12
+ protected readonly pageCount: import("@angular/core").Signal<number>;
13
+ protected readonly rangeLabel: import("@angular/core").Signal<string>;
14
+ /** Mevcut sayfanın etrafında en fazla 7 öğe (ilk, son, komşular ve boşluklar). */
15
+ protected readonly pages: import("@angular/core").Signal<PageItem[]>;
16
+ protected goTo(index: number): void;
17
+ protected changePageSize(event: Event): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<HuPaginator, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<HuPaginator, "hu-paginator", never, { "length": { "alias": "length"; "required": true; "isSignal": true; }; "pageIndex": { "alias": "pageIndex"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; }, { "pageIndex": "pageIndexChange"; "pageSize": "pageSizeChange"; }, never, never, true, never>;
20
+ }
21
+ export {};
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ export type HuSpinnerSize = 'sm' | 'md' | 'lg';
3
+ /** @example <hu-spinner /> <hu-spinner size="lg" label="Veriler yükleniyor" /> */
4
+ export declare class HuSpinner {
5
+ readonly size: import("@angular/core").InputSignal<HuSpinnerSize>;
6
+ readonly label: import("@angular/core").InputSignal<string>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<HuSpinner, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<HuSpinner, "hu-spinner", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
9
+ }
@@ -0,0 +1,24 @@
1
+ import { ControlValueAccessor } from '@angular/forms';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Açık/kapalı anahtarı (ayarlar için). Formlarla ya da `[(checked)]` ile çalışır.
5
+ * @example <hu-switch formControlName="emailNotifications">E-posta bildirimleri</hu-switch>
6
+ */
7
+ export declare class HuSwitch implements ControlValueAccessor {
8
+ readonly checked: import("@angular/core").ModelSignal<boolean>;
9
+ readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
10
+ readonly inputId: import("@angular/core").InputSignal<string>;
11
+ /** Görünür etiket yoksa ekran okuyucu etiketi. */
12
+ readonly ariaLabel: import("@angular/core").InputSignal<string | null>;
13
+ private readonly formDisabled;
14
+ protected readonly isDisabled: import("@angular/core").Signal<boolean>;
15
+ private onChange;
16
+ protected onTouched: () => void;
17
+ protected onInputChange(event: Event): void;
18
+ writeValue(value: unknown): void;
19
+ registerOnChange(fn: (value: boolean) => void): void;
20
+ registerOnTouched(fn: () => void): void;
21
+ setDisabledState(disabled: boolean): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<HuSwitch, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<HuSwitch, "hu-switch", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "inputId": { "alias": "inputId"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; }, never, ["*"], true, never>;
24
+ }
@@ -0,0 +1,57 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import { HuColumn, HuSort } from './table.types';
3
+ import * as i0 from "@angular/core";
4
+ export interface HuCellContext<T = any> {
5
+ $implicit: T;
6
+ index: number;
7
+ }
8
+ /**
9
+ * Bir sütun için özel hücre şablonu. `huCellOf` ile tabloya verilen veriyi
10
+ * bağlarsanız `let-row` değişkeni tip güvenli olur.
11
+ * @example <ng-template huCell="status" [huCellOf]="users()" let-row><hu-badge>{{ row.status }}</hu-badge></ng-template>
12
+ */
13
+ export declare class HuCellDef<T = any> {
14
+ readonly key: import("@angular/core").InputSignal<string>;
15
+ /** Yalnızca tip çıkarımı içindir; çalışma zamanında kullanılmaz. */
16
+ readonly of: import("@angular/core").InputSignal<readonly T[] | undefined>;
17
+ readonly template: TemplateRef<HuCellContext<T>>;
18
+ static ngTemplateContextGuard<T>(_dir: HuCellDef<T>, ctx: unknown): ctx is HuCellContext<T>;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<HuCellDef<any>, never>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HuCellDef<any>, "ng-template[huCell]", never, { "key": { "alias": "huCell"; "required": true; "isSignal": true; }; "of": { "alias": "huCellOf"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
21
+ }
22
+ /**
23
+ * Veri tablosu: sıralama, özel hücre şablonları, yükleniyor ve boş durumları.
24
+ * Sayfalama için `hu-paginator` ile birlikte kullanın.
25
+ *
26
+ * @example
27
+ * <hu-table [data]="users()" [columns]="columns" [(sort)]="sort">
28
+ * <ng-template huCell="status" let-user>
29
+ * <hu-badge [variant]="user.active ? 'success' : 'neutral'">{{ user.active ? 'Aktif' : 'Pasif' }}</hu-badge>
30
+ * </ng-template>
31
+ * </hu-table>
32
+ */
33
+ export declare class HuTable<T = any> {
34
+ readonly data: import("@angular/core").InputSignal<readonly T[]>;
35
+ readonly columns: import("@angular/core").InputSignal<HuColumn<T>[]>;
36
+ readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
37
+ readonly emptyText: import("@angular/core").InputSignal<string>;
38
+ /** `client`: tablo kendisi sıralar. `server`: yalnızca `sort` değişir, veriyi siz getirirsiniz. */
39
+ readonly sortMode: import("@angular/core").InputSignal<"client" | "server">;
40
+ readonly sort: import("@angular/core").ModelSignal<HuSort>;
41
+ readonly trackBy: import("@angular/core").InputSignal<(row: T) => unknown>;
42
+ readonly striped: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
43
+ readonly dense: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
44
+ readonly stickyHeader: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
45
+ readonly clickableRows: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
46
+ readonly rowClick: import("@angular/core").OutputEmitterRef<T>;
47
+ private readonly cellDefs;
48
+ protected readonly templates: import("@angular/core").Signal<Map<string, TemplateRef<HuCellContext<any>>>>;
49
+ protected readonly rows: import("@angular/core").Signal<readonly T[]>;
50
+ protected cellValue(row: T, column: HuColumn<T>): unknown;
51
+ protected toggleSort(column: HuColumn<T>): void;
52
+ protected sortIcon(column: HuColumn<T>): string;
53
+ protected ariaSort(column: HuColumn<T>): string | null;
54
+ protected onRowClick(row: T): void;
55
+ static ɵfac: i0.ɵɵFactoryDeclaration<HuTable<any>, never>;
56
+ static ɵcmp: i0.ɵɵComponentDeclaration<HuTable<any>, "hu-table", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "sortMode": { "alias": "sortMode"; "required": false; "isSignal": true; }; "sort": { "alias": "sort"; "required": false; "isSignal": true; }; "trackBy": { "alias": "trackBy"; "required": false; "isSignal": true; }; "striped": { "alias": "striped"; "required": false; "isSignal": true; }; "dense": { "alias": "dense"; "required": false; "isSignal": true; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; "isSignal": true; }; "clickableRows": { "alias": "clickableRows"; "required": false; "isSignal": true; }; }, { "sort": "sortChange"; "rowClick": "rowClick"; }, ["cellDefs"], ["[huTableEmpty]"], true, never>;
57
+ }
@@ -0,0 +1,18 @@
1
+ export type HuSortDirection = 'asc' | 'desc' | '';
2
+ export interface HuSort {
3
+ key: string;
4
+ direction: HuSortDirection;
5
+ }
6
+ export interface HuColumn<T = any> {
7
+ /** Satır nesnesindeki alan adı veya `huCell` şablonunun anahtarı. */
8
+ key: string;
9
+ header: string;
10
+ sortable?: boolean;
11
+ align?: 'start' | 'center' | 'end';
12
+ /** Örn. '120px' veya '20%'. */
13
+ width?: string;
14
+ /** Hücre değeri / sıralama değeri için özel erişimci. */
15
+ value?: (row: T) => unknown;
16
+ /** Dar ekranlarda gizlenir. */
17
+ hideOnMobile?: boolean;
18
+ }
@@ -0,0 +1,33 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /** Tek bir sekme. İçeriği yalnızca aktifken render edilir. */
4
+ export declare class HuTab {
5
+ readonly label: import("@angular/core").InputSignal<string>;
6
+ readonly icon: import("@angular/core").InputSignal<string | undefined>;
7
+ readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
8
+ readonly content: import("@angular/core").Signal<TemplateRef<any>>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<HuTab, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<HuTab, "hu-tab", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
11
+ }
12
+ export type HuTabsVariant = 'line' | 'pills';
13
+ /**
14
+ * Sekmeler. Ok tuşları, Home/End ile klavye gezintisi destekler.
15
+ * @example
16
+ * <hu-tabs [(selectedIndex)]="tab">
17
+ * <hu-tab label="Profil" icon="user">...</hu-tab>
18
+ * <hu-tab label="Güvenlik" icon="lock">...</hu-tab>
19
+ * </hu-tabs>
20
+ */
21
+ export declare class HuTabs {
22
+ private readonly host;
23
+ readonly selectedIndex: import("@angular/core").ModelSignal<number>;
24
+ readonly variant: import("@angular/core").InputSignal<HuTabsVariant>;
25
+ protected readonly tabs: import("@angular/core").Signal<readonly HuTab[]>;
26
+ protected readonly baseId: string;
27
+ protected readonly activeIndex: import("@angular/core").Signal<number>;
28
+ protected readonly activeTab: import("@angular/core").Signal<HuTab>;
29
+ select(index: number): void;
30
+ protected onKeydown(event: KeyboardEvent): void;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<HuTabs, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<HuTabs, "hu-tabs", never, { "selectedIndex": { "alias": "selectedIndex"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, { "selectedIndex": "selectedIndexChange"; }, ["tabs"], never, true, never>;
33
+ }
@@ -0,0 +1,32 @@
1
+ import { HuStatusVariant } from '../alert/alert.component';
2
+ import * as i0 from "@angular/core";
3
+ export interface HuToastOptions {
4
+ message: string;
5
+ title?: string;
6
+ variant?: HuStatusVariant;
7
+ /** Milisaniye. 0 verilirse kullanıcı kapatana kadar kalır. */
8
+ duration?: number;
9
+ }
10
+ export interface HuToast extends Required<Omit<HuToastOptions, 'title'>> {
11
+ id: number;
12
+ title?: string;
13
+ }
14
+ /**
15
+ * Geçici bildirimler. Uygulamada bir kez `<hu-toaster />` yerleştirilmelidir.
16
+ * @example inject(HuToastService).success('Kayıt güncellendi.');
17
+ */
18
+ export declare class HuToastService {
19
+ private nextId;
20
+ private readonly timers;
21
+ private readonly _toasts;
22
+ readonly toasts: import("@angular/core").Signal<HuToast[]>;
23
+ show(options: HuToastOptions): number;
24
+ info(message: string, title?: string): number;
25
+ success(message: string, title?: string): number;
26
+ warning(message: string, title?: string): number;
27
+ error(message: string, title?: string): number;
28
+ dismiss(id: number): void;
29
+ clear(): void;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<HuToastService, never>;
31
+ static ɵprov: i0.ɵɵInjectableDeclaration<HuToastService>;
32
+ }
@@ -0,0 +1,11 @@
1
+ import { HuToastService } from './toast.service';
2
+ import * as i0 from "@angular/core";
3
+ export type HuToasterPosition = 'top-right' | 'top-center' | 'bottom-right' | 'bottom-center';
4
+ /** Toast'ların gösterildiği alan. Kök componentte bir kez kullanın: `<hu-toaster />` */
5
+ export declare class HuToaster {
6
+ protected readonly service: HuToastService;
7
+ protected readonly icons: Record<import("@ucme-ui/angular").HuStatusVariant, string>;
8
+ readonly position: import("@angular/core").InputSignal<HuToasterPosition>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<HuToaster, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<HuToaster, "hu-toaster", never, { "position": { "alias": "position"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
11
+ }
package/package.json ADDED
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "@ucme-ui/angular",
3
+ "version": "0.1.0",
4
+ "description": "Angular 19 UI component kütüphanesi ve admin layout — signals, standalone, bağımlılıksız SCSS token'ları, açık/koyu tema.",
5
+ "license": "MIT",
6
+ "keywords": [
7
+ "angular",
8
+ "angular19",
9
+ "ui",
10
+ "components",
11
+ "admin",
12
+ "dashboard",
13
+ "layout",
14
+ "design-system",
15
+ "signals",
16
+ "datepicker",
17
+ "calendar",
18
+ "table",
19
+ "turkish"
20
+ ],
21
+ "homepage": "https://github.com/kadir3m/hu-ui#readme",
22
+ "bugs": {
23
+ "url": "https://github.com/kadir3m/hu-ui/issues"
24
+ },
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "git+https://github.com/kadir3m/hu-ui.git",
28
+ "directory": "projects/hu-ui"
29
+ },
30
+ "publishConfig": {
31
+ "access": "public",
32
+ "registry": "https://registry.npmjs.org/"
33
+ },
34
+ "exports": {
35
+ "./styles": {
36
+ "sass": "./styles/hu-ui.scss"
37
+ },
38
+ "./styles/tokens": {
39
+ "sass": "./styles/_tokens.scss"
40
+ },
41
+ "./package.json": {
42
+ "default": "./package.json"
43
+ },
44
+ ".": {
45
+ "types": "./index.d.ts",
46
+ "default": "./fesm2022/ucme-ui-angular.mjs"
47
+ }
48
+ },
49
+ "peerDependencies": {
50
+ "@angular/common": "^19.2.0",
51
+ "@angular/core": "^19.2.0",
52
+ "@angular/forms": "^19.2.0",
53
+ "@angular/router": "^19.2.0",
54
+ "rxjs": "^7.8.0"
55
+ },
56
+ "dependencies": {
57
+ "tslib": "^2.3.0"
58
+ },
59
+ "sideEffects": [
60
+ "*.css",
61
+ "*.scss"
62
+ ],
63
+ "module": "fesm2022/ucme-ui-angular.mjs",
64
+ "typings": "index.d.ts"
65
+ }
@@ -0,0 +1,34 @@
1
+ export * from './lib/core/unique-id';
2
+ export * from './lib/core/media';
3
+ export * from './lib/core/theme.service';
4
+ export * from './lib/icon/icons';
5
+ export * from './lib/icon/icon.component';
6
+ export * from './lib/button/button.component';
7
+ export * from './lib/button/button-group.component';
8
+ export * from './lib/form-field/form-field.tokens';
9
+ export * from './lib/form-field/input.directive';
10
+ export * from './lib/form-field/form-field.component';
11
+ export * from './lib/checkbox/checkbox.component';
12
+ export * from './lib/switch/switch.component';
13
+ export * from './lib/calendar/date-utils';
14
+ export * from './lib/calendar/calendar.component';
15
+ export * from './lib/calendar/date-picker.component';
16
+ export * from './lib/spinner/spinner.component';
17
+ export * from './lib/alert/alert.component';
18
+ export * from './lib/badge/badge.component';
19
+ export * from './lib/avatar/avatar.component';
20
+ export * from './lib/toast/toast.service';
21
+ export * from './lib/toast/toaster.component';
22
+ export * from './lib/dialog/dialog.component';
23
+ export * from './lib/card/card.component';
24
+ export * from './lib/table/table.types';
25
+ export * from './lib/table/table.component';
26
+ export * from './lib/paginator/paginator.component';
27
+ export * from './lib/tabs/tabs.component';
28
+ export * from './lib/breadcrumb/breadcrumb.component';
29
+ export * from './lib/menu/menu.component';
30
+ export * from './lib/layout/nav.types';
31
+ export * from './lib/layout/sidebar-nav.component';
32
+ export * from './lib/layout/shell.component';
33
+ export * from './lib/layout/theme-toggle.component';
34
+ export * from './lib/imports';
@@ -0,0 +1,84 @@
1
+ // =============================================================================
2
+ // HU UI — Temel stiller (hafif reset + tipografi + yardımcılar)
3
+ // =============================================================================
4
+
5
+ *,
6
+ *::before,
7
+ *::after {
8
+ box-sizing: border-box;
9
+ }
10
+
11
+ html {
12
+ -webkit-text-size-adjust: 100%;
13
+ text-size-adjust: 100%;
14
+ }
15
+
16
+ body {
17
+ margin: 0;
18
+ font-family: var(--hu-font-sans);
19
+ font-size: var(--hu-text-sm);
20
+ line-height: 1.5;
21
+ color: var(--hu-text);
22
+ background: var(--hu-bg);
23
+ -webkit-font-smoothing: antialiased;
24
+ -moz-osx-font-smoothing: grayscale;
25
+ }
26
+
27
+ h1,
28
+ h2,
29
+ h3,
30
+ h4,
31
+ h5,
32
+ h6 {
33
+ margin: 0;
34
+ font-weight: 600;
35
+ line-height: 1.25;
36
+ letter-spacing: -0.01em;
37
+ }
38
+
39
+ p {
40
+ margin: 0;
41
+ }
42
+
43
+ a {
44
+ color: var(--hu-primary);
45
+ }
46
+
47
+ img,
48
+ svg {
49
+ display: block;
50
+ }
51
+
52
+ :focus-visible {
53
+ outline: 2px solid var(--hu-focus);
54
+ outline-offset: 2px;
55
+ }
56
+
57
+ ::selection {
58
+ background: color-mix(in srgb, var(--hu-primary) 22%, transparent);
59
+ }
60
+
61
+ .hu-sr-only {
62
+ position: absolute;
63
+ width: 1px;
64
+ height: 1px;
65
+ padding: 0;
66
+ margin: -1px;
67
+ overflow: hidden;
68
+ clip: rect(0, 0, 0, 0);
69
+ white-space: nowrap;
70
+ border: 0;
71
+ }
72
+
73
+ .hu-text-muted {
74
+ color: var(--hu-text-muted);
75
+ }
76
+
77
+ @media (prefers-reduced-motion: reduce) {
78
+ *,
79
+ *::before,
80
+ *::after {
81
+ animation-duration: 0.01ms !important;
82
+ transition-duration: 0.01ms !important;
83
+ }
84
+ }