@konce-pt/angular 0.15.1 → 0.16.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,72 @@
1
1
  # @konce-pt/angular
2
2
 
3
+ ## 0.16.1
4
+
5
+ ### Patch Changes
6
+
7
+ - e66a67d: Licznik `kpt-data-view` / `KptDataView` odmienia się teraz poprawnie: "1 element", "2 elementy",
8
+ "5 elementów", "22 elementy" (wcześniej zawsze "N elementów"), a po angielsku "1 item" zamiast
9
+ "1 items". Słowniki obsługują blok liczby mnogiej ICU - `{count, plural, one {# item} other {# items}}` -
10
+ z formą wybieraną przez `Intl.PluralRules` dla bieżącego języka. `translate` przyjmuje opcjonalny
11
+ czwarty argument `locale` (domyślnie `'en'`), a `KptI18n.t` i `useKptI18n().t` przekazują go same,
12
+ więc własny słownik dostaje odmianę bez zmian w kodzie.
13
+ - c6e5719: `kpt-popover` / `KptPopover` dostał `maxWidth` - maksymalną szerokość panelu w dowolnej długości CSS
14
+ (domyślnie nadal `20rem`). Wcześniej szerokość była zaszyta w stylu i nie dało się jej zmienić nawet
15
+ zmienną CSS, bo panel żyje w nakładce poza drzewem komponentu - szersza treść (lista powiadomień)
16
+ wylewała się za prawą krawędź dymka. Panel nigdy nie jest też szerszy niż okno minus margines
17
+ nakładek 8 px.
18
+ - Updated dependencies [e66a67d]
19
+ - @konce-pt/i18n@0.16.1
20
+ - @konce-pt/backdrop@0.16.1
21
+ - @konce-pt/chart@0.16.1
22
+ - @konce-pt/chat@0.16.1
23
+ - @konce-pt/datetime@0.16.1
24
+ - @konce-pt/icons@0.16.1
25
+ - @konce-pt/map@0.16.1
26
+ - @konce-pt/mention@0.16.1
27
+ - @konce-pt/motion@0.16.1
28
+ - @konce-pt/roadmap@0.16.1
29
+ - @konce-pt/speech@0.16.1
30
+ - @konce-pt/table@0.16.1
31
+
32
+ ## 0.16.0
33
+
34
+ ### Minor Changes
35
+
36
+ - 469c9f9: `kpt-chart` / `KptChart` dostał ruch przy zmianie danych i przejazd dymka między punktami, w obu
37
+ portach. Nowy `config` z tym samym typem, kategoriami i seriami przechodzi falą sprężyn od lewej
38
+ do prawej ze smugą światła; linia i słupki trzymają na chwilę ducha poprzedniego stanu z odcinkami
39
+ wzrostu i spadku i różnicą nad punktami, a oś czeka, aż duch zgaśnie. Dymek, prowadnica i pigułka
40
+ kategorii jadą do kolejnej kategorii, cyfry kręcą się na bębnach, nazwa wjeżdża z kierunku ruchu.
41
+ Linia i słupki reagują teraz na kursor w całym obszarze wykresu (najbliższa kategoria, wiersze
42
+ wszystkich serii), a dymek nie wychodzi poza wykres - przycięcie liczy się z jego szerokości.
43
+ Nowe opcje: `animation.update`, `animation.delta`, `tooltip.motion`; ruch wyłączają też
44
+ `provideKptMotion({ enabled: false })` / `KptMotionProvider` i systemowe "ogranicz ruch".
45
+ `@konce-pt/chart` eksportuje logikę ruchu (`springStep`, `reelCells`, `holdDomain`, `domainScale`,
46
+ `KptChartMotion`...), a `barLayout` przyjmuje opcjonalną skalę z zewnątrz.
47
+
48
+ ### Patch Changes
49
+
50
+ - c33eb00: Panele rozwijane nie wychodzą już poza prawą krawędź okna. `kpt-popover`, `kpt-peek`, `kpt-select`,
51
+ `kpt-datepicker`, `kpt-date-range`, `kpt-autocomplete`, `kpt-menu`, `kpt-menubar`, `kpt-megamenu`,
52
+ `kpt-split-button` i listy `kpt-rich-text` miały w porcie Angulara tylko pozycje wyrównane do lewej
53
+ krawędzi wyzwalacza, więc dymek przy prawym rogu paska (np. powiadomienia) wystawał poza ekran.
54
+ Teraz panel, który by się nie zmieścił, otwiera się w lewo, a gdy nie pasuje żadna z czterech pozycji,
55
+ CDK dosuwa go do okna z marginesem 8px. Port Reacta robi to samo we wspólnym `KptOverlay`.
56
+ - Updated dependencies [469c9f9]
57
+ - @konce-pt/chart@0.16.0
58
+ - @konce-pt/backdrop@0.16.0
59
+ - @konce-pt/chat@0.16.0
60
+ - @konce-pt/datetime@0.16.0
61
+ - @konce-pt/i18n@0.16.0
62
+ - @konce-pt/icons@0.16.0
63
+ - @konce-pt/map@0.16.0
64
+ - @konce-pt/mention@0.16.0
65
+ - @konce-pt/motion@0.16.0
66
+ - @konce-pt/roadmap@0.16.0
67
+ - @konce-pt/speech@0.16.0
68
+ - @konce-pt/table@0.16.0
69
+
3
70
  ## 0.15.1
4
71
 
5
72
  ### Patch Changes
@@ -27,12 +27,15 @@ proportionally (`width={300} height={180}`) instead of letting a 600-unit chart
27
27
  - `labels: string[]`, `series: { name; data: number[]; color? }[]`
28
28
  - `legend`: `{ display?, position: top|bottom|left|right, align: start|center|end, pointStyle: circle|rect|rectRot|triangle|line, title? }`
29
29
  - `title` / `subtitle`: `{ display?, text, align, color?, font?, padding? }`
30
- - `tooltip`: `{ enabled?, format?(ctx: {series,label,value}): string }`
31
- - `animation`: `{ enabled?, duration=400, delay=0, stagger=60 }`
30
+ - `tooltip`: `{ enabled?, format?(ctx: {series,label,value}): string, motion?: boolean }`
31
+ - `animation`: `{ enabled?, duration=400, delay=0, stagger=60, update?: boolean, delta?: boolean }`
32
32
  - `ariaLabel?`: string - the chart's accessible name; `description?`: string - the takeaway for a screen reader
33
33
 
34
34
  ## Interactions
35
- - Hovering a point/bar/slice -> a tooltip (series, label, value); the bubble is clamped to the edges.
35
+ - Line and bar: the pointer anywhere over the plot picks the nearest category; the tooltip lists every visible
36
+ series at that category and travels from category to category without fading out in between.
37
+ - Slice/radar point: hovering the element -> a tooltip (series, label, value).
38
+ - The bubble never leaves the chart: it is clamped by its real width, not by its center.
36
39
  - Clicking the legend -> hide/show a series (pie/doughnut/polar: hide a slice) with the scale recomputed.
37
40
  - Hovering the legend -> highlight that series, dim the rest.
38
41
 
@@ -40,6 +43,27 @@ proportionally (`width={300} height={180}`) instead of letting a 600-unit chart
40
43
  Line: `stroke-dasharray/offset`. Bars: `scaleY/scaleX` (origin at the axis). Slices/radar: `scale` from the center.
41
44
  Stagger `delay = index * stagger`. Disabled by `animation.enabled=false` and by `prefers-reduced-motion`.
42
45
 
46
+ ### Data updates (same chart, new values)
47
+ A new `config` with the same type, categories and series names is a data update, not a new chart. The values
48
+ travel as a wave from left to right (springs with a damped wobble, 70 ms per category), and a light sheen runs
49
+ with the wave front. Line and bar charts also keep the previous state on screen for 1.7 s: a dashed ghost,
50
+ up/down segments between old and new values (`--kpt-color-success` / `--kpt-color-danger`, override with
51
+ `--kpt-chart-delta-up` / `--kpt-chart-delta-down`) and the difference above each point that changed by 2% or
52
+ more. The value axis holds both states while the ghost is visible, then zooms to the new data. Sheen color:
53
+ `--kpt-chart-sheen` (default `--kpt-color-info`). `animation.update: false` - values jump; `animation.delta:
54
+ false` - the wave without ghost, segments, differences and sheen. Another chart shape (type, categories,
55
+ series) plays the regular entry animation.
56
+
57
+ ### Tooltip motion
58
+ The bubble, the crosshair and the category pill travel to the next category (460 ms, emphasized curve), the
59
+ digits of the value roll on reels to the new number, the category name slides in from the direction of travel
60
+ and the target point of a line sends out a ripple. Leaving the chart fades the bubble out. `tooltip.motion:
61
+ false` - the bubble jumps.
62
+
63
+ The code-driven motion (data updates, tooltip) is off with `animation.enabled: false`, with
64
+ `provideKptMotion({ enabled: false })` and with the system "reduce motion" setting. The data table for screen
65
+ readers always reads the final values from `config`.
66
+
43
67
  ## Example
44
68
  <kpt-chart [config]="{
45
69
  type: 'line',