@konce-pt/angular 0.7.11 → 0.7.12

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 (83) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/charts/src/lib/llms.txt +30 -30
  3. package/grid/src/lib/llms.txt +48 -48
  4. package/map/src/lib/llms.txt +446 -446
  5. package/package.json +1 -1
  6. package/roadmap/src/lib/llms.txt +74 -74
  7. package/src/lib/accordion/llms.txt +9 -9
  8. package/src/lib/alert/llms.txt +10 -10
  9. package/src/lib/app-shell/llms.txt +59 -59
  10. package/src/lib/auth/llms.txt +58 -58
  11. package/src/lib/autocomplete/llms.txt +8 -8
  12. package/src/lib/avatar/llms.txt +9 -9
  13. package/src/lib/avatar-group/llms.txt +8 -8
  14. package/src/lib/badge/llms.txt +9 -9
  15. package/src/lib/bottom-sheet/llms.txt +14 -14
  16. package/src/lib/breadcrumb/llms.txt +7 -7
  17. package/src/lib/breakpoint/llms.txt +21 -21
  18. package/src/lib/button/llms.txt +34 -34
  19. package/src/lib/button-group/llms.txt +5 -5
  20. package/src/lib/card/llms.txt +27 -27
  21. package/src/lib/carousel/llms.txt +11 -11
  22. package/src/lib/checkbox/llms.txt +7 -7
  23. package/src/lib/chip/llms.txt +6 -6
  24. package/src/lib/chips-input/llms.txt +9 -9
  25. package/src/lib/color-picker/llms.txt +7 -7
  26. package/src/lib/confirm/llms.txt +11 -11
  27. package/src/lib/context-menu/llms.txt +10 -10
  28. package/src/lib/data-table/llms.txt +170 -170
  29. package/src/lib/data-view/llms.txt +8 -8
  30. package/src/lib/date-range/llms.txt +25 -25
  31. package/src/lib/datepicker/llms.txt +48 -48
  32. package/src/lib/dialog/llms.txt +62 -62
  33. package/src/lib/divider/llms.txt +9 -9
  34. package/src/lib/drawer/llms.txt +18 -18
  35. package/src/lib/empty/llms.txt +9 -9
  36. package/src/lib/fab/llms.txt +12 -12
  37. package/src/lib/fieldset/llms.txt +9 -9
  38. package/src/lib/file-upload/llms.txt +10 -10
  39. package/src/lib/form-field/llms.txt +45 -45
  40. package/src/lib/galleria/llms.txt +7 -7
  41. package/src/lib/i18n/llms.txt +21 -21
  42. package/src/lib/icon/llms.txt +20 -20
  43. package/src/lib/icon-button/llms.txt +8 -8
  44. package/src/lib/image/llms.txt +9 -9
  45. package/src/lib/input/llms.txt +27 -27
  46. package/src/lib/input-mask/llms.txt +10 -10
  47. package/src/lib/input-number/llms.txt +34 -34
  48. package/src/lib/input-otp/llms.txt +11 -11
  49. package/src/lib/knob/llms.txt +14 -14
  50. package/src/lib/listbox/llms.txt +8 -8
  51. package/src/lib/megamenu/llms.txt +13 -13
  52. package/src/lib/menu/llms.txt +26 -26
  53. package/src/lib/menubar/llms.txt +10 -10
  54. package/src/lib/meter-group/llms.txt +8 -8
  55. package/src/lib/order-list/llms.txt +8 -8
  56. package/src/lib/paginator/llms.txt +12 -12
  57. package/src/lib/panel/llms.txt +12 -12
  58. package/src/lib/password/llms.txt +12 -12
  59. package/src/lib/pick-list/llms.txt +8 -8
  60. package/src/lib/popover/llms.txt +8 -8
  61. package/src/lib/progress/llms.txt +6 -6
  62. package/src/lib/radio-group/llms.txt +5 -5
  63. package/src/lib/rating/llms.txt +6 -6
  64. package/src/lib/rich-text/llms.txt +50 -50
  65. package/src/lib/scroll-top/llms.txt +7 -7
  66. package/src/lib/select/llms.txt +26 -26
  67. package/src/lib/sidenav/llms.txt +24 -24
  68. package/src/lib/skeleton/llms.txt +6 -6
  69. package/src/lib/slider/llms.txt +17 -17
  70. package/src/lib/speed-dial/llms.txt +7 -7
  71. package/src/lib/spinner/llms.txt +5 -5
  72. package/src/lib/split-button/llms.txt +15 -15
  73. package/src/lib/splitter/llms.txt +11 -11
  74. package/src/lib/stepper/llms.txt +10 -10
  75. package/src/lib/switch/llms.txt +10 -10
  76. package/src/lib/switch-group/llms.txt +16 -16
  77. package/src/lib/tabs/llms.txt +10 -10
  78. package/src/lib/textarea/llms.txt +5 -5
  79. package/src/lib/timeline/llms.txt +10 -10
  80. package/src/lib/toast/llms.txt +10 -10
  81. package/src/lib/toolbar/llms.txt +31 -31
  82. package/src/lib/tooltip/llms.txt +21 -21
  83. package/src/lib/tree/llms.txt +6 -6
@@ -1,40 +1,40 @@
1
1
  # KptSelect (kpt-select)
2
2
 
3
- Lista wyboru na własnym panelu (CDK Overlay), Signal Forms. Warianty: pojedynczy,
4
- z wyszukiwarką (`filter`) i wielokrotny (`multiple`, chipy; wartość `T[]`).
3
+ A selection list on a custom panel (CDK Overlay), Signal Forms. Variants: single,
4
+ with a search field (`filter`) and multiple (`multiple`, chips; the value is `T[]`).
5
5
  Import: `import { KptSelect, KptOption } from '@konce-pt/angular';`
6
6
 
7
- Wymaga stylów overlay CDK w aplikacji: `import '@angular/cdk/overlay-prebuilt.css';`
7
+ Requires the CDK overlay styles in the application: `import '@angular/cdk/overlay-prebuilt.css';`
8
8
 
9
- ## Użycie
9
+ ## Usage
10
10
  roles: KptOption<string>[] = [{label:'Admin',value:'admin'}, ...];
11
- <kpt-select [formField]="f.role" [options]="roles" placeholder="Wybierz…" />
12
- <kpt-select [formField]="f.city" [options]="cities" filter placeholder="Szukaj…" />
11
+ <kpt-select [formField]="f.role" [options]="roles" placeholder="Choose…" />
12
+ <kpt-select [formField]="f.city" [options]="cities" filter placeholder="Search…" />
13
13
  <kpt-select [formField]="f.tags" [options]="tags" multiple filter /> <!-- value: string[] -->
14
14
 
15
- ## Wejścia
16
- - `value`: model (T lub T[] przy multiple); `options`: KptOption<T>[]; `placeholder`: string
17
- - `filter`: boolean — pole wyszukiwania; `multiple`: boolean — wybór wielu (chipy)
18
- - `disabled`/`invalid`/`touched`: boolean; output `touch`.
19
- - `open`: model (dwukierunkowe `[(open)]`, output `(openChange)`) — stan panelu. Pozwala otworzyć
20
- listę z zewnątrz i wiedzieć, kiedy user skończył wybierać. Do tego drugiego **nie używaj `touch`**:
21
- leci on także z blur triggera, czyli już przy naciśnięciu myszy na opcji w panelu (panel jest
22
- w kontenerze CDK Overlay przy `<body>`, poza DOM-em kontrolki). Tak robi edycja inline
23
- w `kpt-data-table` — patrz `data-table/llms.txt`.
24
- - Klawiatura: Enter/↓ otwiera, ↑/↓ nawigacja, Enter wybiera, Esc zamyka.
25
-
26
- ## Float Label
27
- W `kpt-form-field` z `labelType` `over`/`in`/`on` etykieta unosi się także po wybraniu opcji —
28
- select dostarcza token `KPT_FORM_FIELD_CONTROL` z sygnałem `filled` (wartości w overlayu nie da
29
- się odczytać z DOM). Nic nie trzeba konfigurować:
30
-
31
- <kpt-form-field label="Kraj" labelType="on">
15
+ ## Inputs
16
+ - `value`: model (T, or T[] with multiple); `options`: KptOption<T>[]; `placeholder`: string
17
+ - `filter`: boolean — a search field; `multiple`: boolean — multi-select (chips)
18
+ - `disabled`/`invalid`/`touched`: boolean; the `touch` output.
19
+ - `open`: model (two-way `[(open)]`, the `(openChange)` output) — the panel state. It lets you open
20
+ the list from outside and know when the user is done choosing. For the latter **do not use `touch`**:
21
+ it also fires on the trigger's blur, that is, the moment the mouse goes down on an option in the panel (the panel
22
+ lives in a CDK Overlay container next to `<body>`, outside the control's DOM). That is what inline editing
23
+ in `kpt-data-table` does — see `data-table/llms.txt`.
24
+ - Keyboard: Enter/↓ opens, ↑/↓ navigate, Enter selects, Esc closes.
25
+
26
+ ## Float label
27
+ In a `kpt-form-field` with `labelType` `over`/`in`/`on` the label also floats once an option is chosen —
28
+ the select provides the `KPT_FORM_FIELD_CONTROL` token with a `filled` signal (a value in an overlay cannot
29
+ be read from the DOM). Nothing needs configuring:
30
+
31
+ <kpt-form-field label="Country" labelType="on">
32
32
  <kpt-select [formField]="f.country" [options]="countries" />
33
33
  </kpt-form-field>
34
34
 
35
35
  ## i18n
36
- Etykiety „Szukaj…", „Brak wyników" i aria usuwania chipa z i18n (namespace `select`).
37
- Domyślnie EN; konfiguracja przez `provideKptI18n` — patrz `i18n/llms.txt`.
36
+ The "Search…" and "No results" labels and the chip-removal aria text come from i18n (the `select` namespace).
37
+ English by default; configured through `provideKptI18n` — see `i18n/llms.txt`.
38
38
 
39
- ## Tokeny
39
+ ## Tokens
40
40
  `--kpt-form-field-{bg,text,border,border-hover,border-focus,border-error,radius}`.
@@ -1,26 +1,26 @@
1
1
  # KptSidenav (kpt-sidenav)
2
2
 
3
- Panel boczny — stylowany kontener nawigacji, zwykle w slocie `kptShellSidenav`
4
- komponentu `kpt-app-shell`. Import: `import { KptSidenav } from '@konce-pt/angular';`
3
+ A side panel — a styled navigation container, usually in the `kptShellSidenav` slot
4
+ of `kpt-app-shell`. Import: `import { KptSidenav } from '@konce-pt/angular';`
5
5
 
6
- ## Selektor
6
+ ## Selector
7
7
  `kpt-sidenav`
8
8
 
9
- ## Treść
10
- Dowolna zawartość (ng-content) — ląduje w obszarze przewijanym. Elementy `<a>` mają wbudowane
11
- style pozycji nawigacji (hover z `--kpt-color-muted`).
9
+ ## Content
10
+ Anything (ng-content) — it lands in the scrollable area. `<a>` elements come with built-in
11
+ navigation-entry styling (hover with `--kpt-color-muted`).
12
12
 
13
- ## Stopka — `kptSidenavFooter`
14
- Element z tym atrybutem trafia poza obszar przewijany i zostaje przyklejony do dołu panelu,
15
- niezależnie od długości nawigacji. Dostaje górną kreskę (`--kpt-sidenav-border`) na pełną
16
- szerokość panelu i ten sam padding co nawigacja. Typowe zastosowanie: blok zalogowanego
17
- użytkownika, przełącznik motywu, wersja aplikacji. To płaski atrybut, nie dyrektywa — nic nie
18
- trzeba importować.
13
+ ## The footer — `kptSidenavFooter`
14
+ An element carrying this attribute lands outside the scrollable area and stays stuck to the bottom of the
15
+ panel, no matter how long the navigation is. It gets a top rule (`--kpt-sidenav-border`) across the panel's
16
+ full width and the same padding as the navigation. Typical uses: the signed-in user block,
17
+ a theme toggle, the application version. It is a plain attribute, not a directive — there is nothing
18
+ to import.
19
19
 
20
- ## Przykład
20
+ ## Example
21
21
  <kpt-sidenav kptShellSidenav>
22
- <a href="#">Pulpit</a>
23
- <a href="#">Ustawienia</a>
22
+ <a href="#">Dashboard</a>
23
+ <a href="#">Settings</a>
24
24
 
25
25
  <div kptSidenavFooter>
26
26
  <kpt-avatar name="Anna Kowalska" size="sm" />
@@ -28,16 +28,16 @@ trzeba importować.
28
28
  </div>
29
29
  </kpt-sidenav>
30
30
 
31
- W szynie ikon opatrz tekst stopki atrybutem `kptNavLabel` — zwinięty panel zostawi sam awatar.
31
+ In the icon rail, mark the footer text with the `kptNavLabel` attribute — the collapsed panel then leaves just the avatar.
32
32
 
33
- ## Szyna ikon (kpt-app-shell)
34
- Jeśli shell ma włączone `sidenavRailBreakpoint`, opatrz tekst pozycji atrybutem `kptNavLabel`,
35
- a nagłówek grupy `kptNavSection` — w zwiniętej szynie zostaje sama ikona, a etykieta jest
36
- chowana technicznie (visually hidden), więc czytnik ekranu wciąż zna nazwę pozycji:
33
+ ## The icon rail (kpt-app-shell)
34
+ If the shell has `sidenavRailBreakpoint` enabled, mark an entry's text with the `kptNavLabel` attribute
35
+ and a group heading with `kptNavSection` — in the collapsed rail only the icon remains, and the label is
36
+ hidden technically (visually hidden), so a screen reader still knows the entry's name:
37
37
 
38
- <a href="#"><kpt-icon name="list" /> <span kptNavLabel>Pulpit</span></a>
38
+ <a href="#"><kpt-icon name="list" /> <span kptNavLabel>Dashboard</span></a>
39
39
 
40
- To płaskie atrybuty, nie dyrektywy — nic nie trzeba importować. Bez ikony szyna będzie pusta.
40
+ These are plain attributes, not directives — there is nothing to import. Without an icon the rail will be empty.
41
41
 
42
- ## Tokeny
43
- `--kpt-sidenav-{bg,fg,border,width,rail-width}` (szerokość ustawia `kpt-app-shell`).
42
+ ## Tokens
43
+ `--kpt-sidenav-{bg,fg,border,width,rail-width}` (the width is set by `kpt-app-shell`).
@@ -1,14 +1,14 @@
1
1
  # KptSkeleton (kpt-skeleton)
2
2
 
3
- Placeholder ładowania (shimmer). Import: `import { KptSkeleton } from '@konce-pt/angular';`
3
+ A loading placeholder (shimmer). Import: `import { KptSkeleton } from '@konce-pt/angular';`
4
4
 
5
- ## Wejścia
6
- - `variant`: 'text'|'circle'|'rect'; `width`: string; `height`: string; `lines`: number (dla text)
5
+ ## Inputs
6
+ - `variant`: 'text'|'circle'|'rect'; `width`: string; `height`: string; `lines`: number (for text)
7
7
 
8
- ## Przykłady
8
+ ## Examples
9
9
  <kpt-skeleton variant="text" [lines]="3" />
10
10
  <kpt-skeleton variant="circle" width="3rem" height="3rem" />
11
11
  <kpt-skeleton variant="rect" width="100%" height="8rem" />
12
12
 
13
- ## Tokeny
14
- Gradient na `--kpt-color-surface-variant`.
13
+ ## Tokens
14
+ A gradient over `--kpt-color-surface-variant`.
@@ -1,25 +1,25 @@
1
1
  # KptSlider (kpt-slider)
2
2
 
3
- Suwak wartości na Signal Forms. Import: `import { KptSlider } from '@konce-pt/angular';`
3
+ A value slider on Signal Forms. Import: `import { KptSlider } from '@konce-pt/angular';`
4
4
 
5
- ## Wejścia
6
- - `value`: model<number | [number, number]> — w trybie `range` para `[min, max]`, inaczej pojedyncza liczba
7
- - `range`: boolean — dwa uchwyty (zakres); `min`/`max`: number (zgodne z FormValueControl); `step`: number
8
- - Pod `[formField]` granic NIE bindujemy — deklarują je `min()`/`max()` w `form()`, a `FormField`
9
- sam wstrzykuje je w wejścia `min`/`max`; `[min]`/`[max]` obok `[formField]` to błąd kompilacji
10
- (FORM_FIELD_UNSUPPORTED_BINDING). Tryb `range` (wartość `[number, number]`) nie ma odpowiednika
11
- wśród walidatorów (`min()`/`max()` przyjmują tylko pola liczbowe), więc łączy się go z `[(value)]`.
5
+ ## Inputs
6
+ - `value`: model<number | [number, number]> — in `range` mode a `[min, max]` pair, otherwise a single number
7
+ - `range`: boolean — two handles (a range); `min`/`max`: number (per FormValueControl); `step`: number
8
+ - Under `[formField]` do NOT bind the bounds — they are declared by `min()`/`max()` in `form()`, and `FormField`
9
+ injects them into the `min`/`max` inputs itself; `[min]`/`[max]` next to `[formField]` is a compilation error
10
+ (FORM_FIELD_UNSUPPORTED_BINDING). The `range` mode (a `[number, number]` value) has no counterpart
11
+ among the validators (`min()`/`max()` only accept numeric fields), so it is paired with `[(value)]`.
12
12
  - `showValue`: boolean; `disabled`/`invalid`/`touched`; `touch`
13
13
 
14
- ## Przykład
15
- <kpt-slider [formField]="f.volume" [step]="5" showValue /> <!-- zakres z min()/max() w form() -->
14
+ ## Example
15
+ <kpt-slider [formField]="f.volume" [step]="5" showValue /> <!-- bounds from min()/max() in form() -->
16
16
  <kpt-slider [(value)]="volume" [min]="0" [max]="100" [step]="5" showValue />
17
- <!-- zakres: wartość jest tablicą [min, max] -->
18
- <kpt-slider range [(value)]="zakres" [min]="0" [max]="100" showValue />
17
+ <!-- range: the value is a [min, max] array -->
18
+ <kpt-slider range [(value)]="span" [min]="0" [max]="100" showValue />
19
19
 
20
- ## Uwagi
21
- - Tryb `range` używa dwóch nałożonych `input[type=range]`; `pointer-events` aktywne tylko na uchwytach (szyna nie przechwytuje).
22
- - Uchwyty nie mogą się „minąć” — dolny jest klampowany do górnego i odwrotnie.
20
+ ## Notes
21
+ - The `range` mode uses two stacked `input[type=range]` elements; `pointer-events` are active only on the handles (the track does not intercept them).
22
+ - The handles cannot cross — the lower one is clamped to the upper one and vice versa.
23
23
 
24
- ## Tokeny
25
- Track wypełniany `--kpt-color-primary`, tło `--kpt-color-surface-variant`.
24
+ ## Tokens
25
+ The track is filled with `--kpt-color-primary`, the background is `--kpt-color-surface-variant`.
@@ -1,16 +1,16 @@
1
1
  # KptSpeedDial (kpt-speed-dial)
2
2
 
3
- Speed dial — FAB rozwijający zestaw akcji. Buduje na `kpt-fab`.
3
+ A speed dial — a FAB that fans out a set of actions. Built on `kpt-fab`.
4
4
  Import: `import { KptSpeedDial } from '@konce-pt/angular';`
5
5
 
6
- ## Wejścia / wyjścia
7
- - `items`: KptMenuItem<T>[] — akcje (label, icon)
6
+ ## Inputs / outputs
7
+ - `items`: KptMenuItem<T>[] — the actions (label, icon)
8
8
  - `direction`: 'up' | 'down' | 'left' | 'right' (KptSpeedDialDirection)
9
- - `icon`: string (domyślnie 'plus', obraca się o 45° po otwarciu); `ariaLabel`: string
9
+ - `icon`: string (default 'plus', rotates 45° when open); `ariaLabel`: string
10
10
  - `selected`: KptMenuItem<T>
11
11
 
12
- ## Przykład
12
+ ## Example
13
13
  <kpt-speed-dial [items]="actions" direction="up" (selected)="onAction($event)" />
14
14
 
15
- ## Tokeny
16
- FAB główny z `kpt-fab`; akcje `--kpt-color-surface-raised`, `--kpt-elevation-2`.
15
+ ## Tokens
16
+ The main FAB comes from `kpt-fab`; the actions use `--kpt-color-surface-raised`, `--kpt-elevation-2`.
@@ -1,10 +1,10 @@
1
1
  # KptSpinner (kpt-spinner)
2
2
 
3
- Wskaźnik ładowania. Kolor z `currentColor`. Import: `import { KptSpinner } from '@konce-pt/angular';`
3
+ Loading indicator. Color from `currentColor`. Import: `import { KptSpinner } from '@konce-pt/angular';`
4
4
 
5
- ## Wejścia
6
- - `size`: string (np. '2rem', domyślnie '1.5rem'); `label`: string (aria)
5
+ ## Inputs
6
+ - `size`: string (e.g. '2rem', default '1.5rem'); `label`: string (aria)
7
7
 
8
- ## Przykład
8
+ ## Example
9
9
  <kpt-spinner />
10
- <kpt-spinner size="2rem" label="Wczytywanie…" />
10
+ <kpt-spinner size="2rem" label="Loading…" />
@@ -1,28 +1,28 @@
1
1
  # KptSplitButton (kpt-split-button)
2
2
 
3
- Przycisk dzielony — akcja główna + rozwijane menu akcji dodatkowych (CDK Overlay).
3
+ A split button — a primary action + a drop-down menu of secondary actions (CDK Overlay).
4
4
  Import: `import { KptSplitButton } from '@konce-pt/angular';`
5
- Wymaga `import '@angular/cdk/overlay-prebuilt.css';`
5
+ Requires `import '@angular/cdk/overlay-prebuilt.css';`
6
6
 
7
- ## Wejścia
8
- - `variant`: KptButtonVariant (domyślnie 'filled')
7
+ ## Inputs
8
+ - `variant`: KptButtonVariant (default 'filled')
9
9
  - `items`: KptMenuItem<T>[] — { label, value?, icon?, danger?, disabled?, separator? }
10
- Honoruje też `header` (nieklikalny wiersz z `avatar`/`label`/`description`), `description`
11
- (druga linia) i `badge` + `badgeVariant` (odznaka po prawej) — pełny opis w menu/llms.txt.
10
+ It also honors `header` (a non-clickable row with `avatar`/`label`/`description`), `description`
11
+ (a second line) and `badge` + `badgeVariant` (a badge on the right) — described in full in menu/llms.txt.
12
12
  - `disabled`: boolean
13
13
 
14
- ## Wyjścia
15
- - `primaryClick`: void — klik przycisku głównego
16
- - `selected`: KptMenuItem<T> — wybór pozycji z menu
14
+ ## Outputs
15
+ - `primaryClick`: void — a click on the primary button
16
+ - `selected`: KptMenuItem<T> — an entry picked from the menu
17
17
 
18
- ## Przykład
19
- <kpt-split-button [items]="items" (primaryClick)="save()" (selected)="onItem($event)">Zapisz</kpt-split-button>
18
+ ## Example
19
+ <kpt-split-button [items]="items" (primaryClick)="save()" (selected)="onItem($event)">Save</kpt-split-button>
20
20
 
21
21
  items: KptMenuItem[] = [
22
- { label: 'Zapisz jako szkic', value: 'draft' },
22
+ { label: 'Save as draft', value: 'draft' },
23
23
  { separator: true },
24
- { label: 'Odrzuć', value: 'discard', danger: true },
24
+ { label: 'Discard', value: 'discard', danger: true },
25
25
  ];
26
26
 
27
- ## Tokeny
28
- Kolory dziedziczone z przycisku; panel `--kpt-color-surface-raised`, `--kpt-elevation-3`.
27
+ ## Tokens
28
+ Colors inherited from the button; the panel `--kpt-color-surface-raised`, `--kpt-elevation-3`.
@@ -1,21 +1,21 @@
1
1
  # KptSplitter (kpt-splitter)
2
2
 
3
- Dwa panele z przeciąganym uchwytem. Panele przez sloty `[kptSplitStart]` i `[kptSplitEnd]`.
3
+ Two panes with a draggable handle. The panes go into the `[kptSplitStart]` and `[kptSplitEnd]` slots.
4
4
  Import: `import { KptSplitter } from '@konce-pt/angular';`
5
5
 
6
- ## Wejścia / model
6
+ ## Inputs / model
7
7
  - `orientation`: 'horizontal' | 'vertical' (KptSplitterOrientation)
8
- - `startSize`: model<number> — rozmiar pierwszego panelu w % (dwukierunkowe)
9
- - `minSize`: number (%) — minimalny rozmiar panelu
8
+ - `startSize`: model<number> — the size of the first pane in % (two-way)
9
+ - `minSize`: number (%) — the minimum pane size
10
10
 
11
- ## Dostępność
12
- Uchwyt `role="separator"`, strzałki zmieniają rozmiar; przeciąganie myszą.
11
+ ## Accessibility
12
+ The handle is a `role="separator"`, arrow keys resize it; dragging works with the mouse.
13
13
 
14
- ## Przykład
14
+ ## Example
15
15
  <kpt-splitter orientation="horizontal" [(startSize)]="size">
16
- <div kptSplitStart>Lewy</div>
17
- <div kptSplitEnd>Prawy</div>
16
+ <div kptSplitStart>Left</div>
17
+ <div kptSplitEnd>Right</div>
18
18
  </kpt-splitter>
19
19
 
20
- ## Tokeny
21
- Uchwyt `--kpt-color-border` → `--kpt-color-primary` (hover/focus).
20
+ ## Tokens
21
+ The handle `--kpt-color-border` → `--kpt-color-primary` (hover/focus).
@@ -1,21 +1,21 @@
1
1
  # KptStepper (kpt-stepper) + KptStep (kpt-step)
2
2
 
3
- Kreator kroków. Nagłówek z numerowanymi krokami + aktywna treść (leniwa).
3
+ A step wizard. A header with numbered steps + the active content (lazy).
4
4
  Import: `import { KptStepper, KptStep } from '@konce-pt/angular';`
5
5
 
6
6
  ## KptStepper
7
- - `activeIndex`: model<number>; metody publiczne: `next()`, `prev()`, `goTo(i)`
8
- - `animated`: boolean (domyślnie true) — animacja przejścia (fade+slide, czysty CSS)
9
- - `animationDuration`: number (domyślnie 500) — czas animacji w ms
7
+ - `activeIndex`: model<number>; public methods: `next()`, `prev()`, `goTo(i)`
8
+ - `animated`: boolean (default true) — the transition animation (fade+slide, pure CSS)
9
+ - `animationDuration`: number (default 500) — animation time in ms
10
10
 
11
11
  ## KptStep
12
- - `label`: string (wymagane)
12
+ - `label`: string (required)
13
13
 
14
- ## Przykład
14
+ ## Example
15
15
  <kpt-stepper #s [(activeIndex)]="step">
16
- <kpt-step label="Konto">…<kpt-button (click)="s.next()">Dalej</kpt-button></kpt-step>
17
- <kpt-step label="Profil">…</kpt-step>
16
+ <kpt-step label="Account">…<kpt-button (click)="s.next()">Next</kpt-button></kpt-step>
17
+ <kpt-step label="Profile">…</kpt-step>
18
18
  </kpt-stepper>
19
19
 
20
- ## Tokeny
21
- Aktywny/ukończony krok: `--kpt-color-primary` (marker, konektor).
20
+ ## Tokens
21
+ The active/completed step: `--kpt-color-primary` (marker, connector).
@@ -1,17 +1,17 @@
1
1
  # KptSwitch (kpt-switch)
2
2
 
3
- Przełącznik (toggle) na Signal Forms (`FormCheckboxControl`, model `checked`). `role="switch"`.
3
+ A toggle switch on Signal Forms (`FormCheckboxControl`, the `checked` model). `role="switch"`.
4
4
  Import: `import { KptSwitch } from '@konce-pt/angular';`
5
5
 
6
- ## Użycie
7
- <kpt-switch [formField]="f.notifications" label="Powiadomienia" />
8
- <!-- tekst stanu zmienia się przy przełączaniu -->
9
- <kpt-switch [(checked)]="on" onLabel="Włączony" offLabel="Wyłączony" />
6
+ ## Usage
7
+ <kpt-switch [formField]="f.notifications" label="Notifications" />
8
+ <!-- the state text changes as it is toggled -->
9
+ <kpt-switch [(checked)]="on" onLabel="On" offLabel="Off" />
10
10
 
11
- ## Wejścia
12
- - `checked`: model<boolean>; `label`: string (statyczny); `disabled`/`invalid`/`touched`: boolean; output `touch`.
13
- - `labelPosition`: 'start' | 'end' (domyślnie 'end') — etykieta `label` z lewej lub z prawej przełącznika.
14
- - `onLabel`/`offLabel`: string — tekst stanu; wyświetlany wg `checked` (włączony podświetlony `--kpt-color-primary`). Można łączyć ze statycznym `label`.
11
+ ## Inputs
12
+ - `checked`: model<boolean>; `label`: string (static); `disabled`/`invalid`/`touched`: boolean; the `touch` output.
13
+ - `labelPosition`: 'start' | 'end' (default 'end') — the `label` to the left or to the right of the switch.
14
+ - `onLabel`/`offLabel`: string — the state text; shown according to `checked` (the on state highlighted with `--kpt-color-primary`). Can be combined with a static `label`.
15
15
 
16
- ## Tokeny
16
+ ## Tokens
17
17
  `--kpt-color-primary`, `--kpt-color-border-strong`, `--kpt-color-surface`, `--kpt-elevation-1`.
@@ -1,24 +1,24 @@
1
1
  # KptSwitchGroup (kpt-switch-group)
2
2
 
3
- Grupa przełączników. Domyślnie pojedynczy wybór (wzajemnie wykluczające się) — włączenie jednego wyłącza pozostałe.
4
- Z `multiple` przechodzi w tryb wielokrotny (wartość to tablica zaznaczonych opcji).
5
- Na Signal Forms (`FormValueControl<T | T[] | null>`, model `value`). Import: `import { KptSwitchGroup } from '@konce-pt/angular';`
3
+ A group of switches. Single choice by default (mutually exclusive) — turning one on turns the others off.
4
+ With `multiple` it switches to multi-select mode (the value is an array of the selected options).
5
+ Built on Signal Forms (`FormValueControl<T | T[] | null>`, the `value` model). Import: `import { KptSwitchGroup } from '@konce-pt/angular';`
6
6
 
7
- ## Użycie
7
+ ## Usage
8
8
  <kpt-switch-group [(value)]="plan" [options]="plans" />
9
- <!-- wielokrotny wybór: value = T[] -->
9
+ <!-- multi-select: value = T[] -->
10
10
  <kpt-switch-group multiple [(value)]="tags" [options]="tagOptions" />
11
11
  <!-- plans: KptOption<T>[] = [{ label, value, disabled? }, …] -->
12
12
 
13
- ## Wejścia
14
- - `value`: model<T | T[] | null> — pojedynczy: wartość opcji lub `null`; multiple: tablica wartości zaznaczonych opcji.
15
- - `options`: KptOption<T>[] — lista opcji.
16
- - `multiple`: boolean (domyślnie false) — tryb wielokrotnego wyboru; wartość staje się tablicą `T[]`.
17
- - `orientation`: 'vertical' (domyślnie) | 'horizontal'.
18
- - `allowDeselect`: boolean (domyślnie true) — czy kliknięcie aktywnej opcji ją odznacza (tylko tryb pojedynczy; w multiple odznaczanie zawsze dozwolone).
19
- - `disabled`/`invalid`/`touched`: boolean; output `touch`.
13
+ ## Inputs
14
+ - `value`: model<T | T[] | null> — single: the option's value or `null`; multiple: an array of the selected options' values.
15
+ - `options`: KptOption<T>[] — the list of options.
16
+ - `multiple`: boolean (default false) — multi-select mode; the value becomes a `T[]` array.
17
+ - `orientation`: 'vertical' (default) | 'horizontal'.
18
+ - `allowDeselect`: boolean (default true) — whether clicking the active option deselects it (single mode only; in multiple mode deselection is always allowed).
19
+ - `disabled`/`invalid`/`touched`: boolean; the `touch` output.
20
20
 
21
- ## Zasada działania
22
- Każdy element to `kpt-switch` z jednokierunkowym `[checked]`. W trybie pojedynczym włączenie ustawia `value` na daną
23
- opcję, co automatycznie gasi pozostałe. W trybie `multiple` wartość jest normalizowana do tablicy — włączenie dodaje
24
- wartość opcji, wyłączenie ją usuwa. Renderuje `kpt-switch`, więc dziedziczy jego wygląd/tokeny.
21
+ ## How it works
22
+ Every entry is a `kpt-switch` with a one-way `[checked]`. In single mode turning one on sets `value` to that
23
+ option, which switches the others off automatically. In `multiple` mode the value is normalized to an array — turning
24
+ one on adds the option's value, turning it off removes it. It renders `kpt-switch`, so it inherits its look and tokens.
@@ -1,21 +1,21 @@
1
1
  # KptTabs (kpt-tabs) + KptTab (kpt-tab)
2
2
 
3
- Zakładki. Treść zakładek renderowana leniwie (tylko aktywna).
3
+ Tabs. Tab content is rendered lazily (only the active one).
4
4
  Import: `import { KptTabs, KptTab } from '@konce-pt/angular';`
5
5
 
6
6
  ## KptTabs
7
- - `activeIndex`: model<number> (dwukierunkowe)
8
- - `animated`: boolean (domyślnie true) — animacja przejścia (fade+slide, czysty CSS)
9
- - `animationDuration`: number (domyślnie 500) — czas animacji w ms
7
+ - `activeIndex`: model<number> (two-way)
8
+ - `animated`: boolean (default true) — the transition animation (fade+slide, pure CSS)
9
+ - `animationDuration`: number (default 500) — animation time in ms
10
10
 
11
11
  ## KptTab
12
- - `label`: string (wymagane); `disabled`: boolean
12
+ - `label`: string (required); `disabled`: boolean
13
13
 
14
- ## Przykład
14
+ ## Example
15
15
  <kpt-tabs [(activeIndex)]="tab">
16
- <kpt-tab label="Ogólne">…</kpt-tab>
17
- <kpt-tab label="Zaawansowane">…</kpt-tab>
16
+ <kpt-tab label="General">…</kpt-tab>
17
+ <kpt-tab label="Advanced">…</kpt-tab>
18
18
  </kpt-tabs>
19
19
 
20
- ## Tokeny
21
- Aktywna zakładka: `--kpt-color-primary` (tekst + dolna krawędź).
20
+ ## Tokens
21
+ The active tab: `--kpt-color-primary` (text + bottom edge).
@@ -1,14 +1,14 @@
1
1
  # KptTextarea (kpt-textarea)
2
2
 
3
- Pole wieloliniowe na Signal Forms, z opcjonalnym auto-resize.
3
+ A multi-line field on Signal Forms, with optional auto-resize.
4
4
  Import: `import { KptTextarea } from '@konce-pt/angular';`
5
5
 
6
- ## Wejścia
6
+ ## Inputs
7
7
  - `value`: model<string>; `placeholder`: string; `rows`: number; `autoResize`: boolean
8
8
  - `disabled`/`readonly`/`invalid`/`touched`: boolean; `touch`: output
9
9
 
10
- ## Przykład
11
- <kpt-textarea [formField]="f.notes" placeholder="Notatki…" autoResize />
10
+ ## Example
11
+ <kpt-textarea [formField]="f.notes" placeholder="Notes…" autoResize />
12
12
 
13
- ## Tokeny
13
+ ## Tokens
14
14
  `--kpt-form-field-*`.
@@ -1,22 +1,22 @@
1
1
  # KptTimeline (kpt-timeline)
2
2
 
3
- Oś czasu — pionowa lista zdarzeń z markerami. Import: `import { KptTimeline } from '@konce-pt/angular';`
3
+ A timeline — a vertical list of events with markers. Import: `import { KptTimeline } from '@konce-pt/angular';`
4
4
 
5
- ## Wejścia
5
+ ## Inputs
6
6
  - `items`: KptTimelineItem[]
7
7
 
8
8
  ### KptTimelineItem
9
- - `title`: string (wymagane)
10
- - `description?`: string; `time?`: string; `icon?`: string (nazwa KptIconName)
11
- - `variant?`: 'neutral' | 'primary' | 'success' | 'danger' | 'warning' | 'info' (domyślnie 'primary')
9
+ - `title`: string (required)
10
+ - `description?`: string; `time?`: string; `icon?`: string (a KptIconName)
11
+ - `variant?`: 'neutral' | 'primary' | 'success' | 'danger' | 'warning' | 'info' (default 'primary')
12
12
 
13
- ## Przykład
13
+ ## Example
14
14
  <kpt-timeline [items]="events" />
15
15
 
16
16
  events: KptTimelineItem[] = [
17
- { title: 'Utworzono', time: '10:00', variant: 'success', icon: 'check' },
18
- { title: 'Wysłano', time: '12:30', variant: 'info' },
17
+ { title: 'Created', time: '10:00', variant: 'success', icon: 'check' },
18
+ { title: 'Sent', time: '12:30', variant: 'info' },
19
19
  ];
20
20
 
21
- ## Tokeny
22
- Marker wg wariantu (`--kpt-color-{variant}`); linia `--kpt-color-border`.
21
+ ## Tokens
22
+ The marker follows the variant (`--kpt-color-{variant}`); the line `--kpt-color-border`.
@@ -1,22 +1,22 @@
1
1
  # KptToast (kpt-toast-container + KptToastService)
2
2
 
3
- Powiadomienia (toasty) sterowane serwisem. Kontener renderuje je fixed w rogu.
3
+ Notifications (toasts) driven by a service. The container renders them fixed in a corner.
4
4
  Import: `import { KptToastService, KptToastContainer } from '@konce-pt/angular';`
5
5
 
6
- ## Ustawienie
7
- Umieść kontener raz w aplikacji: `<kpt-toast-container />`.
6
+ ## Setup
7
+ Place the container once in the application: `<kpt-toast-container />`.
8
8
 
9
- ## Serwis (KptToastService, providedIn: root)
9
+ ## The service (KptToastService, providedIn: root)
10
10
  private toast = inject(KptToastService);
11
- toast.success('Zapisano', { title: 'OK' });
12
- toast.error('Błąd połączenia');
11
+ toast.success('Saved', { title: 'OK' });
12
+ toast.error('Connection failed');
13
13
  toast.info(msg, opts); toast.warning(msg, opts);
14
- toast.show(msg, { variant, title, duration }); // duration ms, 0 = bez auto-zamykania
14
+ toast.show(msg, { variant, title, duration }); // duration in ms, 0 = no auto-dismiss
15
15
  toast.dismiss(id); toast.clear();
16
16
 
17
17
  ## KptToast
18
18
  `{ id, message, title?, variant: 'info'|'success'|'warning'|'danger', duration }`
19
19
 
20
- ## Tokeny
21
- `--kpt-color-surface-raised`, `--kpt-elevation-3`, akcent `--kpt-color-{info,success,warning,danger}`,
22
- pozycja `--kpt-z-toast`.
20
+ ## Tokens
21
+ `--kpt-color-surface-raised`, `--kpt-elevation-3`, the accent `--kpt-color-{info,success,warning,danger}`,
22
+ stacking `--kpt-z-toast`.