@ucme-ui/angular 0.8.2 → 0.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ucme-ui/angular",
3
- "version": "0.8.2",
3
+ "version": "0.9.0",
4
4
  "description": "Angular 20–22 UI component kütüphanesi ve admin layout — signals, standalone, bağımlılıksız SCSS token'ları, açık/koyu tema.",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -31,10 +31,13 @@
31
31
  border-color: var(--hu-gray-400);
32
32
  }
33
33
 
34
+ // Odak halkası anında gelir (tıklayınca gecikmeli odaklanıyormuş hissi
35
+ // vermesin); odaktan çıkarken yine yumuşak söner.
34
36
  &:focus {
35
37
  outline: none;
36
38
  border-color: var(--hu-primary);
37
39
  box-shadow: var(--hu-ring);
40
+ transition: none;
38
41
  }
39
42
 
40
43
  &:disabled {
@@ -1772,7 +1772,7 @@ export interface HuSelectOption<T = string> {
1772
1772
  group?: string;
1773
1773
  }
1774
1774
  export type HuMultiSelectDisplay = 'chips' | 'text';
1775
- type Row$1<T> = {
1775
+ type Row$2<T> = {
1776
1776
  kind: 'group';
1777
1777
  label: string;
1778
1778
  } | {
@@ -1835,7 +1835,7 @@ export declare class HuMultiSelect<T = string> implements ControlValueAccessor,
1835
1835
  protected readonly isDisabled: import("@angular/core").Signal<boolean>;
1836
1836
  protected readonly selectedOptions: import("@angular/core").Signal<HuSelectOption<T>[]>;
1837
1837
  protected readonly visible: import("@angular/core").Signal<HuSelectOption<T>[]>;
1838
- protected readonly rows: import("@angular/core").Signal<Row$1<T>[]>;
1838
+ protected readonly rows: import("@angular/core").Signal<Row$2<T>[]>;
1839
1839
  protected readonly selectable: import("@angular/core").Signal<HuSelectOption<T>[]>;
1840
1840
  protected readonly allSelected: import("@angular/core").Signal<boolean>;
1841
1841
  protected readonly someSelected: import("@angular/core").Signal<boolean>;
@@ -1969,6 +1969,177 @@ export declare class HuMultiSelect<T = string> implements ControlValueAccessor,
1969
1969
  "closed": "closed";
1970
1970
  }, never, never, true, never>;
1971
1971
  }
1972
+ type Row$1<T> = {
1973
+ kind: 'group';
1974
+ label: string;
1975
+ } | {
1976
+ kind: 'option';
1977
+ option: HuSelectOption<T>;
1978
+ index: number;
1979
+ };
1980
+ /**
1981
+ * Tek seçimli açılır liste. Native `<select>`'in yerine: tema renklerinde panel,
1982
+ * arama (Türkçe karakterleri yok sayar: "ogr" → "Öğrenci"), gruplar, ikon ve
1983
+ * açıklamalı seçenekler. Formlarla veya `[(value)]` ile çalışır.
1984
+ *
1985
+ * @example
1986
+ * <hu-form-field label="Fakülte">
1987
+ * <hu-select formControlName="faculty" [options]="faculties" placeholder="Fakülte seçin" />
1988
+ * </hu-form-field>
1989
+ */
1990
+ export declare class HuSelect<T = string> implements ControlValueAccessor, HuFormFieldControl, DoCheck {
1991
+ private readonly injector;
1992
+ private readonly host;
1993
+ private readonly win;
1994
+ protected readonly field: import("@ucme-ui/angular").HuFormFieldParent | null;
1995
+ readonly options: import("@angular/core").InputSignal<readonly HuSelectOption<T>[]>;
1996
+ readonly value: import("@angular/core").ModelSignal<T | null>;
1997
+ readonly placeholder: import("@angular/core").InputSignal<string>;
1998
+ /**
1999
+ * Panelde arama kutusu. Varsayılan: seçenek sayısı `filterThreshold`'u
2000
+ * aşınca açılır; `true` / `false` ile zorlanabilir.
2001
+ */
2002
+ readonly filter: import("@angular/core").InputSignalWithTransform<boolean | "auto", unknown>;
2003
+ /** `filter="auto"` iken arama kutusunun çıktığı seçenek sayısı. */
2004
+ readonly filterThreshold: import("@angular/core").InputSignalWithTransform<number, unknown>;
2005
+ readonly filterPlaceholder: import("@angular/core").InputSignal<string>;
2006
+ /** Kutunun içindeki ✕ ile seçimi temizleme. */
2007
+ readonly showClear: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
2008
+ readonly emptyMessage: import("@angular/core").InputSignal<string>;
2009
+ readonly size: import("@angular/core").InputSignal<HuInputSize>;
2010
+ readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
2011
+ readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
2012
+ readonly id: import("@angular/core").InputSignal<string>;
2013
+ /** Seçenekleri karşılaştırma (nesne değerlerde, örn. `(a, b) => a.id === b.id`). */
2014
+ readonly compareWith: import("@angular/core").InputSignal<(a: T, b: T) => boolean>;
2015
+ /** Kullanıcı bir seçenek seçince (veya temizleyince). */
2016
+ readonly selectionChange: import("@angular/core").OutputEmitterRef<T | null>;
2017
+ /** Panel kapandığında. */
2018
+ readonly closed: import("@angular/core").OutputEmitterRef<void>;
2019
+ protected readonly open: import("@angular/core").WritableSignal<boolean>;
2020
+ protected readonly query: import("@angular/core").WritableSignal<string>;
2021
+ /** Klavyeyle / fareyle üzerinde durulan seçenek (görünen listedeki sırası). */
2022
+ protected readonly activeIndex: import("@angular/core").WritableSignal<number>;
2023
+ protected readonly listId: string;
2024
+ private readonly formDisabled;
2025
+ protected readonly isDisabled: import("@angular/core").Signal<boolean>;
2026
+ protected readonly showFilter: import("@angular/core").Signal<boolean>;
2027
+ protected readonly selectedOption: import("@angular/core").Signal<HuSelectOption<T> | undefined>;
2028
+ protected readonly visible: import("@angular/core").Signal<HuSelectOption<T>[]>;
2029
+ protected readonly rows: import("@angular/core").Signal<Row$1<T>[]>;
2030
+ private ngControl;
2031
+ get hasControl(): boolean;
2032
+ readonly controlErrorVisible: import("@angular/core").WritableSignal<boolean>;
2033
+ readonly errors: import("@angular/core").WritableSignal<ValidationErrors | null>;
2034
+ protected readonly isInvalid: import("@angular/core").Signal<boolean>;
2035
+ private readonly trigger;
2036
+ private readonly panel;
2037
+ private readonly search;
2038
+ private readonly listbox;
2039
+ protected readonly supportsPopover: boolean;
2040
+ private pointerInside;
2041
+ private onChange;
2042
+ private onTouched;
2043
+ constructor();
2044
+ ngDoCheck(): void;
2045
+ toggle(): void;
2046
+ /** Paneli açar; `initialQuery` verilirse arama kutusuna yazılır (kapalıyken yazmaya başlama). */
2047
+ show(initialQuery?: string): void;
2048
+ close(restoreFocus?: boolean): void;
2049
+ protected isSelected(option: HuSelectOption<T>): boolean;
2050
+ protected choose(option: HuSelectOption<T>): void;
2051
+ protected clear(event: Event): void;
2052
+ protected onTriggerKeydown(event: KeyboardEvent): void;
2053
+ protected onPanelKeydown(event: KeyboardEvent): void;
2054
+ protected onQuery(value: string): void;
2055
+ protected onOptionHover(index: number, option: HuSelectOption<T>): void;
2056
+ protected optionId(index: number): string;
2057
+ protected onFocusOut(event: FocusEvent): void;
2058
+ protected onDocumentPointer(event: MouseEvent): void;
2059
+ writeValue(value: unknown): void;
2060
+ registerOnChange(fn: (value: T | null) => void): void;
2061
+ registerOnTouched(fn: () => void): void;
2062
+ setDisabledState(disabled: boolean): void;
2063
+ private commit;
2064
+ /** Aramasız listede harfe basınca o harfle başlayan sonraki seçeneğe git. */
2065
+ private jumpTo;
2066
+ private nextEnabled;
2067
+ private scrollActiveIntoView;
2068
+ private positionPanel;
2069
+ private resolveControl;
2070
+ static ɵfac: i0.ɵɵFactoryDeclaration<HuSelect<any>, never>;
2071
+ static ɵcmp: i0.ɵɵComponentDeclaration<HuSelect<any>, "hu-select", never, {
2072
+ "options": {
2073
+ "alias": "options";
2074
+ "required": false;
2075
+ "isSignal": true;
2076
+ };
2077
+ "value": {
2078
+ "alias": "value";
2079
+ "required": false;
2080
+ "isSignal": true;
2081
+ };
2082
+ "placeholder": {
2083
+ "alias": "placeholder";
2084
+ "required": false;
2085
+ "isSignal": true;
2086
+ };
2087
+ "filter": {
2088
+ "alias": "filter";
2089
+ "required": false;
2090
+ "isSignal": true;
2091
+ };
2092
+ "filterThreshold": {
2093
+ "alias": "filterThreshold";
2094
+ "required": false;
2095
+ "isSignal": true;
2096
+ };
2097
+ "filterPlaceholder": {
2098
+ "alias": "filterPlaceholder";
2099
+ "required": false;
2100
+ "isSignal": true;
2101
+ };
2102
+ "showClear": {
2103
+ "alias": "showClear";
2104
+ "required": false;
2105
+ "isSignal": true;
2106
+ };
2107
+ "emptyMessage": {
2108
+ "alias": "emptyMessage";
2109
+ "required": false;
2110
+ "isSignal": true;
2111
+ };
2112
+ "size": {
2113
+ "alias": "size";
2114
+ "required": false;
2115
+ "isSignal": true;
2116
+ };
2117
+ "disabled": {
2118
+ "alias": "disabled";
2119
+ "required": false;
2120
+ "isSignal": true;
2121
+ };
2122
+ "ariaLabel": {
2123
+ "alias": "ariaLabel";
2124
+ "required": false;
2125
+ "isSignal": true;
2126
+ };
2127
+ "id": {
2128
+ "alias": "id";
2129
+ "required": false;
2130
+ "isSignal": true;
2131
+ };
2132
+ "compareWith": {
2133
+ "alias": "compareWith";
2134
+ "required": false;
2135
+ "isSignal": true;
2136
+ };
2137
+ }, {
2138
+ "value": "valueChange";
2139
+ "selectionChange": "selectionChange";
2140
+ "closed": "closed";
2141
+ }, never, never, true, never>;
2142
+ }
1972
2143
  /**
1973
2144
  * Hazır maskeler. Maske karakterleri: `9` rakam, `a` harf, `*` harf veya rakam;
1974
2145
  * diğer karakterler sabittir (`\9` ile kaçış).
@@ -2631,6 +2802,7 @@ export declare class HuDialog {
2631
2802
  close(): void;
2632
2803
  protected onNativeClose(): void;
2633
2804
  protected onCancel(event: Event): void;
2805
+ protected onMouseDown(event: MouseEvent): void;
2634
2806
  protected onClick(event: MouseEvent): void;
2635
2807
  static ɵfac: i0.ɵɵFactoryDeclaration<HuDialog, never>;
2636
2808
  static ɵcmp: i0.ɵɵComponentDeclaration<HuDialog, "hu-dialog", never, {