@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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @konce-pt/angular
2
2
 
3
+ ## 0.7.12
4
+
5
+ ### Patch Changes
6
+
7
+ - Dokumentacja `llms.txt` jest teraz po angielsku i to ona jest wersją kanoniczną. 81 plików
8
+ z `packages/angular/**` trafia do tarballa npm, czyli do `node_modules` u konsumentów
9
+ biblioteki, gdzie czyta je ich asystent — polskie API sheety były ostatnią niekonsekwencją
10
+ w paczce, której README i opisy w `package.json` są angielskie od początku.
11
+
12
+ Dotychczasowa polska treść żyje w repozytorium obok, jako `llms-pl.txt`, i do paczki nie
13
+ trafia. Wersja angielska przejmuje istniejącą nazwę pliku, więc dla konsumenta nic się nie
14
+ przesuwa: `node_modules/@konce-pt/angular/**/llms.txt` leży dokładnie tam, gdzie leżał.
15
+
16
+ Identyfikatory, tokeny i klucze i18n przechodzą bez zmian — przetłumaczone są proza,
17
+ komentarze i napisy widoczne dla użytkownika w przykładach. Polszczyzna zostaje tam, gdzie
18
+ jest tematem: walidatory NIP/REGON/PESEL, `displayFormat: 'pl'` i przykłady słownika PL.
19
+
3
20
  ## 0.7.11
4
21
 
5
22
  ### Minor Changes
@@ -1,51 +1,51 @@
1
1
  # KptChart (kpt-chart)
2
2
 
3
- Wykres SVG w czystym Angularze (sygnały, zoneless), bez zależności typu Chart.js/D3.
4
- Rdzeń obliczeń to czysty TypeScript (przenośny do React w Fazie 2).
3
+ An SVG chart in plain Angular (signals, zoneless), with no Chart.js/D3-style dependency.
4
+ The computation core is plain TypeScript (portable to React in stage 2).
5
5
  Import: `import { KptChart } from '@konce-pt/angular/charts';`
6
6
 
7
- ## Typy wykresów (config.type)
8
- - `line` — liniowy; interpolacja `linear` | `cubic` | `cubic-monotonic`; `area?: boolean`, `points?: boolean`,
9
- `crosshair?: boolean` (hover punktu → pionowa prowadnica + podświetlona pigułka etykiety osi X)
10
- - `bar` — słupkowy; `orientation: 'vertical' | 'horizontal'`, `borderRadius?: px`
11
- - `pie` — kołowy
12
- - `doughnut` — pierścieniowy; `innerRadius?: 0..1` (domyślnie 0.6)
13
- - `polarArea` — równe kąty, promień ∝ wartość
14
- - `radar` — osie promieniowe + wielokąt serii
7
+ ## Chart types (config.type)
8
+ - `line` — a line chart; interpolation `linear` | `cubic` | `cubic-monotonic`; `area?: boolean`, `points?: boolean`,
9
+ `crosshair?: boolean` (hovering a point → a vertical guide + a highlighted pill on the X axis label)
10
+ - `bar` — a bar chart; `orientation: 'vertical' | 'horizontal'`, `borderRadius?: px`
11
+ - `pie` — a pie chart
12
+ - `doughnut` — a doughnut; `innerRadius?: 0..1` (default 0.6)
13
+ - `polarArea` — equal angles, the radius proportional to the value
14
+ - `radar` — radial axes + a polygon per series
15
15
 
16
- ## Wejścia
17
- - `config: KptChartConfig` (wymagane) — jeden obiekt sterujący całością
18
- - `width` / `height`: jednostki viewBoxa (600×360); wykres skaluje się do kontenera
16
+ ## Inputs
17
+ - `config: KptChartConfig` (required) — a single object driving everything
18
+ - `width` / `height`: viewBox units (600×360); the chart scales to its container
19
19
 
20
- ## KptChartConfig (skrót)
20
+ ## KptChartConfig (in brief)
21
21
  - `labels: string[]`, `series: { name; data: number[]; color? }[]`
22
22
  - `legend`: `{ display?, position: top|bottom|left|right, align: start|center|end, pointStyle: circle|rect|rectRot|triangle|line, title? }`
23
23
  - `title` / `subtitle`: `{ display?, text, align, color?, font?, padding? }`
24
24
  - `tooltip`: `{ enabled?, format?(ctx: {series,label,value}): string }`
25
25
  - `animation`: `{ enabled?, duration=400, delay=0, stagger=60 }`
26
26
 
27
- ## Interakcje
28
- - Hover na punkcie/słupku/wycinku → tooltip (seria, etykieta, wartość); dymek clampowany do krawędzi.
29
- - Klik w legendę → ukrycie/pokazanie serii (pie/doughnut/polar: ukrycie wycinka) z przeliczeniem skali.
30
- - Hover na legendzie → podświetlenie serii, wygaszenie pozostałych.
27
+ ## Interactions
28
+ - Hovering a point/bar/slice → a tooltip (series, label, value); the bubble is clamped to the edges.
29
+ - Clicking the legend → hide/show a series (pie/doughnut/polar: hide a slice) with the scale recomputed.
30
+ - Hovering the legend → highlight that series, dim the rest.
31
31
 
32
- ## Animacje
33
- Linia: `stroke-dasharray/offset`. Słupki: `scaleY/scaleX` (origin od osi). Wycinki/radar: `scale` od środka.
34
- Stagger `delay = index * stagger`. Wyłączane przez `animation.enabled=false` i `prefers-reduced-motion`.
32
+ ## Animations
33
+ Line: `stroke-dasharray/offset`. Bars: `scaleY/scaleX` (origin at the axis). Slices/radar: `scale` from the center.
34
+ Stagger `delay = index * stagger`. Disabled by `animation.enabled=false` and by `prefers-reduced-motion`.
35
35
 
36
- ## Przykład
36
+ ## Example
37
37
  <kpt-chart [config]="{
38
38
  type: 'line',
39
- labels: ['Sty','Lut','Mar'],
40
- series: [{ name: 'Sprzedaż', data: [12, 19, 7] }],
39
+ labels: ['Jan','Feb','Mar'],
40
+ series: [{ name: 'Sales', data: [12, 19, 7] }],
41
41
  interpolation: 'cubic-monotonic',
42
42
  legend: { position: 'top' }
43
43
  }" />
44
44
 
45
- ## Tokeny / stylowanie
46
- Paleta z tokenów semantycznych (`--kpt-color-primary|info|success|warning|danger` + skala).
47
- SCSS w `@layer kpt.components`, klasy `kpt-chart__*`. Kolory serii nadpisywalne przez `series[].color`.
45
+ ## Tokens / styling
46
+ The palette comes from the semantic tokens (`--kpt-color-primary|info|success|warning|danger` + the scale).
47
+ SCSS lives in `@layer kpt.components`, classes `kpt-chart__*`. Series colors can be overridden through `series[].color`.
48
48
 
49
- ## Rdzeń (pure TS, opcjonalnie)
50
- Eksport funkcji: `linePath`, `areaPath`, `barLayout`, `pieSlices`, `polarSlices`, `radarGrid`,
51
- `radarPoints`, `niceScale`, `seriesColor`, `KPT_CHART_PALETTE` — do własnych rozszerzeń/SSR.
49
+ ## Core (pure TS, optional)
50
+ Exported functions: `linePath`, `areaPath`, `barLayout`, `pieSlices`, `polarSlices`, `radarGrid`,
51
+ `radarPoints`, `niceScale`, `seriesColor`, `KPT_CHART_PALETTE` — for your own extensions or SSR.
@@ -1,37 +1,37 @@
1
1
  # KptGrid / KptCol / KptFlex (@konce-pt/angular/grid)
2
2
 
3
- Ergonomia Angulara nad arkuszem `@konce-pt/grid`. Dyrektywy ustawiają wyłącznie
4
- custom properties inline — nie dodają ani nie usuwają klas, układ przelicza
5
- natywny silnik CSS.
3
+ Angular ergonomics over the `@konce-pt/grid` stylesheet. The directives set nothing but
4
+ inline custom properties — they neither add nor remove classes, and the layout is computed by
5
+ the native CSS engine.
6
6
 
7
7
  Import: `import { KptGrid, KptCol, KptFlex } from '@konce-pt/angular/grid';`
8
- Skrót: `import { KPT_GRID_IMPORTS } from '@konce-pt/angular/grid';` → `imports: [...KPT_GRID_IMPORTS]`
8
+ Shorthand: `import { KPT_GRID_IMPORTS } from '@konce-pt/angular/grid';` → `imports: [...KPT_GRID_IMPORTS]`
9
9
 
10
- Wymaga arkusza: `import '@konce-pt/grid';` (Angular CLI: `angular.json` → `styles[]`).
10
+ Requires the stylesheet: `import '@konce-pt/grid';` (Angular CLI: `angular.json` → `styles[]`).
11
11
 
12
- ## Breakpointy (mobile-first)
12
+ ## Breakpoints (mobile-first)
13
13
  `sm` >= 640px, `md` >= 768px, `lg` >= 1024px, `xl` >= 1280px, `2xl` >= 1536px.
14
- Wartość obowiązuje od swojego breakpointa w górę, dopóki nie nadpisze jej kolejna:
15
- `[kptCol]="12" [kptColLg]="5"` daje 12 na mobile, `sm` i `md`, a 5 dopiero od `lg`.
14
+ A value applies from its breakpoint upward until the next one overrides it:
15
+ `[kptCol]="12" [kptColLg]="5"` gives 12 on mobile, `sm` and `md`, and 5 only from `lg` up.
16
16
 
17
- ## KptGrid — selektor `[kptGrid]`, `kpt-grid`
18
- Klasa hosta: `kpt-grid`.
19
- - `columns`: number — liczba kolumn (domyślnie 12 z CSS). Warianty: `columnsSm`,
17
+ ## KptGrid — selector `[kptGrid]`, `kpt-grid`
18
+ Host class: `kpt-grid`.
19
+ - `columns`: number — the column count (12 by default, from CSS). Variants: `columnsSm`,
20
20
  `columnsMd`, `columnsLg`, `columnsXl`, `columns2xl`.
21
- - `gap`: string — odstęp w obu osiach, np. `'1.5rem'`, `'var(--kpt-space-6)'`.
22
- - `gapX`, `gapY`: string — odstęp w jednej osi, nadpisuje `gap`.
23
- - `container`: boolean — tryb container queries (patrz niżej).
24
-
25
- ## KptCol — selektor `[kptCol]`, `[kptColSm]` … `[kptColSelf]`
26
- - `kptCol`: number | string — rozpiętość, baza mobile-first.
27
- - `kptColSm`, `kptColMd`, `kptColLg`, `kptColXl`, `kptCol2xl` — nadpisania per breakpoint.
28
- - `kptColStart`: number — linia siatki, od której zaczyna się kolumna (1-based); tak robi się offsety.
29
- - `kptColOrder`: number — kolejność wizualna. Nie zmienia DOM: czytniki ekranu
30
- i nawigacja klawiaturą idą za DOM, więc nie przenoś nim treści interaktywnej.
21
+ - `gap`: string — the gap on both axes, e.g. `'1.5rem'`, `'var(--kpt-space-6)'`.
22
+ - `gapX`, `gapY`: string — the gap on one axis, overriding `gap`.
23
+ - `container`: boolean — container query mode (see below).
24
+
25
+ ## KptCol — selector `[kptCol]`, `[kptColSm]` … `[kptColSelf]`
26
+ - `kptCol`: number | string — the span, the mobile-first base.
27
+ - `kptColSm`, `kptColMd`, `kptColLg`, `kptColXl`, `kptCol2xl` — per-breakpoint overrides.
28
+ - `kptColStart`: number — the grid line the column starts at (1-based); this is how offsets are done.
29
+ - `kptColOrder`: number — the visual order. It does not change the DOM: screen readers
30
+ and keyboard navigation follow the DOM, so do not use it to move interactive content around.
31
31
  - `kptColSelf`: string — `align-self` (`start`, `end`, `center`, `stretch`, `baseline`).
32
32
 
33
- ## KptFlex — selektor `[kptFlex]`
34
- Klasa hosta: `kpt-flex`. Te same zmienne i breakpointy co grid, jeden wymiar.
33
+ ## KptFlex — selector `[kptFlex]`
34
+ Host class: `kpt-flex`. The same variables and breakpoints as the grid, in one dimension.
35
35
  - `direction`: 'row' | 'row-reverse' | 'column' | 'column-reverse' (+ `directionMd`, `directionLg`)
36
36
  - `wrap`: 'wrap' | 'nowrap' | 'wrap-reverse'
37
37
  - `justify`, `align` (+ `justifyMd`, `alignMd`): `start` | `end` | `center` | `stretch` |
@@ -39,53 +39,53 @@ Klasa hosta: `kpt-flex`. Te same zmienne i breakpointy co grid, jeden wymiar.
39
39
  - `gap`, `gapX`, `gapY`: string
40
40
  - `container`: boolean
41
41
 
42
- Wartości bez odpowiednika w inputach podaje się klasami utility z `@konce-pt/grid`:
42
+ Values with no matching input are supplied with utility classes from `@konce-pt/grid`:
43
43
  `kpt-grow-1`, `kpt-shrink-0`, `kpt-order-first`, `kpt-self-end`, `kpt-gap-6`.
44
44
 
45
- ## Tryb kontenerowy (`container`)
46
- Spany dzieci reagują na szerokość TEJ siatki zamiast okna — karta w wąskim
47
- sidebarze układa się jednokolumnowo, choć viewport jest szeroki.
45
+ ## Container mode (`container`)
46
+ The children's spans react to the width of THIS grid instead of the window — a card in a narrow
47
+ sidebar lays itself out in a single column even though the viewport is wide.
48
48
 
49
- Ograniczenie CSS, nie paczki: `@container` odpytuje najbliższy kontener przodka,
50
- więc element nie może odpytać własnego. Responsywne są zmienne dziecka (span,
51
- start, order, self); liczba kolumn i odstępy nadal idą za viewportem.
49
+ A CSS limitation, not a package one: `@container` queries the nearest ancestor container,
50
+ so an element cannot query its own. What is responsive are the child's variables (span,
51
+ start, order, self); the column count and the gaps still follow the viewport.
52
52
 
53
- ## Przykłady
53
+ ## Examples
54
54
  <div kptGrid>
55
- <div [kptCol]="12" [kptColSm]="6" [kptColMd]="4">Karta</div>
56
- <div [kptCol]="12" [kptColSm]="6" [kptColMd]="4">Karta</div>
57
- <div [kptCol]="12" [kptColMd]="4">Karta</div>
55
+ <div [kptCol]="12" [kptColSm]="6" [kptColMd]="4">Card</div>
56
+ <div [kptCol]="12" [kptColSm]="6" [kptColMd]="4">Card</div>
57
+ <div [kptCol]="12" [kptColMd]="4">Card</div>
58
58
  </div>
59
59
 
60
- <!-- 18 kolumn bez rekompilacji SCSS -->
60
+ <!-- 18 columns with no SCSS recompilation -->
61
61
  <div kptGrid [columns]="18" gap="1.5rem">
62
62
  <div [kptCol]="18" [kptColLg]="5">Sidebar</div>
63
- <div [kptCol]="18" [kptColLg]="13">Treść</div>
63
+ <div [kptCol]="18" [kptColLg]="13">Content</div>
64
64
  </div>
65
65
 
66
- <!-- offset i zmiana kolejności na mobile -->
66
+ <!-- an offset and a reordering on mobile -->
67
67
  <div kptGrid>
68
68
  <div [kptCol]="6" [kptColStart]="4">start 4, span 6</div>
69
- <div [kptCol]="12" [kptColMd]="6" class="kpt-order-first kpt-order-md-none">drugi w DOM</div>
70
- <div [kptCol]="12" [kptColMd]="6">pierwszy w DOM</div>
69
+ <div [kptCol]="12" [kptColMd]="6" class="kpt-order-first kpt-order-md-none">second in the DOM</div>
70
+ <div [kptCol]="12" [kptColMd]="6">first in the DOM</div>
71
71
  </div>
72
72
 
73
73
  <!-- flexbox -->
74
74
  <div kptFlex direction="column" directionMd="row" justify="space-between" align="center" gap="1rem">
75
- <span>Lewa</span>
76
- <span>Prawa</span>
75
+ <span>Left</span>
76
+ <span>Right</span>
77
77
  </div>
78
78
 
79
- <!-- układ formularza (preset CSS, bez klas na dzieciach) -->
79
+ <!-- a form layout (a CSS preset, no classes on the children) -->
80
80
  <form class="kpt-grid kpt-form-grid">
81
- <kpt-form-field label="Imię"><kpt-input [(value)]="firstName" /></kpt-form-field>
82
- <kpt-form-field label="Nazwisko"><kpt-input [(value)]="lastName" /></kpt-form-field>
83
- <kpt-form-field label="Notatki" class="kpt-col-md-12"><kpt-input [(value)]="notes" /></kpt-form-field>
81
+ <kpt-form-field label="First name"><kpt-input [(value)]="firstName" /></kpt-form-field>
82
+ <kpt-form-field label="Last name"><kpt-input [(value)]="lastName" /></kpt-form-field>
83
+ <kpt-form-field label="Notes" class="kpt-col-md-12"><kpt-input [(value)]="notes" /></kpt-form-field>
84
84
  </form>
85
85
 
86
86
  ## Custom properties
87
- Siatka: `--kpt-grid-columns`, `--kpt-gap`, `--kpt-gap-x`, `--kpt-gap-y`,
87
+ The grid: `--kpt-grid-columns`, `--kpt-gap`, `--kpt-gap-x`, `--kpt-gap-y`,
88
88
  `--kpt-justify`, `--kpt-align`, `--kpt-content`, `--kpt-flex-direction`, `--kpt-flex-wrap`.
89
- Dziecko: `--kpt-col`, `--kpt-col-start`, `--kpt-order`, `--kpt-self`, `--kpt-flex`,
89
+ The child: `--kpt-col`, `--kpt-col-start`, `--kpt-order`, `--kpt-self`, `--kpt-flex`,
90
90
  `--kpt-grow`, `--kpt-shrink`.
91
- Każda ma warianty per breakpoint: `--kpt-col` → `--kpt-col-md`.
91
+ Each one has per-breakpoint variants: `--kpt-col` → `--kpt-col-md`.