pivotkit-element 0.2.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 +102 -1
- package/dist/chunks/chunk-D2E6EFC7.js +6 -0
- package/dist/chunks/chunk-FUHQLTFM.js +1 -0
- package/dist/chunks/chunk-IBQE3N74.js +1 -0
- package/dist/chunks/chunk-O2TTHYGT.js +1 -0
- package/dist/chunks/chunk-VMHRXWK7.js +1 -0
- package/dist/chunks/chunk-WNTTPBZ5.js +9 -0
- package/dist/chunks/chunk-WXBFHMFX.js +1 -0
- package/dist/chunks/{export-EASUJGEK.js → export-6ILXDVGS.js} +1 -1
- package/dist/chunks/import-csv-TPSP3I44.js +1 -0
- package/dist/chunks/import-json-NCJFIKAC.js +1 -0
- package/dist/chunks/import-ui-YBYWR3Q5.js +1 -0
- package/dist/chunks/menu-texts-de-YZIOIWPD.js +1 -0
- package/dist/chunks/menus-UWW77KFI.js +1 -0
- package/dist/chunks/{unused-texts-YTNJCFFC-HJOIWMO6.js → unused-texts-K3VFH65P-5EAURTYC.js} +1 -1
- package/dist/chunks/{unused-texts-de-SGOHV4N7-LJH5VMQZ.js → unused-texts-de-OW4TGIVX-GHETGXFE.js} +1 -1
- package/dist/element.js +1 -1
- package/dist/import-worker.js +1 -0
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/types/element.d.ts +69 -89
- package/types/events.d.ts +1 -0
- package/types/global.d.ts +3 -1
- package/types/jsx.d.ts +1 -1
- package/dist/chunks/chunk-BL6ROOK3.js +0 -6
- package/dist/chunks/chunk-CETTRMB6.js +0 -9
- package/dist/chunks/chunk-JGSNJX3N.js +0 -1
- package/dist/chunks/menu-texts-de-TRCAQWTH.js +0 -1
- package/dist/chunks/menus-CRKZQ2O3.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,105 @@ 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
|
+
|
|
57
|
+
## [0.3.0] - 2026-11-09
|
|
58
|
+
|
|
59
|
+
### Added
|
|
60
|
+
|
|
61
|
+
- pivotkit-react's rebuilt Filter level: the summary card, quick choices only where the data reach,
|
|
62
|
+
the reference date (today or the latest record, pivotkit-core's `anchor` of a `relative` filter),
|
|
63
|
+
Years combined for a grouping that repeats every year, the items a rule leaves out in a folded
|
|
64
|
+
tail, rules with an "i" and a result line, a searchable item picker. The new tokens
|
|
65
|
+
`--pk-danger-soft` and `--pk-warn` can be set on the element like every `--pk-*` token. No new
|
|
66
|
+
attribute or event.
|
|
67
|
+
- pivotkit-react's filter rules ([#89](https://github.com/eizedev/pivotkit/issues/89),
|
|
68
|
+
[#90](https://github.com/eizedev/pivotkit/issues/90)): quick choices for dates (This year, Last N
|
|
69
|
+
years or months), rules on the item itself, its total and its name, the same Filter level for a
|
|
70
|
+
field in Filters, and pivotkit-core's `compare` and `relative` filters.
|
|
71
|
+
|
|
72
|
+
### Changed
|
|
73
|
+
|
|
74
|
+
- Size budgets for the rebuilt Filter level: the first load 155 KiB (153.7 measured on a Mac; the
|
|
75
|
+
core's anchor and source-day comparison, and the chips' words for the data's share of a range),
|
|
76
|
+
the menus 41 KiB (39.1 measured), their German texts 6.8 KiB (6.2 measured).
|
|
77
|
+
- Size budgets: the first load 153 KiB (151.8 measured on a Mac; the core's new filters and the
|
|
78
|
+
chips' words for them, the touch hit areas of the field list), the menus 33.5 KiB (31.7 measured), their German texts 5.5 KiB, the texts
|
|
79
|
+
of a view's unused parts 5 KiB.
|
|
80
|
+
- pivotkit-react's chip menus, Options and Views are in levels, and no menu folds any more (Reset
|
|
81
|
+
menu sections is gone; stored folds are dropped): a first level that says what each topic
|
|
82
|
+
holds, a level of its own per topic with **‹ Back**, every choice applied at once, a search over all
|
|
83
|
+
levels of a chip's menu; ARIA menus with one Tab stop, the arrow keys and type-ahead. The label
|
|
84
|
+
changes are pivotkit-react's (some menu labels new, `valueOps` and `groupCyclic` reworded,
|
|
85
|
+
`chooseValues`, `valueFilter`, `change`, `removeSetting`, `topStart`, `binsStart`, `filterIs`,
|
|
86
|
+
`groupBy`, `resetSections` and `resetSectionsDone` gone); the new token `--pk-input-border` can be set on the element like every `--pk-*`
|
|
87
|
+
token. No new attribute or event. Size: the menus 28.5 KiB measured (budget 30), their German texts
|
|
88
|
+
4.8 (budget 5.3), the first load 149.4 (budget 151, for the levels' rules in the stylesheet).
|
|
89
|
+
|
|
90
|
+
### Fixed
|
|
91
|
+
|
|
92
|
+
- pivotkit-react's chips and fields are no longer dragged by a press inside the menu they opened
|
|
93
|
+
(selecting text, a native select, a click that moves a little), which moved the field to another
|
|
94
|
+
zone and lost its filters.
|
|
95
|
+
- pivotkit-react's field list on a touch screen keeps its desktop rows, with 44 px high hit areas
|
|
96
|
+
for a field's grip, "i" and menu.
|
|
97
|
+
- pivotkit-react's Highlight keeps a value's own colours (a checked Colour scale changes nothing;
|
|
98
|
+
None or Data bars and back bring them back).
|
|
99
|
+
- pivotkit-react's popovers appear at their final size and place
|
|
100
|
+
([#91](https://github.com/eizedev/pivotkit/issues/91)).
|
|
101
|
+
- With reduced motion pivotkit-react's menus take the focus when they open
|
|
102
|
+
([#78](https://github.com/eizedev/pivotkit/issues/78)).
|
|
103
|
+
- German texts quote with German quotation marks (pivotkit-react's new label `quote`)
|
|
104
|
+
([#79](https://github.com/eizedev/pivotkit/issues/79)).
|
|
105
|
+
- The empty report's first steps are no longer cut off in a low report: pivotkit-react's result area
|
|
106
|
+
scrolls what is taller than it.
|
|
107
|
+
|
|
9
108
|
## [0.2.0] - 2026-11-08
|
|
10
109
|
|
|
11
110
|
### Added
|
|
@@ -138,6 +237,8 @@ First release.
|
|
|
138
237
|
thousands separators, CSV percentages and calculations as the table shows them, heatmaps without
|
|
139
238
|
grey empty cells.
|
|
140
239
|
|
|
141
|
-
[Unreleased]: https://github.com/eizedev/pivotkit/compare/pivotkit-element@0.
|
|
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
|
|
242
|
+
[0.3.0]: https://github.com/eizedev/pivotkit/compare/pivotkit-element@0.2.0...pivotkit-element@0.3.0
|
|
142
243
|
[0.2.0]: https://github.com/eizedev/pivotkit/compare/pivotkit-element@0.1.0...pivotkit-element@0.2.0
|
|
143
244
|
[0.1.0]: https://github.com/eizedev/pivotkit/releases/tag/pivotkit-element@0.1.0
|