Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ has checked it.
| PowerShell Universal | 2026.2 and 2026.3 | 2026.2.5 and 2026.3.4 | by hand on PSU test instances, in a browser, before a change to a component is done ([Development](development/index.md#browser-tests-on-psu)) |
| PowerShell | 7.4 or later, in the PSU environment the app runs in | the PowerShell 7 of GitHub's runner, not pinned; 7.4 itself is not tested | Pester tests on every pull request, and each built component module loaded in a new process |
| Browsers | desktop browsers built on Chromium, Firefox and WebKit | Chromium, Firefox and WebKit, the engine of Safari | Playwright: the components on this site on every pull request, the showcase apps on PSU by hand |
| pivotkit's command line, for `Invoke-UDPivotReport -Engine Node` | what [Two engines](pivot/reports.md#two-engines) names | pivotkit-cli 0.5.0 and 0.6.0 | the pivot module's opt-in tests against the real command line ([Development](development/index.md#report-command-against-the-real-pivotkit)) |
| pivotkit's command line, for `Invoke-UDPivotReport -Engine Node` | what [Two engines](pivot/reports.md#two-engines) names | pivotkit-cli 0.5.0, 0.6.0 and 0.7.0 | the pivot module's opt-in tests against the real command line ([Development](development/index.md#report-command-against-the-real-pivotkit)) |

Not tested: the Safari app, iOS and Android browsers. Windows PowerShell 5.1 does not load the
modules.
Expand Down
5 changes: 3 additions & 2 deletions docs/pivot/theme-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ minimum.
| `--psu-pivot-zone-tint` | - | how much of its zone's colour a chip's fill takes | `16%` | `16%` |
| `--psu-pivot-zone-tint-base` | `--psu-pivot-surface` | what a chip's fill mixes the zone's colour into | `#ffffff` | `#121212` |
| `--psu-pivot-control-icon` | `--psu-pivot-muted`, `--psu-chart-muted` | a chip's grip, menu arrow and remove button | `rgba(0, 0, 0, 0.62)` | `rgba(255, 255, 255, 0.64)` |
| `--psu-pivot-sort-arrow` | `--psu-pivot-text`, `--psu-chart-text` | the sort arrow of the sorted field | `rgba(0, 0, 0, 0.87)` | `rgba(255, 255, 255, 0.87)` |
| `--psu-pivot-sort-arrow` | `--psu-pivot-accent`, `--psu-chart-accent` | the arrow behind the name of the sorted header and on its chip | `#1976d2` | `#90caf9` |
| `--psu-pivot-sort-arrow-rest` | `--psu-pivot-muted`, `--psu-chart-muted` | the up-down mark behind every other header that sorts | `rgba(0, 0, 0, 0.62)` | `rgba(255, 255, 255, 0.64)` |
| `--psu-pivot-field-hover` | `--psu-pivot-surface` | a field in the field list on hover | `#ffffff` | `#121212` |
| `--psu-pivot-chart-reference` | `--psu-pivot-muted`, `--psu-chart-muted` | the chart's reference lines that belong to no series | `rgba(0, 0, 0, 0.62)` | `rgba(255, 255, 255, 0.64)` |
| `--psu-pivot-tab-bg` | - | a tab not shown (Table, Chart): its background | `transparent` | `transparent` |
Expand All @@ -65,7 +66,7 @@ minimum.
| `--psu-pivot-primary-text` | `--psu-pivot-accent-text` | the main action's text | `#ffffff` | `#0b1a2a` |
| `--psu-pivot-primary-hover-bg` | - | the main action's fill on hover | 88 % of its fill, mixed with the text colour | 88 % of its fill, mixed with the text colour |
| `--psu-pivot-radius` | - | corner radius of the report, panels, zones and popovers | `8px` | `8px` |
| `--psu-pivot-radius-sm` | - | corner radius of buttons, chips, notes, the fields in the field list and their hover, and a field's name in the table's header; pivotkit's smaller corners (links, a chip's grip, badges, a field's type icon) follow it. `4px` is PSU's own corner; pivotkit's is `7px`. Chips and the table's field names follow it with pivotkit 0.11.0 or later | `4px` | `4px` |
| `--psu-pivot-radius-sm` | - | corner radius of buttons, chips, notes, the fields in the field list and their hover, and a field's name in the table's header; pivotkit's smaller corners (links, a chip's grip, badges, a field's type icon) follow it. The default is pivotkit's `7px` | `7px` | `7px` |
| `--psu-pivot-font` | - | font family | the page's font | the page's font |
| `--psu-pivot-font-size` | - | base text size | `max(14px, 1em)` | `max(14px, 1em)` |
| `--psu-pivot-weight-normal` | - | plain text inside a bolder part (hints, table cells) | `400` | `400` |
Expand Down
15 changes: 0 additions & 15 deletions docs/upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,21 +67,6 @@ ECharts module:
- Who is affected: readers who compare the series of a position in the tooltip.
- What to do: `-TooltipMode Axis` lists every series at the position.

### Pivot 0.10 { #pivot }

- **A reader's CSV or Excel file with numbers such as `1,234` or `1.500`** is read in the notation of
the report's locale, with a note that says so.
- Who is affected: readers of a report with `-AllowImport` who load such files.
- What to do: check such a column after the update.
- **`-Labels` has no key `settingsShort`.**
- Who is affected: an app that sets it.
- What to do: remove the key.
- **A shared view of a template store takes no origin from the request's headers** for a
`-SchemaUrl` path. It takes the origin of an https `PSU_COMPONENT_PIVOT_SCHEMA_URL`, else
pivotkit's schema address. A view a reader saves for themselves keeps the origin of the request.
- Who is affected: an app that publishes shared views with a `-SchemaUrl` path and no https default.
- What to do: to keep your own address in them, set `PSU_COMPONENT_PIVOT_SCHEMA_URL` to it.

### Older releases { #older }

The breaks of every release, marked **Breaking:**, are in each module's `CHANGELOG.md`:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ All notable changes to PowerShellUniversal.Component.Pivot.Demo. Format:

## [Unreleased]

## [0.7.0] - 2026-11-26

### Fixed

- A value of `New-UDPivotShowcase` with a typographic apostrophe, such as `-PivotkitPath` with a
Expand Down Expand Up @@ -138,7 +140,8 @@ All notable changes to PowerShellUniversal.Component.Pivot.Demo. Format:
- `Get-UDPivotShowcaseData`: answers the app's public API calls from the snapshots shipped in `Data/`
(with their sources and licences, `Data/SOURCES.md`), or live.

[Unreleased]: https://github.com/eizedev/powershell-universal-components/compare/PowerShellUniversal.Component.Pivot.Demo-v0.6.0...HEAD
[Unreleased]: https://github.com/eizedev/powershell-universal-components/compare/PowerShellUniversal.Component.Pivot.Demo-v0.7.0...HEAD
[0.7.0]: https://github.com/eizedev/powershell-universal-components/compare/PowerShellUniversal.Component.Pivot.Demo-v0.6.0...PowerShellUniversal.Component.Pivot.Demo-v0.7.0
[0.6.0]: https://github.com/eizedev/powershell-universal-components/compare/PowerShellUniversal.Component.Pivot.Demo-v0.5.0...PowerShellUniversal.Component.Pivot.Demo-v0.6.0
[0.5.0]: https://github.com/eizedev/powershell-universal-components/compare/PowerShellUniversal.Component.Pivot.Demo-v0.4.0...PowerShellUniversal.Component.Pivot.Demo-v0.5.0
[0.4.0]: https://github.com/eizedev/powershell-universal-components/compare/PowerShellUniversal.Component.Pivot.Demo-v0.3.0...PowerShellUniversal.Component.Pivot.Demo-v0.4.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@{
RootModule = 'PowerShellUniversal.Component.Pivot.Demo.psm1'
ModuleVersion = '0.6.0'
ModuleVersion = '0.7.0'
GUID = 'b551b13d-c6fd-47ba-b311-54643c7d2b72'
Author = 'eizedev'
CompanyName = 'eizedev'
Expand Down
21 changes: 17 additions & 4 deletions modules/PowerShellUniversal.Component.Pivot/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ All notable changes to PowerShellUniversal.Component.Pivot. Format:

## [Unreleased]

## [0.11.0] - 2026-11-26

### Added

- `Invoke-UDPivotReport -Engine Rest` takes `-Locale`, `-Numbers` and `-FlatHeader` and passes them
Expand All @@ -14,11 +16,11 @@ All notable changes to PowerShellUniversal.Component.Pivot. Format:
([#135](https://github.com/eizedev/powershell-universal-components/issues/135)).
- Theme properties for pivotkit's zone colours and chip controls: `--psu-pivot-zone-rows`,
`-zone-columns`, `-zone-values`, `-zone-filters`, `-zone-tint`, `-zone-tint-base`,
`--psu-pivot-control-icon`, `--psu-pivot-sort-arrow`, `--psu-pivot-field-hover` and
`--psu-pivot-control-icon`, `--psu-pivot-sort-arrow`, `--psu-pivot-sort-arrow-rest`, `--psu-pivot-field-hover` and
`--psu-pivot-chart-reference`, per light and dark mode, listed on the new Theme properties page
with every other property. Without them
the report keeps pivotkit's values. The zone colours, the chip controls, the sort arrow and the
field hover take effect with pivotkit 0.11.0; the reference lines already with 0.10.0.
the report keeps pivotkit's values: the sort arrow in the accent, the up-down mark of the other
headers that sort in the muted text colour.
- The page "Coming from UniversalDashboard.Pivot" maps every parameter, aggregator and renderer of
`New-UDPivot` to `New-UDPivotReport`, names those without a counterpart, states the PowerShell and
PSU versions, and shows one report before and after; the pivot overview and the module README
Expand All @@ -35,6 +37,14 @@ All notable changes to PowerShellUniversal.Component.Pivot. Format:

### Changed

- The report runs on pivotkit-core and pivotkit-react 0.11.0, pivotkit-report 0.7.0 and
pivotkit-xlsx 0.8.0. Readers see the zone colours in the chips and in the field names of the
table's header, a sort mark on every header that sorts, "Default order" in a field's menu, a
choice of the decimal mark when an import is unclear, and "Entries" instead of "Series" in the
chart settings. The [pivotkit changelog](https://github.com/eizedev/pivotkit/blob/pivotkit-react%400.11.0/packages/pivotkit-react/CHANGELOG.md)
has every change.
- Smaller corners (buttons, chips, notes, a field's name in the table's header) are pivotkit's
`7px` instead of `4px`. To keep the earlier look, set `--psu-pivot-radius-sm: 4px`.
- The field type icons are the muted text without an app's `--psu-pivot-type-*`, as pivotkit's own
neutral default: colour marks the zones, not the field types. With pivotkit 0.10.0 this also
makes the empty report's field pills and the border of a value chip grey. For the earlier
Expand Down Expand Up @@ -708,7 +718,10 @@ All notable changes to PowerShellUniversal.Component.Pivot. Format:
them); `examples/templates.ps1`: an app with sign-in, readers' views on the server, publishing for
two roles and the admin panel.

[Unreleased]: https://github.com/eizedev/powershell-universal-components/compare/PowerShellUniversal.Component.Pivot-v0.9.1...HEAD
[Unreleased]: https://github.com/eizedev/powershell-universal-components/compare/PowerShellUniversal.Component.Pivot-v0.11.0...HEAD
[0.11.0]: https://github.com/eizedev/powershell-universal-components/compare/PowerShellUniversal.Component.Pivot-v0.10.1...PowerShellUniversal.Component.Pivot-v0.11.0
[0.10.1]: https://github.com/eizedev/powershell-universal-components/compare/PowerShellUniversal.Component.Pivot-v0.10.0...PowerShellUniversal.Component.Pivot-v0.10.1
[0.10.0]: https://github.com/eizedev/powershell-universal-components/compare/PowerShellUniversal.Component.Pivot-v0.9.1...PowerShellUniversal.Component.Pivot-v0.10.0
[0.9.1]: https://github.com/eizedev/powershell-universal-components/compare/PowerShellUniversal.Component.Pivot-v0.9.0...PowerShellUniversal.Component.Pivot-v0.9.1
[0.9.0]: https://github.com/eizedev/powershell-universal-components/compare/PowerShellUniversal.Component.Pivot-v0.8.0...PowerShellUniversal.Component.Pivot-v0.9.0
[0.8.0]: https://github.com/eizedev/powershell-universal-components/compare/PowerShellUniversal.Component.Pivot-v0.7.2...PowerShellUniversal.Component.Pivot-v0.8.0
Expand Down
10 changes: 6 additions & 4 deletions modules/PowerShellUniversal.Component.Pivot/Components/psu.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
/* ---- PSU's defaults in both modes, also read by the admin panel next to pivotkit's root ---------- */
.ud-pivot-report {
--psu-default-radius: 8px;
--psu-default-radius-sm: 4px;
--psu-default-radius-sm: 7px;
--psu-default-font-size: max(14px, 1em);
/* the admin panel's text: PSU's body2 (0.875rem), never below 14 px (pivotkit's smallest) */
--psu-default-font-size-small: max(14px, 0.875rem);
Expand Down Expand Up @@ -221,10 +221,12 @@
--pk-zone-filters: var(--psu-pivot-zone-filters, var(--pk-muted));
--pk-zone-tint: var(--psu-pivot-zone-tint, var(--psu-default-zone-tint));
--pk-zone-tint-base: var(--psu-pivot-zone-tint-base, var(--pk-surface));
/* a chip's grip, menu arrow and x; the sort arrow of the sorted field; a field's hover in the list;
the chart's reference lines of no series. Without a value of the app, derived as pivotkit does */
/* a chip's grip, menu arrow and x; the sort arrow of the sorted field and the up-down mark of every
other header that sorts; a field's hover in the list; the chart's reference lines of no series.
Without a value of the app, derived as pivotkit does */
--pk-control-icon: var(--psu-pivot-control-icon, var(--pk-muted));
--pk-sort-arrow: var(--psu-pivot-sort-arrow, var(--pk-text));
--pk-sort-arrow: var(--psu-pivot-sort-arrow, var(--pk-accent));
--pk-sort-arrow-rest: var(--psu-pivot-sort-arrow-rest, var(--pk-muted));
--pk-field-hover: var(--psu-pivot-field-hover, var(--pk-surface));
--pk-chart-reference: var(--psu-pivot-chart-reference, var(--pk-muted));

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@{
RootModule = 'PowerShellUniversal.Component.Pivot.psm1'
ModuleVersion = '0.10.1'
ModuleVersion = '0.11.0'
GUID = 'e59f7ff0-a6dc-4402-9729-98af8be5c83b'
Author = 'eizedev'
CompanyName = 'eizedev'
Expand Down
40 changes: 20 additions & 20 deletions modules/PowerShellUniversal.Component.Pivot/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions modules/PowerShellUniversal.Component.Pivot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
},
"dependencies": {
"echarts": "6.1.0",
"pivotkit-core": "0.10.0",
"pivotkit-react": "0.10.0",
"pivotkit-report": "0.6.0",
"pivotkit-xlsx": "0.7.0",
"pivotkit-core": "0.11.0",
"pivotkit-react": "0.11.0",
"pivotkit-report": "0.7.0",
"pivotkit-xlsx": "0.8.0",
"universal-dashboard": "1.1.2"
},
"devDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion tests/js/pivot.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,8 @@ const PK_ZONES = [
"--pk-zone-tint": "16%",
"--pk-zone-tint-base": "var(--pk-surface)",
"--pk-control-icon": "var(--pk-muted)",
"--pk-sort-arrow": "var(--pk-text)",
"--pk-sort-arrow": "var(--pk-accent)",
"--pk-sort-arrow-rest": "var(--pk-muted)",
"--pk-field-hover": "var(--pk-surface)",
"--pk-chart-reference": "var(--pk-muted)",
},
Expand Down
Loading