pivotkit-element 0.3.0 → 0.4.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
@@ -6,6 +6,54 @@ All notable changes to `pivotkit-element` are documented in this file. The forma
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.4.0] - 2026-11-11
10
+
11
+ ### Added
12
+
13
+ - Loading data in the browser ([#44](https://github.com/eizedev/pivotkit/issues/44)): the attribute
14
+ `allow-import` (property `allowImport`) with pivotkit-react's Data menu, drop onto the report and
15
+ preview; the property `plugins` for reader plugins (pivotkit-xlsx is not bundled: a page adds its
16
+ `dist/` as a plugin); the cancelable event `pivot-data-load` for every change of the data shown.
17
+ CSV and JSON files are read in the element's own worker, `dist/import-worker.js` (a file of the
18
+ page's origin, so a strict CSP with `script-src 'self'` allows it; where it cannot start, the
19
+ element reads on the page). The import UI is the load group "import" (19.9 KiB gzip), loaded on its
20
+ first use.
21
+ - An element with `storage-key` taken out of the page and put back
22
+ ([#131](https://github.com/eizedev/pivotkit/issues/131)) shows the loaded file again with its view
23
+ and its undo steps (in the page's memory only); `pivot-data-load` says so with `cause` "restore".
24
+ - `data` takes columnar data (`{ columns, types, data }`).
25
+ - pivotkit-react's identifier fields ([#113](https://github.com/eizedev/pivotkit/issues/113)): a number field named ID, …Id, …_id, Nr, No, Number
26
+ or Key with whole numbers, without `agg`, `format` or `drillFormat` in `fieldDefaults`, is counted
27
+ in Values and shown as it is in the drill-down.
28
+ - The token `--pk-layer-z`, set on the element like every `--pk-*` token ([#111](https://github.com/eizedev/pivotkit/issues/111)). No new
29
+ attribute or event.
30
+ - What of the page's `view` or `defaultView` the data cannot use shows above the result ([#83](https://github.com/eizedev/pivotkit/issues/83)).
31
+
32
+ ### Changed
33
+
34
+ - The first load grows from 157.5 to 160.4 KiB gzip (the Data button, the drop handler and the rules
35
+ of the import UI, and two more files esbuild splits off); its budget is 161.5.
36
+ - pivotkit-react's **Start over** menu in the toolbar (Reset and New, empty report, each with what it
37
+ does or why it is off) replaces the Reset button; the Views menu holds This view, Shared views, My
38
+ views and Share this view (with "Open view file…", formerly "Load view…"), New moved to Start over;
39
+ every menu's groups have bold titles and a rule between them
40
+ ([#88](https://github.com/eizedev/pivotkit/issues/88), [#105](https://github.com/eizedev/pivotkit/issues/105)). The test id `reset` is Reset's entry in Start over's menu now.
41
+ No new attribute or event.
42
+
43
+ ### Fixed
44
+
45
+ - A loaded file shown again lost its view when the element was taken out and put back twice in a row
46
+ while its view is controlled (pivotkit-react's fix,
47
+ [#135](https://github.com/eizedev/pivotkit/issues/135)).
48
+ - Toolbar buttons move into More only when the room left cannot hold them, measured with the texts
49
+ of the element's language ([#88](https://github.com/eizedev/pivotkit/issues/88)).
50
+ - Menus, bottom sheets and popups open in the browser's top layer, still inside the shadow root:
51
+ above a page's fixed navigation whatever its z-index ([#111](https://github.com/eizedev/pivotkit/issues/111)).
52
+ - pivotkit-react's fixes of one scroll container for a large table ([#112](https://github.com/eizedev/pivotkit/issues/112)), a row label column
53
+ that keeps its width while it scrolls ([#110](https://github.com/eizedev/pivotkit/issues/110)), field names that break between words only
54
+ ([#114](https://github.com/eizedev/pivotkit/issues/114)), form fields with names of their own element ([#115](https://github.com/eizedev/pivotkit/issues/115)) and the unused-parts warning
55
+ that follows changes by hand ([#82](https://github.com/eizedev/pivotkit/issues/82)).
56
+
9
57
  ## [0.3.0] - 2026-11-09
10
58
 
11
59
  ### Added
@@ -189,7 +237,8 @@ First release.
189
237
  thousands separators, CSV percentages and calculations as the table shows them, heatmaps without
190
238
  grey empty cells.
191
239
 
192
- [Unreleased]: https://github.com/eizedev/pivotkit/compare/pivotkit-element@0.3.0...HEAD
240
+ [Unreleased]: https://github.com/eizedev/pivotkit/compare/pivotkit-element@0.4.0...HEAD
241
+ [0.4.0]: https://github.com/eizedev/pivotkit/compare/pivotkit-element@0.3.0...pivotkit-element@0.4.0
193
242
  [0.3.0]: https://github.com/eizedev/pivotkit/compare/pivotkit-element@0.2.0...pivotkit-element@0.3.0
194
243
  [0.2.0]: https://github.com/eizedev/pivotkit/compare/pivotkit-element@0.1.0...pivotkit-element@0.2.0
195
244
  [0.1.0]: https://github.com/eizedev/pivotkit/releases/tag/pivotkit-element@0.1.0