@bytebrand/fe-ui-core-autobahn 1.0.217 → 1.0.219
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/cards/CarCard.tsx +8 -1
- package/cards/CarRow.tsx +28 -8
- package/cards/cardParts.tsx +47 -17
- package/compat/PriceRating/PriceRating.styl +5 -7
- package/compat/PriceRatingDetailed/PriceRatingDetailed.styl +8 -6
- package/compat/legacy-theme/priceReviewColors.styl +18 -5
- package/constants/autobahn.ts +39 -0
- package/data/fieldMapping.ts +3 -3
- package/data/toAutobahnCar.ts +14 -12
- package/locales/de/autobahn.json +9 -7
- package/locales/en/autobahn.json +9 -7
- package/package.json +30 -30
- package/theme/md3.css +107 -334
- package/ui/StatChip.tsx +8 -3
- package/ui/index.ts +1 -0
- package/ui/ratingLink.ts +36 -0
- package/vdp/FinanceCalculator.tsx +130 -27
- package/vdp/VdpModules.tsx +58 -924
- package/vdp/index.ts +0 -3
- package/vdp/types.ts +2 -12
package/vdp/index.ts
CHANGED
|
@@ -35,7 +35,6 @@ export {
|
|
|
35
35
|
Co2Label,
|
|
36
36
|
VehicleDescription,
|
|
37
37
|
TrustStrip,
|
|
38
|
-
PriceHistory,
|
|
39
38
|
ProtectionProducts,
|
|
40
39
|
VdpAnchors,
|
|
41
40
|
VdpStickyBar,
|
|
@@ -61,7 +60,6 @@ export type {
|
|
|
61
60
|
VehicleDescriptionProps,
|
|
62
61
|
TrustStripProps,
|
|
63
62
|
TrustItem,
|
|
64
|
-
PriceHistoryProps,
|
|
65
63
|
ProtectionProductsProps,
|
|
66
64
|
ProtectionProduct,
|
|
67
65
|
VdpAnchorsProps,
|
|
@@ -89,7 +87,6 @@ export type {
|
|
|
89
87
|
EnergyTaxSummary,
|
|
90
88
|
Co2CostsSummary,
|
|
91
89
|
EquipmentGroups,
|
|
92
|
-
PriceHistoryPoint,
|
|
93
90
|
PriceRatingBand,
|
|
94
91
|
PriceRatingBands,
|
|
95
92
|
VdpReview,
|
package/vdp/types.ts
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
// (`?`) fields are ones we have NO real source for yet; they are optional ON
|
|
11
11
|
// PURPOSE so the components can detect their absence and render the
|
|
12
12
|
// NEEDS_DATA_LABEL ('Daten folgt') marker instead of a fabricated value. Never
|
|
13
|
-
// default these to placeholder numbers.
|
|
14
|
-
//
|
|
13
|
+
// default these to placeholder numbers. The market band (marketLow / marketAvg /
|
|
14
|
+
// marketHigh) is needs-data by default.
|
|
15
15
|
|
|
16
16
|
import type { AutobahnPhev } from '../cards/types';
|
|
17
17
|
|
|
@@ -158,14 +158,6 @@ export interface RatingPortal {
|
|
|
158
158
|
url?: string;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
/** One point on the price-history sparkline. */
|
|
162
|
-
export interface PriceHistoryPoint {
|
|
163
|
-
/** x-axis label, e.g. 'vor 6 Wo.' / 'heute'. */
|
|
164
|
-
label: string;
|
|
165
|
-
/** price in EUR at that point. */
|
|
166
|
-
price: number;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
161
|
/** One [min,max] EUR band of the 5-tier Preisbewertung (mirrors legacy IRatingConfig). */
|
|
170
162
|
export interface PriceRatingBand {
|
|
171
163
|
min: number;
|
|
@@ -287,8 +279,6 @@ export interface VehicleDetail {
|
|
|
287
279
|
// --- NEEDS DATA: no real source yet (NEVER fabricate) ---
|
|
288
280
|
/** original list price (for the struck-through reference + history endpoint). */
|
|
289
281
|
listPrice?: number;
|
|
290
|
-
/** price-history points (sparkline). Needs-data by default. */
|
|
291
|
-
priceHistory?: PriceHistoryPoint[];
|
|
292
282
|
/** lowest comparable market price in EUR (market band lower bound). */
|
|
293
283
|
marketLow?: number;
|
|
294
284
|
/** average comparable market price in EUR (market band reference). */
|