pivotkit-react 0.1.0 → 0.3.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 +306 -1
- package/README.md +48 -298
- package/dist/chunks/{chunk-ILHFIV2P.js → chunk-32Z33U6S.js} +58 -78
- package/dist/chunks/chunk-7CC4JHDY.js +363 -0
- package/dist/chunks/chunk-APB4NW4O.js +434 -0
- package/dist/chunks/chunk-EM23V5GH.js +183 -0
- package/dist/chunks/{chunk-KKJO36W5.js → chunk-IOPAM4JD.js} +412 -365
- package/dist/chunks/chunk-RWYHJRQO.js +99 -0
- package/dist/chunks/unused-texts-K3VFH65P.js +10 -0
- package/dist/chunks/unused-texts-de-OW4TGIVX.js +6 -0
- package/dist/echarts.js +96 -11
- package/dist/index.js +654 -560
- package/dist/labels.js +13 -4
- package/dist/menu-texts-de.js +6 -0
- package/dist/menus.js +2905 -550
- package/dist/styles.css +738 -216
- package/package.json +2 -2
- package/types/chart-layout.d.ts +111 -0
- package/types/chart-types.d.ts +0 -91
- package/types/chip-menus.d.ts +20 -4
- package/types/dnd.d.ts +8 -4
- package/types/drill-panel.d.ts +5 -22
- package/types/drill-table.d.ts +71 -0
- package/types/drill.d.ts +0 -36
- package/types/filter-level.d.ts +16 -0
- package/types/filter.d.ts +31 -0
- package/types/help.d.ts +14 -0
- package/types/icons.d.ts +4 -0
- package/types/labels.d.ts +114 -101
- package/types/lazy-menus.d.ts +18 -6
- package/types/levels.d.ts +105 -0
- package/types/menu-fields.d.ts +80 -0
- package/types/menu-labels-de.d.ts +2 -0
- package/types/menu-labels.d.ts +270 -13
- package/types/menu-ops.d.ts +286 -0
- package/types/menu-texts.d.ts +2 -0
- package/types/menu-topics.d.ts +293 -0
- package/types/menus.d.ts +2 -2
- package/types/names.d.ts +160 -20
- package/types/overflow.d.ts +4 -1
- package/types/place.d.ts +44 -0
- package/types/popover.d.ts +10 -6
- package/types/section.d.ts +8 -28
- package/types/share-actions.d.ts +99 -0
- package/types/share.d.ts +0 -9
- package/types/table.d.ts +9 -3
- package/types/templates.d.ts +7 -1
- package/types/tips.d.ts +1 -34
- package/types/toolbar-panels.d.ts +20 -10
- package/types/unused-load.d.ts +23 -0
- package/types/unused-texts-de.d.ts +2 -0
- package/types/unused-texts.d.ts +136 -0
- package/types/unused.d.ts +22 -0
- package/types/use-view-history.d.ts +8 -4
- package/types/view-history.d.ts +23 -6
- package/types/view-ops.d.ts +80 -119
- package/types/view-save.d.ts +76 -0
- package/types/view-store.d.ts +13 -6
- package/types/zones.d.ts +5 -4
- package/dist/chunks/chunk-C32TYSHG.js +0 -441
- package/dist/chunks/chunk-XYP47DJ3.js +0 -123
package/CHANGELOG.md
CHANGED
|
@@ -6,8 +6,300 @@ All notable changes to `pivotkit-react` are documented in this file. The format
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.3.0] - 2026-11-09
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- The Filter level rebuilt. A summary card that stays in view: what the table shows of the field in
|
|
14
|
+
bold ("3 of 12 months shown", "Nothing shown" in red), why the rest does not, each reason with its
|
|
15
|
+
count ("9 left out by your picks", "24 outside last 2 years (2025; 2026 has no data)", "11 left out
|
|
16
|
+
by the rule"), with nothing shown the one reason and the nearest totals ("No month has a total
|
|
17
|
+
Average of Mean °C that is greater than 25 – the totals go from 13.4 (Jan) to 22.2 (Jul)."), the
|
|
18
|
+
rows and the data's dates; **Reset filter**. Three sections that fold, with their state on the
|
|
19
|
+
header and Clear or Remove beside it: **Quick choices** (a date along the time line only; only the
|
|
20
|
+
choices that keep a row, each with the data's share of its days and its rows, a line naming the
|
|
21
|
+
ones not offered, counts that start where the data end, Last [N] days for a date field, and
|
|
22
|
+
**Counted back from** today or the latest record when the data end before the current period, saved
|
|
23
|
+
as the filter's `anchor`), **Years combined** instead for a grouping that repeats every year (a
|
|
24
|
+
toggle per year of the data, written as whole-year comparisons on the dates), **Pick items** (the
|
|
25
|
+
items a rule leaves out in a folded tail group, their ticks kept) and **Rules** (an "i" per rule
|
|
26
|
+
with what it compares and an example - the total's names its Grand Total scope -, a line under
|
|
27
|
+
each with what it keeps, the quick choice among them as a line to read, not a rule; a searchable
|
|
28
|
+
list instead of a native select for a grouping with more than twelve items). The first rule or
|
|
29
|
+
quick choice opens Rules and folds Pick items, the last one going does the reverse, a fold by hand
|
|
30
|
+
wins afterwards; on a phone one of them is open at a time. A quick choice says the data's share on
|
|
31
|
+
the chip and the menu's first level too ("last 2 years (2025; 2026 has no data)", "last 12 months
|
|
32
|
+
to Dec 2025"); the chip says Years combined as years ("2024 to 2025"). New labels (`summary*`,
|
|
33
|
+
`nouns`, `quickRows`, `quickHidden`, `anchor*`, `yearsCombined*`, `pickItems`, `picksState`,
|
|
34
|
+
`rulesState`, `tailOut`, `ruleKeeps*`, `ruleInfo`, `scope*`, `picker*`, `relativeTo`, `withShare`,
|
|
35
|
+
`noData`, `summaryQuickOnly` and more); gone: `moreFilters`, `itemsPicked`, `itemsShown*`, `pickedPlus`, `ruleOut`,
|
|
36
|
+
`quickCustom`, `conditionOnNames`, `removeConditions`. New tokens `--pk-danger-soft` and
|
|
37
|
+
`--pk-warn`. Text actions in the menus (Reset filter, Clear, Remove, Select all, "change it above")
|
|
38
|
+
are quiet buttons, disabled while they would change nothing. The data range in the footer and the
|
|
39
|
+
axis title and the Group level's names come in a separate change.
|
|
40
|
+
- Filter rules ([#89](https://github.com/eizedev/pivotkit/issues/89),
|
|
41
|
+
[#90](https://github.com/eizedev/pivotkit/issues/90)). The Filter level of a date field (or a
|
|
42
|
+
grouping of one) starts with quick choices: All, This year, Last [N] years and, unless it is
|
|
43
|
+
grouped by year or quarter, Last [N] months, each with the days it keeps ("2022–2026"), relative to
|
|
44
|
+
today in the data's time zone; "Custom rules" while the rules hold more. Under "More ways to
|
|
45
|
+
filter" a rule editor: sentences that all apply together, added and removed one by one, each
|
|
46
|
+
applied once complete: the item itself compared ("Released by year is from 2022", for dates also
|
|
47
|
+
"is in the last N years"), its total compared ("Count of Released is greater than 3"; "Count of
|
|
48
|
+
rows" with nothing in Values) and a rule on its name. The chip, the menu's first level and the
|
|
49
|
+
level say the same words: "last 5 years (2022–2026)", "from 2022", "Count of rows > 3".
|
|
50
|
+
- A field in Filters opens a menu of its own with the same Filter level (Filter, Move to, Remove
|
|
51
|
+
field) instead of the filter popover.
|
|
52
|
+
- The menu search finds the rules ("rule"), the quick choices with the count typed ("last 3
|
|
53
|
+
years") and a year compared ("from 2022"), and applies them at once.
|
|
54
|
+
|
|
9
55
|
### Changed
|
|
10
56
|
|
|
57
|
+
- A quick choice replaces the field's relative ranges only: its comparisons stay as rules, and
|
|
58
|
+
"Remove" beside Rules keeps the quick choice. "Last [N] years" starts at 2 ("Last 1 year" is This
|
|
59
|
+
year); a month-of-the-year grouping (and the other groupings that repeat every year) has no quick
|
|
60
|
+
choices.
|
|
61
|
+
- The text condition and the condition on a value of the Filter level are rules now: each is added
|
|
62
|
+
with its button and taken away with its ×; "is anything" and "No condition" are gone. "Remove the
|
|
63
|
+
conditions" is "Remove the rules" and takes the quick choice of a date too.
|
|
64
|
+
- A sort, Top items or a value condition by the row count the view does not show is named "Count
|
|
65
|
+
of rows" ("Anzahl der Zeilen").
|
|
66
|
+
- The filter popover is only the field list's "Filter…" of a field not placed yet, so its "Remove
|
|
67
|
+
filter" is gone (with the label `removeFilter`).
|
|
68
|
+
- The menus of a chip and Options are in levels instead of long accordions. The first level is a
|
|
69
|
+
short summary: one row per topic with what is set on its right ("Filter · All", "Top items · Off",
|
|
70
|
+
"Number format · ● Currency"; the dot and ", changed" in its accessible name where it is not the
|
|
71
|
+
default), or a topic's few choices right there (A to Z and Z to A, a value's Highlight, the totals
|
|
72
|
+
and help switches). A row opens the topic's own level in place, titled with the field ("Month ›
|
|
73
|
+
Group"), with **‹ Back**. The first level and the levels of choices are ARIA menus (WAI-ARIA
|
|
74
|
+
Authoring Practices: one Tab stop, arrow keys, Home and End, type-ahead; Enter or the right arrow
|
|
75
|
+
into a level, Escape or the left arrow back to the row it came from, Escape on the first level
|
|
76
|
+
closes the menu, Tab closes it and moves on); a level with form controls is a group with its
|
|
77
|
+
heading. A search above a chip menu's first level finds a choice of any level, with its path.
|
|
78
|
+
- Every choice in these menus applies at once, without Apply: the values of the Filter level (in a
|
|
79
|
+
chip's menu; the filter popover of a Filters chip keeps its draft and Apply), the text condition and
|
|
80
|
+
the numbers a moment after the typing stops (or with Enter), a value's name with Enter or when the
|
|
81
|
+
field is left; Escape in a field gives back what applies. Number ranges keep Apply (size and start
|
|
82
|
+
apply together).
|
|
83
|
+
- The Filter level of a field: how many items the list keeps, **Remove filter** (now also taking the
|
|
84
|
+
value condition; Top N stays), the values with their counts, the condition on the names, and the
|
|
85
|
+
condition on a value as a sentence ("Keep Region items whose Sum of Revenue is greater than …";
|
|
86
|
+
"is anything" takes it off). The Top items level: Off, Top 3, Top 5, Top 10, or **Top N…** with Top
|
|
87
|
+
or Bottom and a count. The Group level of a date: one column, each unit's example on its right,
|
|
88
|
+
under "Along the time line" and "Same period every year". Sorting by a value: on the first level
|
|
89
|
+
for one value, else in the level **Sort by value**.
|
|
90
|
+
- Options: the totals and help switches are menu items (`menuitemcheckbox`); one that would change
|
|
91
|
+
nothing is `aria-disabled` with its reason, so the arrow keys still reach it; the "i" next to a
|
|
92
|
+
total is for the pointer, its text is the item's description; Keyboard shortcuts is a level.
|
|
93
|
+
- The Views menu is in levels too: its first level is the flat list to scan (This view with Save “…”,
|
|
94
|
+
Save as… and New, Shared views, My views, Share); Save as…, Share (copy link, copy JSON, download,
|
|
95
|
+
Load view…) and the questions before a delete, a publish or a Save over a shared view open levels of
|
|
96
|
+
their own. An entry's Publish and Delete are items next to it, reached by the arrow keys; after a
|
|
97
|
+
delete the focus goes to the entry that takes its place.
|
|
98
|
+
- The Views menu's **Share** row sits under a group heading of its own, **Share this view** (German
|
|
99
|
+
"Diese Ansicht teilen"), like This view, Shared views and My views, so it is not lost under the lists.
|
|
100
|
+
- No menu folds any more: the chart type menu (its Display settings shown at once) and the Export
|
|
101
|
+
menus are flat lists in titled groups. The folding (`SECTIONS`, `open:<section>` and
|
|
102
|
+
`closed:<section>` in the tips' list) and **Reset menu sections** are gone; a stored state of a
|
|
103
|
+
section is dropped when the list is read, and `dismissedTips` and `onTipDismiss` carry only tips and
|
|
104
|
+
switches.
|
|
105
|
+
- After a usability review: the Filter level shows the list first and folds "More ways to filter"
|
|
106
|
+
(the text condition and the condition on a value) each time it opens; its first line names the
|
|
107
|
+
conditions; Clear picks and Remove the conditions replace Remove filter there; the comparison has a
|
|
108
|
+
line of its own. A typed name, count or number applies when the menu closes from a click outside.
|
|
109
|
+
The search knows "percent", "%", "rename", "top 5" and the two conditions, and `/` goes to it. A
|
|
110
|
+
format the menu does not offer (number:1) is a checked entry by its name. The levels of choices are
|
|
111
|
+
one column, the chip menus 420 px wide. The Sort row names a sort by a value; the menu's head names
|
|
112
|
+
the field as its levels do; Expand all has a neutral icon; Select all and the Filter level's
|
|
113
|
+
actions are underlined. A popover keeps its side while its content changes.
|
|
114
|
+
- A menu whose entries are all off (the Export menu of an empty report) no longer puts the focus on
|
|
115
|
+
its first "i", whose explanation opened over the entries; the menu takes the focus itself.
|
|
116
|
+
- Text fields, searches and selects in the menus have an edge of 3:1 contrast in both themes: the new
|
|
117
|
+
token `--pk-input-border`.
|
|
118
|
+
- Labels of the menus (a host's `labels` for them): new `shareThisView`, `back`, `backTo`, `levelTitle`, `searchMenu`,
|
|
119
|
+
`searchMenuShort`, `searchResults`, `searchNothing`, `sortByValue`, `sortOldestShort`,
|
|
120
|
+
`sortNewestShort`, `filterTopic`, `filterAll`, `groupTopic`, `groupNoneShort`, `off`,
|
|
121
|
+
`moveToTitle`, `topOwn`, `binsOff`, `itemsPicked`, `valueConditionTitle`, `keepWhose`,
|
|
122
|
+
`valueOpAny`, `nameHint`, `showAsKeywords`, `nameKeywords`, `filterKeywords`, `formatDecimals`,
|
|
123
|
+
`pickedPlus`, `conditionOnNames`, `conditionOnValue`, `listAnd`, `clearPicks`, `removeConditions`,
|
|
124
|
+
`moreFilters`; changed: `valueOps` is the comparison inside the sentence ("is greater
|
|
125
|
+
than", German "größer als"), `groupCyclic` reads "Same period every year"; gone (no longer shown):
|
|
126
|
+
`chooseValues`, `valueFilter`, `change`, `removeSetting`, `topStart`, `binsStart`, `filterIs`,
|
|
127
|
+
`groupBy`, `resetSections`, `resetSectionsDone`. A host's text for a key that is gone is ignored.
|
|
128
|
+
|
|
129
|
+
### Fixed
|
|
130
|
+
|
|
131
|
+
- A press inside a menu that a chip or a field opened no longer drags that chip or field: selecting
|
|
132
|
+
text in the menu, pressing a native select of a rule, or a click that moves a little (Clear picks
|
|
133
|
+
over the Values zone) moved the field to another zone and lost its filters. The menu is rendered
|
|
134
|
+
through a portal, and React passed its mouse and touch events up to the chip's drag listeners;
|
|
135
|
+
they now take only events from the chip's or field's own elements.
|
|
136
|
+
- Filter rules after review: a rule on the names shows its words on the chip ("contains “linux”");
|
|
137
|
+
the pick list marks the items the field's rules leave out and the first line counts what shows
|
|
138
|
+
("2 of 36 items shown: last 2 years (2025–2026)"); the quick choices follow Undo; a count above
|
|
139
|
+
500 says so; a new rule and the opened rules scroll into view; a narrow chip cuts the rule, not the
|
|
140
|
+
field's name; "is not" says blank items are not kept; counts of one have their own words ("Letztes
|
|
141
|
+
1 Jahr", "im letzten 1 Monat"); the rule on a total names the items ("Region items whose …"); the
|
|
142
|
+
search offers "from 2022" for a grouping by year only. The labels `labelOps` load first now (the
|
|
143
|
+
chip says them).
|
|
144
|
+
- On a touch screen the field list keeps its desktop rows: the grip, the "i" and the menu of a
|
|
145
|
+
field keep their size and get a hit area 44 px high instead (the grip's 44 px wide), within their
|
|
146
|
+
own row; they made every row 44 px or more high and broke names such as "Sunshine h" into two lines.
|
|
147
|
+
- Highlight keeps a value's own colours: Colour scale while it is checked changes nothing (it
|
|
148
|
+
replaced a view's own colours by the theme's), and None or Data bars and back bring the value's
|
|
149
|
+
colours of an earlier step of the history back.
|
|
150
|
+
- The "i" popover (and every other popover) appears at its final size and place
|
|
151
|
+
([#91](https://github.com/eizedev/pivotkit/issues/91)). Where the area of fixed elements ends before
|
|
152
|
+
the window's edge (a classic scroll bar, as on Windows; a transformed host element), it narrowed a
|
|
153
|
+
little on every placement, over about a second; it now takes its own width (`width: max-content`,
|
|
154
|
+
capped as before) and is placed inside the window without its scroll bars.
|
|
155
|
+
- With reduced motion a chip's menu (and every other menu) takes the focus when it opens
|
|
156
|
+
([#78](https://github.com/eizedev/pivotkit/issues/78)). The reduced-motion rule gave every element a
|
|
157
|
+
transition of 1 ms, also those without one of their own (`transition-property` is `all` by
|
|
158
|
+
default), so a popover shown from `visibility: hidden` was still hidden in the frame its focus
|
|
159
|
+
moved; reduced motion now turns animations and transitions off (`animation: none`,
|
|
160
|
+
`transition: none`), so nothing moves at all.
|
|
161
|
+
- German texts quote with German quotation marks
|
|
162
|
+
([#79](https://github.com/eizedev/pivotkit/issues/79)): a text condition in a chip's menu
|
|
163
|
+
("enthält „an“") and the fields a view for other data names ("Felder, die diese Daten
|
|
164
|
+
nicht haben: „Country“") take their quotes from the new label `quote` (`"“{text}”"` in English,
|
|
165
|
+
`"„{text}“"` in German); they were English quotes in every language.
|
|
166
|
+
- The empty report's first steps ("Build your report in three steps" with its **Start with …**
|
|
167
|
+
buttons) are no longer cut off in a report lower than they are (a host's height, the result's least
|
|
168
|
+
height of 240 px): the result's area scrolls what is taller than it (`.pk-result` is
|
|
169
|
+
`overflow: auto`); the table keeps scrolling in its own box.
|
|
170
|
+
|
|
171
|
+
## [0.2.0] - 2026-11-08
|
|
172
|
+
|
|
173
|
+
### Added
|
|
174
|
+
|
|
175
|
+
- A view's unused parts as a warning in plain words
|
|
176
|
+
([#56](https://github.com/eizedev/pivotkit/issues/56)). What a saved view (the host's templates
|
|
177
|
+
and the browser store's), a link or a loaded file asks for and the data or this version cannot
|
|
178
|
+
give is a notice above the result, open the first time it shows for a view (another view loaded
|
|
179
|
+
opens it again, also with the same parts) and folded with its title: "2 parts of this view could
|
|
180
|
+
not be used", one line per part with what it is about in bold (the value's name, the field, the
|
|
181
|
+
part of the report; two entries of one name say which one, "Sum of Units (no. 2 in Values)"),
|
|
182
|
+
what is wrong and what is used instead ("Quakes: the colour scale needs two or three colours - the
|
|
183
|
+
default colours are used"), and below it, small, the path and pivotkit-core's message for
|
|
184
|
+
developers. An open warning shows its first three lines (two on a narrow report) and "Show N more"
|
|
185
|
+
for the rest. A screen reader hears it once (the title through a live region, or the status note
|
|
186
|
+
"View loaded; some parts did not fit this data" alone); it never takes the focus; its x dismisses
|
|
187
|
+
it and moves the focus to what follows it. The words for every issue code (pivotkit-core's
|
|
188
|
+
`VIEW_ISSUE_CODES`) load on demand when a view has such parts (`unused-texts.js`, German in a file
|
|
189
|
+
of its own); until then, or when they fail, each line shows the core's English message, and a
|
|
190
|
+
German report falls back to English. A code a newer pivotkit-core adds gets a general text.
|
|
191
|
+
The plain words need the pivotkit-core release with issue codes (the next release); with an
|
|
192
|
+
earlier pivotkit-core each line shows the core's English message.
|
|
193
|
+
Labels: `unusedParts` (the title, a count), `unusedPath` ("For developers:"), `unusedMore` (a
|
|
194
|
+
count) and `unusedFewer` are new; the texts of the lines are `labels.unused` (`codes`, `dropped`,
|
|
195
|
+
`sections`, `settings`, `view`, `quote`, `position`, `other`, `item`), which a host overrides as
|
|
196
|
+
any label and which `pivotkit-react/labels` has in `LABELS`. Hosts that override labels: `issues`
|
|
197
|
+
is gone (the title is `unusedParts` now, with the count in it), and so are `viewMissingFields`,
|
|
198
|
+
`viewOtherIssue` and `viewOtherIssues` (each part has its own line now).
|
|
199
|
+
- Sorting with a click on a table header
|
|
200
|
+
([#55](https://github.com/eizedev/pivotkit/issues/55)). A value's name sorts the innermost row
|
|
201
|
+
field by that value: largest first, smallest first, then the field's own order again; a row
|
|
202
|
+
field's name toggles A to Z and Z to A. It writes the same sort entry as the chip menu, as one step
|
|
203
|
+
Undo takes back. Only the name is the button (the cell's edges stay free), reached with Tab and
|
|
204
|
+
pressed with Enter or Space; with column fields only the grand total column's value names sort.
|
|
205
|
+
The header whose sort was chosen carries `aria-sort` (one at a time; `other` for a custom order;
|
|
206
|
+
the default A to Z none); an
|
|
207
|
+
arrow marks the chosen order and, on hover and focus, the next one, and a faint arrow every name
|
|
208
|
+
that sorts on a touch screen, where the name is a 44 px target; a screen reader hears the new
|
|
209
|
+
order. The table's tip ("Click a value, ...") and `shortcuts.open` say that a header sorts. New
|
|
210
|
+
labels: `headerSort`, `headerSortDesc` and `headerSortAsc` (the tooltip of a row field's and a
|
|
211
|
+
value's name) and `headerSorted` (what is read out).
|
|
212
|
+
- Save, Save as and New for views
|
|
213
|
+
([#60](https://github.com/eizedev/pivotkit/issues/60)). The toolbar shows the name of the view
|
|
214
|
+
loaded (a saved view, a view file, a link) next to Views, with a dot while it has unsaved changes
|
|
215
|
+
(`labels.unsavedChanges`); the name is a button that opens Views. The Views menu starts with
|
|
216
|
+
"This view": **Save “…”** writes the loaded view under its name in one click (a view of the
|
|
217
|
+
browser store in its place, a user's view of the host through `onSaveTemplate`, a shared view
|
|
218
|
+
through `onPublishTemplate` with `canPublish`, after "Replace the shared view “…” for everyone?").
|
|
219
|
+
It is off with the reason for a shared view the user may not change, for a view from a file or a
|
|
220
|
+
link and while the report is empty. **Save as…** is the name field (its button "Save as"): a
|
|
221
|
+
name that exists among the user's views asks "“…” exists. Replace it?" first. **New, empty report** (in
|
|
222
|
+
the menu) empties the report to the start screen in one step. The name belongs to the history's steps: New and Reset take it away
|
|
223
|
+
(the report no longer shows that view), Undo and Redo move it with the view. A view of the browser
|
|
224
|
+
store is known by its name and the data it names, so two views of one name (one saved without
|
|
225
|
+
named data) stay apart; another source with the same columns keeps the view but not its name. A
|
|
226
|
+
reload with `persistView` keeps the view, not its name. A save that answers after New, another
|
|
227
|
+
view loaded or a change names nothing it did not save. New labels: `newEmpty`,
|
|
228
|
+
`unsavedChanges`, `steps.new`, and in the menus `thisView`, `saveNamed`, `saveAs`,
|
|
229
|
+
`saveSharedLocked`, `saveNotInViews`, `replaceConfirm`, `replaceSharedConfirm`, `replaceAction`,
|
|
230
|
+
`newAlready`, `settingInfo.newReport`.
|
|
231
|
+
- Publish as shared view hands over the view in the same form as Save: normalized against the data,
|
|
232
|
+
with the host's custom orders (`fieldDefaults.order`) the report shows.
|
|
233
|
+
- Host notes: Save and Save as call `onSaveTemplate(name, view, { scope: "user" })` and
|
|
234
|
+
`onPublishTemplate(name, view)` with a name that exists: the host replaces the view of that name
|
|
235
|
+
(an upsert by name), it does not add a second one.
|
|
236
|
+
|
|
237
|
+
### Changed
|
|
238
|
+
|
|
239
|
+
- The field chip menu shows each setting first, one line per setting
|
|
240
|
+
([#57](https://github.com/eizedev/pivotkit/issues/57)): "Top 10 by Sum of Revenue · Change ·
|
|
241
|
+
Remove", "Ranges of 0.5 from 4.5 · Change · Remove", "Sum of Units > 1,000 · Change · Remove",
|
|
242
|
+
"Filter: 15 of 45 · Remove" (each Remove takes only its own setting); with nothing set, one item
|
|
243
|
+
("Show top items…", "Group into ranges…", "Value condition…") opens its form in place, with Apply
|
|
244
|
+
and Cancel (Cancel puts the focus back on the line; the form scrolls into view). Filters offer
|
|
245
|
+
"Choose values…" and "Value condition…" as equals. Order: Sort, Filters, Top items, Group, Move.
|
|
246
|
+
The field's description (with its link), and in a value's menu the note that values are not
|
|
247
|
+
filtered there, are behind an "i" next to the field's name in the menu's first row, instead of a
|
|
248
|
+
paragraph.
|
|
249
|
+
- Menu sections: a folded title says what the section holds, muted at its end ("Number format ·
|
|
250
|
+
Automatic"), with a dot (read as ", changed") when it is not the default; titles read as controls
|
|
251
|
+
(the text's colour, a larger chevron, 44 px high on a touch screen). Share (Views) and Display
|
|
252
|
+
(chart type) start folded; Options → Rows, the value's Name and its Filters note fold no more.
|
|
253
|
+
Options → Help has "Reset menu sections" (the focus then on the Help title, a status says it);
|
|
254
|
+
"Show dismissed tips again" keeps the folding, as before. The drill-down's Export menu has Download
|
|
255
|
+
before Copy, as the toolbar's. My views, empty in the browser store, is one line.
|
|
256
|
+
- Labels for hosts that override them: `topN` reads "Top items", `bins` "Number ranges", `valueFilter`
|
|
257
|
+
"Value condition…"; new are `change`, `topStart`, `binsStart`, `binsState`, `chooseValues`,
|
|
258
|
+
`noViewsStore`, `resetSections`, `resetSectionsDone`, `sectionChanged` and
|
|
259
|
+
`settingInfo.valuesFilter`. `valuesFilterHint` is gone (its text is `settingInfo.valuesFilter`): a
|
|
260
|
+
host's text for it is no longer used. The `dismissedTips` entries `open:`/`closed:` of `name`,
|
|
261
|
+
`valueFilters` and `folding` are dropped.
|
|
262
|
+
|
|
263
|
+
- What runs only after a click in a menu loads with the menus, not with the report
|
|
264
|
+
([#73](https://github.com/eizedev/pivotkit/issues/73)): the view changes only the menus make and
|
|
265
|
+
the filter's summary (`menu-ops.js`), sharing's Copy link, Copy view as JSON, Download view and
|
|
266
|
+
Load view (`share-actions.js`), the drill-down's table (`drill-table.js`, built when the panel
|
|
267
|
+
opens), and the texts only these show (the totals and their reasons, Expand and Collapse all's
|
|
268
|
+
notes, the filter's text conditions, sharing's notes, `toastExported`, `chartDisplay`) move to
|
|
269
|
+
`menu-labels.js`. The chart's label layout (`chart-layout.js`) loads with ECharts. A host's
|
|
270
|
+
`labels` for them still win, `LABELS` of `pivotkit-react/labels` is unchanged, and the files of
|
|
271
|
+
`dist/` stay the same; a value clicked before the menus are there opens its rows once they are.
|
|
272
|
+
|
|
273
|
+
- The menus' German texts are a file of their own, `dist/menu-texts-de.js`, loaded with the menus
|
|
274
|
+
only for a German report, or when the locale changes to German
|
|
275
|
+
([#73](https://github.com/eizedev/pivotkit/issues/73)). A menu waits for them ("Loading…"), so it
|
|
276
|
+
never shows English first, and keeps its texts (and its state and focus) while the language
|
|
277
|
+
changes with it open; when the file cannot load, the menus open in English and the next menu tries
|
|
278
|
+
again. A host's `labels` still win; `labels` with `lang: "de"` load the file too. The loading line
|
|
279
|
+
is announced to screen readers. The menus' sections and the "i" of the
|
|
280
|
+
settings (`section.jsx`) load with the menus, not with the report; their context is `help.js`.
|
|
281
|
+
The element's menus are 2.7 KiB gzip smaller for every page that is not German. `LABELS` of
|
|
282
|
+
`pivotkit-react/labels` is unchanged. A host that copies `dist/` by hand copies the new file too
|
|
283
|
+
(it is in `dist/`).
|
|
284
|
+
|
|
285
|
+
- The README, the package's page on npm, is a short landing page: what pivotkit-react is, one screenshot,
|
|
286
|
+
install, one example and a table of links into the
|
|
287
|
+
[documentation site](https://pivotkit.eize.dev/), which holds the details.
|
|
288
|
+
- Views stays in the toolbar from a window about 1280 px wide: it is the last button to move into
|
|
289
|
+
"More" (`OVERFLOW_ORDER`: Reset, Layout, Options, the chart type, Views), so it shows wherever one
|
|
290
|
+
button besides Undo, Redo and Export fits, with the loaded view's name before it. Options and the
|
|
291
|
+
chart type move into "More" before Views: at about 1280 px the chart type is in "More", from
|
|
292
|
+
about 1440 px both show. The name is cut with "…" but never below 4em.
|
|
293
|
+
- Every save closes the Views menu, as Save “…” does: also the first Save of a view without a name
|
|
294
|
+
and Save as (it stayed open with Copy link). The focus goes back to Views (or More), the note says
|
|
295
|
+
"View “…” saved".
|
|
296
|
+
- The question before a view is replaced ("“…” exists. Replace it?", "Replace the shared view “…”
|
|
297
|
+
for everyone?") has the focus on Cancel, so Enter replaces nothing.
|
|
298
|
+
- The view loaded has a check mark (and `aria-current="true"`) in Shared views or My views; while
|
|
299
|
+
Views is in "More", More shows the dot for unsaved changes too.
|
|
300
|
+
- The texts of the keyboard shortcuts (`labels.shortcuts`) load with the menus, where Options, Help
|
|
301
|
+
shows them (`menu-labels.js`): a host's texts for them apply as before. This made room in the first
|
|
302
|
+
load for sorting by a header.
|
|
11
303
|
- The forms of a row or column field's menu (number ranges, Top N, value condition) remove what
|
|
12
304
|
they set with **Remove** (was "Clear"; label key `removeSetting`, was `clear`), and Apply with an
|
|
13
305
|
empty number removes it too instead of asking for a number. One undo step, as before.
|
|
@@ -16,6 +308,17 @@ All notable changes to `pivotkit-react` are documented in this file. The format
|
|
|
16
308
|
|
|
17
309
|
### Fixed
|
|
18
310
|
|
|
311
|
+
- Copy table, Copy data as JSON, Excel, CSV and PNG are off for an empty report (no field placed),
|
|
312
|
+
with the reason "Add a field first." (`labels.exportNeedsField`); they produced empty output
|
|
313
|
+
before, and no `onExport` call happens for them now
|
|
314
|
+
([#61](https://github.com/eizedev/pivotkit/issues/61)).
|
|
315
|
+
- A click or Enter on a field of the field list that is in Values already no longer adds it again
|
|
316
|
+
("Count of Ticket 2", "3", ... on a repeated Enter): it stays, and the status line says "Ticket is
|
|
317
|
+
already in Values", as for a field in Rows. A second value of the same field is "Add to Values
|
|
318
|
+
again" in the field's menu (label `addAgain`).
|
|
319
|
+
- A donut on a narrow chart: a legend on the right of a chart narrower than 480 px is drawn at the
|
|
320
|
+
bottom, so the ring keeps its width, and numbers inside a ring too thin for them are written
|
|
321
|
+
outside on a line instead of spilling over its edges.
|
|
19
322
|
- A colour scale in the theme's colours (Highlight, "Colour scale") no longer shows "Some parts of the
|
|
20
323
|
view were not used" (pivotkit-core's normalize).
|
|
21
324
|
|
|
@@ -296,5 +599,7 @@ First release.
|
|
|
296
599
|
weather (Open-Meteo), countries (World Bank), earthquakes (USGS), Nobel laureates and the release
|
|
297
600
|
cycles of software products (endoflife.date).
|
|
298
601
|
|
|
299
|
-
[Unreleased]: https://github.com/eizedev/pivotkit/compare/pivotkit-react@0.
|
|
602
|
+
[Unreleased]: https://github.com/eizedev/pivotkit/compare/pivotkit-react@0.3.0...HEAD
|
|
603
|
+
[0.3.0]: https://github.com/eizedev/pivotkit/compare/pivotkit-react@0.2.0...pivotkit-react@0.3.0
|
|
604
|
+
[0.2.0]: https://github.com/eizedev/pivotkit/compare/pivotkit-react@0.1.0...pivotkit-react@0.2.0
|
|
300
605
|
[0.1.0]: https://github.com/eizedev/pivotkit/releases/tag/pivotkit-react@0.1.0
|