@konce-pt/angular 0.17.0 → 0.18.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,79 @@
1
1
  # @konce-pt/angular
2
2
 
3
+ ## 0.18.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 6faf0a5: Gęsta oś kategorii w `kpt-chart`, w obu portach.
8
+
9
+ - Etykiety osi kategorii nie nachodzą już na siebie: gdy wszystkie się nie mieszczą, wykres pokazuje
10
+ równy podział - 9 etykiet (ósemki osi), 5 (pierwsza, 1/4, środek, 3/4, ostatnia), 3 albo same skrajne.
11
+ Wykres, którego etykiety się mieszczą, wygląda jak dotąd. Słupki poziome przerzedzają tak samo wiersze.
12
+ - Skrajne etykiety i pigułka prowadnicy (`crosshair`) nie wychodzą poza wykres - ostatnia etykieta
13
+ nie jest już ucinana przy prawej krawędzi.
14
+ - Wykres liniowy ma małą kropkę pod każdą kategorią na osi; aktywna rośnie przy najechaniu. Pełną nazwę
15
+ kategorii spoza widocznych etykiet pokazuje pigułka prowadnicy i dymek.
16
+ - `@konce-pt/chart`: `axisLabelIndices`, `estimateLabelWidth`, `clampLabel`, z testami.
17
+ - Eksport typów, których brakowało przy nowym API 0.18.0: `KptColumnGroup` z `@konce-pt/angular`
18
+ oraz `KptValueAxisOptions` z `@konce-pt/angular/charts` i `@konce-pt/react/charts`.
19
+
20
+ - Updated dependencies [6faf0a5]
21
+ - @konce-pt/chart@0.18.1
22
+ - @konce-pt/backdrop@0.18.1
23
+ - @konce-pt/chat@0.18.1
24
+ - @konce-pt/datetime@0.18.1
25
+ - @konce-pt/i18n@0.18.1
26
+ - @konce-pt/icons@0.18.1
27
+ - @konce-pt/map@0.18.1
28
+ - @konce-pt/mention@0.18.1
29
+ - @konce-pt/motion@0.18.1
30
+ - @konce-pt/roadmap@0.18.1
31
+ - @konce-pt/speech@0.18.1
32
+ - @konce-pt/table@0.18.1
33
+
34
+ ## 0.18.0
35
+
36
+ ### Minor Changes
37
+
38
+ - 2801f61: Oś i stos wykresu, nagłówki grupowane tabeli, ikona pola tekstowego oraz poprawki portu React.
39
+
40
+ - `kpt-chart`: `valueAxis: { zero?, min?, max? }` - oś wartości nie musi zaczynać się od zera
41
+ (`zero: false` dopasowuje ją do danych), a `min` / `max` przypinają jej końce; słupki i pola rosną
42
+ od zera albo od bliższego mu końca osi, wartość poza przypiętym końcem jest ucinana na krawędzi.
43
+ - `kpt-chart`: `stacked: true` - słupki serii jedne na drugich (dodatnie w górę, ujemne w dół,
44
+ zaokrąglony tylko zewnętrzny odcinek) i linie jako narastające sumy z pasmem pod każdą (`area`).
45
+ Dymek pokazuje wartości serii, ruch osi i duch poprzedniego stanu liczą się ze stosu.
46
+ - `@konce-pt/chart`: `axisScale`, `axisBase`, `chartScale`, `stackSeries`, `scaleRows`, `bandPath`;
47
+ `dataScale` i `barLayout` przyjmują opcje osi i stosu (dotychczasowe wywołania działają bez zmian).
48
+ - `kpt-data-table`: `columnGroups: [{ header, fields }]` - wiersz nagłówków grupowanych nad
49
+ etykietami (`scope="colgroup"`), liczony z kolumn widocznych w bieżącej kolejności; działa z
50
+ kolumnami zamrożonymi, przestawianiem, ukrywaniem i oknem kolumn trybu wirtualnego. Nagłówek z
51
+ grupami i filtrami ma trzy wiersze, wszystkie przyklejone (`--kpt-thead-offset-2`).
52
+ - `@konce-pt/table`: `groupHeaderCells` i typ `KptColumnGroup`.
53
+ - `kpt-input`: `icon` - ikona z rejestru na początku pola (dekoracyjna, kliknięcie trafia w pole).
54
+ - React `KptDialog`: dialog zamontowany od razu z `open` nie zamyka się już sam pod `StrictMode`
55
+ (spóźnione zdarzenie `close` z ponownego montowania efektu jest ignorowane).
56
+ - React `KptSelect`: typ `onValueChange` idzie za `multiple` - bez niego `(value: T)`, z nim
57
+ `(value: T[])`; `multiple` liczone w locie zostawia szeroki typ. Nowe typy `KptSelectSingleProps`
58
+ i `KptSelectMultipleProps`.
59
+ - Dokumentacja: `ariaLabel` `kpt-popover` na liście wejść/propsów w obu portach.
60
+
61
+ ### Patch Changes
62
+
63
+ - Updated dependencies [2801f61]
64
+ - @konce-pt/chart@0.18.0
65
+ - @konce-pt/table@0.18.0
66
+ - @konce-pt/backdrop@0.18.0
67
+ - @konce-pt/chat@0.18.0
68
+ - @konce-pt/datetime@0.18.0
69
+ - @konce-pt/i18n@0.18.0
70
+ - @konce-pt/icons@0.18.0
71
+ - @konce-pt/map@0.18.0
72
+ - @konce-pt/mention@0.18.0
73
+ - @konce-pt/motion@0.18.0
74
+ - @konce-pt/roadmap@0.18.0
75
+ - @konce-pt/speech@0.18.0
76
+
3
77
  ## 0.17.0
4
78
 
5
79
  ### Minor Changes
@@ -13,6 +13,26 @@ Import: `import { KptChart } from '@konce-pt/angular/charts';`
13
13
  - `polarArea` - equal angles, the radius proportional to the value
14
14
  - `radar` - radial axes + a polygon per series
15
15
 
16
+ ## Value axis and stacking (line, bar)
17
+ - `valueAxis?: { zero?, min?, max? }` - the value axis starts at zero by default, so a bar and the area under a line
18
+ show the size directly. `zero: false` fits the axis to the data (a weight of 79-90 kg is no longer a flat line under
19
+ the ceiling); `min` / `max` pin an end of the axis exactly and win over `zero` - a value beyond a pinned end is
20
+ cut at the edge. Bars and areas grow from zero, or from the end of the axis nearer to it
21
+ - `stacked?: boolean` - stacked series: bars on top of each other in one band per category (positive values up,
22
+ negative down; only the outer segment is rounded), lines as running totals with a band under each one (with
23
+ `area`). The axis covers the totals; the tooltip shows the values of the series, not the totals
24
+ - The rules live in `@konce-pt/chart`: `axisScale`, `chartScale`, `stackSeries`, `bandPath` (tested)
25
+
26
+ ## Category axis (line, bar)
27
+ - When the category labels do not fit, the axis shows an even subset instead of overlapping text: all of
28
+ them if they fit, otherwise the densest split that fits - 9 labels (eighths of the axis), 5 (first, 1/4,
29
+ middle, 3/4, last), 3, and finally the two ends only. Horizontal bars apply the same rule to the rows
30
+ - The choice is made in viewBox units, so it follows `width`, not the on-screen size; the outer labels and the
31
+ crosshair pill are shifted inward so they never leave the chart
32
+ - A line chart marks every category with a small dot on the axis; the active one grows on hover. The full
33
+ name of any category stays in the crosshair pill and the tooltip
34
+ - The rules live in `@konce-pt/chart`: `axisLabelIndices`, `estimateLabelWidth`, `clampLabel` (tested)
35
+
16
36
  ## Inputs
17
37
  - `config: KptChartConfig` (required) - a single object driving everything
18
38
  - `width` / `height`: viewBox units (600x360); the chart scales to its container