@mesgflow/ui-kit 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +200 -0
- package/fesm2022/mesgflow-ui-kit-accordion.mjs +75 -0
- package/fesm2022/mesgflow-ui-kit-accordion.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-alert.mjs +165 -0
- package/fesm2022/mesgflow-ui-kit-alert.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-avatar-group.mjs +88 -0
- package/fesm2022/mesgflow-ui-kit-avatar-group.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-avatar.mjs +123 -0
- package/fesm2022/mesgflow-ui-kit-avatar.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-badge.mjs +68 -0
- package/fesm2022/mesgflow-ui-kit-badge.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-banner.mjs +111 -0
- package/fesm2022/mesgflow-ui-kit-banner.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-box-input.mjs +78 -0
- package/fesm2022/mesgflow-ui-kit-box-input.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-brand.mjs +120 -0
- package/fesm2022/mesgflow-ui-kit-brand.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-breadcrumb.mjs +84 -0
- package/fesm2022/mesgflow-ui-kit-breadcrumb.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-button-group.mjs +37 -0
- package/fesm2022/mesgflow-ui-kit-button-group.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-button.mjs +359 -0
- package/fesm2022/mesgflow-ui-kit-button.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-card.mjs +128 -0
- package/fesm2022/mesgflow-ui-kit-card.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-chart.mjs +538 -0
- package/fesm2022/mesgflow-ui-kit-chart.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-checkbox.mjs +45 -0
- package/fesm2022/mesgflow-ui-kit-checkbox.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-chip.mjs +123 -0
- package/fesm2022/mesgflow-ui-kit-chip.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-code-block.mjs +71 -0
- package/fesm2022/mesgflow-ui-kit-code-block.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-collapsible.mjs +89 -0
- package/fesm2022/mesgflow-ui-kit-collapsible.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-color-picker.mjs +210 -0
- package/fesm2022/mesgflow-ui-kit-color-picker.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-combobox.mjs +181 -0
- package/fesm2022/mesgflow-ui-kit-combobox.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-command.mjs +491 -0
- package/fesm2022/mesgflow-ui-kit-command.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-context-menu.mjs +92 -0
- package/fesm2022/mesgflow-ui-kit-context-menu.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-copy-button.mjs +167 -0
- package/fesm2022/mesgflow-ui-kit-copy-button.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-core.mjs +624 -0
- package/fesm2022/mesgflow-ui-kit-core.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-date-picker.mjs +643 -0
- package/fesm2022/mesgflow-ui-kit-date-picker.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-description-list.mjs +76 -0
- package/fesm2022/mesgflow-ui-kit-description-list.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-dialog.mjs +700 -0
- package/fesm2022/mesgflow-ui-kit-dialog.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-divider.mjs +62 -0
- package/fesm2022/mesgflow-ui-kit-divider.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-dropzone.mjs +126 -0
- package/fesm2022/mesgflow-ui-kit-dropzone.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-empty-state.mjs +70 -0
- package/fesm2022/mesgflow-ui-kit-empty-state.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-field.mjs +42 -0
- package/fesm2022/mesgflow-ui-kit-field.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-hover-card.mjs +171 -0
- package/fesm2022/mesgflow-ui-kit-hover-card.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-i18n-tr.mjs +258 -0
- package/fesm2022/mesgflow-ui-kit-i18n-tr.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-icon.mjs +174 -0
- package/fesm2022/mesgflow-ui-kit-icon.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-input.mjs +448 -0
- package/fesm2022/mesgflow-ui-kit-input.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-kbd.mjs +24 -0
- package/fesm2022/mesgflow-ui-kit-kbd.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-link.mjs +48 -0
- package/fesm2022/mesgflow-ui-kit-link.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-menu.mjs +105 -0
- package/fesm2022/mesgflow-ui-kit-menu.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-number-input.mjs +153 -0
- package/fesm2022/mesgflow-ui-kit-number-input.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-otp-input.mjs +164 -0
- package/fesm2022/mesgflow-ui-kit-otp-input.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-page-header.mjs +83 -0
- package/fesm2022/mesgflow-ui-kit-page-header.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-pagination.mjs +99 -0
- package/fesm2022/mesgflow-ui-kit-pagination.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-password-input.mjs +120 -0
- package/fesm2022/mesgflow-ui-kit-password-input.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-popover.mjs +213 -0
- package/fesm2022/mesgflow-ui-kit-popover.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-progress.mjs +82 -0
- package/fesm2022/mesgflow-ui-kit-progress.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-radio.mjs +123 -0
- package/fesm2022/mesgflow-ui-kit-radio.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-rating.mjs +116 -0
- package/fesm2022/mesgflow-ui-kit-rating.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-scroll-area.mjs +84 -0
- package/fesm2022/mesgflow-ui-kit-scroll-area.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-search-input.mjs +154 -0
- package/fesm2022/mesgflow-ui-kit-search-input.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-segmented-control.mjs +95 -0
- package/fesm2022/mesgflow-ui-kit-segmented-control.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-select.mjs +227 -0
- package/fesm2022/mesgflow-ui-kit-select.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-sidebar.mjs +449 -0
- package/fesm2022/mesgflow-ui-kit-sidebar.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-skeleton.mjs +74 -0
- package/fesm2022/mesgflow-ui-kit-skeleton.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-slider.mjs +179 -0
- package/fesm2022/mesgflow-ui-kit-slider.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-spinner.mjs +67 -0
- package/fesm2022/mesgflow-ui-kit-spinner.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-splitter.mjs +97 -0
- package/fesm2022/mesgflow-ui-kit-splitter.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-stat-tile.mjs +98 -0
- package/fesm2022/mesgflow-ui-kit-stat-tile.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-stepper.mjs +133 -0
- package/fesm2022/mesgflow-ui-kit-stepper.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-switch.mjs +73 -0
- package/fesm2022/mesgflow-ui-kit-switch.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-table.mjs +1783 -0
- package/fesm2022/mesgflow-ui-kit-table.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-tabs.mjs +569 -0
- package/fesm2022/mesgflow-ui-kit-tabs.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-tag-input.mjs +138 -0
- package/fesm2022/mesgflow-ui-kit-tag-input.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-theme-switcher.mjs +53 -0
- package/fesm2022/mesgflow-ui-kit-theme-switcher.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-theming.mjs +1016 -0
- package/fesm2022/mesgflow-ui-kit-theming.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-time-picker.mjs +138 -0
- package/fesm2022/mesgflow-ui-kit-time-picker.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-timeline.mjs +91 -0
- package/fesm2022/mesgflow-ui-kit-timeline.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-toast.mjs +202 -0
- package/fesm2022/mesgflow-ui-kit-toast.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-toggle.mjs +243 -0
- package/fesm2022/mesgflow-ui-kit-toggle.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-toolbar.mjs +99 -0
- package/fesm2022/mesgflow-ui-kit-toolbar.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-tooltip.mjs +160 -0
- package/fesm2022/mesgflow-ui-kit-tooltip.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-tour.mjs +272 -0
- package/fesm2022/mesgflow-ui-kit-tour.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-tree-select.mjs +177 -0
- package/fesm2022/mesgflow-ui-kit-tree-select.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit-tree.mjs +82 -0
- package/fesm2022/mesgflow-ui-kit-tree.mjs.map +1 -0
- package/fesm2022/mesgflow-ui-kit.mjs +12851 -0
- package/fesm2022/mesgflow-ui-kit.mjs.map +1 -0
- package/package.json +374 -0
- package/preset.css +20 -0
- package/tokens/color.css +693 -0
- package/tokens/contrast.css +68 -0
- package/tokens/elevation.css +68 -0
- package/tokens/motion.css +277 -0
- package/tokens/radius.css +69 -0
- package/tokens/typography.css +127 -0
- package/tokens.css +41 -0
- package/types/mesgflow-ui-kit-accordion.d.ts +42 -0
- package/types/mesgflow-ui-kit-alert.d.ts +60 -0
- package/types/mesgflow-ui-kit-avatar-group.d.ts +28 -0
- package/types/mesgflow-ui-kit-avatar.d.ts +23 -0
- package/types/mesgflow-ui-kit-badge.d.ts +39 -0
- package/types/mesgflow-ui-kit-banner.d.ts +42 -0
- package/types/mesgflow-ui-kit-box-input.d.ts +45 -0
- package/types/mesgflow-ui-kit-brand.d.ts +48 -0
- package/types/mesgflow-ui-kit-breadcrumb.d.ts +26 -0
- package/types/mesgflow-ui-kit-button-group.d.ts +17 -0
- package/types/mesgflow-ui-kit-button.d.ts +75 -0
- package/types/mesgflow-ui-kit-card.d.ts +71 -0
- package/types/mesgflow-ui-kit-chart.d.ts +242 -0
- package/types/mesgflow-ui-kit-checkbox.d.ts +17 -0
- package/types/mesgflow-ui-kit-chip.d.ts +46 -0
- package/types/mesgflow-ui-kit-code-block.d.ts +56 -0
- package/types/mesgflow-ui-kit-collapsible.d.ts +39 -0
- package/types/mesgflow-ui-kit-color-picker.d.ts +78 -0
- package/types/mesgflow-ui-kit-combobox.d.ts +74 -0
- package/types/mesgflow-ui-kit-command.d.ts +185 -0
- package/types/mesgflow-ui-kit-context-menu.d.ts +40 -0
- package/types/mesgflow-ui-kit-copy-button.d.ts +47 -0
- package/types/mesgflow-ui-kit-core.d.ts +508 -0
- package/types/mesgflow-ui-kit-date-picker.d.ts +215 -0
- package/types/mesgflow-ui-kit-description-list.d.ts +23 -0
- package/types/mesgflow-ui-kit-dialog.d.ts +342 -0
- package/types/mesgflow-ui-kit-divider.d.ts +23 -0
- package/types/mesgflow-ui-kit-dropzone.d.ts +47 -0
- package/types/mesgflow-ui-kit-empty-state.d.ts +18 -0
- package/types/mesgflow-ui-kit-field.d.ts +26 -0
- package/types/mesgflow-ui-kit-hover-card.d.ts +52 -0
- package/types/mesgflow-ui-kit-i18n-tr.d.ts +14 -0
- package/types/mesgflow-ui-kit-icon.d.ts +76 -0
- package/types/mesgflow-ui-kit-input.d.ts +186 -0
- package/types/mesgflow-ui-kit-kbd.d.ts +9 -0
- package/types/mesgflow-ui-kit-link.d.ts +20 -0
- package/types/mesgflow-ui-kit-menu.d.ts +53 -0
- package/types/mesgflow-ui-kit-number-input.d.ts +55 -0
- package/types/mesgflow-ui-kit-otp-input.d.ts +44 -0
- package/types/mesgflow-ui-kit-page-header.d.ts +31 -0
- package/types/mesgflow-ui-kit-pagination.d.ts +50 -0
- package/types/mesgflow-ui-kit-password-input.d.ts +33 -0
- package/types/mesgflow-ui-kit-popover.d.ts +62 -0
- package/types/mesgflow-ui-kit-progress.d.ts +32 -0
- package/types/mesgflow-ui-kit-radio.d.ts +59 -0
- package/types/mesgflow-ui-kit-rating.d.ts +56 -0
- package/types/mesgflow-ui-kit-scroll-area.d.ts +27 -0
- package/types/mesgflow-ui-kit-search-input.d.ts +72 -0
- package/types/mesgflow-ui-kit-segmented-control.d.ts +54 -0
- package/types/mesgflow-ui-kit-select.d.ts +89 -0
- package/types/mesgflow-ui-kit-sidebar.d.ts +224 -0
- package/types/mesgflow-ui-kit-skeleton.d.ts +29 -0
- package/types/mesgflow-ui-kit-slider.d.ts +40 -0
- package/types/mesgflow-ui-kit-spinner.d.ts +31 -0
- package/types/mesgflow-ui-kit-splitter.d.ts +40 -0
- package/types/mesgflow-ui-kit-stat-tile.d.ts +54 -0
- package/types/mesgflow-ui-kit-stepper.d.ts +48 -0
- package/types/mesgflow-ui-kit-switch.d.ts +34 -0
- package/types/mesgflow-ui-kit-table.d.ts +805 -0
- package/types/mesgflow-ui-kit-tabs.d.ts +269 -0
- package/types/mesgflow-ui-kit-tag-input.d.ts +33 -0
- package/types/mesgflow-ui-kit-theme-switcher.d.ts +27 -0
- package/types/mesgflow-ui-kit-theming.d.ts +745 -0
- package/types/mesgflow-ui-kit-time-picker.d.ts +54 -0
- package/types/mesgflow-ui-kit-timeline.d.ts +27 -0
- package/types/mesgflow-ui-kit-toast.d.ts +94 -0
- package/types/mesgflow-ui-kit-toggle.d.ts +110 -0
- package/types/mesgflow-ui-kit-toolbar.d.ts +52 -0
- package/types/mesgflow-ui-kit-tooltip.d.ts +55 -0
- package/types/mesgflow-ui-kit-tour.d.ts +66 -0
- package/types/mesgflow-ui-kit-tree-select.d.ts +65 -0
- package/types/mesgflow-ui-kit-tree.d.ts +44 -0
- package/types/mesgflow-ui-kit.d.ts +5444 -0
|
@@ -0,0 +1,508 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
3
|
+
import * as _mesgflow_ui_kit_core from '@mesgflow/ui-kit/core';
|
|
4
|
+
import { InjectionToken, Signal, EnvironmentProviders } from '@angular/core';
|
|
5
|
+
import { Locale } from 'date-fns/locale';
|
|
6
|
+
|
|
7
|
+
/** clsx ile koşullu class'ları birleştirir, tailwind-merge ile çakışan utility'leri (ör. iki farklı `bg-*`) sonuncusu kazanacak şekilde çözer. */
|
|
8
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Yazı yönü yardımcıları — `dir="rtl"` (öğede ya da bir atada) ya da CSS `direction` kalıtımı.
|
|
12
|
+
* Hesaplanan stil okunur: yön bir atadan gelse de doğru sonuç verir. SSR'de (stil yok) LTR.
|
|
13
|
+
*/
|
|
14
|
+
declare function isRtl(el: Element): boolean;
|
|
15
|
+
/** İşaretçinin satır başından (LTR'de sol, RTL'de sağ kenar) oranı, 0–1 aralığına kırpılmış. */
|
|
16
|
+
declare function inlineStartRatio(clientX: number, rect: DOMRect, rtl: boolean): number;
|
|
17
|
+
/**
|
|
18
|
+
* Yatay kaydırmanın başlangıçtan uzaklığı. Modern tarayıcılarda RTL'de `scrollLeft` 0'dan
|
|
19
|
+
* NEGATİFE gider (başlangıç = 0, son = −max); mutlak değer iki yönde de "başlangıçtan uzaklık".
|
|
20
|
+
*/
|
|
21
|
+
declare function scrollFromInlineStart(el: Element): number;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Kit genelinde paylaşılan primitif tipler — her bileşenin kendi `size`/`tone`
|
|
25
|
+
* union'ını elle tekrar tanımlamak yerine buradan türetir. Bkz. plan dosyası
|
|
26
|
+
* "Faz 1a" — `tone` kelime dağarcığının (severity/tone/type karmaşasının)
|
|
27
|
+
* birleştiği tek kaynak burası olacak.
|
|
28
|
+
*/
|
|
29
|
+
type MfSize = 'sm' | 'md' | 'lg';
|
|
30
|
+
type MfTone = 'neutral' | 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'help';
|
|
31
|
+
type MfPlacement = 'top' | 'bottom' | 'left' | 'right' | 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end';
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Paylaşılan class reçeteleri — kontrol/overlay/kapsayıcı bileşenlerinin
|
|
35
|
+
* TEKRAR TEKRAR yazdığı focus/disabled/boyut/yüzey kalıplarının TEK kaynağı
|
|
36
|
+
* (bkz. plan Faz 1a/1b). Öncesinde 5 farklı disabled reçetesi, 4 farklı
|
|
37
|
+
* focus-offset kombinasyonu ve 9 elle yazılmış `h-8`/`h-9`/`h-10` sabiti
|
|
38
|
+
* vardı — her biri kendi kopyasını sürüklüyordu (gerçek bulgu). Bileşenler
|
|
39
|
+
* bunları `cn()` ile kendi özel class'larıyla birleştirir (`cn()` twMerge
|
|
40
|
+
* kullandığı için çakışan Tailwind utility'leri güvenle çözülür).
|
|
41
|
+
*/
|
|
42
|
+
/** `outline`+`outline-offset` tabanlı TEK focus mekanizması — bkz. `button.variants.ts`'in "Focus — tek mekanizma" notu. Box-shadow/ring KULLANMA. */
|
|
43
|
+
declare const focusRecipe = "focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus-ring";
|
|
44
|
+
/** Native `disabled` VE `aria-disabled` (ör. `@angular/aria` desenlerinin kullandığı) ikisini de kapsar — bkz. plan "Disabled 5 farklı reçete" bulgusu. */
|
|
45
|
+
declare const disabledRecipe = "disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none aria-disabled:pointer-events-none aria-disabled:opacity-50";
|
|
46
|
+
/** Input/Select/Combobox/NumberInput/... — tüm form kontrollerinin ortak kabuğu. `shadow-control` (bkz. elevation.css) — `shadow-1` DEĞİL, kontroller kapsayıcılarla AYNI yükselti basamağını paylaşmaz. */
|
|
47
|
+
declare const controlSurface = "rounded-md border border-border bg-surface text-fg shadow-control transition-colors duration-fast ease-emphasis hover:border-border-strong focus-within:border-accent";
|
|
48
|
+
/** `size: MfSize` eksenindeki TÜM kontrollerin ortak yükseklik/dolgu/font eşlemesi — bkz. `radius.css`'teki `--control-h-*` token'ları. */
|
|
49
|
+
declare const controlSize: Record<MfSize, string>;
|
|
50
|
+
/**
|
|
51
|
+
* Popover/Menu/Select/Combobox/... overlay panellerinin ortak kabuğu — BORDER-
|
|
52
|
+
* FIRST (2026-09 Deep Emerald geçişi, kullanıcı kararıyla eski "light modda
|
|
53
|
+
* kenarlıksız, sadece gölge" ilkesinin YERİNE geçti): iki modda da
|
|
54
|
+
* `border-hairline` (color.css — %8-12 opak marka-tonlu 1px çizgi) + `shadow-2`.
|
|
55
|
+
* Ağır/bulanık gölge yerine ince çizgi "premium" hissi artık BÖYLE veriliyor.
|
|
56
|
+
*/
|
|
57
|
+
declare const overlaySurface = "rounded-lg border border-hairline bg-overlay shadow-2";
|
|
58
|
+
/** Card/Table/StatTile gibi statik kapsayıcıların ortak kabuğu — BORDER-FIRST: iki modda da gölgesiz, sadece `border-hairline` (bkz. `overlaySurface`'in aynı gerekçesi). */
|
|
59
|
+
declare const containerSurface = "rounded-lg border border-hairline bg-surface";
|
|
60
|
+
/**
|
|
61
|
+
* Mikro glassmorphism — Dialog/Sheet/Drawer paneli ve Toast öğeleri (bkz.
|
|
62
|
+
* `dialog.variants.ts`, `toast-host.ts`) bunu kullanır. `supports-[…]` ile
|
|
63
|
+
* `backdrop-filter` desteklenmediğinde düz `bg-surface`'e düşer (eski
|
|
64
|
+
* tarayıcı/headless test ortamı); `reduced-transparency:` (color.css'te
|
|
65
|
+
* tanımlı custom variant, `prefers-reduced-transparency: reduce` medya
|
|
66
|
+
* sorgusu) kullanıcı saydamlığı azalt istediğinde camı KAPATIR — WCAG 1.4.11
|
|
67
|
+
* "Non-text Contrast" ve hareket/saydamlık duyarlılığı için. Tüketici kendi
|
|
68
|
+
* `border`/`rounded-*` genişliğini üstüne ekler.
|
|
69
|
+
*/
|
|
70
|
+
declare const glassSurface = "border-hairline bg-surface supports-[backdrop-filter]:bg-glass supports-[backdrop-filter]:backdrop-blur-md reduced-transparency:bg-surface reduced-transparency:backdrop-blur-none";
|
|
71
|
+
/** `hasError`/`aria-invalid` durumundaki form kontrolleri için — `controlSurface` İLE BİRLİKTE, üstüne eklenir. */
|
|
72
|
+
declare const errorRecipe = "border-danger focus-within:border-danger focus-visible:outline-danger";
|
|
73
|
+
/**
|
|
74
|
+
* Renk/gölge geçişlerinin TEK hareket dili — `ease-emphasis` kitin kendi eğrisi
|
|
75
|
+
* (bkz. `motion.css`), tarayıcı varsayılanı `ease` DEĞİL. Öncesinde ~35 yerde
|
|
76
|
+
* `transition-colors duration-fast` easing'siz kullanılıyordu (gerçek bulgu,
|
|
77
|
+
* bkz. plan Faz 1c).
|
|
78
|
+
*/
|
|
79
|
+
declare const transitionRecipe = "transition-colors duration-fast ease-emphasis";
|
|
80
|
+
/** Basılı-hissi — `active:scale` ekseninde TEK reçete, disabled'da sıfırlanır. */
|
|
81
|
+
declare const pressRecipe = "active:scale-[0.99] disabled:active:scale-100";
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Bileşen örneği başına kararlı, benzersiz bir DOM id'si üretir —
|
|
85
|
+
* `aria-controls`/`aria-describedby`/`aria-activedescendant` gibi bağların
|
|
86
|
+
* her component klasöründe kendi elle sayaçlarını (bkz. `combobox.ts`'teki
|
|
87
|
+
* `comboboxIdSeq` — bu modül kullanıma girince oraya taşınacak) tekrar
|
|
88
|
+
* yazmasına gerek kalmasın diye. SSR'da hydration uyuşmazlığı YARATMAZ —
|
|
89
|
+
* her platformda modül yüklendiğinde sıfırdan başlar, sayaç deterministik.
|
|
90
|
+
*/
|
|
91
|
+
declare function nextId(prefix: string): string;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* `registerOnChange`/`registerOnTouched`'ın HER `ControlValueAccessor`
|
|
95
|
+
* implementasyonunda BİREBİR aynı kalan gövdesini tek kaynağa indirger
|
|
96
|
+
* (bkz. Select/NumberInput/Combobox/ColorPicker'ın öncesi — 4+ kopya, plan
|
|
97
|
+
* Faz 2 "CVA tamamlama" notu). Alt sınıf SADECE `writeValue`'yu (kendi
|
|
98
|
+
* `model`/`signal`'ına yazan) tanımlar VE kendi `NG_VALUE_ACCESSOR`
|
|
99
|
+
* provider'ını `@Component`'ında bildirir — `forwardRef(() => AltSınıf)`
|
|
100
|
+
* somut sınıfa ihtiyaç duyduğu için provider MİRAS ALINAMAZ.
|
|
101
|
+
*
|
|
102
|
+
* Düz bir soyut sınıf (Angular `@Directive()` DEĞİL) — `inject()` ya da
|
|
103
|
+
* yaşam döngüsü kancası kullanmıyor, sadece alan/metot mirası; `@Directive()`
|
|
104
|
+
* sarmalamak gereksiz karmaşıklık olurdu.
|
|
105
|
+
*/
|
|
106
|
+
declare abstract class ValueAccessorBase<T> {
|
|
107
|
+
protected onChange: (value: T) => void;
|
|
108
|
+
protected onTouched: () => void;
|
|
109
|
+
registerOnChange(fn: (value: T) => void): void;
|
|
110
|
+
registerOnTouched(fn: () => void): void;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* `Popover`'ın (`PLACEMENTS`) ve `Tooltip`'in (`POSITIONS`) kendi dosyalarında
|
|
115
|
+
* ayrı ayrı tuttuğu CDK `ConnectedPosition[]` çiftlerinin ORTAK geometri
|
|
116
|
+
* üretici hâli — 8 yerleşimin (4 köşe + 4 kenar) hepsini tek bir fonksiyonla
|
|
117
|
+
* üretir, `offset` çağıranın KENDİ mevcut değerini (Popover 4px, Tooltip 8px,
|
|
118
|
+
* diğer overlay'ler 4-8px arası değişen) korumasını sağlar.
|
|
119
|
+
*
|
|
120
|
+
* Bu modül BİLEREK henüz hiçbir bileşene BAĞLANMADI (Faz 0c) — `Popover`,
|
|
121
|
+
* `Tooltip` ve 10 kopya `ConnectedPosition[]` içeren diğer bileşenlerin buna
|
|
122
|
+
* geçişi Faz 1c'nin ("Overlay birleştirme") kapsamı: her biri kendi klavye/
|
|
123
|
+
* vurgu mantığını koruyarak taşınmalı ve tarayıcıda tek tek doğrulanmalı —
|
|
124
|
+
* bu fazın (yapısal taşıma) riskiyle karıştırılmamalı.
|
|
125
|
+
*/
|
|
126
|
+
declare function overlayPositions(placement: MfPlacement, offset?: number): ConnectedPosition[];
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Kitin TÜM metinlerinin TEK şekli — `MF_LABELS` injection token'ının taşıdığı
|
|
130
|
+
* tip (bkz. `tokens.ts`). Her alt-nesne bir bileşen ailesinin metinlerini
|
|
131
|
+
* gruplar (Dialog'un önceki `MfDialogLabels`'ı ve DatePicker/Table'ın "grup
|
|
132
|
+
* input" çantalarıyla AYNI emsal — tek fark artık HEPSİ tek bir kökten
|
|
133
|
+
* `provideMesgflowUi()` ile sağlanıyor, bkz. `provide.ts`).
|
|
134
|
+
*/
|
|
135
|
+
interface MfCommonLabels {
|
|
136
|
+
loading: string;
|
|
137
|
+
clear: string;
|
|
138
|
+
remove: string;
|
|
139
|
+
}
|
|
140
|
+
interface MfDialogLabels {
|
|
141
|
+
close: string;
|
|
142
|
+
resize: string;
|
|
143
|
+
fullscreenEnter: string;
|
|
144
|
+
fullscreenExit: string;
|
|
145
|
+
confirmOk: string;
|
|
146
|
+
confirmCancel: string;
|
|
147
|
+
confirmConfirm: string;
|
|
148
|
+
confirmDelete: string;
|
|
149
|
+
errorGeneric: string;
|
|
150
|
+
discard: {
|
|
151
|
+
title: string;
|
|
152
|
+
content: string;
|
|
153
|
+
confirm: string;
|
|
154
|
+
cancel: string;
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
interface MfDatePickerLabels {
|
|
158
|
+
today: string;
|
|
159
|
+
clear: string;
|
|
160
|
+
apply: string;
|
|
161
|
+
previousMonth: string;
|
|
162
|
+
nextMonth: string;
|
|
163
|
+
previousYear: string;
|
|
164
|
+
nextYear: string;
|
|
165
|
+
chooseMonth: string;
|
|
166
|
+
chooseYear: string;
|
|
167
|
+
startDate: string;
|
|
168
|
+
endDate: string;
|
|
169
|
+
placeholder: string;
|
|
170
|
+
presetToday: string;
|
|
171
|
+
presetLast7: string;
|
|
172
|
+
presetLast30: string;
|
|
173
|
+
presetThisMonth: string;
|
|
174
|
+
}
|
|
175
|
+
interface MfTimePickerLabels {
|
|
176
|
+
placeholder: string;
|
|
177
|
+
clear: string;
|
|
178
|
+
}
|
|
179
|
+
interface MfTableFilterOperatorLabels {
|
|
180
|
+
equal: string;
|
|
181
|
+
notEqual: string;
|
|
182
|
+
greaterThan: string;
|
|
183
|
+
greaterOrEqual: string;
|
|
184
|
+
lessThan: string;
|
|
185
|
+
lessOrEqual: string;
|
|
186
|
+
contains: string;
|
|
187
|
+
startsWith: string;
|
|
188
|
+
endsWith: string;
|
|
189
|
+
in: string;
|
|
190
|
+
isNull: string;
|
|
191
|
+
isNotNull: string;
|
|
192
|
+
between: string;
|
|
193
|
+
}
|
|
194
|
+
interface MfTableFilterLabels {
|
|
195
|
+
addFilter: string;
|
|
196
|
+
searchField: string;
|
|
197
|
+
noField: string;
|
|
198
|
+
operator: string;
|
|
199
|
+
value: string;
|
|
200
|
+
apply: string;
|
|
201
|
+
enterHint: string;
|
|
202
|
+
clearAll: string;
|
|
203
|
+
and: string;
|
|
204
|
+
or: string;
|
|
205
|
+
remove: string;
|
|
206
|
+
back: string;
|
|
207
|
+
dateToday: string;
|
|
208
|
+
dateLast7: string;
|
|
209
|
+
dateLast30: string;
|
|
210
|
+
dateThisMonth: string;
|
|
211
|
+
dateCustom: string;
|
|
212
|
+
dateFrom: string;
|
|
213
|
+
dateTo: string;
|
|
214
|
+
operators: MfTableFilterOperatorLabels;
|
|
215
|
+
}
|
|
216
|
+
interface MfTablePaginationLabels {
|
|
217
|
+
records: string;
|
|
218
|
+
perPage: string;
|
|
219
|
+
page: string;
|
|
220
|
+
previous: string;
|
|
221
|
+
next: string;
|
|
222
|
+
first: string;
|
|
223
|
+
last: string;
|
|
224
|
+
pageSizeAriaLabel: string;
|
|
225
|
+
navAriaLabel: string;
|
|
226
|
+
jumpToPage: string;
|
|
227
|
+
go: string;
|
|
228
|
+
}
|
|
229
|
+
interface MfTableLabels {
|
|
230
|
+
searchPlaceholder: string;
|
|
231
|
+
selectedCount: string;
|
|
232
|
+
edit: string;
|
|
233
|
+
delete: string;
|
|
234
|
+
clearSelection: string;
|
|
235
|
+
emptyTitle: string;
|
|
236
|
+
emptyDescription: string;
|
|
237
|
+
noResultsTitle: string;
|
|
238
|
+
noResultsDescription: string;
|
|
239
|
+
clearFilters: string;
|
|
240
|
+
filterCount: string;
|
|
241
|
+
selectAllAriaLabel: string;
|
|
242
|
+
selectRowAriaLabel: string;
|
|
243
|
+
actionsColumnLabel: string;
|
|
244
|
+
columns: string;
|
|
245
|
+
density: string;
|
|
246
|
+
densityComfortable: string;
|
|
247
|
+
densityCompact: string;
|
|
248
|
+
resizeColumn: string;
|
|
249
|
+
expandRow: string;
|
|
250
|
+
collapseRow: string;
|
|
251
|
+
filter: MfTableFilterLabels;
|
|
252
|
+
pagination: MfTablePaginationLabels;
|
|
253
|
+
}
|
|
254
|
+
interface MfSidebarLabels {
|
|
255
|
+
collapse: string;
|
|
256
|
+
expand: string;
|
|
257
|
+
switchTenant: string;
|
|
258
|
+
noTenants: string;
|
|
259
|
+
noUser: string;
|
|
260
|
+
nav: string;
|
|
261
|
+
}
|
|
262
|
+
interface MfTabsLabels {
|
|
263
|
+
scrollStart: string;
|
|
264
|
+
scrollEnd: string;
|
|
265
|
+
close: string;
|
|
266
|
+
}
|
|
267
|
+
interface MfDropzoneLabels {
|
|
268
|
+
label: string;
|
|
269
|
+
}
|
|
270
|
+
interface MfColorPickerLabels {
|
|
271
|
+
ariaLabel: string;
|
|
272
|
+
hexAriaLabel: string;
|
|
273
|
+
pickFromScreenAriaLabel: string;
|
|
274
|
+
}
|
|
275
|
+
interface MfBoxInputLabels {
|
|
276
|
+
top: string;
|
|
277
|
+
right: string;
|
|
278
|
+
bottom: string;
|
|
279
|
+
left: string;
|
|
280
|
+
linkSides: string;
|
|
281
|
+
unlinkSides: string;
|
|
282
|
+
}
|
|
283
|
+
interface MfComboboxLabels {
|
|
284
|
+
placeholder: string;
|
|
285
|
+
noResults: string;
|
|
286
|
+
}
|
|
287
|
+
interface MfSelectLabels {
|
|
288
|
+
placeholder: string;
|
|
289
|
+
}
|
|
290
|
+
interface MfSearchInputLabels {
|
|
291
|
+
placeholder: string;
|
|
292
|
+
ariaLabel: string;
|
|
293
|
+
clearAriaLabel: string;
|
|
294
|
+
}
|
|
295
|
+
interface MfToastLabels {
|
|
296
|
+
dismiss: string;
|
|
297
|
+
}
|
|
298
|
+
interface MfOtpInputLabels {
|
|
299
|
+
ariaLabel: string;
|
|
300
|
+
}
|
|
301
|
+
interface MfStepperLabels {
|
|
302
|
+
ariaLabel: string;
|
|
303
|
+
}
|
|
304
|
+
interface MfProgressLabels {
|
|
305
|
+
ariaLabel: string;
|
|
306
|
+
}
|
|
307
|
+
interface MfPasswordInputLabels {
|
|
308
|
+
show: string;
|
|
309
|
+
hide: string;
|
|
310
|
+
}
|
|
311
|
+
interface MfChipLabels {
|
|
312
|
+
remove: string;
|
|
313
|
+
}
|
|
314
|
+
interface MfAlertLabels {
|
|
315
|
+
dismiss: string;
|
|
316
|
+
}
|
|
317
|
+
interface MfBreadcrumbLabels {
|
|
318
|
+
ariaLabel: string;
|
|
319
|
+
}
|
|
320
|
+
interface MfAvatarGroupLabels {
|
|
321
|
+
/** "+N" göstergesinin aria-label'ı — `overflowCount() + ' ' + overflowAriaLabel`. */
|
|
322
|
+
overflowAriaLabel: string;
|
|
323
|
+
}
|
|
324
|
+
/** Grafik ailesi (LineChart/Sparkline) — tablo görünümü anahtarı (grafiğin erişilebilir ikizi) ve tablonun ilk sütun başlığı. */
|
|
325
|
+
/** Ağaçtan seçim (`mf-tree-select`). */
|
|
326
|
+
interface MfTreeSelectLabels {
|
|
327
|
+
placeholder: string;
|
|
328
|
+
searchPlaceholder: string;
|
|
329
|
+
noResults: string;
|
|
330
|
+
}
|
|
331
|
+
/** Açık/koyu/sistem değiştirici (`mf-theme-switcher`). */
|
|
332
|
+
interface MfThemeSwitcherLabels {
|
|
333
|
+
ariaLabel: string;
|
|
334
|
+
light: string;
|
|
335
|
+
dark: string;
|
|
336
|
+
system: string;
|
|
337
|
+
}
|
|
338
|
+
/** Puanlama — `outOf` iki sayının ARASINA yazılır ("3 out of 5"). */
|
|
339
|
+
interface MfRatingLabels {
|
|
340
|
+
ariaLabel: string;
|
|
341
|
+
outOf: string;
|
|
342
|
+
}
|
|
343
|
+
/** Ürün turu — `stepOf` iki sayının ARASINA yazılır ("2 of 5"). */
|
|
344
|
+
interface MfTourLabels {
|
|
345
|
+
next: string;
|
|
346
|
+
back: string;
|
|
347
|
+
skip: string;
|
|
348
|
+
done: string;
|
|
349
|
+
stepOf: string;
|
|
350
|
+
}
|
|
351
|
+
/** Bağımsız sayfalama (`mf-pagination`) — `page` sayının ÖNÜNE yazılır ("Page 3"). */
|
|
352
|
+
interface MfPaginationLabels {
|
|
353
|
+
navAriaLabel: string;
|
|
354
|
+
previous: string;
|
|
355
|
+
next: string;
|
|
356
|
+
first: string;
|
|
357
|
+
last: string;
|
|
358
|
+
page: string;
|
|
359
|
+
}
|
|
360
|
+
/** Kopyala düğmesi + kod bloğu (`code` = kaydırılabilir kod bölgesinin erişilebilir adı). */
|
|
361
|
+
interface MfCopyLabels {
|
|
362
|
+
copy: string;
|
|
363
|
+
copied: string;
|
|
364
|
+
failed: string;
|
|
365
|
+
code: string;
|
|
366
|
+
}
|
|
367
|
+
/** Karakter sayacı — sayıların ARDINA yazılır ("12 characters remaining"). */
|
|
368
|
+
interface MfCharacterCountLabels {
|
|
369
|
+
remaining: string;
|
|
370
|
+
overLimit: string;
|
|
371
|
+
characters: string;
|
|
372
|
+
}
|
|
373
|
+
/** Komut paleti (`mf-command`) — `resultsCount` sayının ARDINA yazılır ("8 results"). */
|
|
374
|
+
interface MfCommandLabels {
|
|
375
|
+
placeholder: string;
|
|
376
|
+
ariaLabel: string;
|
|
377
|
+
empty: string;
|
|
378
|
+
resultsCount: string;
|
|
379
|
+
navigate: string;
|
|
380
|
+
select: string;
|
|
381
|
+
close: string;
|
|
382
|
+
}
|
|
383
|
+
interface MfChartLabels {
|
|
384
|
+
showTable: string;
|
|
385
|
+
showChart: string;
|
|
386
|
+
category: string;
|
|
387
|
+
}
|
|
388
|
+
interface MfLabels {
|
|
389
|
+
common: MfCommonLabels;
|
|
390
|
+
dialog: MfDialogLabels;
|
|
391
|
+
datePicker: MfDatePickerLabels;
|
|
392
|
+
timePicker: MfTimePickerLabels;
|
|
393
|
+
table: MfTableLabels;
|
|
394
|
+
sidebar: MfSidebarLabels;
|
|
395
|
+
tabs: MfTabsLabels;
|
|
396
|
+
dropzone: MfDropzoneLabels;
|
|
397
|
+
colorPicker: MfColorPickerLabels;
|
|
398
|
+
boxInput: MfBoxInputLabels;
|
|
399
|
+
combobox: MfComboboxLabels;
|
|
400
|
+
select: MfSelectLabels;
|
|
401
|
+
searchInput: MfSearchInputLabels;
|
|
402
|
+
toast: MfToastLabels;
|
|
403
|
+
otpInput: MfOtpInputLabels;
|
|
404
|
+
stepper: MfStepperLabels;
|
|
405
|
+
progress: MfProgressLabels;
|
|
406
|
+
passwordInput: MfPasswordInputLabels;
|
|
407
|
+
chip: MfChipLabels;
|
|
408
|
+
alert: MfAlertLabels;
|
|
409
|
+
breadcrumb: MfBreadcrumbLabels;
|
|
410
|
+
avatarGroup: MfAvatarGroupLabels;
|
|
411
|
+
chart: MfChartLabels;
|
|
412
|
+
command: MfCommandLabels;
|
|
413
|
+
characterCount: MfCharacterCountLabels;
|
|
414
|
+
copy: MfCopyLabels;
|
|
415
|
+
pagination: MfPaginationLabels;
|
|
416
|
+
tour: MfTourLabels;
|
|
417
|
+
rating: MfRatingLabels;
|
|
418
|
+
themeSwitcher: MfThemeSwitcherLabels;
|
|
419
|
+
treeSelect: MfTreeSelectLabels;
|
|
420
|
+
}
|
|
421
|
+
/** `provideMesgflowUi({ labels })`'ın kabul ettiği şekil — her alt-alan opsiyonel, verilmeyen her yaprak `mfLabelsEn`'den gelir. */
|
|
422
|
+
type DeepPartial<T> = T extends object ? {
|
|
423
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
424
|
+
} : T;
|
|
425
|
+
/** `base`'i `override`'daki tanımlı yapraklarla değiştirir — dizi yok, her düğüm ya iç içe nesne ya string, sığ `Object.assign` yerine gerçek derin birleştirme gerekiyor (bkz. `provide.ts`). Generic'i `Record<string, unknown>`'a KISITLAMIYOR BİLEREK — `MfLabels` gibi index-signature'ı olmayan named interface'ler o kısıtla uyuşmuyor (bkz. TS2345), bunun yerine iç kısımda cast ediliyor. */
|
|
426
|
+
declare function mergeLabels<T>(base: T, override: DeepPartial<T> | undefined): T;
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* `MF_LABELS`'ın varsayılan değeri — hiçbir `provideMesgflowUi()` çağrısı
|
|
430
|
+
* olmayan bir tüketici uygulamada bileşenler bu İngilizce metinlerle çalışır
|
|
431
|
+
* (bkz. CLAUDE.md/plan kararı: "bileşen varsayılan metinleri İngilizce").
|
|
432
|
+
* Türkçe çeviri kümesi için bkz. `@mesgflow/ui-kit/i18n/tr`'nin `mfLabelsTr`'si —
|
|
433
|
+
* bu iki dosya AYNI şekli (bkz. `labels.ts`), farklı değerleri taşır.
|
|
434
|
+
*/
|
|
435
|
+
declare const mfLabelsEn: MfLabels;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Kitin TEK metin kaynağı — `provideMesgflowUi()` (bkz. `provide.ts`)
|
|
439
|
+
* `provide` etmezse tüketici İngilizce varsayılanlarla çalışır (ng-zorro'nun
|
|
440
|
+
* `NZ_I18N`'i / PrimeNG'nin `providePrimeNG` config'iyle aynı desen — bu kit
|
|
441
|
+
* daha önce sadece Dialog için uyguluyordu, `MF_DIALOG_LABELS` artık bu
|
|
442
|
+
* token'dan türeyen bir "seçici" — bkz. aşağıdaki `labelToken`).
|
|
443
|
+
*/
|
|
444
|
+
declare const MF_LABELS: InjectionToken<Signal<MfLabels>>;
|
|
445
|
+
/** Calendar/DatePicker'ın ay/gün adları için — varsayılan `enUS`, `provideMesgflowUi({ dateLocale })` ile değiştirilir. */
|
|
446
|
+
declare const MF_DATE_LOCALE: InjectionToken<Signal<Locale>>;
|
|
447
|
+
declare const MF_COMMON_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfCommonLabels>>;
|
|
448
|
+
declare const MF_DIALOG_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfDialogLabels>>;
|
|
449
|
+
declare const MF_DATE_PICKER_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfDatePickerLabels>>;
|
|
450
|
+
declare const MF_TIME_PICKER_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfTimePickerLabels>>;
|
|
451
|
+
declare const MF_TABLE_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfTableLabels>>;
|
|
452
|
+
declare const MF_SIDEBAR_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfSidebarLabels>>;
|
|
453
|
+
declare const MF_TABS_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfTabsLabels>>;
|
|
454
|
+
declare const MF_DROPZONE_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfDropzoneLabels>>;
|
|
455
|
+
declare const MF_COLOR_PICKER_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfColorPickerLabels>>;
|
|
456
|
+
declare const MF_BOX_INPUT_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfBoxInputLabels>>;
|
|
457
|
+
declare const MF_COMBOBOX_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfComboboxLabels>>;
|
|
458
|
+
declare const MF_SELECT_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfSelectLabels>>;
|
|
459
|
+
declare const MF_SEARCH_INPUT_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfSearchInputLabels>>;
|
|
460
|
+
declare const MF_TOAST_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfToastLabels>>;
|
|
461
|
+
declare const MF_OTP_INPUT_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfOtpInputLabels>>;
|
|
462
|
+
declare const MF_STEPPER_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfStepperLabels>>;
|
|
463
|
+
declare const MF_PROGRESS_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfProgressLabels>>;
|
|
464
|
+
declare const MF_PASSWORD_INPUT_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfPasswordInputLabels>>;
|
|
465
|
+
declare const MF_CHIP_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfChipLabels>>;
|
|
466
|
+
declare const MF_ALERT_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfAlertLabels>>;
|
|
467
|
+
declare const MF_BREADCRUMB_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfBreadcrumbLabels>>;
|
|
468
|
+
declare const MF_AVATAR_GROUP_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfAvatarGroupLabels>>;
|
|
469
|
+
declare const MF_CHART_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfChartLabels>>;
|
|
470
|
+
declare const MF_COMMAND_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfCommandLabels>>;
|
|
471
|
+
declare const MF_CHARACTER_COUNT_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfCharacterCountLabels>>;
|
|
472
|
+
declare const MF_COPY_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfCopyLabels>>;
|
|
473
|
+
declare const MF_PAGINATION_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfPaginationLabels>>;
|
|
474
|
+
declare const MF_TOUR_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfTourLabels>>;
|
|
475
|
+
declare const MF_RATING_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfRatingLabels>>;
|
|
476
|
+
declare const MF_THEME_SWITCHER_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfThemeSwitcherLabels>>;
|
|
477
|
+
declare const MF_TREE_SELECT_LABELS: InjectionToken<Signal<_mesgflow_ui_kit_core.MfTreeSelectLabels>>;
|
|
478
|
+
|
|
479
|
+
interface ProvideMesgflowUiOptions {
|
|
480
|
+
/**
|
|
481
|
+
* `mfLabelsEn`'in üstüne yazılacak alanlar — ya sabit bir `DeepPartial<MfLabels>`
|
|
482
|
+
* (ör. `mfLabelsTr`, bkz. `@mesgflow/ui-kit/i18n/tr`) ya da tüketicinin kendi
|
|
483
|
+
* i18n sistemine bağlı, dil değişince CANLI güncellenen bir `Signal`. Her
|
|
484
|
+
* iki durumda da verilmeyen her yaprak `mfLabelsEn`'den gelir — TAM bir
|
|
485
|
+
* `MfLabels` nesnesi sağlamak ZORUNLU değil.
|
|
486
|
+
*/
|
|
487
|
+
labels?: DeepPartial<MfLabels> | Signal<DeepPartial<MfLabels>>;
|
|
488
|
+
/** Calendar/DatePicker ay/gün adları — varsayılan `date-fns/locale`'in `enUS`'u. */
|
|
489
|
+
dateLocale?: Locale;
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* `app.config.ts`'in `providers` dizisine eklenir — `MF_LABELS`/`MF_DATE_LOCALE`'ı
|
|
493
|
+
* (ve bunlardan türeyen `MF_DIALOG_LABELS`/`MF_TABLE_LABELS`/… seçici
|
|
494
|
+
* token'larını, bkz. `tokens.ts`) tüketicinin verdiği değerlerle sağlar.
|
|
495
|
+
* Hiç çağrılmazsa kit İngilizce varsayılanlarla (`mfLabelsEn`, `enUS`) çalışır.
|
|
496
|
+
*
|
|
497
|
+
* ```ts
|
|
498
|
+
* import { provideMesgflowUi } from '@mesgflow/ui-kit';
|
|
499
|
+
* import { mfLabelsTr } from '@mesgflow/ui-kit/i18n/tr';
|
|
500
|
+
* import { tr } from 'date-fns/locale';
|
|
501
|
+
*
|
|
502
|
+
* providers: [provideMesgflowUi({ labels: mfLabelsTr, dateLocale: tr })]
|
|
503
|
+
* ```
|
|
504
|
+
*/
|
|
505
|
+
declare function provideMesgflowUi(options?: ProvideMesgflowUiOptions): EnvironmentProviders;
|
|
506
|
+
|
|
507
|
+
export { MF_ALERT_LABELS, MF_AVATAR_GROUP_LABELS, MF_BOX_INPUT_LABELS, MF_BREADCRUMB_LABELS, MF_CHARACTER_COUNT_LABELS, MF_CHART_LABELS, MF_CHIP_LABELS, MF_COLOR_PICKER_LABELS, MF_COMBOBOX_LABELS, MF_COMMAND_LABELS, MF_COMMON_LABELS, MF_COPY_LABELS, MF_DATE_LOCALE, MF_DATE_PICKER_LABELS, MF_DIALOG_LABELS, MF_DROPZONE_LABELS, MF_LABELS, MF_OTP_INPUT_LABELS, MF_PAGINATION_LABELS, MF_PASSWORD_INPUT_LABELS, MF_PROGRESS_LABELS, MF_RATING_LABELS, MF_SEARCH_INPUT_LABELS, MF_SELECT_LABELS, MF_SIDEBAR_LABELS, MF_STEPPER_LABELS, MF_TABLE_LABELS, MF_TABS_LABELS, MF_THEME_SWITCHER_LABELS, MF_TIME_PICKER_LABELS, MF_TOAST_LABELS, MF_TOUR_LABELS, MF_TREE_SELECT_LABELS, ValueAccessorBase, cn, containerSurface, controlSize, controlSurface, disabledRecipe, errorRecipe, focusRecipe, glassSurface, inlineStartRatio, isRtl, mergeLabels, mfLabelsEn, nextId, overlayPositions, overlaySurface, pressRecipe, provideMesgflowUi, scrollFromInlineStart, transitionRecipe };
|
|
508
|
+
export type { DeepPartial, MfAlertLabels, MfAvatarGroupLabels, MfBoxInputLabels, MfBreadcrumbLabels, MfCharacterCountLabels, MfChartLabels, MfChipLabels, MfColorPickerLabels, MfComboboxLabels, MfCommandLabels, MfCommonLabels, MfCopyLabels, MfDatePickerLabels, MfDialogLabels, MfDropzoneLabels, MfLabels, MfOtpInputLabels, MfPaginationLabels, MfPasswordInputLabels, MfPlacement, MfProgressLabels, MfRatingLabels, MfSearchInputLabels, MfSelectLabels, MfSidebarLabels, MfSize, MfStepperLabels, MfTableFilterLabels, MfTableFilterOperatorLabels, MfTableLabels, MfTablePaginationLabels, MfTabsLabels, MfThemeSwitcherLabels, MfTimePickerLabels, MfToastLabels, MfTone, MfTourLabels, MfTreeSelectLabels, ProvideMesgflowUiOptions };
|