@homefile/components-v2 2.33.0 → 2.34.1
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/dist/assets/images/appliances/index.d.ts +3 -1
- package/dist/assets/images/appliances/index.js +3 -1
- package/dist/assets/images/appliances/index.ts +4 -0
- package/dist/assets/images/appliances/tank-water.svg +21 -0
- package/dist/assets/images/appliances/tankless-water.svg +21 -0
- package/dist/assets/images/home-assistant/battery-smoke-detector.svg +38 -0
- package/dist/assets/images/home-assistant/co2-detector.svg +15 -0
- package/dist/assets/images/home-assistant/fire-extinguisher.svg +34 -0
- package/dist/assets/images/home-assistant/furnace.svg +27 -0
- package/dist/assets/images/home-assistant/heat-pump.svg +30 -0
- package/dist/assets/images/home-assistant/in-wall.svg +26 -0
- package/dist/assets/images/home-assistant/index.d.ts +12 -0
- package/dist/assets/images/home-assistant/index.js +12 -0
- package/dist/assets/images/home-assistant/index.ts +25 -0
- package/dist/assets/images/home-assistant/landscape-lights.svg +23 -0
- package/dist/assets/images/home-assistant/other.svg +22 -0
- package/dist/assets/images/home-assistant/sprinkler-system.svg +11 -0
- package/dist/assets/images/home-assistant/sprinkler-system2.svg +23 -0
- package/dist/assets/images/home-assistant/wired-smoke-detector.svg +24 -0
- package/dist/assets/images/index.d.ts +3 -1
- package/dist/assets/images/index.js +3 -1
- package/dist/assets/images/index.ts +3 -0
- package/dist/assets/images/jacuzzi.svg +38 -0
- package/dist/components/forms/dynamicForm/fields/HomeInitialSetup.js +3 -3
- package/dist/components/propertyTiles/propertyRecords/RecordsRow.d.ts +3 -1
- package/dist/components/propertyTiles/propertyRecords/RecordsRow.js +2 -2
- package/dist/components/propertyTiles/propertyRecords/RecordsSession.d.ts +1 -1
- package/dist/components/propertyTiles/propertyRecords/RecordsSession.js +3 -3
- package/dist/components/wizard/WizardInitialOptions.js +2 -22
- package/dist/components/wizard/WizardStepOptions.d.ts +2 -0
- package/dist/components/wizard/WizardStepOptions.js +20 -0
- package/dist/components/wizard/index.d.ts +2 -0
- package/dist/components/wizard/index.js +2 -0
- package/dist/helpers/forms/dynamicForm.helper.js +87 -61
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/index.js +1 -0
- package/dist/helpers/propertyTiles/PropertyRecords.helper.d.ts +2 -1
- package/dist/helpers/propertyTiles/PropertyRecords.helper.js +29 -12
- package/dist/helpers/wizard/optionsStyles.d.ts +7 -0
- package/dist/helpers/wizard/optionsStyles.js +20 -0
- package/dist/interfaces/forms/dynamicForm/DynamicForm.interface.d.ts +1 -1
- package/dist/interfaces/propertyTiles/RecordsSession.interface.d.ts +3 -0
- package/dist/mocks/forms/dynamicForm.mock.js +280 -0
- package/dist/mocks/propertyTiles/details.d.ts +3 -1
- package/dist/mocks/propertyTiles/details.js +3 -1
- package/dist/stories/assets/Illustrations.stories.js +4 -3
- package/package.json +1 -1
- package/src/assets/images/appliances/index.ts +4 -0
- package/src/assets/images/appliances/tank-water.svg +21 -0
- package/src/assets/images/appliances/tankless-water.svg +21 -0
- package/src/assets/images/home-assistant/battery-smoke-detector.svg +38 -0
- package/src/assets/images/home-assistant/co2-detector.svg +15 -0
- package/src/assets/images/home-assistant/fire-extinguisher.svg +34 -0
- package/src/assets/images/home-assistant/furnace.svg +27 -0
- package/src/assets/images/home-assistant/heat-pump.svg +30 -0
- package/src/assets/images/home-assistant/in-wall.svg +26 -0
- package/src/assets/images/home-assistant/index.ts +25 -0
- package/src/assets/images/home-assistant/landscape-lights.svg +23 -0
- package/src/assets/images/home-assistant/other.svg +22 -0
- package/src/assets/images/home-assistant/sprinkler-system.svg +11 -0
- package/src/assets/images/home-assistant/sprinkler-system2.svg +23 -0
- package/src/assets/images/home-assistant/wired-smoke-detector.svg +24 -0
- package/src/assets/images/index.ts +3 -0
- package/src/assets/images/jacuzzi.svg +38 -0
- package/src/components/forms/dynamicForm/fields/HomeInitialSetup.tsx +13 -2
- package/src/components/propertyTiles/propertyRecords/RecordsRow.tsx +10 -2
- package/src/components/propertyTiles/propertyRecords/RecordsSession.tsx +7 -4
- package/src/components/wizard/WizardInitialOptions.tsx +2 -23
- package/src/components/wizard/WizardStepOptions.tsx +96 -0
- package/src/components/wizard/index.ts +2 -0
- package/src/helpers/forms/dynamicForm.helper.ts +115 -61
- package/src/helpers/index.ts +1 -0
- package/src/helpers/propertyTiles/PropertyRecords.helper.ts +30 -9
- package/src/helpers/wizard/optionsStyles.ts +20 -0
- package/src/interfaces/forms/dynamicForm/DynamicForm.interface.ts +29 -0
- package/src/interfaces/propertyTiles/RecordsSession.interface.ts +3 -0
- package/src/mocks/forms/dynamicForm.mock.ts +285 -0
- package/src/mocks/propertyTiles/details.ts +10 -1
- package/src/stories/assets/Illustrations.stories.tsx +33 -0
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
Heater,
|
|
35
35
|
Light,
|
|
36
36
|
Plate,
|
|
37
|
-
|
|
37
|
+
Pool,
|
|
38
38
|
Closet,
|
|
39
39
|
Structure,
|
|
40
40
|
GlassWater,
|
|
@@ -79,91 +79,145 @@ import {
|
|
|
79
79
|
YellowFolder,
|
|
80
80
|
Warranty,
|
|
81
81
|
Flower,
|
|
82
|
+
Jacuzzi,
|
|
82
83
|
MagnifyingGlassPerson,
|
|
83
84
|
} from '@/assets/images'
|
|
85
|
+
|
|
86
|
+
import {
|
|
87
|
+
CookTop,
|
|
88
|
+
Dishwasher,
|
|
89
|
+
Dryer,
|
|
90
|
+
Freezer,
|
|
91
|
+
Fridge,
|
|
92
|
+
Hood,
|
|
93
|
+
Microwave,
|
|
94
|
+
Oven,
|
|
95
|
+
Range,
|
|
96
|
+
Washer,
|
|
97
|
+
tankWater,
|
|
98
|
+
tanklessWater,
|
|
99
|
+
} from '@/assets/images/appliances'
|
|
100
|
+
|
|
101
|
+
import {
|
|
102
|
+
BatterySmokeDetector,
|
|
103
|
+
Co2Detector,
|
|
104
|
+
FireExtinguisher,
|
|
105
|
+
Furnace,
|
|
106
|
+
HeatPump,
|
|
107
|
+
InWall,
|
|
108
|
+
LandscapeLights,
|
|
109
|
+
Other,
|
|
110
|
+
SprinklerSystem,
|
|
111
|
+
SprinklerSystem2,
|
|
112
|
+
WiredSmokeDetector,
|
|
113
|
+
} from '@/assets/images/home-assistant'
|
|
84
114
|
import { IconTypes } from '@/interfaces'
|
|
85
115
|
|
|
86
116
|
export const fieldIcons: Record<IconTypes, string> = {
|
|
117
|
+
'68': SixtyEight,
|
|
118
|
+
'aa-disease': AADisease,
|
|
119
|
+
'aa-dressing': AADressing,
|
|
120
|
+
'aa-fertilization': AALawn,
|
|
121
|
+
'aa-mowing': AAMowing,
|
|
122
|
+
'aa-pest': AApest,
|
|
123
|
+
'aa-weed': AAWeed,
|
|
124
|
+
'battery-smoke-detector': BatterySmokeDetector,
|
|
125
|
+
'boc-filter': BOCFilter,
|
|
126
|
+
'boc-green': BOCGreen,
|
|
127
|
+
'boc-renovation': BOCRenovation,
|
|
128
|
+
'boc-repair': BOCRepair,
|
|
129
|
+
'boc-service': BOCService,
|
|
130
|
+
'boc-warranty': BOCWarranty,
|
|
131
|
+
'book-opened': BookOpened,
|
|
132
|
+
'calendar-drop': DropCalendar,
|
|
133
|
+
'co2-detector': Co2Detector,
|
|
134
|
+
'dish-washer': Dishwasher,
|
|
135
|
+
'filter-size': FilterSize,
|
|
136
|
+
'fire-extinguisher': FireExtinguisher,
|
|
137
|
+
'heat-pump': HeatPump,
|
|
138
|
+
'in-wall': InWall,
|
|
139
|
+
'landscape-lights': LandscapeLights,
|
|
140
|
+
'life-preserver': LifePreserver,
|
|
141
|
+
'mobile-drop': MobileDrop,
|
|
142
|
+
'mr-boxes': MRBoxes,
|
|
143
|
+
'mr-clock': MRClock,
|
|
144
|
+
'mr-couch': MRCouch,
|
|
145
|
+
'mr-hand': MRHand,
|
|
146
|
+
'mr-make-ready': MRMakeReady,
|
|
147
|
+
'mr-rental': MRRental,
|
|
148
|
+
'pressure-washer': PressureWasher,
|
|
149
|
+
'search-person': MagnifyingGlassPerson,
|
|
150
|
+
'sh-gutter': GutterCleaning,
|
|
151
|
+
'sh-home': HomeCleaning,
|
|
152
|
+
'sh-house': HouseWashing,
|
|
153
|
+
'sh-lights': HolidayLights,
|
|
154
|
+
'sh-pressure': Pressure,
|
|
155
|
+
'sh-roof': RoofCleaning,
|
|
156
|
+
'sh-window': WindowCleaning,
|
|
157
|
+
'solar-panel': SolarPanel,
|
|
158
|
+
'sprinkler-system': SprinklerSystem,
|
|
159
|
+
'sprinkler-system2': SprinklerSystem2,
|
|
160
|
+
'tank-water': tankWater,
|
|
161
|
+
'tankless-water': tanklessWater,
|
|
162
|
+
'wired-smoke-detector': WiredSmokeDetector,
|
|
87
163
|
barcode: Barcode,
|
|
164
|
+
battery: Battery2,
|
|
88
165
|
billing: Billing,
|
|
89
166
|
book: Book,
|
|
90
|
-
'book-opened': BookOpened,
|
|
91
167
|
calc: Calc,
|
|
168
|
+
calendar: Calendar,
|
|
169
|
+
calendar2: Calendar2,
|
|
92
170
|
check: CheckPen,
|
|
171
|
+
cleaning: Cleaning,
|
|
172
|
+
co2: Co2,
|
|
173
|
+
company: Company2,
|
|
93
174
|
contact: Contacts,
|
|
175
|
+
'cook-top': CookTop,
|
|
94
176
|
date: Calendar,
|
|
95
177
|
default: GenericField,
|
|
178
|
+
detector: Detector,
|
|
179
|
+
drop: Drop,
|
|
180
|
+
dryer: Dryer,
|
|
181
|
+
electricity: Electricity,
|
|
182
|
+
fire: Fire,
|
|
183
|
+
flower: Flower,
|
|
184
|
+
folder: YellowFolder,
|
|
185
|
+
foundation: Foundation,
|
|
186
|
+
freezer: Freezer,
|
|
187
|
+
fridge: Fridge,
|
|
188
|
+
furnace: Furnace,
|
|
189
|
+
gear: GearTime,
|
|
96
190
|
goldbars: GoldenBars,
|
|
97
191
|
heart: Heart,
|
|
192
|
+
heater: Heater,
|
|
193
|
+
hood: Hood,
|
|
194
|
+
house: Structure,
|
|
98
195
|
image: ImgIcon,
|
|
196
|
+
jacuzzi: Jacuzzi,
|
|
197
|
+
light: Light,
|
|
198
|
+
microwave: Microwave,
|
|
99
199
|
notes: Notes,
|
|
200
|
+
other: Other,
|
|
201
|
+
oven: Oven,
|
|
100
202
|
palette: Paint,
|
|
101
203
|
people: ShareWith,
|
|
204
|
+
plant: Plant,
|
|
205
|
+
plate: Plate,
|
|
206
|
+
pool: Pool,
|
|
102
207
|
price: Price,
|
|
208
|
+
range: Range,
|
|
103
209
|
rating: Rating,
|
|
104
210
|
receipt: Receipt,
|
|
105
211
|
registry: Registry,
|
|
106
|
-
tools: Tools2,
|
|
107
|
-
battery: Battery2,
|
|
108
|
-
calendar: Calendar,
|
|
109
|
-
co2: Co2,
|
|
110
|
-
detector: Detector,
|
|
111
|
-
electricity: Electricity,
|
|
112
|
-
sprinkler: Sprinkler,
|
|
113
|
-
'68': SixtyEight,
|
|
114
|
-
'calendar-drop': DropCalendar,
|
|
115
|
-
'mobile-drop': MobileDrop,
|
|
116
|
-
'solar-panel': SolarPanel,
|
|
117
|
-
calendar2: Calendar2,
|
|
118
|
-
drop: Drop,
|
|
119
|
-
fire: Fire,
|
|
120
|
-
wind: Wind,
|
|
121
|
-
foundation: Foundation,
|
|
122
|
-
heater: Heater,
|
|
123
|
-
'life-preserver': LifePreserver,
|
|
124
|
-
light: Light,
|
|
125
|
-
plant: Plant,
|
|
126
|
-
plate: Plate,
|
|
127
|
-
'pressure-washer': PressureWasher,
|
|
128
|
-
pool: Pool2,
|
|
129
212
|
roof: Roof2,
|
|
130
|
-
|
|
131
|
-
warranty: Warranty,
|
|
132
|
-
water: GlassWater,
|
|
133
|
-
house: Structure,
|
|
213
|
+
sprinkler: Sprinkler,
|
|
134
214
|
target: Target,
|
|
135
215
|
title: CircleFace,
|
|
136
|
-
|
|
216
|
+
tools: Tools2,
|
|
217
|
+
umbrella: Closet,
|
|
137
218
|
wallet: Wallet,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
'sh-gutter': GutterCleaning,
|
|
143
|
-
'sh-home': HomeCleaning,
|
|
144
|
-
'sh-house': HouseWashing,
|
|
145
|
-
'sh-lights': HolidayLights,
|
|
146
|
-
'sh-pressure': Pressure,
|
|
147
|
-
'sh-roof': RoofCleaning,
|
|
148
|
-
'sh-window': WindowCleaning,
|
|
149
|
-
'aa-mowing': AAMowing,
|
|
150
|
-
'aa-fertilization': AALawn,
|
|
151
|
-
'aa-disease': AADisease,
|
|
152
|
-
'aa-weed': AAWeed,
|
|
153
|
-
'aa-dressing': AADressing,
|
|
154
|
-
'aa-pest': AApest,
|
|
155
|
-
'filter-size': FilterSize,
|
|
156
|
-
'boc-service': BOCService,
|
|
157
|
-
'boc-filter': BOCFilter,
|
|
158
|
-
'boc-repair': BOCRepair,
|
|
159
|
-
'boc-renovation': BOCRenovation,
|
|
160
|
-
'boc-green': BOCGreen,
|
|
161
|
-
'boc-warranty': BOCWarranty,
|
|
162
|
-
'mr-boxes': MRBoxes,
|
|
163
|
-
'mr-clock': MRClock,
|
|
164
|
-
'mr-couch': MRCouch,
|
|
165
|
-
'mr-hand': MRHand,
|
|
166
|
-
'mr-make-ready': MRMakeReady,
|
|
167
|
-
'mr-rental': MRRental,
|
|
168
|
-
cleaning: Cleaning,
|
|
219
|
+
warranty: Warranty,
|
|
220
|
+
washer: Washer,
|
|
221
|
+
water: GlassWater,
|
|
222
|
+
wind: Wind,
|
|
169
223
|
}
|
package/src/helpers/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Building, House, HouseHands, Patio } from '@/assets/images'
|
|
2
2
|
import { PropertyDetails } from '@/interfaces'
|
|
3
3
|
|
|
4
|
-
const capitalize = (str?: string | number
|
|
4
|
+
const capitalize = (str?: string | number) => {
|
|
5
5
|
if (!str) return ''
|
|
6
6
|
return str.toString().charAt(0).toUpperCase() + str.toString().slice(1)
|
|
7
7
|
}
|
|
@@ -68,14 +68,14 @@ export const propertyRecordsToDB: Record<
|
|
|
68
68
|
|
|
69
69
|
export const propertyRecordsSessions = (
|
|
70
70
|
data: Partial<PropertyDetails>
|
|
71
|
-
): Record<string, Array<Record<string, string | undefined
|
|
71
|
+
): Record<string, Array<Record<string, string | undefined>>> => {
|
|
72
72
|
const flookRisk = data?.floodZone
|
|
73
73
|
? {
|
|
74
74
|
'Flood Zone': data?.floodZone ? 'Yes' : 'No',
|
|
75
75
|
Description: 'floodZoneDescription',
|
|
76
76
|
'Flood Type': capitalize(data?.floodZoneType),
|
|
77
77
|
}
|
|
78
|
-
:
|
|
78
|
+
: {}
|
|
79
79
|
return {
|
|
80
80
|
summary: [
|
|
81
81
|
{
|
|
@@ -107,12 +107,12 @@ export const propertyRecordsSessions = (
|
|
|
107
107
|
},
|
|
108
108
|
{
|
|
109
109
|
Basement: capitalize(data?.basementType),
|
|
110
|
-
'% Finished': capitalize(data?.basementFinishedPercent),
|
|
110
|
+
'% Finished': capitalize(data?.basementFinishedPercent ?? ''),
|
|
111
111
|
'Finished Sqft': capitalize(data?.basementSquareFeet),
|
|
112
112
|
'% Unfinished': (
|
|
113
113
|
100 - Number(data?.basementFinishedPercent ?? 100)
|
|
114
114
|
).toString(),
|
|
115
|
-
'Unfinished Sqft': capitalize(data?.basementSquareFeetUnFinished),
|
|
115
|
+
'Unfinished Sqft': capitalize(data?.basementSquareFeetUnFinished ?? ''),
|
|
116
116
|
},
|
|
117
117
|
],
|
|
118
118
|
structure: [
|
|
@@ -128,8 +128,8 @@ export const propertyRecordsSessions = (
|
|
|
128
128
|
Garage: capitalize(data?.garageType),
|
|
129
129
|
'Garage Sqft': capitalize(data?.garageSquareFeet),
|
|
130
130
|
'% Finished': capitalize(data?.garageSquareFeet),
|
|
131
|
-
'Finished Sqft': capitalize(data?.garageSquareFeetFinished),
|
|
132
|
-
'% Unfinished': capitalize(data?.garageSquareFeetUnfinished),
|
|
131
|
+
'Finished Sqft': capitalize(data?.garageSquareFeetFinished ?? ''),
|
|
132
|
+
'% Unfinished': capitalize(data?.garageSquareFeetUnfinished ?? ''),
|
|
133
133
|
'Parking Spaces': capitalize(data?.parkingSpaces),
|
|
134
134
|
'RV Parking': data?.rvParking ? 'Yes' : 'No',
|
|
135
135
|
},
|
|
@@ -144,8 +144,8 @@ export const propertyRecordsSessions = (
|
|
|
144
144
|
Pool: `${data?.pool ? 'Yes' : 'No'} - ${data?.poolArea} sqft`,
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
|
-
Sewage: capitalize(data?.utilitiesSewageUsage),
|
|
148
|
-
Water: capitalize(data?.utilitiesWaterSource),
|
|
147
|
+
Sewage: capitalize(data?.utilitiesSewageUsage ?? ''),
|
|
148
|
+
Water: capitalize(data?.utilitiesWaterSource ?? ''),
|
|
149
149
|
},
|
|
150
150
|
],
|
|
151
151
|
community: [
|
|
@@ -158,6 +158,27 @@ export const propertyRecordsSessions = (
|
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
+
export const propertyRecordsWizardSessions = (
|
|
162
|
+
data: Partial<PropertyDetails>
|
|
163
|
+
): Record<string, Record<string, string | undefined>> => {
|
|
164
|
+
return {
|
|
165
|
+
purchasePrice: {
|
|
166
|
+
Type: capitalize(data?.propertyUse),
|
|
167
|
+
'Year Built': capitalize(data?.yearBuilt),
|
|
168
|
+
Lot: capitalize(data?.lotSquareFeet),
|
|
169
|
+
Subdivision: `${capitalize(data?.neighborhood?.name) || ''} - ${
|
|
170
|
+
capitalize(data?.neighborhood?.type) || ''
|
|
171
|
+
}`,
|
|
172
|
+
},
|
|
173
|
+
assessedValue: {
|
|
174
|
+
Bedrooms: capitalize(data?.bedrooms),
|
|
175
|
+
Bathrooms: capitalize(data?.bathrooms),
|
|
176
|
+
'Half Bath': capitalize(data?.partialBathrooms),
|
|
177
|
+
'Total Sqft': String(data?.buildingSquareFeet),
|
|
178
|
+
},
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
161
182
|
export const propertyRecordIcons: Record<string, string> = {
|
|
162
183
|
summary: House,
|
|
163
184
|
interior: Building,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export const setOptionButtonStyles = (completed = false) => {
|
|
2
|
+
switch (completed) {
|
|
3
|
+
case true:
|
|
4
|
+
return {
|
|
5
|
+
bg: 'lightGreen.7',
|
|
6
|
+
transition: 'all 0.3s',
|
|
7
|
+
_hover: {
|
|
8
|
+
bg: 'lightGreen.8',
|
|
9
|
+
},
|
|
10
|
+
}
|
|
11
|
+
case false:
|
|
12
|
+
return {
|
|
13
|
+
bg: 'neutral.white',
|
|
14
|
+
transition: 'all 0.3s',
|
|
15
|
+
_hover: {
|
|
16
|
+
bg: 'lightGreen.7',
|
|
17
|
+
},
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -117,6 +117,35 @@ export type IconTypes =
|
|
|
117
117
|
| 'warranty'
|
|
118
118
|
| 'water'
|
|
119
119
|
| 'wind'
|
|
120
|
+
| 'battery-smoke-detector'
|
|
121
|
+
| 'cooktop'
|
|
122
|
+
| 'dish-washer'
|
|
123
|
+
| 'dryer'
|
|
124
|
+
| 'filter-size'
|
|
125
|
+
| 'fire-extinguisher'
|
|
126
|
+
| 'freezer'
|
|
127
|
+
| 'fridge'
|
|
128
|
+
| 'furnace'
|
|
129
|
+
| 'hood'
|
|
130
|
+
| 'in-wall'
|
|
131
|
+
| 'jacuzzi'
|
|
132
|
+
| 'landscape-lights'
|
|
133
|
+
| 'microwave'
|
|
134
|
+
| 'mr-boxes'
|
|
135
|
+
| 'mr-clock'
|
|
136
|
+
| 'mr-couch'
|
|
137
|
+
| 'mr-hand'
|
|
138
|
+
| 'mr-make-ready'
|
|
139
|
+
| 'mr-rental'
|
|
140
|
+
| 'other'
|
|
141
|
+
| 'oven'
|
|
142
|
+
| 'range'
|
|
143
|
+
| 'sprinkler-system'
|
|
144
|
+
| 'sprinkler-system2'
|
|
145
|
+
| 'tank-water'
|
|
146
|
+
| 'tankless-water'
|
|
147
|
+
| 'washer'
|
|
148
|
+
| 'wired-smoke-detector'
|
|
120
149
|
| UIIconTypes
|
|
121
150
|
|
|
122
151
|
export type UIIconTypes =
|
|
@@ -1387,4 +1387,289 @@ export const homeWizardForm: ReportI[] = [
|
|
|
1387
1387
|
],
|
|
1388
1388
|
value: true,
|
|
1389
1389
|
},
|
|
1390
|
+
{
|
|
1391
|
+
type: 'home-wizard',
|
|
1392
|
+
id: 'home-wizard-2',
|
|
1393
|
+
children: [
|
|
1394
|
+
{
|
|
1395
|
+
type: 'home-wizard-header',
|
|
1396
|
+
id: 'home-wizard-header-2',
|
|
1397
|
+
label: '2. Tell Homi about your fire safety.',
|
|
1398
|
+
description:
|
|
1399
|
+
'Homi tracks your safety devices, reminds you to test or replace them, and helps you keep your home protected year-round.',
|
|
1400
|
+
value: '',
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
type: 'home-wizard-step-options',
|
|
1404
|
+
id: 'home-wizard-step-options-1',
|
|
1405
|
+
value: 'Select what fire protection you have in your home?',
|
|
1406
|
+
children: [
|
|
1407
|
+
{
|
|
1408
|
+
id: 'smoke-detectors',
|
|
1409
|
+
type: 'text',
|
|
1410
|
+
label: 'WIRED SMOKE DET',
|
|
1411
|
+
value: false,
|
|
1412
|
+
icon: 'wired-smoke-detector',
|
|
1413
|
+
},
|
|
1414
|
+
{
|
|
1415
|
+
id: 'battery-smoke-detectors',
|
|
1416
|
+
type: 'text',
|
|
1417
|
+
label: 'BATTERY SMOKE DET',
|
|
1418
|
+
value: false,
|
|
1419
|
+
icon: 'battery-smoke-detector',
|
|
1420
|
+
},
|
|
1421
|
+
{
|
|
1422
|
+
id: 'co2-detectors',
|
|
1423
|
+
type: 'text',
|
|
1424
|
+
label: 'CO2 DETECTORS',
|
|
1425
|
+
value: false,
|
|
1426
|
+
icon: 'co2-detector',
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
id: 'sprinkler-system',
|
|
1430
|
+
type: 'text',
|
|
1431
|
+
label: 'SPRINKLER SYSTEM',
|
|
1432
|
+
value: false,
|
|
1433
|
+
icon: 'sprinkler-system',
|
|
1434
|
+
},
|
|
1435
|
+
{
|
|
1436
|
+
id: 'fire-extinguisher',
|
|
1437
|
+
type: 'text',
|
|
1438
|
+
label: 'FIRE EXTINGUISHER',
|
|
1439
|
+
value: false,
|
|
1440
|
+
icon: 'fire-extinguisher',
|
|
1441
|
+
},
|
|
1442
|
+
|
|
1443
|
+
{
|
|
1444
|
+
id: 'other-not-listed',
|
|
1445
|
+
type: 'text',
|
|
1446
|
+
label: 'OTHER/NOT LISTED',
|
|
1447
|
+
value: false,
|
|
1448
|
+
icon: 'other',
|
|
1449
|
+
},
|
|
1450
|
+
],
|
|
1451
|
+
},
|
|
1452
|
+
],
|
|
1453
|
+
value: true,
|
|
1454
|
+
},
|
|
1455
|
+
{
|
|
1456
|
+
type: 'home-wizard',
|
|
1457
|
+
id: 'home-wizard-3',
|
|
1458
|
+
children: [
|
|
1459
|
+
{
|
|
1460
|
+
type: 'home-wizard-header',
|
|
1461
|
+
id: 'home-wizard-header-3',
|
|
1462
|
+
label: '3. Tell Homi about your appliances.',
|
|
1463
|
+
description:
|
|
1464
|
+
'Homi monitors warranties, service schedules, and replacement timing to help you extend lifespan and avoid costly breakdowns.',
|
|
1465
|
+
value: '',
|
|
1466
|
+
},
|
|
1467
|
+
{
|
|
1468
|
+
type: 'home-wizard-step-options',
|
|
1469
|
+
id: 'home-wizard-step-options-1',
|
|
1470
|
+
value: 'Select the appliances you have in your home.',
|
|
1471
|
+
children: [
|
|
1472
|
+
{
|
|
1473
|
+
id: 'oven',
|
|
1474
|
+
type: 'text',
|
|
1475
|
+
label: 'OVEN',
|
|
1476
|
+
value: false,
|
|
1477
|
+
icon: 'oven',
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
id: 'fridge',
|
|
1481
|
+
type: 'text',
|
|
1482
|
+
label: 'FRIDGE',
|
|
1483
|
+
value: false,
|
|
1484
|
+
icon: 'fridge',
|
|
1485
|
+
},
|
|
1486
|
+
{
|
|
1487
|
+
id: 'freezer',
|
|
1488
|
+
type: 'text',
|
|
1489
|
+
label: 'FREEZER',
|
|
1490
|
+
value: false,
|
|
1491
|
+
icon: 'freezer',
|
|
1492
|
+
},
|
|
1493
|
+
{
|
|
1494
|
+
id: 'washer',
|
|
1495
|
+
type: 'text',
|
|
1496
|
+
label: 'WASHER',
|
|
1497
|
+
value: false,
|
|
1498
|
+
icon: 'washer',
|
|
1499
|
+
},
|
|
1500
|
+
{
|
|
1501
|
+
id: 'dryer',
|
|
1502
|
+
type: 'text',
|
|
1503
|
+
label: 'DRYER',
|
|
1504
|
+
value: false,
|
|
1505
|
+
icon: 'dryer',
|
|
1506
|
+
},
|
|
1507
|
+
{
|
|
1508
|
+
id: 'dish-washer',
|
|
1509
|
+
type: 'text',
|
|
1510
|
+
label: 'DISH WASHER',
|
|
1511
|
+
value: false,
|
|
1512
|
+
icon: 'dish-washer',
|
|
1513
|
+
},
|
|
1514
|
+
{
|
|
1515
|
+
id: 'range',
|
|
1516
|
+
type: 'text',
|
|
1517
|
+
label: 'RANGE',
|
|
1518
|
+
value: false,
|
|
1519
|
+
icon: 'range',
|
|
1520
|
+
},
|
|
1521
|
+
{
|
|
1522
|
+
id: 'hood',
|
|
1523
|
+
type: 'text',
|
|
1524
|
+
label: 'HOOD',
|
|
1525
|
+
value: false,
|
|
1526
|
+
icon: 'hood',
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
id: 'microwave',
|
|
1530
|
+
type: 'text',
|
|
1531
|
+
label: 'MICROWAVE',
|
|
1532
|
+
value: false,
|
|
1533
|
+
icon: 'microwave',
|
|
1534
|
+
},
|
|
1535
|
+
{
|
|
1536
|
+
id: 'cook-top',
|
|
1537
|
+
type: 'text',
|
|
1538
|
+
label: 'COOK TOP',
|
|
1539
|
+
value: false,
|
|
1540
|
+
icon: 'cook-top',
|
|
1541
|
+
},
|
|
1542
|
+
{
|
|
1543
|
+
id: 'tankless-waterhtr',
|
|
1544
|
+
type: 'text',
|
|
1545
|
+
label: 'TANKLESS WATERHTR',
|
|
1546
|
+
value: false,
|
|
1547
|
+
icon: 'tankless-water',
|
|
1548
|
+
},
|
|
1549
|
+
{
|
|
1550
|
+
id: 'tank-waterhtr',
|
|
1551
|
+
type: 'text',
|
|
1552
|
+
label: 'TANK WATERHTR',
|
|
1553
|
+
value: false,
|
|
1554
|
+
icon: 'tank-water',
|
|
1555
|
+
},
|
|
1556
|
+
],
|
|
1557
|
+
},
|
|
1558
|
+
],
|
|
1559
|
+
value: true,
|
|
1560
|
+
},
|
|
1561
|
+
{
|
|
1562
|
+
type: 'home-wizard',
|
|
1563
|
+
id: 'home-wizard-4',
|
|
1564
|
+
children: [
|
|
1565
|
+
{
|
|
1566
|
+
type: 'home-wizard-header',
|
|
1567
|
+
id: 'home-wizard-header-4',
|
|
1568
|
+
label: '4. Tell Homi about your climate control.',
|
|
1569
|
+
description:
|
|
1570
|
+
'Homi manages filter changes, tune-ups, and efficiency tips to keep your system running smoothly and lower energy costs.',
|
|
1571
|
+
value: '',
|
|
1572
|
+
},
|
|
1573
|
+
{
|
|
1574
|
+
type: 'home-wizard-step-options',
|
|
1575
|
+
id: 'home-wizard-step-options-1',
|
|
1576
|
+
value: 'What heating and cooling devices in your home:',
|
|
1577
|
+
children: [
|
|
1578
|
+
{
|
|
1579
|
+
id: 'hvac-furnace',
|
|
1580
|
+
type: 'text',
|
|
1581
|
+
label: 'HVAC/ FURNACE',
|
|
1582
|
+
value: false,
|
|
1583
|
+
icon: 'furnace',
|
|
1584
|
+
},
|
|
1585
|
+
{
|
|
1586
|
+
id: 'heat-pump',
|
|
1587
|
+
type: 'text',
|
|
1588
|
+
label: 'HEAT PUMP',
|
|
1589
|
+
value: false,
|
|
1590
|
+
icon: 'heat-pump',
|
|
1591
|
+
},
|
|
1592
|
+
{
|
|
1593
|
+
id: 'in-wall',
|
|
1594
|
+
type: 'text',
|
|
1595
|
+
label: 'IN-WALL',
|
|
1596
|
+
value: false,
|
|
1597
|
+
icon: 'in-wall',
|
|
1598
|
+
},
|
|
1599
|
+
{
|
|
1600
|
+
id: 'other-not-listed',
|
|
1601
|
+
type: 'text',
|
|
1602
|
+
label: 'OTHER/NOT LISTED',
|
|
1603
|
+
value: false,
|
|
1604
|
+
icon: 'other',
|
|
1605
|
+
},
|
|
1606
|
+
],
|
|
1607
|
+
},
|
|
1608
|
+
],
|
|
1609
|
+
value: true,
|
|
1610
|
+
},
|
|
1611
|
+
{
|
|
1612
|
+
type: 'home-wizard',
|
|
1613
|
+
id: 'home-wizard-5',
|
|
1614
|
+
children: [
|
|
1615
|
+
{
|
|
1616
|
+
type: 'home-wizard-header',
|
|
1617
|
+
id: 'home-wizard-header-5',
|
|
1618
|
+
label: '5. Tell Homi about your landscape.',
|
|
1619
|
+
description:
|
|
1620
|
+
'Homi tracks outdoor systems, plans seasonal care, and helps protect your home’s curb appeal and investment.',
|
|
1621
|
+
value: '',
|
|
1622
|
+
},
|
|
1623
|
+
{
|
|
1624
|
+
type: 'home-wizard-step-options',
|
|
1625
|
+
id: 'home-wizard-step-options-1',
|
|
1626
|
+
value: 'Select the types of structure elements of your home:',
|
|
1627
|
+
children: [
|
|
1628
|
+
{
|
|
1629
|
+
id: 'pool',
|
|
1630
|
+
type: 'text',
|
|
1631
|
+
label: 'POOL',
|
|
1632
|
+
value: false,
|
|
1633
|
+
icon: 'pool',
|
|
1634
|
+
},
|
|
1635
|
+
{
|
|
1636
|
+
id: 'jacuzzi',
|
|
1637
|
+
type: 'text',
|
|
1638
|
+
label: 'JACUZZI',
|
|
1639
|
+
value: false,
|
|
1640
|
+
icon: 'jacuzzi',
|
|
1641
|
+
},
|
|
1642
|
+
{
|
|
1643
|
+
id: 'sprinkler-system',
|
|
1644
|
+
type: 'text',
|
|
1645
|
+
label: 'SPRINKLER SYSTEM',
|
|
1646
|
+
value: false,
|
|
1647
|
+
icon: 'sprinkler-system2',
|
|
1648
|
+
},
|
|
1649
|
+
{
|
|
1650
|
+
id: 'landscape-lights',
|
|
1651
|
+
type: 'text',
|
|
1652
|
+
label: 'LANDSCAPE LIGHTS',
|
|
1653
|
+
value: false,
|
|
1654
|
+
icon: 'landscape-lights',
|
|
1655
|
+
},
|
|
1656
|
+
{
|
|
1657
|
+
id: 'outdoor-kitchen',
|
|
1658
|
+
type: 'text',
|
|
1659
|
+
label: 'OUTDOOR KITCHEN',
|
|
1660
|
+
value: false,
|
|
1661
|
+
icon: 'cook-top',
|
|
1662
|
+
},
|
|
1663
|
+
{
|
|
1664
|
+
id: 'other-not-listed',
|
|
1665
|
+
type: 'text',
|
|
1666
|
+
label: 'OTHER/NOT LISTED',
|
|
1667
|
+
value: false,
|
|
1668
|
+
icon: 'other',
|
|
1669
|
+
},
|
|
1670
|
+
],
|
|
1671
|
+
},
|
|
1672
|
+
],
|
|
1673
|
+
value: true,
|
|
1674
|
+
},
|
|
1390
1675
|
]
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
propertyRecordsSessions,
|
|
3
|
+
propertyRecordsWizardSessions,
|
|
4
|
+
} from '@/helpers'
|
|
2
5
|
import { HomeCardRecordsI, PropertyDetails } from '@/interfaces'
|
|
3
6
|
|
|
4
7
|
export const propertyDetailsMock: PropertyDetails = {
|
|
@@ -62,6 +65,12 @@ export const propertyDetailsMock: PropertyDetails = {
|
|
|
62
65
|
export const propertyDetailsMockSmall =
|
|
63
66
|
propertyRecordsSessions(propertyDetailsMock).summary[0]
|
|
64
67
|
|
|
68
|
+
export const purchasePriceMock =
|
|
69
|
+
propertyRecordsWizardSessions(propertyDetailsMock).purchasePrice
|
|
70
|
+
|
|
71
|
+
export const assessedValueMock =
|
|
72
|
+
propertyRecordsWizardSessions(propertyDetailsMock).assessedValue
|
|
73
|
+
|
|
65
74
|
export const homeBoardRecorsMock: HomeCardRecordsI = {
|
|
66
75
|
propertyUse: propertyDetailsMock.propertyUse,
|
|
67
76
|
yearBuilt: propertyDetailsMock.yearBuilt,
|