@bytebrand/fe-ui-core 4.8.56 → 4.8.57

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.
Files changed (194) hide show
  1. package/media/locales/de/promoSlider.json +0 -1
  2. package/media/locales/en/promoSlider.json +0 -1
  3. package/package.json +120 -117
  4. package/source/components/AccordionWidget/AccordionWidget.styl +0 -1
  5. package/source/components/AccordionWidget/AccordionWidget.tsx +4 -8
  6. package/source/components/OfferPanel/OfferCheckboxGroup/CheckboxContainer.tsx +2 -2
  7. package/source/components/OfferPanel/OfferCheckboxGroup/OfferCheckboxGroup.styl +0 -24
  8. package/source/components/OfferPanel/OfferCheckboxGroup/OfferCheckboxGroup.tsx +2 -1
  9. package/source/components/OfferPanel/OfferPanel.tsx +1 -1
  10. package/source/components/VehicleDetailedSidebar/VehicleDetailedSidebar.tsx +11 -23
  11. package/source/components/VehicleDetailedSlider/VehicleDetailedSlider.tsx +6 -2
  12. package/source/components/VehicleDetailedSlider/partials/PriceData.tsx +9 -8
  13. package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.styl +0 -5
  14. package/source/components/VehicleSmallCard/VehicleData/VechiclePriceItem/VechiclePriceItem.tsx +1 -3
  15. package/source/components/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.styl +1 -1
  16. package/source/components/VehicleSmallCard/VehicleData/VehicleInfo/VehicleInfo.tsx +11 -24
  17. package/source/components/VehicleSmallCard/VehicleData/VehiclePrice/VehiclePrice.styl +2 -3
  18. package/source/components/VehicleSmallCard/VehicleData/VehicleProperty/VehicleProperty.styl +1 -4
  19. package/source/components/VehicleSmallCard/VehicleData/VehicleProperty/VehicleProperty.tsx +2 -3
  20. package/source/components/VehicleSmallCard/VehicleData/VehicleTitle/VehicleTitle.tsx +1 -1
  21. package/source/components/VehicleSmallCard/VehicleSmallCard.tsx +3 -14
  22. package/source/components/_common/MaterialAccordionGroup/MaterialAccordionGroup.styled.tsx +1 -4
  23. package/source/components/_common/MaterialTooltip/MaterialTooltip.tsx +3 -4
  24. package/source/components/_common/withStats/withStats.styl +0 -10
  25. package/source/components/_common/withStats/withStats.tsx +11 -2
  26. package/source/framework/DataTransformers.ts +0 -1
  27. package/source/framework/constants/common.ts +4 -8
  28. package/source/framework/types/types.ts +0 -1
  29. package/source/framework/vehiclesProps/decoratedLightProps.tsx +12 -48
  30. package/source/framework/vehiclesProps/decoratedProps.tsx +8 -35
  31. package/source/locales/data.ts +0 -3
  32. package/.husky/pre-push +0 -4
  33. package/.storybook/addons.js +0 -4
  34. package/.storybook/config.js +0 -64
  35. package/.storybook/postcss.config.js +0 -6
  36. package/.storybook/preview-head.html +0 -10
  37. package/.storybook/webpack.config.js +0 -130
  38. package/__tests__/components/Checkout/OrderOverviewItem/OrderOverviewItem.test.tsx +0 -42
  39. package/__tests__/components/Checkout/PaymentTypeCard/PaymentTypeCard.test.tsx +0 -50
  40. package/__tests__/components/Checkout/RadioGroup.test.tsx +0 -95
  41. package/__tests__/components/Checkout/ServiceCardWrapper.test.tsx +0 -53
  42. package/__tests__/components/Checkout/Switcher.test.tsx +0 -43
  43. package/__tests__/components/UserDasboardPage/sections/CheckoutSection/CheckoutSection.test.tsx +0 -613
  44. package/__tests__/components/UserDasboardPage/sections/FavoriteSection/FavoriteSection.test.tsx +0 -335
  45. package/__tests__/components/UserDasboardPage/sections/OrderStatusSection/AdditionalOrderInfo.test.tsx +0 -127
  46. package/__tests__/components/UserDasboardPage/sections/OrderStatusSection/OrderStatusCar.test.tsx +0 -58
  47. package/__tests__/components/UserDasboardPage/sections/OrderStatusSection/OrderStatusCard.test.tsx +0 -74
  48. package/__tests__/components/UserDasboardPage/sections/OrderStatusSection/OrderStatusSection.test.tsx +0 -62
  49. package/__tests__/components/UserDasboardPage/sections/RequestedCarsSection/RequestedCarsSection.test.tsx +0 -117
  50. package/__tests__/components/Vehicle/VehicleFormattedPrice/VehicleFormattedPrice.test.tsx +0 -58
  51. package/__tests__/components/VehicleSmallCard/VehicleInfo.test.tsx +0 -88
  52. package/__tests__/components/VehicleSmallCard/VehicleTitle.test.tsx +0 -91
  53. package/__tests__/components/_common/Badge/Badge.test.tsx +0 -15
  54. package/__tests__/components/_common/IconSVG/IconSVG.test.tsx +0 -23
  55. package/__tests__/components/_common/Image/Image.test.tsx +0 -82
  56. package/__tests__/components/_common/MaterialAutocomplete/MaterialAutocomplete.test.tsx +0 -49
  57. package/__tests__/components/_common/MaterialDatePicker/MaterialDatePicker.test.tsx +0 -54
  58. package/__tests__/components/_common/MaterialField/MaterialField.test.tsx +0 -58
  59. package/__tests__/components/_common/StarButton/StarButton.test.tsx +0 -46
  60. package/__tests__/mockedData/financingConfig.js +0 -202
  61. package/__tests__/mockedData/mockedPendingRequestedCar.js +0 -69
  62. package/__tests__/utils/CommonUtils/addPrefixToKeys.test.ts +0 -18
  63. package/__tests__/utils/CommonUtils/arrToObj.test.js +0 -32
  64. package/__tests__/utils/CommonUtils/checkRangeValuesOnEqual.test.ts +0 -17
  65. package/__tests__/utils/CommonUtils/fixNumber.test.ts +0 -20
  66. package/__tests__/utils/CommonUtils/formatMileage.test.ts +0 -8
  67. package/__tests__/utils/CommonUtils/getChipFilterValue.test.ts +0 -22
  68. package/__tests__/utils/CommonUtils/getFormattedNumber.test.ts +0 -19
  69. package/__tests__/utils/CommonUtils/getFormattedPrice.test.ts +0 -19
  70. package/__tests__/utils/CommonUtils/getGroupValuesForQuery.test.ts +0 -51
  71. package/__tests__/utils/CommonUtils/getOfferSliders.test.ts +0 -64
  72. package/__tests__/utils/CommonUtils/getPriceRating.test.ts +0 -26
  73. package/__tests__/utils/CommonUtils/getPriceRatingConfig.test.ts +0 -33
  74. package/__tests__/utils/CommonUtils/preloadNearbyImages.test.ts +0 -9
  75. package/__tests__/utils/CommonUtils/sliceLessThan.test.ts +0 -23
  76. package/__tests__/utils/CommonUtils/sliceMoreThan.test.ts +0 -23
  77. package/source/components/AdvantageItem/AdvantageItem.story.js +0 -23
  78. package/source/components/Alternative/Dealer.story.js +0 -32
  79. package/source/components/Alternative/Dealer.story.styl +0 -3
  80. package/source/components/Breadcrumbs/Breadcrumbs.story.js +0 -40
  81. package/source/components/Breadcrumbs/FirstInfoBlock/FirstInfoBlock.story.js +0 -45
  82. package/source/components/Checkout/OrderOverviewItem/OrderOverviewItem.story.js +0 -243
  83. package/source/components/Checkout/OrderOverviewItem/OrderOverviewItem.story.styl +0 -21
  84. package/source/components/Checkout/RadioCards/RadioGroupCheckout.story.js +0 -105
  85. package/source/components/Checkout/RadioCards/RadioGroupCheckout.story.styl +0 -37
  86. package/source/components/Checkout/Switcher/Switcher.story.js +0 -41
  87. package/source/components/Checkout/Switcher/Switcher.story.styl +0 -2
  88. package/source/components/CompactSearchWidget/CompactSearchWidget.story.js +0 -187
  89. package/source/components/ContactForm/ContactForm.story.js +0 -94
  90. package/source/components/ContactForm/ContactForm.story.styl +0 -0
  91. package/source/components/ContactInfo/ContactInfo.story.js +0 -58
  92. package/source/components/CustomerQuote/CustomerQuote.story.js +0 -41
  93. package/source/components/CustomerQuotesSlider/CustomerQuotesSlider.story.js +0 -73
  94. package/source/components/CustomerQuotesSlider/CustomerQuotesSlider.story.styl +0 -5
  95. package/source/components/FormattedNumber/FormattedNumber.story.js +0 -114
  96. package/source/components/InfoBlocks/InfoBlockWrapper.story.js +0 -101
  97. package/source/components/InfoBlocks/InfoBlockWrapper.story.styl +0 -46
  98. package/source/components/OfferPanel/AboAccordion/AboFaq/AboFaq.story.js +0 -97
  99. package/source/components/OfferPanel/OfferPanel.story.js +0 -139
  100. package/source/components/OfferPanel/RangeGroup/RangeGroup.story.js +0 -35
  101. package/source/components/OfferPanel/RangeGroup/RangeGroup.story.styl +0 -3
  102. package/source/components/PriceRating/PriceRating.story.js +0 -39
  103. package/source/components/PriceRating/PriceRating.story.styl +0 -2
  104. package/source/components/PriceRatingDetailed/PriceRatingDetailed.story.js +0 -78
  105. package/source/components/PriceRatingDetailed/PriceRatingDetailed.story.styl +0 -11
  106. package/source/components/RateSearchValue/RateSearchValue.story.js +0 -78
  107. package/source/components/RateSearchValue/RateSearchValue.story.styl +0 -2
  108. package/source/components/RateSearchWidget/RateSearchWidget.story.js +0 -57
  109. package/source/components/RateSearchWidget/RateSearchWidget.story.styl +0 -12
  110. package/source/components/SearchFilters/FiltersFactory.story.js +0 -273
  111. package/source/components/SearchPage/Filters/MakeModel/MakeModel.story.js +0 -12
  112. package/source/components/SearchWidget/BasicDataWidget/BasicDataWidget.story.js +0 -834
  113. package/source/components/SearchWidget/BasicDataWidget/BasicDataWidget.story.styl +0 -40
  114. package/source/components/SearchWidget/SearchWidget.story.js +0 -191
  115. package/source/components/SearchWidget/SearchWidget.story.styl +0 -6
  116. package/source/components/Stepper/Stepper.story.js +0 -119
  117. package/source/components/Stepper/Stepper.story.styl +0 -41
  118. package/source/components/Theme.story.js +0 -36
  119. package/source/components/Theme.story.styl +0 -85
  120. package/source/components/TickerText/TickerText.story.js +0 -17
  121. package/source/components/UserDashboardPage/sections/OrderStatusSection/OrderStatusSection.story.js +0 -95
  122. package/source/components/UserDashboardPage/sections/RequestedCarsSection/RequestedCarsSection.story.js +0 -97
  123. package/source/components/Vehicle/VehicleConsumption/VehicleConsumption.story.js +0 -31
  124. package/source/components/Vehicle/VehicleFormattedPrice/VehicleFormattedPrice.story.js +0 -247
  125. package/source/components/VehicleCompared/CompareGeneral/CompareGeneral.story.js +0 -30
  126. package/source/components/VehicleCompared/ComparePrice/ComparePrice.story.js +0 -18
  127. package/source/components/VehicleCompared/CompareTitle/CompareTitle.story.js +0 -19
  128. package/source/components/VehicleDetailedSidebar/VehicleDetailedSidebar.story.js +0 -44
  129. package/source/components/VehicleDetailedSlider/VehicleDetailedSlider.story.js +0 -120
  130. package/source/components/VehiclePromoSlider/VehiclePromoInfo/VehiclePromoInfo.story.js +0 -42
  131. package/source/components/VehiclePromoSlider/VehiclePromoSlide/VehiclePromoSlide.story.js +0 -62
  132. package/source/components/VehiclePromoSlider/VehiclePromoSlider.story.js +0 -42
  133. package/source/components/VehicleSmallCard/VehicleSmallCard.story.js +0 -412
  134. package/source/components/VehicleSmallCard/VehicleSmallCard.story.styl +0 -56
  135. package/source/components/VehicleSmallCardForDealerships/VehicleSmallCardForDealerships.story.js +0 -199
  136. package/source/components/VehicleSmallCardForDealerships/VehicleSmallCardForDealerships.story.styl +0 -40
  137. package/source/components/_common/Accordion/Accordion.story.js +0 -36
  138. package/source/components/_common/Badge/Badge.story.js +0 -27
  139. package/source/components/_common/Badge/Badge.story.styl +0 -5
  140. package/source/components/_common/Bubble/Bubble.story.js +0 -52
  141. package/source/components/_common/Button/Button.story.js +0 -52
  142. package/source/components/_common/Button/Button.story.styl +0 -5
  143. package/source/components/_common/ButtonOld/Button.story.js +0 -54
  144. package/source/components/_common/ButtonOld/Button.story.styl +0 -5
  145. package/source/components/_common/Checkbox/Checkbox.story.js +0 -85
  146. package/source/components/_common/Checkbox/Checkbox.story.styl +0 -14
  147. package/source/components/_common/CheckboxMaterial/CheckboxMaterial.story.js +0 -126
  148. package/source/components/_common/CheckboxMaterial/CheckboxMaterial.story.styl +0 -14
  149. package/source/components/_common/Chip/Chip.story.js +0 -43
  150. package/source/components/_common/ChipList/ChipList.story.js +0 -36
  151. package/source/components/_common/DropDown/DropDown.story.js +0 -35
  152. package/source/components/_common/ExpandablePanel/ExpandablePanel.story.js +0 -41
  153. package/source/components/_common/Histogram/Histogram.story.js +0 -51
  154. package/source/components/_common/IconSVG/IconSVG.story.js +0 -21
  155. package/source/components/_common/IconSVG/IconSVG.story.styl +0 -25
  156. package/source/components/_common/Image/Image.story.js +0 -142
  157. package/source/components/_common/Image/Image.story.styl +0 -18
  158. package/source/components/_common/ImagesSet/ImagesSet.story.js +0 -34
  159. package/source/components/_common/ImagesSet/ImagesSet.story.styl +0 -4
  160. package/source/components/_common/Loader/Loader.story.js +0 -21
  161. package/source/components/_common/MaterialAccordionGroup/MaterialAccordionGroup.story.js +0 -49
  162. package/source/components/_common/MaterialDatePicker/MaterialDatePicker.story.js +0 -45
  163. package/source/components/_common/MaterialDatePicker/MaterialDatePicker.story.styl +0 -6
  164. package/source/components/_common/MaterialField/MaterialField.story.js +0 -87
  165. package/source/components/_common/MaterialField/MaterialField.story.styl +0 -34
  166. package/source/components/_common/MaterialSelect/MaterialSelect.story.js +0 -52
  167. package/source/components/_common/MaterialSelect/MaterialSelect.story.styl +0 -6
  168. package/source/components/_common/MaterialStepButton/MaterialStepButton.story.js +0 -47
  169. package/source/components/_common/MaterialStepButton/MaterialStepButton.story.styl +0 -6
  170. package/source/components/_common/MaterialSwitch/MaterialSwitch.story.js +0 -17
  171. package/source/components/_common/MaterialTooltip/MaterialTooltip.story.js +0 -10
  172. package/source/components/_common/Modal/Modal.story.js +0 -37
  173. package/source/components/_common/MuiGroupedSelect/MuiGroupedSelect.story.js +0 -21
  174. package/source/components/_common/PropertySelector/PSGroup.story.js +0 -93
  175. package/source/components/_common/PropertySelector/PSGroup.story.styl +0 -25
  176. package/source/components/_common/PropertySelector/ProperySelector.story.js +0 -83
  177. package/source/components/_common/Radio/FormRadioGroup.story.js +0 -28
  178. package/source/components/_common/Radio/FormRadioGroup.story.styl +0 -2
  179. package/source/components/_common/Radio/Radio.story.js +0 -54
  180. package/source/components/_common/Radio/RadioGroup.story.js +0 -90
  181. package/source/components/_common/Radio/RadioGroup.story.styl +0 -39
  182. package/source/components/_common/Range/Range.story.js +0 -46
  183. package/source/components/_common/Range/Range.story.styl +0 -5
  184. package/source/components/_common/SliderArrow/SliderArrow.story.js +0 -18
  185. package/source/components/_common/Tabs/Tabs.story.js +0 -56
  186. package/source/components/_common/TimePicker/TimePicker.story.js +0 -37
  187. package/source/components/_common/Tooltip/Tooltip.story.js +0 -28
  188. package/source/components/_common/UserMenu/MaterialMenu.story.js +0 -73
  189. package/source/components/_common/VehicleSlider/VehicleSlider.story.js +0 -99
  190. package/source/components/_common/VehicleSlider/VehicleSlider.story.styl +0 -0
  191. package/source/components/_common/withLabel/withLabel.story.js +0 -62
  192. package/source/components/_common/withPopover/withPopover.story.js +0 -48
  193. package/source/components/_common/withPopover/withPopover.story.styl +0 -54
  194. package/source/components/_common/withStats/withStats.story.js +0 -75
@@ -1,834 +0,0 @@
1
- import React from 'react';
2
- import { Resizable } from 're-resizable';
3
- import { storiesOf } from '@storybook/react';
4
- import { action } from '@storybook/addon-actions';
5
-
6
- import BasicDataWidget from './BasicDataWidget.tsx';
7
- import styles from './BasicDataWidget.story.styl';
8
-
9
-
10
-
11
- const resizableProps = {
12
- className: styles.resizable
13
- };
14
- export class BasicDataWidgetStory extends React.Component {
15
- constructor() {
16
- super();
17
- }
18
-
19
-
20
- render() {
21
- const t = (phrase) => {
22
- const dictionary = {
23
- ['filters.bodyTypePlaceholder']: 'Select body type',
24
- ['filters.manufacturerPlaceholder']: 'Brand',
25
- ['filters.modelPlaceholder']: 'Model',
26
- ['filters.submodelPlaceholder']: 'Submodel (Plus / GTI / etc)',
27
- ['addManufacturerAndModel']: 'add manufacturer & model',
28
- ['filters.first_registration']: 'First Registration',
29
- ['filters.from']: 'from',
30
- ['filters.to']: 'to',
31
- ['filters.priceTitle']: 'Price in €',
32
- ['filters.rateTitle']: 'Monthly rate',
33
- ['filters.rate']: 'Rate',
34
- ['filters.price']: 'Price',
35
- "defaultValue": "any, 60 Months",
36
- ['rateSearchWidget.changeRateLink']: 'change',
37
- ['rateSearchWidget.defaultValue']: 'any, 60 Months',
38
- ['rateSearchWidget.monthlyInstallment']: 'Monatsrate',
39
- ['common:rateSearchWidget.firstInstallment']: 'Anzahlung'
40
- };
41
-
42
- return dictionary[phrase];
43
- };
44
-
45
- const widgetProps = {
46
- t,
47
- "MMS_GROUPS": [
48
- {
49
- "MANUFACTURER": {
50
- "values": "",
51
- "options": [
52
- {
53
- "value": "top",
54
- "label": "TOP MARKEN",
55
- "isDisabled": true
56
- },
57
- {
58
- "value": "Audi",
59
- "label": "Audi"
60
- },
61
- {
62
- "value": "BMW",
63
- "label": "BMW"
64
- },
65
- {
66
- "value": "Ford",
67
- "label": "Ford"
68
- },
69
- {
70
- "value": "Mercedes-Benz",
71
- "label": "Mercedes-Benz"
72
- },
73
- {
74
- "value": "Opel",
75
- "label": "Opel"
76
- },
77
- {
78
- "value": "Renault",
79
- "label": "Renault"
80
- },
81
- {
82
- "value": "Volkswagen",
83
- "label": "Volkswagen"
84
- },
85
- {
86
- "value": "regular",
87
- "label": "ALLE MARKEN",
88
- "isDisabled": true
89
- },
90
- {
91
- "value": "Abarth",
92
- "label": "Abarth"
93
- },
94
- {
95
- "value": "Alfa Romeo",
96
- "label": "Alfa Romeo"
97
- },
98
- {
99
- "value": "Alpina",
100
- "label": "Alpina"
101
- },
102
- {
103
- "value": "Audi",
104
- "label": "Audi"
105
- },
106
- {
107
- "value": "Bentley",
108
- "label": "Bentley"
109
- },
110
- {
111
- "value": "BMW",
112
- "label": "BMW"
113
- },
114
- {
115
- "value": "Borgward",
116
- "label": "Borgward"
117
- },
118
- {
119
- "value": "Cadillac",
120
- "label": "Cadillac"
121
- },
122
- {
123
- "value": "Chevrolet",
124
- "label": "Chevrolet"
125
- },
126
- {
127
- "value": "Citroen",
128
- "label": "Citroen"
129
- },
130
- {
131
- "value": "Corvette",
132
- "label": "Corvette"
133
- },
134
- {
135
- "value": "Cupra",
136
- "label": "Cupra"
137
- },
138
- {
139
- "value": "Dacia",
140
- "label": "Dacia"
141
- },
142
- {
143
- "value": "Dodge",
144
- "label": "Dodge"
145
- },
146
- {
147
- "value": "DS",
148
- "label": "DS"
149
- },
150
- {
151
- "value": "Ferrari",
152
- "label": "Ferrari"
153
- },
154
- {
155
- "value": "Fiat",
156
- "label": "Fiat"
157
- },
158
- {
159
- "value": "Ford",
160
- "label": "Ford"
161
- },
162
- {
163
- "value": "Gmc",
164
- "label": "Gmc"
165
- },
166
- {
167
- "value": "Honda",
168
- "label": "Honda"
169
- },
170
- {
171
- "value": "Hyundai",
172
- "label": "Hyundai"
173
- },
174
- {
175
- "value": "Infiniti",
176
- "label": "Infiniti"
177
- },
178
- {
179
- "value": "Isuzu",
180
- "label": "Isuzu"
181
- },
182
- {
183
- "value": "Jaguar",
184
- "label": "Jaguar"
185
- },
186
- {
187
- "value": "Jeep",
188
- "label": "Jeep"
189
- },
190
- {
191
- "value": "Kia",
192
- "label": "Kia"
193
- },
194
- {
195
- "value": "Lada",
196
- "label": "Lada"
197
- },
198
- {
199
- "value": "Lancia",
200
- "label": "Lancia"
201
- },
202
- {
203
- "value": "Land Rover",
204
- "label": "Land Rover"
205
- },
206
- {
207
- "value": "Lexus",
208
- "label": "Lexus"
209
- },
210
- {
211
- "value": "Lotus",
212
- "label": "Lotus"
213
- },
214
- {
215
- "value": "MAN",
216
- "label": "MAN"
217
- },
218
- {
219
- "value": "Maserati",
220
- "label": "Maserati"
221
- },
222
- {
223
- "value": "Mazda",
224
- "label": "Mazda"
225
- },
226
- {
227
- "value": "Mercedes-Benz",
228
- "label": "Mercedes-Benz"
229
- },
230
- {
231
- "value": "Mini",
232
- "label": "Mini"
233
- },
234
- {
235
- "value": "Mitsubishi",
236
- "label": "Mitsubishi"
237
- },
238
- {
239
- "value": "Nissan",
240
- "label": "Nissan"
241
- },
242
- {
243
- "value": "Opel",
244
- "label": "Opel"
245
- },
246
- {
247
- "value": "Peugeot",
248
- "label": "Peugeot"
249
- },
250
- {
251
- "value": "Porsche",
252
- "label": "Porsche"
253
- },
254
- {
255
- "value": "Renault",
256
- "label": "Renault"
257
- },
258
- {
259
- "value": "Seat",
260
- "label": "Seat"
261
- },
262
- {
263
- "value": "Skoda",
264
- "label": "Skoda"
265
- },
266
- {
267
- "value": "Smart",
268
- "label": "Smart"
269
- },
270
- {
271
- "value": "Ssangyong",
272
- "label": "Ssangyong"
273
- },
274
- {
275
- "value": "Subaru",
276
- "label": "Subaru"
277
- },
278
- {
279
- "value": "Suzuki",
280
- "label": "Suzuki"
281
- },
282
- {
283
- "value": "Tesla",
284
- "label": "Tesla"
285
- },
286
- {
287
- "value": "Toyota",
288
- "label": "Toyota"
289
- },
290
- {
291
- "value": "Volkswagen",
292
- "label": "Volkswagen"
293
- },
294
- {
295
- "value": "Volvo",
296
- "label": "Volvo"
297
- },
298
- {
299
- "value": "Wenckstern",
300
- "label": "Wenckstern"
301
- }
302
- ]
303
- },
304
- "MODEL": {
305
- "values": "",
306
- "options": []
307
- },
308
- "SUB_MODEL": {
309
- "values": ""
310
- },
311
- "SERIES": {
312
- "values": ""
313
- }
314
- }
315
- ],
316
- "BODY_TYPE": {
317
- "values": [],
318
- "options": [
319
- "selector_category_combi",
320
- "selector_category_sedan",
321
- "selector_category_compact",
322
- "selector_category_coupe",
323
- "selector_category_convertible",
324
- "selector_category_suv",
325
- "selector_category_van",
326
- "selector_category_transporter",
327
- "selector_category_minibus"
328
- ]
329
- },
330
- "FIRST_REGISTRATION": {
331
- "controls": {
332
- "from": "",
333
- "to": ""
334
- },
335
- "values": {
336
- "from": 2012,
337
- "to": 2021,
338
- "type": ""
339
- },
340
- "options": [
341
- {
342
- "from": 2012,
343
- "to": 2013,
344
- "count": 1
345
- },
346
- {
347
- "from": 2013,
348
- "to": 2014,
349
- "count": 236
350
- },
351
- {
352
- "from": 2014,
353
- "to": 2015,
354
- "count": 1243
355
- },
356
- {
357
- "from": 2015,
358
- "to": 2016,
359
- "count": 3326
360
- },
361
- {
362
- "from": 2016,
363
- "to": 2017,
364
- "count": 6024
365
- },
366
- {
367
- "from": 2017,
368
- "to": 2018,
369
- "count": 4905
370
- },
371
- {
372
- "from": 2018,
373
- "to": 2019,
374
- "count": 6027
375
- },
376
- {
377
- "from": 2019,
378
- "to": 2020,
379
- "count": 12672
380
- },
381
- {
382
- "from": 2020,
383
- "to": 2021,
384
- "count": 5292
385
- },
386
- {
387
- "from": 2021,
388
- "to": 2021,
389
- "count": 5277
390
- }
391
- ]
392
- },
393
- "PRICE": {
394
- "controls": {
395
- "from": "",
396
- "to": ""
397
- },
398
- "values": {
399
- "from": 0,
400
- "to": 315790000,
401
- "type": ""
402
- },
403
- "options": [
404
- {
405
- "from": 0,
406
- "to": 15789500,
407
- "count": 65894
408
- },
409
- {
410
- "from": 15789500,
411
- "to": 31579000,
412
- "count": 0
413
- },
414
- {
415
- "from": 31579000,
416
- "to": 47368500,
417
- "count": 0
418
- },
419
- {
420
- "from": 47368500,
421
- "to": 63158000,
422
- "count": 0
423
- },
424
- {
425
- "from": 63158000,
426
- "to": 78947500,
427
- "count": 0
428
- },
429
- {
430
- "from": 78947500,
431
- "to": 94737000,
432
- "count": 0
433
- },
434
- {
435
- "from": 94737000,
436
- "to": 110526500,
437
- "count": 0
438
- },
439
- {
440
- "from": 110526500,
441
- "to": 126316000,
442
- "count": 0
443
- },
444
- {
445
- "from": 126316000,
446
- "to": 142105500,
447
- "count": 0
448
- },
449
- {
450
- "from": 142105500,
451
- "to": 157895000,
452
- "count": 0
453
- },
454
- {
455
- "from": 157895000,
456
- "to": 173684500,
457
- "count": 0
458
- },
459
- {
460
- "from": 173684500,
461
- "to": 189474000,
462
- "count": 0
463
- },
464
- {
465
- "from": 189474000,
466
- "to": 205263500,
467
- "count": 0
468
- },
469
- {
470
- "from": 205263500,
471
- "to": 221053000,
472
- "count": 0
473
- },
474
- {
475
- "from": 221053000,
476
- "to": 236842500,
477
- "count": 0
478
- },
479
- {
480
- "from": 236842500,
481
- "to": 252632000,
482
- "count": 0
483
- },
484
- {
485
- "from": 252632000,
486
- "to": 268421500,
487
- "count": 0
488
- },
489
- {
490
- "from": 268421500,
491
- "to": 284211000,
492
- "count": 0
493
- },
494
- {
495
- "from": 284211000,
496
- "to": 300000500,
497
- "count": 0
498
- },
499
- {
500
- "from": 300000500,
501
- "to": 315790000,
502
- "count": 1
503
- }
504
- ]
505
- },
506
- "RATE": {
507
- "controls": {
508
- "monthlyInstallmentFrom": "any",
509
- "monthlyInstallmentTo": "any",
510
- "firstInstallment": 0,
511
- "paybackPeriod": 60
512
- },
513
- "values": {
514
- "monthlyInstallmentFrom": null,
515
- "monthlyInstallmentTo": null,
516
- "firstInstallment": null,
517
- "paybackPeriod": null
518
- }
519
- },
520
- "MILEAGE": {
521
- "controls": {
522
- "from": "",
523
- "to": ""
524
- },
525
- "values": {
526
- "from": 0,
527
- "to": 157894.74,
528
- "type": ""
529
- },
530
- "options": [
531
- {
532
- "from": 0,
533
- "to": 7894.74,
534
- "count": 41491
535
- },
536
- {
537
- "from": 7894.74,
538
- "to": 15789.47,
539
- "count": 7137
540
- },
541
- {
542
- "from": 15789.47,
543
- "to": 23684.21,
544
- "count": 5264
545
- },
546
- {
547
- "from": 23684.21,
548
- "to": 31578.95,
549
- "count": 3699
550
- },
551
- {
552
- "from": 31578.95,
553
- "to": 39473.68,
554
- "count": 1625
555
- },
556
- {
557
- "from": 39473.68,
558
- "to": 47368.42,
559
- "count": 1394
560
- },
561
- {
562
- "from": 47368.42,
563
- "to": 55263.16,
564
- "count": 1054
565
- },
566
- {
567
- "from": 55263.16,
568
- "to": 63157.89,
569
- "count": 934
570
- },
571
- {
572
- "from": 63157.89,
573
- "to": 71052.63,
574
- "count": 802
575
- },
576
- {
577
- "from": 71052.63,
578
- "to": 78947.37,
579
- "count": 595
580
- },
581
- {
582
- "from": 78947.37,
583
- "to": 86842.11,
584
- "count": 564
585
- },
586
- {
587
- "from": 86842.11,
588
- "to": 94736.84,
589
- "count": 407
590
- },
591
- {
592
- "from": 94736.84,
593
- "to": 102631.58,
594
- "count": 338
595
- },
596
- {
597
- "from": 102631.58,
598
- "to": 110526.32,
599
- "count": 92
600
- },
601
- {
602
- "from": 110526.32,
603
- "to": 118421.05,
604
- "count": 68
605
- },
606
- {
607
- "from": 118421.05,
608
- "to": 126315.79,
609
- "count": 62
610
- },
611
- {
612
- "from": 126315.79,
613
- "to": 134210.53,
614
- "count": 56
615
- },
616
- {
617
- "from": 134210.53,
618
- "to": 142105.26,
619
- "count": 31
620
- },
621
- {
622
- "from": 142105.26,
623
- "to": 150000,
624
- "count": 21
625
- },
626
- {
627
- "from": 150000,
628
- "to": 157894.74,
629
- "count": 3
630
- }
631
- ]
632
- },
633
- "POWER": {
634
- "controls": {
635
- "from": "",
636
- "to": "",
637
- "type": "PS"
638
- },
639
- "typeOptions": [
640
- "PS",
641
- "KW"
642
- ],
643
- "values": {
644
- "from": 0,
645
- "to": 17642.11,
646
- "type": "PS"
647
- },
648
- "options": [
649
- {
650
- "from": 0,
651
- "to": 882.11,
652
- "count": 65621
653
- },
654
- {
655
- "from": 882.11,
656
- "to": 1764.21,
657
- "count": 1
658
- },
659
- {
660
- "from": 1764.21,
661
- "to": 2646.32,
662
- "count": 0
663
- },
664
- {
665
- "from": 2646.32,
666
- "to": 3528.42,
667
- "count": 0
668
- },
669
- {
670
- "from": 3528.42,
671
- "to": 4410.53,
672
- "count": 0
673
- },
674
- {
675
- "from": 4410.53,
676
- "to": 5292.63,
677
- "count": 1
678
- },
679
- {
680
- "from": 5292.63,
681
- "to": 6174.74,
682
- "count": 0
683
- },
684
- {
685
- "from": 6174.74,
686
- "to": 7056.84,
687
- "count": 0
688
- },
689
- {
690
- "from": 7056.84,
691
- "to": 7938.95,
692
- "count": 0
693
- },
694
- {
695
- "from": 7938.95,
696
- "to": 8821.05,
697
- "count": 0
698
- },
699
- {
700
- "from": 8821.05,
701
- "to": 9703.16,
702
- "count": 0
703
- },
704
- {
705
- "from": 9703.16,
706
- "to": 10585.26,
707
- "count": 0
708
- },
709
- {
710
- "from": 10585.26,
711
- "to": 11467.37,
712
- "count": 0
713
- },
714
- {
715
- "from": 11467.37,
716
- "to": 12349.47,
717
- "count": 0
718
- },
719
- {
720
- "from": 12349.47,
721
- "to": 13231.58,
722
- "count": 0
723
- },
724
- {
725
- "from": 13231.58,
726
- "to": 14113.68,
727
- "count": 0
728
- },
729
- {
730
- "from": 14113.68,
731
- "to": 14995.79,
732
- "count": 0
733
- },
734
- {
735
- "from": 14995.79,
736
- "to": 15877.89,
737
- "count": 0
738
- },
739
- {
740
- "from": 15877.89,
741
- "to": 16760,
742
- "count": 0
743
- },
744
- {
745
- "from": 16760,
746
- "to": 17642.11,
747
- "count": 1
748
- }
749
- ]
750
- },
751
- "CONSUMPTION": {
752
- "values": {},
753
- "options": [
754
- {
755
- "from": 1,
756
- "to": 18
757
- }
758
- ]
759
- },
760
- "SEATS": {
761
- "values": {},
762
- "options": [
763
- {
764
- "from": 1,
765
- "to": 12
766
- }
767
- ]
768
- },
769
- "DOORS": {
770
- "values": "",
771
- "options": [
772
- {
773
- "key": "two_doors",
774
- "value": 2
775
- },
776
- {
777
- "key": "three_doors",
778
- "value": 3
779
- },
780
- {
781
- "key": "four_doors",
782
- "value": 4
783
- },
784
- {
785
- "key": "five_doors",
786
- "value": 5
787
- },
788
- {
789
- "key": "all_doors",
790
- "value": 0
791
- }
792
- ]
793
- },
794
- "FUEL": {
795
- "values": [],
796
- "options": [
797
- "selector_fuel_petrol",
798
- "selector_fuel_diesel",
799
- "selector_fuel_electrical",
800
- "selector_fuel_hybridElectricalPetrol",
801
- "selector_fuel_hybridElectricalDiesel",
802
- "selector_fuel_carGas",
803
- "selector_fuel_naturalGas",
804
- "selector_fuel_ethanol",
805
- "selector_fuel_hydrogen"
806
- ],
807
- "aggregation": {
808
- "selector_fuel_petrol": 38926,
809
- "selector_fuel_diesel": 23410,
810
- "selector_fuel_hybridElectricalPetrol": 2276,
811
- "selector_fuel_electrical": 738,
812
- "selector_fuel_naturalGas": 323,
813
- "selector_fuel_carGas": 25,
814
- "selector_fuel_hybridElectricalDiesel": 8,
815
- "selector_fuel_hydrogen": 7,
816
- "selector_fuel_ethanol": 1
817
- }
818
- }
819
- };
820
-
821
- return (
822
- <div className={styles.wrapper}>
823
- <Resizable {...resizableProps}>
824
- <BasicDataWidget {...widgetProps} />
825
- </Resizable>
826
- </div>
827
- );
828
- }
829
- }
830
-
831
- storiesOf('BasicDataWidget', module)
832
- .add('BasicDataWidget', () => (
833
- <BasicDataWidgetStory />
834
- ));