@konce-pt/angular 0.15.1 → 0.16.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/CHANGELOG.md CHANGED
@@ -1,5 +1,43 @@
1
1
  # @konce-pt/angular
2
2
 
3
+ ## 0.16.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 469c9f9: `kpt-chart` / `KptChart` dostał ruch przy zmianie danych i przejazd dymka między punktami, w obu
8
+ portach. Nowy `config` z tym samym typem, kategoriami i seriami przechodzi falą sprężyn od lewej
9
+ do prawej ze smugą światła; linia i słupki trzymają na chwilę ducha poprzedniego stanu z odcinkami
10
+ wzrostu i spadku i różnicą nad punktami, a oś czeka, aż duch zgaśnie. Dymek, prowadnica i pigułka
11
+ kategorii jadą do kolejnej kategorii, cyfry kręcą się na bębnach, nazwa wjeżdża z kierunku ruchu.
12
+ Linia i słupki reagują teraz na kursor w całym obszarze wykresu (najbliższa kategoria, wiersze
13
+ wszystkich serii), a dymek nie wychodzi poza wykres - przycięcie liczy się z jego szerokości.
14
+ Nowe opcje: `animation.update`, `animation.delta`, `tooltip.motion`; ruch wyłączają też
15
+ `provideKptMotion({ enabled: false })` / `KptMotionProvider` i systemowe "ogranicz ruch".
16
+ `@konce-pt/chart` eksportuje logikę ruchu (`springStep`, `reelCells`, `holdDomain`, `domainScale`,
17
+ `KptChartMotion`...), a `barLayout` przyjmuje opcjonalną skalę z zewnątrz.
18
+
19
+ ### Patch Changes
20
+
21
+ - c33eb00: Panele rozwijane nie wychodzą już poza prawą krawędź okna. `kpt-popover`, `kpt-peek`, `kpt-select`,
22
+ `kpt-datepicker`, `kpt-date-range`, `kpt-autocomplete`, `kpt-menu`, `kpt-menubar`, `kpt-megamenu`,
23
+ `kpt-split-button` i listy `kpt-rich-text` miały w porcie Angulara tylko pozycje wyrównane do lewej
24
+ krawędzi wyzwalacza, więc dymek przy prawym rogu paska (np. powiadomienia) wystawał poza ekran.
25
+ Teraz panel, który by się nie zmieścił, otwiera się w lewo, a gdy nie pasuje żadna z czterech pozycji,
26
+ CDK dosuwa go do okna z marginesem 8px. Port Reacta robi to samo we wspólnym `KptOverlay`.
27
+ - Updated dependencies [469c9f9]
28
+ - @konce-pt/chart@0.16.0
29
+ - @konce-pt/backdrop@0.16.0
30
+ - @konce-pt/chat@0.16.0
31
+ - @konce-pt/datetime@0.16.0
32
+ - @konce-pt/i18n@0.16.0
33
+ - @konce-pt/icons@0.16.0
34
+ - @konce-pt/map@0.16.0
35
+ - @konce-pt/mention@0.16.0
36
+ - @konce-pt/motion@0.16.0
37
+ - @konce-pt/roadmap@0.16.0
38
+ - @konce-pt/speech@0.16.0
39
+ - @konce-pt/table@0.16.0
40
+
3
41
  ## 0.15.1
4
42
 
5
43
  ### 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',