@ucme-ui/angular 0.1.0 → 0.3.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 +47 -6
- package/fesm2022/ucme-ui-angular.mjs +5573 -2077
- package/fesm2022/ucme-ui-angular.mjs.map +1 -1
- package/package.json +12 -9
- package/styles/_controls.scss +2 -54
- package/types/ucme-ui-angular.d.ts +1567 -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
package/README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# @ucme-ui/angular
|
|
2
2
|
|
|
3
|
-
Admin panelleri için Angular
|
|
3
|
+
Admin panelleri için Angular 20–22 component kütüphanesi. Hazır bir admin layout, form, tablo,
|
|
4
4
|
takvim ve geri bildirim componentleri içerir.
|
|
5
5
|
|
|
6
6
|
- **Bağımlılıksız:** Angular dışında hiçbir paket gerektirmez; stiller düz SCSS ve CSS değişkenleri.
|
|
7
|
-
- **Modern Angular:** standalone componentler, signals (`input()`, `model()`), `OnPush
|
|
7
|
+
- **Modern Angular:** standalone componentler, signals (`input()`, `model()`), `OnPush`; zone.js'li ve zoneless uygulamalarda çalışır.
|
|
8
8
|
- **Tema:** tüm renk ve ölçüler `--hu-*` token'larıdır. Açık/koyu tema hazır, marka rengi tek satırla değişir.
|
|
9
9
|
- **Erişilebilir:** native `<button>`, `<input>`, `<dialog>` üzerine kurulu. Tam klavye desteği ve ARIA.
|
|
10
10
|
- **Türkçe:** metinler, tarih biçimi (`gg.aa.yyyy`), sıralama ve baş harf kuralları `tr-TR`.
|
|
11
11
|
|
|
12
|
-
> *English:* Angular
|
|
12
|
+
> *English:* Angular 20–22 UI kit & admin layout. Standalone, signal-based, zero dependencies,
|
|
13
13
|
> themeable via CSS custom properties. UI texts default to Turkish.
|
|
14
14
|
|
|
15
15
|
## Kurulum
|
|
@@ -18,7 +18,7 @@ takvim ve geri bildirim componentleri içerir.
|
|
|
18
18
|
npm install @ucme-ui/angular
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Gereksinim: Angular
|
|
21
|
+
Gereksinim: Angular **20, 21 veya 22** (`@angular/common`, `core`, `forms`, `router`).
|
|
22
22
|
|
|
23
23
|
**1. Stiller** (`src/styles.scss`)
|
|
24
24
|
|
|
@@ -74,12 +74,12 @@ Toast'ların görünmesi için kök componente bir kez `<hu-toaster />` ekleyin.
|
|
|
74
74
|
| **Layout** | `hu-shell` (daraltılabilir sidebar, mobil çekmece, topbar), `hu-sidebar-nav`, `hu-breadcrumb`, `hu-theme-toggle` |
|
|
75
75
|
| **Form** | `hu-button`, `hu-button-group`, `huInput`, `hu-form-field`, `hu-checkbox`, `hu-switch`, `hu-date-picker` |
|
|
76
76
|
| **Tarih** | `hu-calendar`: tek gün/aralık seçimi, min/max, `dateFilter`, etkinlik işaretleri |
|
|
77
|
-
| **Veri** | `hu-table` (sıralama, özel hücreler), `hu-paginator`, `hu-tabs`, `hu-card`, `hu-
|
|
77
|
+
| **Veri** | `hu-table` (sıralama, özel hücreler), `hu-paginator`, `hu-tabs`, `hu-card`, `hu-dropdown` |
|
|
78
78
|
| **Geri bildirim** | `hu-alert`, `hu-dialog`, `HuToastService`, `hu-badge`, `hu-avatar`, `hu-spinner` |
|
|
79
79
|
| **Çekirdek** | `hu-icon` (+`provideHuIcons`), `HuThemeService`, `provideHuErrorMessages`, tarih yardımcıları |
|
|
80
80
|
|
|
81
81
|
Birlikte kullanılan parçalar için gruplu import'lar var: `HU_FORM_FIELD_IMPORTS`, `HU_TABLE_IMPORTS`,
|
|
82
|
-
`HU_DIALOG_IMPORTS`, `
|
|
82
|
+
`HU_DIALOG_IMPORTS`, `HU_DROPDOWN_IMPORTS`, `HU_TABS_IMPORTS`, `HU_CARD_IMPORTS`, `HU_SHELL_IMPORTS`.
|
|
83
83
|
|
|
84
84
|
### Butonlar
|
|
85
85
|
|
|
@@ -95,6 +95,47 @@ Görünüm ve renk birbirinden bağımsızdır:
|
|
|
95
95
|
`variant`: `solid` `soft` `outline` `ghost` `link`. `color`: `primary` `neutral` `success` `warning` `danger` `info`.
|
|
96
96
|
`size`: `xs` … `xl`.
|
|
97
97
|
|
|
98
|
+
### Dropdown
|
|
99
|
+
|
|
100
|
+
Öğeleri bir dizi olarak verin; seçilen öğe `(selected)` ile döner:
|
|
101
|
+
|
|
102
|
+
```html
|
|
103
|
+
<hu-dropdown label="İşlemler" [options]="actions" (selected)="run($event.value)" />
|
|
104
|
+
|
|
105
|
+
<!-- Yalnızca ikonlu tetikleyici -->
|
|
106
|
+
<hu-dropdown icon="more-vertical" variant="ghost" ariaLabel="Satır işlemleri" [options]="actions" />
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
```ts
|
|
110
|
+
actions: HuDropdownEntry[] = [
|
|
111
|
+
{ header: 'Kayıt' }, // grup başlığı
|
|
112
|
+
{ label: 'Düzenle', value: 'edit', icon: 'edit' },
|
|
113
|
+
{ label: 'Dışa aktar', value: 'export', description: 'Excel dosyası' },
|
|
114
|
+
{ label: 'Ayarlar', icon: 'settings', link: '/ayarlar' }, // router linki
|
|
115
|
+
{ label: 'Arşivle', value: 'archive', disabled: true },
|
|
116
|
+
{ divider: true }, // ayraç
|
|
117
|
+
{ label: 'Sil', value: 'delete', icon: 'trash', danger: true },
|
|
118
|
+
];
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
| Input | Açıklama |
|
|
122
|
+
| --- | --- |
|
|
123
|
+
| `options` | Öğeler: seçenek, `{ divider: true }` veya `{ header: '…' }` |
|
|
124
|
+
| `label`, `icon`, `variant`, `color`, `size` | Hazır tetikleyici buton (`variant` varsayılanı `outline`) |
|
|
125
|
+
| `ariaLabel` | Yalnızca ikonlu tetikleyicide ekran okuyucu etiketi |
|
|
126
|
+
| `align` | Panelin hizası: `start` veya `end` |
|
|
127
|
+
| `caret`, `disabled` | Aşağı ok gösterimi; tetikleyiciyi devre dışı bırakma |
|
|
128
|
+
| `[(open)]` | Açık/kapalı durumu (iki yönlü) |
|
|
129
|
+
|
|
130
|
+
| Output | Açıklama |
|
|
131
|
+
| --- | --- |
|
|
132
|
+
| `(selected)` | Seçilen `HuDropdownOption`; `value` verilmemişse `label` döner |
|
|
133
|
+
| `(openChange)` | Panel açıldığında veya kapandığında |
|
|
134
|
+
|
|
135
|
+
Kendi tetikleyicinizi kullanmak için (avatar vb.) içine `huDropdownTrigger` özniteliği olan bir element koyun.
|
|
136
|
+
Panelin üstüne serbest içerik eklemek için `huDropdownHeader` kullanın. Klavye desteği hazır gelir: oklar, Home/End,
|
|
137
|
+
harfle atlama, Enter ve Esc.
|
|
138
|
+
|
|
98
139
|
### Admin layout
|
|
99
140
|
|
|
100
141
|
```html
|