@wpic/ui 0.5.2 → 0.6.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 +14 -0
- package/COMPONENTS.md +10 -0
- package/dist/components/WStatCard.vue.d.ts +7 -0
- package/dist/components/WTrendBadge.vue.d.ts +7 -0
- package/dist/index.d.ts +1 -0
- package/dist/theme/index.d.ts +2 -0
- package/dist/wpic-ui.cjs +60 -60
- package/dist/wpic-ui.css +16 -1
- package/dist/wpic-ui.js +2440 -2357
- package/package.json +1 -1
- package/src/style.css +15 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.0 — 2026-09-08
|
|
4
|
+
|
|
5
|
+
- Add WTrendBadge and optional below-value trends in WStatCard, with green/rose tinted pills, directional markers and keyboard-accessible comparison tooltips.
|
|
6
|
+
- Add customizable trendPositive/trendNegative colors, independent of the brand accent.
|
|
7
|
+
- Apply shared UI5 tokens to segmented controls, modals and tooltips, including nested teleported overlays and explicit theme overrides.
|
|
8
|
+
- Retain existing metric change props and unthemed component presentation; WTable structure is unchanged.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## 0.5.3 — 2026-09-08
|
|
12
|
+
|
|
13
|
+
- Add compact themed metric cards with the same surface, radius and ring.
|
|
14
|
+
- Add optional label-level variation and comparison tooltip through changePosition and changeTitle; existing value-level variation remains the default.
|
|
15
|
+
|
|
16
|
+
|
|
3
17
|
## 0.5.2 — 2026-09-08
|
|
4
18
|
|
|
5
19
|
- Fix the default date-range size to md so the shared theme applies the same 36px height as other fields and buttons. Explicit small and large sizes remain supported.
|
package/COMPONENTS.md
CHANGED
|
@@ -682,3 +682,13 @@ delay?: number
|
|
|
682
682
|
### UI5 metric cards (0.5.1)
|
|
683
683
|
|
|
684
684
|
Inside WThemeProvider, WStatCard uses the approved UI5 composition. Use `featured` for an accent label band, `change` for a variation beside the value, and `changeTone="negative"` for a negative variation. Values retain the normal text color unless `color` is explicitly provided. Existing `sub`, `unit` and color props are preserved.
|
|
685
|
+
|
|
686
|
+
For a shorter metric card, use `compact`. Use `changePosition="label"` to align the variation with the label and `changeTitle` for the previous-value tooltip. Both sizes share their card surface and ring.
|
|
687
|
+
|
|
688
|
+
### Trend badges and overlay theming (0.6.0)
|
|
689
|
+
|
|
690
|
+
`WTrendBadge` accepts `value` (percentage or null), `inverse` (lower is favorable) and `description` (comparison tooltip). Direction follows the value; color follows favorable/unfavorable meaning. Zero and missing values are neutral.
|
|
691
|
+
|
|
692
|
+
`WStatCard` accepts `trend`, `trendInverse`, `trendLabel`, `trendTitle` to display this badge beneath the value. Existing `change`/`changePosition` props still work.
|
|
693
|
+
|
|
694
|
+
`trendPositive` and `trendNegative` are optional color overrides in WThemeProvider. WModal, WTooltip and WSegmentedControl now follow the same theme. Teleported overlays preserve explicit and custom themes.
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
+
trend?: number | null;
|
|
3
|
+
trendInverse?: boolean;
|
|
4
|
+
trendLabel?: string;
|
|
5
|
+
trendTitle?: string;
|
|
6
|
+
compact?: boolean;
|
|
7
|
+
changePosition?: 'value' | 'label';
|
|
8
|
+
changeTitle?: string;
|
|
2
9
|
featured?: boolean;
|
|
3
10
|
change?: string;
|
|
4
11
|
changeTone?: 'positive' | 'negative' | 'neutral';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
value?: number | null;
|
|
3
|
+
inverse?: boolean;
|
|
4
|
+
description?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|
package/dist/index.d.ts
CHANGED
|
@@ -85,3 +85,4 @@ export { default as WThemeProvider } from './components/WThemeProvider.vue';
|
|
|
85
85
|
export { default as WPageHeader } from './components/WPageHeader.vue';
|
|
86
86
|
export { ui5Theme, themeVariables, chartPalettes, useWTheme } from './theme';
|
|
87
87
|
export type { WThemeMode, WThemeColors, WThemeOverrides } from './theme';
|
|
88
|
+
export { default as WTrendBadge } from './components/WTrendBadge.vue';
|