diff --git a/docs/compatibility.md b/docs/compatibility.md index 51874f7..c381a4d 100644 --- a/docs/compatibility.md +++ b/docs/compatibility.md @@ -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. diff --git a/docs/pivot/theme-properties.md b/docs/pivot/theme-properties.md index 6719211..ebbf08b 100644 --- a/docs/pivot/theme-properties.md +++ b/docs/pivot/theme-properties.md @@ -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` | @@ -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` | diff --git a/docs/upgrading.md b/docs/upgrading.md index 714bbe3..1798e78 100644 --- a/docs/upgrading.md +++ b/docs/upgrading.md @@ -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`: diff --git a/modules/PowerShellUniversal.Component.Pivot.Demo/CHANGELOG.md b/modules/PowerShellUniversal.Component.Pivot.Demo/CHANGELOG.md index 5fc5b13..37985a4 100644 --- a/modules/PowerShellUniversal.Component.Pivot.Demo/CHANGELOG.md +++ b/modules/PowerShellUniversal.Component.Pivot.Demo/CHANGELOG.md @@ -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 @@ -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 diff --git a/modules/PowerShellUniversal.Component.Pivot.Demo/PowerShellUniversal.Component.Pivot.Demo.psd1 b/modules/PowerShellUniversal.Component.Pivot.Demo/PowerShellUniversal.Component.Pivot.Demo.psd1 index e9b964c..6b96917 100644 --- a/modules/PowerShellUniversal.Component.Pivot.Demo/PowerShellUniversal.Component.Pivot.Demo.psd1 +++ b/modules/PowerShellUniversal.Component.Pivot.Demo/PowerShellUniversal.Component.Pivot.Demo.psd1 @@ -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' diff --git a/modules/PowerShellUniversal.Component.Pivot/CHANGELOG.md b/modules/PowerShellUniversal.Component.Pivot/CHANGELOG.md index 06f741b..93dd835 100644 --- a/modules/PowerShellUniversal.Component.Pivot/CHANGELOG.md +++ b/modules/PowerShellUniversal.Component.Pivot/CHANGELOG.md @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/modules/PowerShellUniversal.Component.Pivot/Components/psu.css b/modules/PowerShellUniversal.Component.Pivot/Components/psu.css index 9c105dd..e952f53 100644 --- a/modules/PowerShellUniversal.Component.Pivot/Components/psu.css +++ b/modules/PowerShellUniversal.Component.Pivot/Components/psu.css @@ -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); @@ -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)); diff --git a/modules/PowerShellUniversal.Component.Pivot/PowerShellUniversal.Component.Pivot.psd1 b/modules/PowerShellUniversal.Component.Pivot/PowerShellUniversal.Component.Pivot.psd1 index e4390ee..0166649 100644 --- a/modules/PowerShellUniversal.Component.Pivot/PowerShellUniversal.Component.Pivot.psd1 +++ b/modules/PowerShellUniversal.Component.Pivot/PowerShellUniversal.Component.Pivot.psd1 @@ -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' diff --git a/modules/PowerShellUniversal.Component.Pivot/package-lock.json b/modules/PowerShellUniversal.Component.Pivot/package-lock.json index fa14083..4f91c1f 100644 --- a/modules/PowerShellUniversal.Component.Pivot/package-lock.json +++ b/modules/PowerShellUniversal.Component.Pivot/package-lock.json @@ -8,10 +8,10 @@ "license": "MIT", "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": { @@ -2766,9 +2766,9 @@ "license": "ISC" }, "node_modules/pivotkit-core": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/pivotkit-core/-/pivotkit-core-0.10.0.tgz", - "integrity": "sha512-R4qRndtuEMfQUO/VaXQmbJAla+XKF/Elk7g3jWoOg3oxa9NE41n7JG2XrdIaQQuu6SfrJCZs2JOaIb4muJrQIQ==", + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/pivotkit-core/-/pivotkit-core-0.11.0.tgz", + "integrity": "sha512-KxcN95pc1FJTaJwOe1UuuEwgZKAH6OwoFaABWIs1h83iq/bpAN0RLyBLKcLN/tLc6yfL0QqxU9BEcC4o2IVHXg==", "license": "MIT", "dependencies": { "fflate": "0.8.3" @@ -2778,15 +2778,15 @@ } }, "node_modules/pivotkit-react": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/pivotkit-react/-/pivotkit-react-0.10.0.tgz", - "integrity": "sha512-WFwP1pAmnQRBqd0vvB5FGJThbXeYFPMUNDfghCiVoV0YNt4bD1f62hJeNGHrTAAbkzQsuTE9gKc9iz/YYcCrwg==", + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/pivotkit-react/-/pivotkit-react-0.11.0.tgz", + "integrity": "sha512-5uihMKSCuj5cgAz1XiazR7eW+0iySR61P9JgY+mX4a3iGL0yjjhsuB61JqPHTkNj9IQsQkRXHcxF6YHhJOklsg==", "license": "MIT", "dependencies": { "@dnd-kit/core": "6.3.1", "@dnd-kit/sortable": "10.0.0", - "pivotkit-core": "^0.10.0", - "pivotkit-report": "^0.6.0" + "pivotkit-core": "^0.11.0", + "pivotkit-report": "^0.7.0" }, "peerDependencies": { "echarts": ">=6.1.0 <7", @@ -2795,12 +2795,12 @@ } }, "node_modules/pivotkit-report": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/pivotkit-report/-/pivotkit-report-0.6.0.tgz", - "integrity": "sha512-1v0qAPcv8gLhWTdRmb8/36RX1KCtIFNJUwvA6Ig0FPLk4ATQKiw8WNTF8Org3zu+BL4108FsC8+nX8CGY4Fa8w==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/pivotkit-report/-/pivotkit-report-0.7.0.tgz", + "integrity": "sha512-ctBK2AWQGg0QXD4NtVAQmFOZDKEbjU8EBOPl7RlP5CbhiUjRRgWzPgcbFoKvmlUYUfomGo6OG28cFHJ7PLlGsg==", "license": "MIT", "dependencies": { - "pivotkit-core": "^0.10.0" + "pivotkit-core": "^0.11.0" }, "engines": { "node": ">=24" @@ -2815,13 +2815,13 @@ } }, "node_modules/pivotkit-xlsx": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/pivotkit-xlsx/-/pivotkit-xlsx-0.7.0.tgz", - "integrity": "sha512-sC4+GiUeeYk04PjyjrQBBf+EX68G0Uxyk2QfPRtlFhp9LP/z1zMfB/KCUYpggWJQHuEINKMrrRKVfkBYbTkD0Q==", + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/pivotkit-xlsx/-/pivotkit-xlsx-0.8.0.tgz", + "integrity": "sha512-VrJLVC0mp7b4tSokzYmqPOPfNhJZJSeVxQiNZtYULitAOFCwBgUUlKEFw1hkQlSUg0GexpE9hAzgEY/XJ7cFwQ==", "license": "MIT", "dependencies": { "fflate": "0.8.3", - "pivotkit-core": "^0.10.0", + "pivotkit-core": "^0.11.0", "read-excel-file": "9.3.17" }, "engines": { diff --git a/modules/PowerShellUniversal.Component.Pivot/package.json b/modules/PowerShellUniversal.Component.Pivot/package.json index c045251..9822f02 100644 --- a/modules/PowerShellUniversal.Component.Pivot/package.json +++ b/modules/PowerShellUniversal.Component.Pivot/package.json @@ -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": { diff --git a/tests/js/pivot.test.js b/tests/js/pivot.test.js index 695e98b..d7261c9 100644 --- a/tests/js/pivot.test.js +++ b/tests/js/pivot.test.js @@ -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)", },