@policystudio/policy-studio-ui-vue 1.1.44 → 1.1.47

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.
@@ -1,21 +1,17 @@
1
1
  import PsTableResults, { tableLayout } from '../components/table-results/PsTableResults.vue'
2
2
  import PsTableResultsHead from '../components/table-results/PsTableResultsHead.vue'
3
+ import PsTableResultsHeadFlexible from '../components/table-results/PsTableResultsHeadFlexible.vue'
3
4
  import PsTableResultsHeadComparison from '../components/table-results/PsTableResultsHeadComparison.vue'
4
5
  import PsProgressBar from '../components/badges-and-tags/PsProgressBar.vue'
6
+ import PsSwitch from '../components/controls/PsSwitch.vue'
5
7
 
6
- export const RENDER_TYPE = {
7
- BAR_CHART : 'bar_chart',
8
- TAG_SCOPE : 'tag_scope',
9
- }
10
- export const RENDER_BADGE = {
11
- EMISSION_REDICTIONS : 'trending_down',
12
- AFFECTED_UNITS : 'holiday_village',
13
- LOWEST_COST_PER_UNIT : 'price_check'
14
- }
8
+ import { resultsDataHeader, resultsDataColumnGroup, resultsDataSummary } from '../contents/ResultsData'
9
+ import { comparisonDataHeader, comparisonDataColumnGroup, comparisonDataSummary } from '../contents/ComparisonData'
10
+ import { flexibleDataHeader, flexibleDataColumnGroup, flexibleDataSummary } from '../contents/FlexibleData'
15
11
 
16
12
  export default {
17
13
  title: 'Data Tables/TableResults',
18
- component: { PsTableResults, PsTableResultsHead, PsTableResultsHeadComparison },
14
+ component: { PsTableResults, PsTableResultsHead, PsTableResultsHeadComparison, PsTableResultsHeadFlexible },
19
15
  argTypes: {
20
16
  layout: { control: { type: 'inline-radio', options: tableLayout } },
21
17
  onClick: { action: 'clicked' },
@@ -23,53 +19,33 @@ export default {
23
19
  },
24
20
  }
25
21
 
26
- const TableSimple = (args, { argTypes }) => ({
27
- props: Object.keys(argTypes),
28
- components: { PsTableResults, PsTableResultsHead },
29
- template: `
30
- <div style="width:100%;">
31
- <PsTableResults v-bind="$props">
32
- <template v-slot:header>
33
- <PsTableResultsHead v-bind="$props" />
34
- </template>
35
- </PsTableResults>
36
- </div>
37
- `
38
- })
39
-
40
22
  const TableResults = (args, { argTypes }) => ({
41
23
  props: Object.keys(argTypes),
42
- components: { PsTableResults, PsTableResultsHead, PsTableResultsHeadComparison },
43
- subcomponents: { PsProgressBar },
24
+ components: { PsTableResults, PsTableResultsHead, PsTableResultsHeadComparison, PsTableResultsHeadFlexible },
25
+ subcomponents: { PsProgressBar, PsSwitch },
44
26
  template: `
45
27
  <div style="width:100%;">
46
28
  <div
47
- v-if="$props['layout'] == 'comparison'"
48
- class="psui-bg-gray-20 psui-p-8"
29
+ :class="$props['layout'] == 'comparison' ? 'psui-bg-gray-20 psui-p-8' : 'psui-bg-white'"
49
30
  >
50
- <PsTableResults
51
- v-bind="$props"
52
- :summary-data="summaryDataComparison"
53
- :column-groups="comparisonColumnGroups"
54
- >
31
+ <PsTableResults v-bind="$props">
55
32
  <template v-slot:header>
56
33
  <PsTableResultsHeadComparison
34
+ v-if="$props['layout'] == 'comparison'"
57
35
  v-bind="$props"
58
36
  first-column-title="Comparing 4 Policies"
59
37
  first-column-description=""
60
- :header="comparisonColumnGroups"
61
38
  />
62
- </template>
63
- </PsTableResults>
64
- </div>
65
-
66
- <div
67
- v-else
68
- class="psui-bg-white"
69
- >
70
- <PsTableResults v-bind="$props">
71
- <template v-slot:header>
72
- <PsTableResultsHead v-bind="$props" />
39
+ <PsTableResultsHeadFlexible
40
+ v-else-if="$props['layout'] == 'flexible'"
41
+ v-bind="$props"
42
+ first-column-title="Measure List"
43
+ first-column-description="Measures"
44
+ />
45
+ <PsTableResultsHead
46
+ v-else
47
+ v-bind="$props"
48
+ />
73
49
  </template>
74
50
  </PsTableResults>
75
51
  </div>
@@ -77,1402 +53,672 @@ const TableResults = (args, { argTypes }) => ({
77
53
  `
78
54
  })
79
55
 
80
- export const Simple = TableSimple.bind({})
81
- Simple.args = {
82
- header: [
83
- {
84
- 'order': 0,
85
- 'key': 'fixed_columns',
86
- 'title': 'Cost-Effectiveness',
87
- 'columns': [
88
- {
89
- 'isActive': true,
90
- 'key': 'tdv_benefit_to_cost_ratio',
91
- 'title': 'TDV',
92
- 'description': '≥ 1.0 is cost effective',
93
- 'isChart': true,
94
- 'hasHelper': {
95
- 'type': 'helper',
96
- 'id': 1
97
- }
98
- }
99
- ],
100
- 'hasHelper': {
101
- 'type': 'helper',
102
- 'id': 23
103
- }
104
- },
105
- {
106
- 'order': 2,
107
- 'key': 'city_wide_impact',
108
- 'title': 'Wide Impact',
109
- 'columns': [
110
- {
111
- 'isActive': true,
112
- 'key': 'forecast_units_affected',
113
- 'title': 'Affected Units',
114
- 'description': '(lifecycle)',
115
- 'hasProjections': true,
116
- 'hasHelper': {
117
- 'type': 'helper',
118
- 'id': 17
119
- },
120
- 'chartProjection': {
121
- 'title': 'Number of Affected Units',
122
- 'subtitle': ''
123
- }
124
- },
125
- {
126
- 'isActive': true,
127
- 'key': 'forecast_initial_cost',
128
- 'title': 'Compliance Cost',
129
- 'description': '(lifecycle)',
130
- 'hasProjections': true,
131
- 'hasHelper': {
132
- 'type': 'helper',
133
- 'id': 20
134
- },
135
- 'chartProjection': {
136
- 'title': 'Compliance Cost',
137
- 'subtitle': ''
138
- }
139
- },
140
- {
141
- 'isActive': true,
142
- 'key': 'forecast_emissions_savings',
143
- 'title': 'Emissions Reductions',
144
- 'description': '(lifecycle MTCO2e)',
145
- 'hasProjections': true,
146
- 'hasHelper': {
147
- 'type': 'helper',
148
- 'id': 18
149
- },
150
- 'chartProjection': {
151
- 'title': 'Emissions Reductions',
152
- 'subtitle': 'MTCO2e'
153
- }
154
- },
155
- {
156
- 'isActive': true,
157
- 'key': 'forecast_lifecycle_savings',
158
- 'title': 'Lifecycle Savings',
159
- 'description': '(on-bill)',
160
- 'hasProjections': true,
161
- 'hasHelper': {
162
- 'type': 'helper',
163
- 'id': 19
164
- },
165
- 'chartProjection': {
166
- 'title': 'Bill Savings',
167
- 'subtitle': ''
168
- }
169
- },
170
- {
171
- 'isActive': true,
172
- 'key': 'forecast_kwh_savings',
173
- 'title': 'Electricity Savings',
174
- 'description': '(lifecycle kWh)',
175
- 'hasProjections': true,
176
- 'hasHelper': {
177
- 'type': 'helper',
178
- 'id': 21
179
- },
180
- 'chartProjection': {
181
- 'title': 'Electricity Savings',
182
- 'subtitle': 'kWh'
183
- }
184
- },
185
- {
186
- 'isActive': true,
187
- 'key': 'forecast_therms_savings',
188
- 'title': 'Gas Savings',
189
- 'description': '(lifecycle therms)',
190
- 'hasProjections': true,
191
- 'hasHelper': {
192
- 'type': 'helper',
193
- 'id': 22
194
- },
195
- 'chartProjection': {
196
- 'title': 'Gas Savings',
197
- 'subtitle': 'therms'
198
- }
199
- }
200
- ],
201
- 'hasHelper': {
202
- 'type': 'helper',
203
- 'id': 25
204
- }
205
- }
206
- ],
207
- columnGroups: [
208
- {
209
- 'order': 0,
210
- 'key': 'fixed_columns',
211
- 'title': 'Cost-Effectiveness',
212
- 'columns': [
213
- {
214
- 'isActive': true,
215
- 'key': 'tdv_benefit_to_cost_ratio',
216
- 'title': 'TDV',
217
- 'description': '≥ 1.0 is cost effective',
218
- 'isChart': true,
219
- 'hasHelper': {
220
- 'type': 'helper',
221
- 'id': 1
222
- }
223
- }
224
- ],
225
- 'hasHelper': {
226
- 'type': 'helper',
227
- 'id': 23
228
- }
229
- },
230
- {
231
- 'order': 2,
232
- 'key': 'city_wide_impact',
233
- 'title': 'Wide Impact',
234
- 'columns': [
235
- {
236
- 'isActive': true,
237
- 'key': 'forecast_units_affected',
238
- 'title': 'Affected Units',
239
- 'description': '(lifecycle)',
240
- 'hasProjections': true,
241
- 'hasHelper': {
242
- 'type': 'helper',
243
- 'id': 17
244
- },
245
- 'chartProjection': {
246
- 'title': 'Number of Affected Units',
247
- 'subtitle': ''
248
- }
249
- },
250
- {
251
- 'isActive': true,
252
- 'key': 'forecast_initial_cost',
253
- 'title': 'Compliance Cost',
254
- 'description': '(lifecycle)',
255
- 'hasProjections': true,
256
- 'hasHelper': {
257
- 'type': 'helper',
258
- 'id': 20
259
- },
260
- 'chartProjection': {
261
- 'title': 'Compliance Cost',
262
- 'subtitle': ''
263
- }
264
- },
265
- {
266
- 'isActive': true,
267
- 'key': 'forecast_emissions_savings',
268
- 'title': 'Emissions Reductions',
269
- 'description': '(lifecycle MTCO2e)',
270
- 'hasProjections': true,
271
- 'hasHelper': {
272
- 'type': 'helper',
273
- 'id': 18
274
- },
275
- 'chartProjection': {
276
- 'title': 'Emissions Reductions',
277
- 'subtitle': 'MTCO2e'
278
- }
279
- },
280
- {
281
- 'isActive': true,
282
- 'key': 'forecast_lifecycle_savings',
283
- 'title': 'Lifecycle Savings',
284
- 'description': '(on-bill)',
285
- 'hasProjections': true,
286
- 'hasHelper': {
287
- 'type': 'helper',
288
- 'id': 19
289
- },
290
- 'chartProjection': {
291
- 'title': 'Bill Savings',
292
- 'subtitle': ''
293
- }
294
- },
295
- {
296
- 'isActive': true,
297
- 'key': 'forecast_kwh_savings',
298
- 'title': 'Electricity Savings',
299
- 'description': '(lifecycle kWh)',
300
- 'hasProjections': true,
301
- 'hasHelper': {
302
- 'type': 'helper',
303
- 'id': 21
304
- },
305
- 'chartProjection': {
306
- 'title': 'Electricity Savings',
307
- 'subtitle': 'kWh'
308
- }
309
- },
310
- {
311
- 'isActive': true,
312
- 'key': 'forecast_therms_savings',
313
- 'title': 'Gas Savings',
314
- 'description': '(lifecycle therms)',
315
- 'hasProjections': true,
316
- 'hasHelper': {
317
- 'type': 'helper',
318
- 'id': 22
319
- },
320
- 'chartProjection': {
321
- 'title': 'Gas Savings',
322
- 'subtitle': 'therms'
323
- }
324
- }
325
- ],
326
- 'hasHelper': {
327
- 'type': 'helper',
328
- 'id': 25
329
- }
330
- }
331
- ],
332
- summaryData: [
333
- {
334
- 'data': {
335
- 'forecast_units_affected': 337.5,
336
- 'forecast_emissions_savings': -1470.2228427746163,
337
- 'forecast_therms_savings': -365783.4118312498,
338
- 'forecast_kwh_savings': 5790873.440625001,
339
- 'forecast_lifecycle_savings': 1384353.6577500012,
340
- 'forecast_initial_cost': 840955.172375,
341
- 'initial_cost': -744.7994892592594,
342
- 'annual_bill_savings_avg': null,
343
- 'annual_bill_savings': -229.11570370370367,
344
- 'emissions_savings': 0.5992222222222222,
345
- 'kwh_savings': -1596.6407407407407,
346
- 'therms_savings': 134.17952962962963,
347
- 'lifecycle_savings': -3470.4795667037033,
348
- 'compliance_margin': 6.797037037037037,
349
- 'baseline_fuel_type': 'Mixed-fuel',
350
- 'energy_savings_combined': 7.96989981162963,
351
- 'on_bill_cost_ratio': 0.9328797158714975,
352
- 'tdv_benefit_to_cost_ratio': 1.327363515218667,
353
- 'simple_payback': 4.842552503682514,
354
- 'tdv2022_benefit_to_cost_ratio': 0
355
- },
356
- 'deep': 0,
357
- 'id': 'policy',
358
- 'title': 'Total Impact',
359
- 'items': [
360
- {
361
- 'data': {
362
- 'forecast_units_affected': 77.5,
363
- 'forecast_emissions_savings': 1427.3145433224304,
364
- 'forecast_therms_savings': 296624.89395,
365
- 'forecast_kwh_savings': -2102697.449999999,
366
- 'forecast_lifecycle_savings': 19620.35775000001,
367
- 'forecast_initial_cost': 408160,
368
- 'initial_cost': 2014,
369
- 'annual_bill_savings_avg': null,
370
- 'annual_bill_savings': -439.0199999999999,
371
- 'emissions_savings': 2.045,
372
- 'kwh_savings': -3999,
373
- 'therms_savings': 400.1415,
374
- 'lifecycle_savings': -4160.687805,
375
- 'compliance_margin': 29.6,
376
- 'baseline_fuel_type': 'Mixed-fuel',
377
- 'energy_savings_combined': 26.36819047,
378
- 'on_bill_cost_ratio': 1.460322707,
379
- 'tdv_benefit_to_cost_ratio': 1.42,
380
- 'simple_payback': 0,
381
- 'tdv2022_benefit_to_cost_ratio': 0
382
- },
383
- 'deep': 1,
384
- 'id': 'policy:container-2459',
385
- 'title': 'New Single Family Units',
386
- 'items': [
387
- {
388
- 'data': {
389
- 'forecast_units_affected': 77.5,
390
- 'forecast_emissions_savings': 1427.3145433224304,
391
- 'forecast_therms_savings': 296624.89395,
392
- 'forecast_kwh_savings': -2102697.449999999,
393
- 'forecast_lifecycle_savings': 19620.35775000001,
394
- 'forecast_initial_cost': 408160,
395
- 'initial_cost': 2014,
396
- 'annual_bill_savings_avg': null,
397
- 'annual_bill_savings': -439.0199999999999,
398
- 'emissions_savings': 2.045,
399
- 'kwh_savings': -3999,
400
- 'therms_savings': 400.1415,
401
- 'lifecycle_savings': -4160.687805,
402
- 'compliance_margin': 29.6,
403
- 'baseline_fuel_type': 'Mixed-fuel',
404
- 'energy_savings_combined': 26.36819047,
405
- 'on_bill_cost_ratio': 1.460322707,
406
- 'tdv_benefit_to_cost_ratio': 1.42,
407
- 'simple_payback': 0,
408
- 'tdv2022_benefit_to_cost_ratio': 0
409
- },
410
- 'deep': 2,
411
- 'id': 'policy:container-2459:climateZone-1-PGE',
412
- 'title': 'Climate Zone 1',
413
- 'items': [
414
- {
415
- 'data': {
416
- 'forecast_units_affected': 77.5,
417
- 'forecast_emissions_savings': 1427.3145433224304,
418
- 'forecast_therms_savings': 296624.89395,
419
- 'forecast_kwh_savings': -2102697.449999999,
420
- 'forecast_lifecycle_savings': 19620.35775000001,
421
- 'forecast_initial_cost': 408160,
422
- 'initial_cost': 2014,
423
- 'annual_bill_savings': -439.02,
424
- 'emissions_savings': 2.045,
425
- 'kwh_savings': -3999,
426
- 'therms_savings': 400.1415,
427
- 'lifecycle_savings': -4160.687805,
428
- 'compliance_margin': 29.6,
429
- 'baseline_fuel_type': 'Mixed-fuel',
430
- 'energy_savings_combined': 26.36819047,
431
- 'on_bill_cost_ratio': 1.460322707,
432
- 'tdv_benefit_to_cost_ratio': 1.42,
433
- 'simple_payback': 0,
434
- 'tdv2022_benefit_to_cost_ratio': null
435
- },
436
- 'deep': 3,
437
- 'id': 'policy:container-2459:climateZone-1-PGE:fuel-all-electric',
438
- 'title': 'All Electric',
439
- 'items': null,
440
- 'is_disabled': false,
441
- 'is_last': false,
442
- 'index': '0-0-0-0',
443
- 'last_deep': true
444
- },
445
- {
446
- 'data': {
447
- 'initial_cost': 1806.25,
448
- 'annual_bill_savings': 186.04,
449
- 'emissions_savings': 0.42,
450
- 'kwh_savings': 89.395,
451
- 'therms_savings': 68.604,
452
- 'lifecycle_savings': 5647.744375,
453
- 'compliance_margin': 11.95,
454
- 'baseline_fuel_type': 'Mixed-fuel',
455
- 'energy_savings_combined': 7.16541574,
456
- 'on_bill_cost_ratio': 2.784541829,
457
- 'tdv_benefit_to_cost_ratio': 2.75,
458
- 'simple_payback': 9.708831573,
459
- 'tdv2022_benefit_to_cost_ratio': null
460
- },
461
- 'deep': 3,
462
- 'id': 'policy:container-2459:climateZone-1-PGE:fuel-mixed-fuel',
463
- 'title': 'Mixed-fuel',
464
- 'items': null,
465
- 'is_disabled': true,
466
- 'is_last': true,
467
- 'index': '0-0-0-1',
468
- 'last_deep': true
469
- }
470
- ],
471
- 'is_disabled': false,
472
- 'is_last': false,
473
- 'index': '0-0-0',
474
- 'last_deep': false
475
- },
476
- {
477
- 'data': {
478
- 'forecast_units_affected': 77.5,
479
- 'forecast_emissions_savings': 1427.3145433224304,
480
- 'forecast_therms_savings': 296624.89395,
481
- 'forecast_kwh_savings': -2102697.449999999,
482
- 'forecast_lifecycle_savings': 19620.35775000001,
483
- 'forecast_initial_cost': 408160,
484
- 'initial_cost': 2014,
485
- 'annual_bill_savings_avg': null,
486
- 'annual_bill_savings': -439.0199999999999,
487
- 'emissions_savings': 2.045,
488
- 'kwh_savings': -3999,
489
- 'therms_savings': 400.1415,
490
- 'lifecycle_savings': -4160.687805,
491
- 'compliance_margin': 29.6,
492
- 'baseline_fuel_type': 'Mixed-fuel',
493
- 'energy_savings_combined': 26.36819047,
494
- 'on_bill_cost_ratio': 1.460322707,
495
- 'tdv_benefit_to_cost_ratio': 1.42,
496
- 'simple_payback': 0,
497
- 'tdv2022_benefit_to_cost_ratio': 0
498
- },
499
- 'deep': 2,
500
- 'id': 'policy:container-2459:climateZone-2-PGE',
501
- 'title': 'Climate Zone 2',
502
- 'items': [
503
- {
504
- 'data': {
505
- 'forecast_units_affected': 77.5,
506
- 'forecast_emissions_savings': 1427.3145433224304,
507
- 'forecast_therms_savings': 296624.89395,
508
- 'forecast_kwh_savings': -2102697.449999999,
509
- 'forecast_lifecycle_savings': 19620.35775000001,
510
- 'forecast_initial_cost': 408160,
511
- 'initial_cost': 2014,
512
- 'annual_bill_savings': -439.02,
513
- 'emissions_savings': 2.045,
514
- 'kwh_savings': -3999,
515
- 'therms_savings': 400.1415,
516
- 'lifecycle_savings': -4160.687805,
517
- 'compliance_margin': 29.6,
518
- 'baseline_fuel_type': 'Mixed-fuel',
519
- 'energy_savings_combined': 26.36819047,
520
- 'on_bill_cost_ratio': 1.460322707,
521
- 'tdv_benefit_to_cost_ratio': 1.42,
522
- 'simple_payback': 0,
523
- 'tdv2022_benefit_to_cost_ratio': null
524
- },
525
- 'deep': 3,
526
- 'id': 'policy:container-2459:climateZone-2-PGE:fuel-all-electric',
527
- 'title': 'All Electric',
528
- 'items': null,
529
- 'is_disabled': false,
530
- 'is_last': false,
531
- 'index': '0-0-0-0',
532
- 'last_deep': true
533
- },
534
- {
535
- 'data': {
536
- 'initial_cost': 1806.25,
537
- 'annual_bill_savings': 186.04,
538
- 'emissions_savings': 0.42,
539
- 'kwh_savings': 89.395,
540
- 'therms_savings': 68.604,
541
- 'lifecycle_savings': 5647.744375,
542
- 'compliance_margin': 11.95,
543
- 'baseline_fuel_type': 'Mixed-fuel',
544
- 'energy_savings_combined': 7.16541574,
545
- 'on_bill_cost_ratio': 2.784541829,
546
- 'tdv_benefit_to_cost_ratio': 2.75,
547
- 'simple_payback': 9.708831573,
548
- 'tdv2022_benefit_to_cost_ratio': null
549
- },
550
- 'deep': 3,
551
- 'id': 'policy:container-2459:climateZone-2-PGE:fuel-mixed-fuel',
552
- 'title': 'Mixed-fuel',
553
- 'items': null,
554
- 'is_disabled': true,
555
- 'is_last': true,
556
- 'index': '0-0-0-1',
557
- 'last_deep': true
558
- }
559
- ],
560
- 'is_disabled': true,
561
- 'is_last': true,
562
- 'index': '0-0-1',
563
- 'last_deep': false
564
- }
565
- ],
566
- 'is_disabled': false,
567
- 'is_last': false,
568
- 'index': '0-0',
569
- 'last_deep': false
570
- },
571
- {
572
- 'data': {
573
- 'forecast_units_affected': 260,
574
- 'forecast_emissions_savings': -2897.5373860970467,
575
- 'forecast_therms_savings': -662408.3057812498,
576
- 'forecast_kwh_savings': 7893570.890625,
577
- 'forecast_lifecycle_savings': 1364733.3000000012,
578
- 'forecast_initial_cost': 432795.17237499997,
579
- 'initial_cost': -1567.1339524038463,
580
- 'annual_bill_savings_avg': null,
581
- 'annual_bill_savings': -166.54807692307693,
582
- 'emissions_savings': 0.16826923076923078,
583
- 'kwh_savings': -880.5528846153846,
584
- 'therms_savings': 54.902403846153845,
585
- 'lifecycle_savings': -3264.74441875,
586
- 'compliance_margin': 0,
587
- 'baseline_fuel_type': 'Mixed-fuel',
588
- 'energy_savings_combined': 2.4857939423076925,
589
- 'on_bill_cost_ratio': 0.435459354,
590
- 'tdv_benefit_to_cost_ratio': 1.2400000000000002,
591
- 'simple_payback': 9.409461647,
592
- 'tdv2022_benefit_to_cost_ratio': 0
593
- },
594
- 'deep': 1,
595
- 'id': 'policy:container-2539',
596
- 'title': 'New ADUs',
597
- 'items': [
598
- {
599
- 'data': {
600
- 'forecast_units_affected': 260,
601
- 'forecast_emissions_savings': -2897.5373860970467,
602
- 'forecast_therms_savings': -662408.3057812498,
603
- 'forecast_kwh_savings': 7893570.890625,
604
- 'forecast_lifecycle_savings': 1364733.3000000012,
605
- 'forecast_initial_cost': 432795.17237499997,
606
- 'initial_cost': -1567.1339524038463,
607
- 'annual_bill_savings_avg': null,
608
- 'annual_bill_savings': -166.54807692307693,
609
- 'emissions_savings': 0.16826923076923078,
610
- 'kwh_savings': -880.5528846153846,
611
- 'therms_savings': 54.902403846153845,
612
- 'lifecycle_savings': -3264.74441875,
613
- 'compliance_margin': 0,
614
- 'baseline_fuel_type': 'Mixed-fuel',
615
- 'energy_savings_combined': 2.4857939423076925,
616
- 'on_bill_cost_ratio': 0.435459354,
617
- 'tdv_benefit_to_cost_ratio': 1.2400000000000002,
618
- 'simple_payback': 9.409461647,
619
- 'tdv2022_benefit_to_cost_ratio': 0
620
- },
621
- 'deep': 2,
622
- 'id': 'policy:container-2539:climateZone-1-PGE',
623
- 'title': 'Climate Zone 1',
624
- 'items': [
625
- {
626
- 'data': {
627
- 'forecast_units_affected': 125,
628
- 'forecast_emissions_savings': -2897.5373860970467,
629
- 'forecast_therms_savings': -662408.3057812498,
630
- 'forecast_kwh_savings': 7893570.890625,
631
- 'forecast_lifecycle_savings': 1364733.3000000012,
632
- 'forecast_initial_cost': 432795.17237499997,
633
- 'initial_cost': -3259.638621,
634
- 'annual_bill_savings': -346.42,
635
- 'emissions_savings': 0.35,
636
- 'kwh_savings': -1831.55,
637
- 'therms_savings': 114.197,
638
- 'lifecycle_savings': -6790.668391,
639
- 'compliance_margin': 0,
640
- 'baseline_fuel_type': 'Mixed-fuel',
641
- 'energy_savings_combined': 5.1704514,
642
- 'on_bill_cost_ratio': 0.435459354,
643
- 'tdv_benefit_to_cost_ratio': 1.24,
644
- 'simple_payback': 9.409461647,
645
- 'tdv2022_benefit_to_cost_ratio': null
646
- },
647
- 'deep': 3,
648
- 'id': 'policy:container-2539:climateZone-1-PGE:fuel-all-electric',
649
- 'title': 'All Electric',
650
- 'items': null,
651
- 'is_disabled': false,
652
- 'is_last': false,
653
- 'index': '0-1-0-0',
654
- 'last_deep': true
655
- },
656
- {
657
- 'data': {
658
- 'forecast_units_affected': 135,
659
- 'initial_cost': 0,
660
- 'annual_bill_savings': 0,
661
- 'emissions_savings': 0,
662
- 'kwh_savings': 0,
663
- 'therms_savings': 0,
664
- 'lifecycle_savings': 0,
665
- 'compliance_margin': 0,
666
- 'baseline_fuel_type': 'Mixed-fuel',
667
- 'energy_savings_combined': 0,
668
- 'on_bill_cost_ratio': 0,
669
- 'tdv_benefit_to_cost_ratio': 0,
670
- 'simple_payback': 0,
671
- 'tdv2022_benefit_to_cost_ratio': null
672
- },
673
- 'deep': 3,
674
- 'id': 'policy:container-2539:climateZone-1-PGE:fuel-mixed-fuel',
675
- 'title': 'Mixed-fuel',
676
- 'items': null,
677
- 'is_disabled': false,
678
- 'is_last': true,
679
- 'index': '0-1-0-1',
680
- 'last_deep': true
681
- }
682
- ],
683
- 'is_disabled': false,
684
- 'is_last': true,
685
- 'index': '0-1-0',
686
- 'last_deep': false
687
- }
688
- ],
689
- 'is_disabled': false,
690
- 'is_last': true,
691
- 'index': '0-1',
692
- 'last_deep': false
693
- }
694
- ],
695
- 'is_disabled': false,
696
- 'index': '0',
697
- 'last_deep': false
698
- }
699
- ],
56
+ export const Results = TableResults.bind({})
57
+ Results.args = {
58
+ layout: 'results',
59
+ header: resultsDataHeader,
60
+ columnGroups: resultsDataColumnGroup,
61
+ summaryData: resultsDataSummary,
700
62
  footer: [],
701
63
  showRowsCollapsed: true,
702
64
  }
703
65
 
704
- export const Results = TableResults.bind({})
705
- Results.args = {
706
- header: [
707
- {
708
- 'order': 0,
709
- 'key': 'fixed_columns',
710
- 'title': 'Cost-Effectiveness',
711
- 'columns': [
712
- {
713
- 'isActive': true,
714
- 'key': 'tdv_benefit_to_cost_ratio',
715
- 'title': 'TDV',
716
- 'description': '≥ 1.0 is cost effective',
717
- 'isChart': true,
718
- 'hasHelper': {
719
- 'type': 'helper',
720
- 'id': 1
721
- }
722
- }
723
- ],
724
- 'hasHelper': {
725
- 'type': 'helper',
726
- 'id': 23
727
- }
728
- },
729
- {
730
- 'order': 2,
731
- 'key': 'city_wide_impact',
732
- 'title': 'Wide Impact',
733
- 'columns': [
734
- {
735
- 'isActive': true,
736
- 'key': 'forecast_units_affected',
737
- 'title': 'Affected Units',
738
- 'description': '(lifecycle)',
739
- 'hasProjections': true,
740
- 'hasHelper': {
741
- 'type': 'helper',
742
- 'id': 17
743
- },
744
- 'chartProjection': {
745
- 'title': 'Number of Affected Units',
746
- 'subtitle': ''
747
- }
748
- },
749
- {
750
- 'isActive': true,
751
- 'key': 'forecast_initial_cost',
752
- 'title': 'Compliance Cost',
753
- 'description': '(lifecycle)',
754
- 'hasProjections': true,
755
- 'hasHelper': {
756
- 'type': 'helper',
757
- 'id': 20
758
- },
759
- 'chartProjection': {
760
- 'title': 'Compliance Cost',
761
- 'subtitle': ''
762
- }
763
- },
764
- {
765
- 'isActive': true,
766
- 'key': 'forecast_emissions_savings',
767
- 'title': 'Emissions Reductions',
768
- 'description': '(lifecycle MTCO2e)',
769
- 'hasProjections': true,
770
- 'hasHelper': {
771
- 'type': 'helper',
772
- 'id': 18
773
- },
774
- 'chartProjection': {
775
- 'title': 'Emissions Reductions',
776
- 'subtitle': 'MTCO2e'
777
- }
778
- },
779
- {
780
- 'isActive': true,
781
- 'key': 'forecast_lifecycle_savings',
782
- 'title': 'Lifecycle Savings',
783
- 'description': '(on-bill)',
784
- 'hasProjections': true,
785
- 'hasHelper': {
786
- 'type': 'helper',
787
- 'id': 19
788
- },
789
- 'chartProjection': {
790
- 'title': 'Bill Savings',
791
- 'subtitle': ''
792
- }
793
- },
794
- {
795
- 'isActive': true,
796
- 'key': 'forecast_kwh_savings',
797
- 'title': 'Electricity Savings',
798
- 'description': '(lifecycle kWh)',
799
- 'hasProjections': true,
800
- 'hasHelper': {
801
- 'type': 'helper',
802
- 'id': 21
803
- },
804
- 'chartProjection': {
805
- 'title': 'Electricity Savings',
806
- 'subtitle': 'kWh'
807
- }
808
- },
809
- {
810
- 'isActive': true,
811
- 'key': 'forecast_therms_savings',
812
- 'title': 'Gas Savings',
813
- 'description': '(lifecycle therms)',
814
- 'hasProjections': true,
815
- 'hasHelper': {
816
- 'type': 'helper',
817
- 'id': 22
818
- },
819
- 'chartProjection': {
820
- 'title': 'Gas Savings',
821
- 'subtitle': 'therms'
822
- }
823
- }
824
- ],
825
- 'hasHelper': {
826
- 'type': 'helper',
827
- 'id': 25
828
- }
829
- }
830
- ],
831
- columnGroups: [
832
- {
833
- 'order': 0,
834
- 'key': 'fixed_columns',
835
- 'title': 'Cost-Effectiveness',
836
- 'columns': [
837
- {
838
- 'isActive': true,
839
- 'key': 'tdv_benefit_to_cost_ratio',
840
- 'title': 'TDV',
841
- 'description': '≥ 1.0 is cost effective',
842
- 'isChart': true,
843
- 'hasHelper': {
844
- 'type': 'helper',
845
- 'id': 1
846
- }
847
- }
848
- ],
849
- 'hasHelper': {
850
- 'type': 'helper',
851
- 'id': 23
852
- }
853
- },
854
- {
855
- 'order': 2,
856
- 'key': 'city_wide_impact',
857
- 'title': 'Wide Impact',
858
- 'columns': [
859
- {
860
- 'isActive': true,
861
- 'key': 'forecast_units_affected',
862
- 'title': 'Affected Units',
863
- 'description': '(lifecycle)',
864
- 'hasProjections': true,
865
- 'hasHelper': {
866
- 'type': 'helper',
867
- 'id': 17
868
- },
869
- 'chartProjection': {
870
- 'title': 'Number of Affected Units',
871
- 'subtitle': ''
872
- }
873
- },
874
- {
875
- 'isActive': true,
876
- 'key': 'forecast_initial_cost',
877
- 'title': 'Compliance Cost',
878
- 'description': '(lifecycle)',
879
- 'hasProjections': true,
880
- 'hasHelper': {
881
- 'type': 'helper',
882
- 'id': 20
883
- },
884
- 'chartProjection': {
885
- 'title': 'Compliance Cost',
886
- 'subtitle': ''
887
- }
888
- },
889
- {
890
- 'isActive': true,
891
- 'key': 'forecast_emissions_savings',
892
- 'title': 'Emissions Reductions',
893
- 'description': '(lifecycle MTCO2e)',
894
- 'hasProjections': true,
895
- 'hasHelper': {
896
- 'type': 'helper',
897
- 'id': 18
898
- },
899
- 'chartProjection': {
900
- 'title': 'Emissions Reductions',
901
- 'subtitle': 'MTCO2e'
902
- }
903
- },
904
- {
905
- 'isActive': true,
906
- 'key': 'forecast_lifecycle_savings',
907
- 'title': 'Lifecycle Savings',
908
- 'description': '(on-bill)',
909
- 'hasProjections': true,
910
- 'hasHelper': {
911
- 'type': 'helper',
912
- 'id': 19
913
- },
914
- 'chartProjection': {
915
- 'title': 'Bill Savings',
916
- 'subtitle': ''
917
- }
918
- },
919
- {
920
- 'isActive': true,
921
- 'key': 'forecast_kwh_savings',
922
- 'title': 'Electricity Savings',
923
- 'description': '(lifecycle kWh)',
924
- 'hasProjections': true,
925
- 'hasHelper': {
926
- 'type': 'helper',
927
- 'id': 21
928
- },
929
- 'chartProjection': {
930
- 'title': 'Electricity Savings',
931
- 'subtitle': 'kWh'
932
- }
933
- },
934
- {
935
- 'isActive': true,
936
- 'key': 'forecast_therms_savings',
937
- 'title': 'Gas Savings',
938
- 'description': '(lifecycle therms)',
939
- 'hasProjections': true,
940
- 'hasHelper': {
941
- 'type': 'helper',
942
- 'id': 22
943
- },
944
- 'chartProjection': {
945
- 'title': 'Gas Savings',
946
- 'subtitle': 'therms'
947
- }
948
- }
949
- ],
950
- 'hasHelper': {
951
- 'type': 'helper',
952
- 'id': 25
953
- }
954
- }
955
- ],
956
- comparisonColumnGroups: [
957
- {
958
- 'order': 2,
959
- 'key': 'city_wide_estimates',
960
- 'title': 'City-wide Impact Estimates',
961
- 'columns': [
962
- {
963
- 'isActive': true,
964
- 'key': 'forecast_units_affected',
965
- 'title': 'Affected Units',
966
- 'description': '(lifecycle)',
967
- 'hasProjections': true,
968
- 'hasHelper': {
969
- 'type': 'helper',
970
- 'id': 17
971
- },
972
- 'isChart': false,
973
- 'renderType': RENDER_TYPE.BAR_CHART
974
- },
975
- {
976
- 'isActive': true,
977
- 'key': 'forecast_emissions_savings',
978
- 'title': 'Emissions Reductions',
979
- 'description': '(lifecycle MTCO2e)',
980
- 'hasProjections': true,
981
- 'hasHelper': {
982
- 'type': 'helper',
983
- 'id': 18
984
- },
985
- 'isChart': false,
986
- 'renderType': RENDER_TYPE.BAR_CHART
987
- },
988
- {
989
- 'isActive': true,
990
- 'key': 'forecast_lifecycle_savings',
991
- 'title': 'Lifecycle Savings',
992
- 'description': '(on-bill)',
993
- 'hasProjections': true,
994
- 'hasHelper': {
995
- 'type': 'helper',
996
- 'id': 19
997
- },
998
- 'isChart': false,
999
- 'renderType': RENDER_TYPE.BAR_CHART
1000
- }
1001
- ],
1002
- 'hasHelper': {
1003
- 'type': 'helper',
1004
- 'slug': 'comparison-tables-city_wide_estimates'
1005
- }
1006
- },
1007
- {
1008
- 'order': 3,
1009
- 'key': 'policy_requirements',
1010
- 'title': 'Policy Requirements',
1011
- 'columns': [
1012
- {
1013
- 'isActive': true,
1014
- 'key': 'multifamily',
1015
- 'title': 'Multifamily',
1016
- 'description': '',
1017
- 'hasHelper': {
1018
- 'type': 'helper',
1019
- 'id': 1
1020
- },
1021
- 'isScope': true,
1022
- 'renderType': RENDER_TYPE.TAG_SCOPE
1023
- },
1024
- {
1025
- 'isActive': true,
1026
- 'key': 'single_family',
1027
- 'title': 'Single Family',
1028
- 'description': '',
1029
- 'isChart': false,
1030
- 'hasHelper': {
1031
- 'type': 'helper',
1032
- 'id': 2
1033
- },
1034
- 'renderType': RENDER_TYPE.TAG_SCOPE
1035
- },
1036
- {
1037
- 'isActive': true,
1038
- 'key': 'zone_7',
1039
- 'title': 'Zone 7',
1040
- 'description': '',
1041
- 'isChart': false,
1042
- 'hasHelper': {
1043
- 'type': 'helper',
1044
- 'id': 3
1045
- },
1046
- 'renderType': RENDER_TYPE.TAG_SCOPE
1047
- },
1048
- {
1049
- 'isActive': true,
1050
- 'key': 'zone_10',
1051
- 'title': 'Zone 10',
1052
- 'description': '',
1053
- 'isChart': false,
1054
- 'hasHelper': {
1055
- 'type': 'helper',
1056
- 'id': 4
1057
- },
1058
- 'renderType': RENDER_TYPE.TAG_SCOPE
1059
- }
1060
- ],
1061
- 'hasHelper': {
1062
- 'type': 'helper',
1063
- 'id': 23
1064
- }
1065
- },
1066
- {
1067
- 'order': 4,
1068
- 'key': 'city_wide_impact_assumptions',
1069
- 'title': 'City-Wide Impact Assumptions',
1070
- 'columns': [
1071
- {
1072
- 'isActive': true,
1073
- 'key': 'multifamily',
1074
- 'title': 'Multifamily',
1075
- 'description': '',
1076
- 'hasHelper': {
1077
- 'type': 'helper',
1078
- 'id': 1
1079
- },
1080
- 'renderType': RENDER_TYPE.TAG_SCOPE
1081
- },
1082
- {
1083
- 'isActive': true,
1084
- 'key': 'single_family',
1085
- 'title': 'Single Family',
1086
- 'description': '',
1087
- 'hasHelper': {
1088
- 'type': 'helper',
1089
- 'id': 2
1090
- },
1091
- 'renderType': RENDER_TYPE.TAG_SCOPE
1092
- },
1093
- {
1094
- 'isActive': true,
1095
- 'key': 'city_and_policy',
1096
- 'title': 'City and Policy',
1097
- 'description': '',
1098
- 'hasHelper': {
1099
- 'type': 'helper',
1100
- 'id': 3
1101
- },
1102
- 'renderType': RENDER_TYPE.TAG_SCOPE
1103
- },
1104
- ],
1105
- 'hasHelper': {
1106
- 'type': 'helper',
1107
- 'id': 23
1108
- }
1109
- },
1110
- ],
1111
- summaryData: [
1112
- {
1113
- 'data': {
1114
- 'forecast_units_affected': 337.5,
1115
- 'forecast_emissions_savings': -1470.2228427746163,
1116
- 'forecast_therms_savings': -365783.4118312498,
1117
- 'forecast_kwh_savings': 5790873.440625001,
1118
- 'forecast_lifecycle_savings': 1384353.6577500012,
1119
- 'forecast_initial_cost': 840955.172375,
1120
- 'initial_cost': -744.7994892592594,
1121
- 'annual_bill_savings_avg': null,
1122
- 'annual_bill_savings': -229.11570370370367,
1123
- 'emissions_savings': 0.5992222222222222,
1124
- 'kwh_savings': -1596.6407407407407,
1125
- 'therms_savings': 134.17952962962963,
1126
- 'lifecycle_savings': -3470.4795667037033,
1127
- 'compliance_margin': 6.797037037037037,
1128
- 'baseline_fuel_type': 'Mixed-fuel',
1129
- 'energy_savings_combined': 7.96989981162963,
1130
- 'on_bill_cost_ratio': 0.9328797158714975,
1131
- 'tdv_benefit_to_cost_ratio': 1.327363515218667,
1132
- 'simple_payback': 4.842552503682514,
1133
- 'tdv2022_benefit_to_cost_ratio': 0
1134
- },
1135
- 'deep': 0,
1136
- 'id': 'policy',
1137
- 'title': 'Total Impact',
1138
- 'items': [
1139
- {
1140
- 'data': {
1141
- 'forecast_units_affected': 77.5,
1142
- 'forecast_emissions_savings': 1427.3145433224304,
1143
- 'forecast_therms_savings': 296624.89395,
1144
- 'forecast_kwh_savings': -2102697.449999999,
1145
- 'forecast_lifecycle_savings': 19620.35775000001,
1146
- 'forecast_initial_cost': 408160,
1147
- 'initial_cost': 2014,
1148
- 'annual_bill_savings_avg': null,
1149
- 'annual_bill_savings': -439.0199999999999,
1150
- 'emissions_savings': 2.045,
1151
- 'kwh_savings': -3999,
1152
- 'therms_savings': 400.1415,
1153
- 'lifecycle_savings': -4160.687805,
1154
- 'compliance_margin': 29.6,
1155
- 'baseline_fuel_type': 'Mixed-fuel',
1156
- 'energy_savings_combined': 26.36819047,
1157
- 'on_bill_cost_ratio': 1.460322707,
1158
- 'tdv_benefit_to_cost_ratio': 1.42,
1159
- 'simple_payback': 0,
1160
- 'tdv2022_benefit_to_cost_ratio': 0
1161
- },
1162
- 'deep': 1,
1163
- 'id': 'policy:container-2459',
1164
- 'title': 'New Single Family Units',
1165
- 'items': [
1166
- {
1167
- 'data': {
1168
- 'forecast_units_affected': 77.5,
1169
- 'forecast_emissions_savings': 1427.3145433224304,
1170
- 'forecast_therms_savings': 296624.89395,
1171
- 'forecast_kwh_savings': -2102697.449999999,
1172
- 'forecast_lifecycle_savings': 19620.35775000001,
1173
- 'forecast_initial_cost': 408160,
1174
- 'initial_cost': 2014,
1175
- 'annual_bill_savings_avg': null,
1176
- 'annual_bill_savings': -439.0199999999999,
1177
- 'emissions_savings': 2.045,
1178
- 'kwh_savings': -3999,
1179
- 'therms_savings': 400.1415,
1180
- 'lifecycle_savings': -4160.687805,
1181
- 'compliance_margin': 29.6,
1182
- 'baseline_fuel_type': 'Mixed-fuel',
1183
- 'energy_savings_combined': 26.36819047,
1184
- 'on_bill_cost_ratio': 1.460322707,
1185
- 'tdv_benefit_to_cost_ratio': 1.42,
1186
- 'simple_payback': 0,
1187
- 'tdv2022_benefit_to_cost_ratio': 0
1188
- },
1189
- 'deep': 2,
1190
- 'id': 'policy:container-2459:climateZone-1-PGE',
1191
- 'title': 'Climate Zone 1',
1192
- 'items': [
1193
- {
1194
- 'data': {
1195
- 'forecast_units_affected': 77.5,
1196
- 'forecast_emissions_savings': 1427.3145433224304,
1197
- 'forecast_therms_savings': 296624.89395,
1198
- 'forecast_kwh_savings': -2102697.449999999,
1199
- 'forecast_lifecycle_savings': 19620.35775000001,
1200
- 'forecast_initial_cost': 408160,
1201
- 'initial_cost': 2014,
1202
- 'annual_bill_savings': -439.02,
1203
- 'emissions_savings': 2.045,
1204
- 'kwh_savings': -3999,
1205
- 'therms_savings': 400.1415,
1206
- 'lifecycle_savings': -4160.687805,
1207
- 'compliance_margin': 29.6,
1208
- 'baseline_fuel_type': 'Mixed-fuel',
1209
- 'energy_savings_combined': 26.36819047,
1210
- 'on_bill_cost_ratio': 1.460322707,
1211
- 'tdv_benefit_to_cost_ratio': 1.42,
1212
- 'simple_payback': 0,
1213
- 'tdv2022_benefit_to_cost_ratio': null
1214
- },
1215
- 'deep': 3,
1216
- 'id': 'policy:container-2459:climateZone-1-PGE:fuel-all-electric',
1217
- 'title': 'All Electric',
1218
- 'items': null,
1219
- 'is_disabled': false,
1220
- 'is_last': false,
1221
- 'index': '0-0-0-0',
1222
- 'last_deep': true
1223
- },
1224
- {
1225
- 'data': {
1226
- 'initial_cost': 1806.25,
1227
- 'annual_bill_savings': 186.04,
1228
- 'emissions_savings': 0.42,
1229
- 'kwh_savings': 89.395,
1230
- 'therms_savings': 68.604,
1231
- 'lifecycle_savings': 5647.744375,
1232
- 'compliance_margin': 11.95,
1233
- 'baseline_fuel_type': 'Mixed-fuel',
1234
- 'energy_savings_combined': 7.16541574,
1235
- 'on_bill_cost_ratio': 2.784541829,
1236
- 'tdv_benefit_to_cost_ratio': 2.75,
1237
- 'simple_payback': 9.708831573,
1238
- 'tdv2022_benefit_to_cost_ratio': null
1239
- },
1240
- 'deep': 3,
1241
- 'id': 'policy:container-2459:climateZone-1-PGE:fuel-mixed-fuel',
1242
- 'title': 'Mixed-fuel',
1243
- 'items': null,
1244
- 'is_disabled': true,
1245
- 'is_last': true,
1246
- 'index': '0-0-0-1',
1247
- 'last_deep': true
1248
- }
1249
- ],
1250
- 'is_disabled': false,
1251
- 'is_last': true,
1252
- 'index': '0-0-0',
1253
- 'last_deep': false
1254
- }
1255
- ],
1256
- 'is_disabled': false,
1257
- 'is_last': false,
1258
- 'index': '0-0',
1259
- 'last_deep': false
1260
- },
1261
- {
1262
- 'data': {
1263
- 'forecast_units_affected': 260,
1264
- 'forecast_emissions_savings': -2897.5373860970467,
1265
- 'forecast_therms_savings': -662408.3057812498,
1266
- 'forecast_kwh_savings': 7893570.890625,
1267
- 'forecast_lifecycle_savings': 1364733.3000000012,
1268
- 'forecast_initial_cost': 432795.17237499997,
1269
- 'initial_cost': -1567.1339524038463,
1270
- 'annual_bill_savings_avg': null,
1271
- 'annual_bill_savings': -166.54807692307693,
1272
- 'emissions_savings': 0.16826923076923078,
1273
- 'kwh_savings': -880.5528846153846,
1274
- 'therms_savings': 54.902403846153845,
1275
- 'lifecycle_savings': -3264.74441875,
1276
- 'compliance_margin': 0,
1277
- 'baseline_fuel_type': 'Mixed-fuel',
1278
- 'energy_savings_combined': 2.4857939423076925,
1279
- 'on_bill_cost_ratio': 0.435459354,
1280
- 'tdv_benefit_to_cost_ratio': 1.2400000000000002,
1281
- 'simple_payback': 9.409461647,
1282
- 'tdv2022_benefit_to_cost_ratio': 0
1283
- },
1284
- 'deep': 1,
1285
- 'id': 'policy:container-2539',
1286
- 'title': 'New ADUs',
1287
- 'items': [
1288
- {
1289
- 'data': {
1290
- 'forecast_units_affected': 260,
1291
- 'forecast_emissions_savings': -2897.5373860970467,
1292
- 'forecast_therms_savings': -662408.3057812498,
1293
- 'forecast_kwh_savings': 7893570.890625,
1294
- 'forecast_lifecycle_savings': 1364733.3000000012,
1295
- 'forecast_initial_cost': 432795.17237499997,
1296
- 'initial_cost': -1567.1339524038463,
1297
- 'annual_bill_savings_avg': null,
1298
- 'annual_bill_savings': -166.54807692307693,
1299
- 'emissions_savings': 0.16826923076923078,
1300
- 'kwh_savings': -880.5528846153846,
1301
- 'therms_savings': 54.902403846153845,
1302
- 'lifecycle_savings': -3264.74441875,
1303
- 'compliance_margin': 0,
1304
- 'baseline_fuel_type': 'Mixed-fuel',
1305
- 'energy_savings_combined': 2.4857939423076925,
1306
- 'on_bill_cost_ratio': 0.435459354,
1307
- 'tdv_benefit_to_cost_ratio': 1.2400000000000002,
1308
- 'simple_payback': 9.409461647,
1309
- 'tdv2022_benefit_to_cost_ratio': 0
1310
- },
1311
- 'deep': 2,
1312
- 'id': 'policy:container-2539:climateZone-1-PGE',
1313
- 'title': 'Climate Zone 1',
1314
- 'items': [
1315
- {
1316
- 'data': {
1317
- 'forecast_units_affected': 125,
1318
- 'forecast_emissions_savings': -2897.5373860970467,
1319
- 'forecast_therms_savings': -662408.3057812498,
1320
- 'forecast_kwh_savings': 7893570.890625,
1321
- 'forecast_lifecycle_savings': 1364733.3000000012,
1322
- 'forecast_initial_cost': 432795.17237499997,
1323
- 'initial_cost': -3259.638621,
1324
- 'annual_bill_savings': -346.42,
1325
- 'emissions_savings': 0.35,
1326
- 'kwh_savings': -1831.55,
1327
- 'therms_savings': 114.197,
1328
- 'lifecycle_savings': -6790.668391,
1329
- 'compliance_margin': 0,
1330
- 'baseline_fuel_type': 'Mixed-fuel',
1331
- 'energy_savings_combined': 5.1704514,
1332
- 'on_bill_cost_ratio': 0.435459354,
1333
- 'tdv_benefit_to_cost_ratio': 1.24,
1334
- 'simple_payback': 9.409461647,
1335
- 'tdv2022_benefit_to_cost_ratio': null
1336
- },
1337
- 'deep': 3,
1338
- 'id': 'policy:container-2539:climateZone-1-PGE:fuel-all-electric',
1339
- 'title': 'All Electric',
1340
- 'items': null,
1341
- 'is_disabled': false,
1342
- 'is_last': false,
1343
- 'index': '0-1-0-0',
1344
- 'last_deep': true
1345
- },
1346
- {
1347
- 'data': {
1348
- 'forecast_units_affected': 135,
1349
- 'initial_cost': 0,
1350
- 'annual_bill_savings': 0,
1351
- 'emissions_savings': 0,
1352
- 'kwh_savings': 0,
1353
- 'therms_savings': 0,
1354
- 'lifecycle_savings': 0,
1355
- 'compliance_margin': 0,
1356
- 'baseline_fuel_type': 'Mixed-fuel',
1357
- 'energy_savings_combined': 0,
1358
- 'on_bill_cost_ratio': 0,
1359
- 'tdv_benefit_to_cost_ratio': 0,
1360
- 'simple_payback': 0,
1361
- 'tdv2022_benefit_to_cost_ratio': null
1362
- },
1363
- 'deep': 3,
1364
- 'id': 'policy:container-2539:climateZone-1-PGE:fuel-mixed-fuel',
1365
- 'title': 'Mixed-fuel',
1366
- 'items': null,
1367
- 'is_disabled': false,
1368
- 'is_last': true,
1369
- 'index': '0-1-0-1',
1370
- 'last_deep': true
1371
- }
1372
- ],
1373
- 'is_disabled': false,
1374
- 'is_last': true,
1375
- 'index': '0-1-0',
1376
- 'last_deep': false
1377
- }
1378
- ],
1379
- 'is_disabled': false,
1380
- 'is_last': true,
1381
- 'index': '0-1',
1382
- 'last_deep': false
1383
- }
1384
- ],
1385
- 'is_disabled': false,
1386
- 'index': '0',
1387
- 'last_deep': false
1388
- }
1389
- ],
1390
- summaryDataComparison: [
1391
- {
1392
- 'data': {
1393
- 'forecast_units_affected': 77.5,
1394
- 'forecast_emissions_savings': 1427.3145433224304,
1395
- 'forecast_lifecycle_savings': 296624.89395,
1396
- 'multifamily': true,
1397
- 'single_family': true,
1398
- 'zone_7': true,
1399
- 'zone_10': true,
1400
- 'city_and_policy': 'Default',
1401
- },
1402
- 'deep': 1,
1403
- 'id': 'policy:container-2459',
1404
- 'title': 'Policy name lorem ipsum dolor',
1405
- 'has_badge': RENDER_BADGE.AFFECTED_UNITS,
1406
- 'items': [
1407
- {
1408
- 'data': {
1409
- 'forecast_units_affected': 0,
1410
- 'forecast_emissions_savings': 0,
1411
- 'forecast_lifecycle_savings': 0,
1412
- 'multifamily': true,
1413
- 'single_family': true,
1414
- 'zone_7': false,
1415
- 'zone_10': false,
1416
- 'city_and_policy': false,
1417
- },
1418
- 'deep': 2,
1419
- 'id': 'policy:container-2459:climateZone-1-PGE',
1420
- 'title': '',
1421
- 'items': null,
1422
- 'is_disabled': false,
1423
- 'is_last': true,
1424
- 'index': '0-0-0',
1425
- 'last_deep': false
1426
- }
1427
- ],
1428
- 'is_disabled': false,
1429
- 'is_last': false,
1430
- 'index': '0-0',
1431
- 'last_deep': false
1432
- },
1433
- {
1434
- 'data': {
1435
- 'forecast_units_affected': 260,
1436
- 'forecast_emissions_savings': -2897.5373860970467,
1437
- 'forecast_lifecycle_savings': -662408.3057812498,
1438
- 'multifamily': true,
1439
- 'single_family': true,
1440
- 'zone_7': true,
1441
- 'zone_10': true,
1442
- 'city_and_policy': 'Default',
1443
- },
1444
- 'deep': 1,
1445
- 'id': 'policy:container-2539',
1446
- 'title': 'Policy name lorem ipsum dolor',
1447
- 'has_badge': RENDER_BADGE.EMISSION_REDICTIONS,
1448
- 'items': [
1449
- {
1450
- 'data': {
1451
- 'forecast_units_affected': 0,
1452
- 'forecast_emissions_savings': 0,
1453
- 'forecast_lifecycle_savings': 0,
1454
- 'multifamily': true,
1455
- 'single_family': false,
1456
- 'zone_7': false,
1457
- 'zone_10': false,
1458
- 'city_and_policy': false,
1459
- },
1460
- 'deep': 2,
1461
- 'id': 'policy:container-2539:climateZone-1-PGE',
1462
- 'title': '',
1463
- 'items': null,
1464
- 'is_disabled': false,
1465
- 'is_last': true,
1466
- 'index': '0-1-0',
1467
- 'last_deep': false
1468
- }
1469
- ],
1470
- 'is_disabled': false,
1471
- 'is_last': true,
1472
- 'index': '0-1',
1473
- 'last_deep': false
1474
- }
1475
- ],
66
+ export const Comparison = TableResults.bind({})
67
+ Comparison.args = {
68
+ layout: 'comparison',
69
+ header: comparisonDataHeader,
70
+ columnGroups: comparisonDataColumnGroup,
71
+ summaryData: comparisonDataSummary,
1476
72
  footer: [],
1477
73
  showRowsCollapsed: true,
1478
- }
74
+ }
75
+
76
+ export const Flexible = TableResults.bind({})
77
+ Flexible.args = {
78
+ layout: 'flexible',
79
+ header: flexibleDataHeader,
80
+ columnGroups: flexibleDataColumnGroup,
81
+ summaryData: flexibleDataSummary,
82
+ tableMaxHeight: 'auto',
83
+ footer: [],
84
+ showRowsCollapsed: false
85
+ }
86
+
87
+ // const TableSimple = (args, { argTypes }) => ({
88
+ // props: Object.keys(argTypes),
89
+ // components: { PsTableResults, PsTableResultsHead },
90
+ // template: `
91
+ // <div style="width:100%;">
92
+ // <PsTableResults v-bind="$props">
93
+ // <template v-slot:header>
94
+ // <PsTableResultsHead v-bind="$props" />
95
+ // </template>
96
+ // </PsTableResults>
97
+ // </div>
98
+ // `
99
+ // })
100
+
101
+ // export const Simple = TableSimple.bind({})
102
+ // Simple.args = {
103
+ // layout: 'results',
104
+ // header: [
105
+ // {
106
+ // 'order': 0,
107
+ // 'key': 'fixed_columns',
108
+ // 'title': 'Cost-Effectiveness',
109
+ // 'columns': [
110
+ // {
111
+ // 'isActive': true,
112
+ // 'key': 'tdv_benefit_to_cost_ratio',
113
+ // 'title': 'TDV',
114
+ // 'description': '≥ 1.0 is cost effective',
115
+ // 'isChart': true,
116
+ // 'hasHelper': {
117
+ // 'type': 'helper',
118
+ // 'id': 1
119
+ // }
120
+ // }
121
+ // ],
122
+ // 'hasHelper': {
123
+ // 'type': 'helper',
124
+ // 'id': 23
125
+ // }
126
+ // },
127
+ // {
128
+ // 'order': 2,
129
+ // 'key': 'city_wide_impact',
130
+ // 'title': 'Wide Impact',
131
+ // 'columns': [
132
+ // {
133
+ // 'isActive': true,
134
+ // 'key': 'forecast_units_affected',
135
+ // 'title': 'Affected Units',
136
+ // 'description': '(lifecycle)',
137
+ // 'hasProjections': true,
138
+ // 'hasHelper': {
139
+ // 'type': 'helper',
140
+ // 'id': 17
141
+ // },
142
+ // 'chartProjection': {
143
+ // 'title': 'Number of Affected Units',
144
+ // 'subtitle': ''
145
+ // }
146
+ // },
147
+ // {
148
+ // 'isActive': true,
149
+ // 'key': 'forecast_initial_cost',
150
+ // 'title': 'Compliance Cost',
151
+ // 'description': '(lifecycle)',
152
+ // 'hasProjections': true,
153
+ // 'hasHelper': {
154
+ // 'type': 'helper',
155
+ // 'id': 20
156
+ // },
157
+ // 'chartProjection': {
158
+ // 'title': 'Compliance Cost',
159
+ // 'subtitle': ''
160
+ // }
161
+ // },
162
+ // {
163
+ // 'isActive': true,
164
+ // 'key': 'forecast_emissions_savings',
165
+ // 'title': 'Emissions Reductions',
166
+ // 'description': '(lifecycle MTCO2e)',
167
+ // 'hasProjections': true,
168
+ // 'hasHelper': {
169
+ // 'type': 'helper',
170
+ // 'id': 18
171
+ // },
172
+ // 'chartProjection': {
173
+ // 'title': 'Emissions Reductions',
174
+ // 'subtitle': 'MTCO2e'
175
+ // }
176
+ // },
177
+ // {
178
+ // 'isActive': true,
179
+ // 'key': 'forecast_lifecycle_savings',
180
+ // 'title': 'Lifecycle Savings',
181
+ // 'description': '(on-bill)',
182
+ // 'hasProjections': true,
183
+ // 'hasHelper': {
184
+ // 'type': 'helper',
185
+ // 'id': 19
186
+ // },
187
+ // 'chartProjection': {
188
+ // 'title': 'Bill Savings',
189
+ // 'subtitle': ''
190
+ // }
191
+ // },
192
+ // {
193
+ // 'isActive': true,
194
+ // 'key': 'forecast_kwh_savings',
195
+ // 'title': 'Electricity Savings',
196
+ // 'description': '(lifecycle kWh)',
197
+ // 'hasProjections': true,
198
+ // 'hasHelper': {
199
+ // 'type': 'helper',
200
+ // 'id': 21
201
+ // },
202
+ // 'chartProjection': {
203
+ // 'title': 'Electricity Savings',
204
+ // 'subtitle': 'kWh'
205
+ // }
206
+ // },
207
+ // {
208
+ // 'isActive': true,
209
+ // 'key': 'forecast_therms_savings',
210
+ // 'title': 'Gas Savings',
211
+ // 'description': '(lifecycle therms)',
212
+ // 'hasProjections': true,
213
+ // 'hasHelper': {
214
+ // 'type': 'helper',
215
+ // 'id': 22
216
+ // },
217
+ // 'chartProjection': {
218
+ // 'title': 'Gas Savings',
219
+ // 'subtitle': 'therms'
220
+ // }
221
+ // }
222
+ // ],
223
+ // 'hasHelper': {
224
+ // 'type': 'helper',
225
+ // 'id': 25
226
+ // }
227
+ // }
228
+ // ],
229
+ // columnGroups: [
230
+ // {
231
+ // 'order': 0,
232
+ // 'key': 'fixed_columns',
233
+ // 'title': 'Cost-Effectiveness',
234
+ // 'columns': [
235
+ // {
236
+ // 'isActive': true,
237
+ // 'key': 'tdv_benefit_to_cost_ratio',
238
+ // 'title': 'TDV',
239
+ // 'description': '≥ 1.0 is cost effective',
240
+ // 'isChart': true,
241
+ // 'hasHelper': {
242
+ // 'type': 'helper',
243
+ // 'id': 1
244
+ // }
245
+ // }
246
+ // ],
247
+ // 'hasHelper': {
248
+ // 'type': 'helper',
249
+ // 'id': 23
250
+ // }
251
+ // },
252
+ // {
253
+ // 'order': 2,
254
+ // 'key': 'city_wide_impact',
255
+ // 'title': 'Wide Impact',
256
+ // 'columns': [
257
+ // {
258
+ // 'isActive': true,
259
+ // 'key': 'forecast_units_affected',
260
+ // 'title': 'Affected Units',
261
+ // 'description': '(lifecycle)',
262
+ // 'hasProjections': true,
263
+ // 'hasHelper': {
264
+ // 'type': 'helper',
265
+ // 'id': 17
266
+ // },
267
+ // 'chartProjection': {
268
+ // 'title': 'Number of Affected Units',
269
+ // 'subtitle': ''
270
+ // }
271
+ // },
272
+ // {
273
+ // 'isActive': true,
274
+ // 'key': 'forecast_initial_cost',
275
+ // 'title': 'Compliance Cost',
276
+ // 'description': '(lifecycle)',
277
+ // 'hasProjections': true,
278
+ // 'hasHelper': {
279
+ // 'type': 'helper',
280
+ // 'id': 20
281
+ // },
282
+ // 'chartProjection': {
283
+ // 'title': 'Compliance Cost',
284
+ // 'subtitle': ''
285
+ // }
286
+ // },
287
+ // {
288
+ // 'isActive': true,
289
+ // 'key': 'forecast_emissions_savings',
290
+ // 'title': 'Emissions Reductions',
291
+ // 'description': '(lifecycle MTCO2e)',
292
+ // 'hasProjections': true,
293
+ // 'hasHelper': {
294
+ // 'type': 'helper',
295
+ // 'id': 18
296
+ // },
297
+ // 'chartProjection': {
298
+ // 'title': 'Emissions Reductions',
299
+ // 'subtitle': 'MTCO2e'
300
+ // }
301
+ // },
302
+ // {
303
+ // 'isActive': true,
304
+ // 'key': 'forecast_lifecycle_savings',
305
+ // 'title': 'Lifecycle Savings',
306
+ // 'description': '(on-bill)',
307
+ // 'hasProjections': true,
308
+ // 'hasHelper': {
309
+ // 'type': 'helper',
310
+ // 'id': 19
311
+ // },
312
+ // 'chartProjection': {
313
+ // 'title': 'Bill Savings',
314
+ // 'subtitle': ''
315
+ // }
316
+ // },
317
+ // {
318
+ // 'isActive': true,
319
+ // 'key': 'forecast_kwh_savings',
320
+ // 'title': 'Electricity Savings',
321
+ // 'description': '(lifecycle kWh)',
322
+ // 'hasProjections': true,
323
+ // 'hasHelper': {
324
+ // 'type': 'helper',
325
+ // 'id': 21
326
+ // },
327
+ // 'chartProjection': {
328
+ // 'title': 'Electricity Savings',
329
+ // 'subtitle': 'kWh'
330
+ // }
331
+ // },
332
+ // {
333
+ // 'isActive': true,
334
+ // 'key': 'forecast_therms_savings',
335
+ // 'title': 'Gas Savings',
336
+ // 'description': '(lifecycle therms)',
337
+ // 'hasProjections': true,
338
+ // 'hasHelper': {
339
+ // 'type': 'helper',
340
+ // 'id': 22
341
+ // },
342
+ // 'chartProjection': {
343
+ // 'title': 'Gas Savings',
344
+ // 'subtitle': 'therms'
345
+ // }
346
+ // }
347
+ // ],
348
+ // 'hasHelper': {
349
+ // 'type': 'helper',
350
+ // 'id': 25
351
+ // }
352
+ // }
353
+ // ],
354
+ // summaryData: [
355
+ // {
356
+ // 'data': {
357
+ // 'forecast_units_affected': 337.5,
358
+ // 'forecast_emissions_savings': -1470.2228427746163,
359
+ // 'forecast_therms_savings': -365783.4118312498,
360
+ // 'forecast_kwh_savings': 5790873.440625001,
361
+ // 'forecast_lifecycle_savings': 1384353.6577500012,
362
+ // 'forecast_initial_cost': 840955.172375,
363
+ // 'initial_cost': -744.7994892592594,
364
+ // 'annual_bill_savings_avg': null,
365
+ // 'annual_bill_savings': -229.11570370370367,
366
+ // 'emissions_savings': 0.5992222222222222,
367
+ // 'kwh_savings': -1596.6407407407407,
368
+ // 'therms_savings': 134.17952962962963,
369
+ // 'lifecycle_savings': -3470.4795667037033,
370
+ // 'compliance_margin': 6.797037037037037,
371
+ // 'baseline_fuel_type': 'Mixed-fuel',
372
+ // 'energy_savings_combined': 7.96989981162963,
373
+ // 'on_bill_cost_ratio': 0.9328797158714975,
374
+ // 'tdv_benefit_to_cost_ratio': 1.327363515218667,
375
+ // 'simple_payback': 4.842552503682514,
376
+ // 'tdv2022_benefit_to_cost_ratio': 0
377
+ // },
378
+ // 'deep': 0,
379
+ // 'id': 'policy',
380
+ // 'title': 'Total Impact',
381
+ // 'items': [
382
+ // {
383
+ // 'data': {
384
+ // 'forecast_units_affected': 77.5,
385
+ // 'forecast_emissions_savings': 1427.3145433224304,
386
+ // 'forecast_therms_savings': 296624.89395,
387
+ // 'forecast_kwh_savings': -2102697.449999999,
388
+ // 'forecast_lifecycle_savings': 19620.35775000001,
389
+ // 'forecast_initial_cost': 408160,
390
+ // 'initial_cost': 2014,
391
+ // 'annual_bill_savings_avg': null,
392
+ // 'annual_bill_savings': -439.0199999999999,
393
+ // 'emissions_savings': 2.045,
394
+ // 'kwh_savings': -3999,
395
+ // 'therms_savings': 400.1415,
396
+ // 'lifecycle_savings': -4160.687805,
397
+ // 'compliance_margin': 29.6,
398
+ // 'baseline_fuel_type': 'Mixed-fuel',
399
+ // 'energy_savings_combined': 26.36819047,
400
+ // 'on_bill_cost_ratio': 1.460322707,
401
+ // 'tdv_benefit_to_cost_ratio': 1.42,
402
+ // 'simple_payback': 0,
403
+ // 'tdv2022_benefit_to_cost_ratio': 0
404
+ // },
405
+ // 'deep': 1,
406
+ // 'id': 'policy:container-2459',
407
+ // 'title': 'New Single Family Units',
408
+ // 'items': [
409
+ // {
410
+ // 'data': {
411
+ // 'forecast_units_affected': 77.5,
412
+ // 'forecast_emissions_savings': 1427.3145433224304,
413
+ // 'forecast_therms_savings': 296624.89395,
414
+ // 'forecast_kwh_savings': -2102697.449999999,
415
+ // 'forecast_lifecycle_savings': 19620.35775000001,
416
+ // 'forecast_initial_cost': 408160,
417
+ // 'initial_cost': 2014,
418
+ // 'annual_bill_savings_avg': null,
419
+ // 'annual_bill_savings': -439.0199999999999,
420
+ // 'emissions_savings': 2.045,
421
+ // 'kwh_savings': -3999,
422
+ // 'therms_savings': 400.1415,
423
+ // 'lifecycle_savings': -4160.687805,
424
+ // 'compliance_margin': 29.6,
425
+ // 'baseline_fuel_type': 'Mixed-fuel',
426
+ // 'energy_savings_combined': 26.36819047,
427
+ // 'on_bill_cost_ratio': 1.460322707,
428
+ // 'tdv_benefit_to_cost_ratio': 1.42,
429
+ // 'simple_payback': 0,
430
+ // 'tdv2022_benefit_to_cost_ratio': 0
431
+ // },
432
+ // 'deep': 2,
433
+ // 'id': 'policy:container-2459:climateZone-1-PGE',
434
+ // 'title': 'Climate Zone 1',
435
+ // 'items': [
436
+ // {
437
+ // 'data': {
438
+ // 'forecast_units_affected': 77.5,
439
+ // 'forecast_emissions_savings': 1427.3145433224304,
440
+ // 'forecast_therms_savings': 296624.89395,
441
+ // 'forecast_kwh_savings': -2102697.449999999,
442
+ // 'forecast_lifecycle_savings': 19620.35775000001,
443
+ // 'forecast_initial_cost': 408160,
444
+ // 'initial_cost': 2014,
445
+ // 'annual_bill_savings': -439.02,
446
+ // 'emissions_savings': 2.045,
447
+ // 'kwh_savings': -3999,
448
+ // 'therms_savings': 400.1415,
449
+ // 'lifecycle_savings': -4160.687805,
450
+ // 'compliance_margin': 29.6,
451
+ // 'baseline_fuel_type': 'Mixed-fuel',
452
+ // 'energy_savings_combined': 26.36819047,
453
+ // 'on_bill_cost_ratio': 1.460322707,
454
+ // 'tdv_benefit_to_cost_ratio': 1.42,
455
+ // 'simple_payback': 0,
456
+ // 'tdv2022_benefit_to_cost_ratio': null
457
+ // },
458
+ // 'deep': 3,
459
+ // 'id': 'policy:container-2459:climateZone-1-PGE:fuel-all-electric',
460
+ // 'title': 'All Electric',
461
+ // 'items': null,
462
+ // 'is_disabled': false,
463
+ // 'is_last': false,
464
+ // 'index': '0-0-0-0',
465
+ // 'last_deep': true
466
+ // },
467
+ // {
468
+ // 'data': {
469
+ // 'initial_cost': 1806.25,
470
+ // 'annual_bill_savings': 186.04,
471
+ // 'emissions_savings': 0.42,
472
+ // 'kwh_savings': 89.395,
473
+ // 'therms_savings': 68.604,
474
+ // 'lifecycle_savings': 5647.744375,
475
+ // 'compliance_margin': 11.95,
476
+ // 'baseline_fuel_type': 'Mixed-fuel',
477
+ // 'energy_savings_combined': 7.16541574,
478
+ // 'on_bill_cost_ratio': 2.784541829,
479
+ // 'tdv_benefit_to_cost_ratio': 2.75,
480
+ // 'simple_payback': 9.708831573,
481
+ // 'tdv2022_benefit_to_cost_ratio': null
482
+ // },
483
+ // 'deep': 3,
484
+ // 'id': 'policy:container-2459:climateZone-1-PGE:fuel-mixed-fuel',
485
+ // 'title': 'Mixed-fuel',
486
+ // 'items': null,
487
+ // 'is_disabled': true,
488
+ // 'is_last': true,
489
+ // 'index': '0-0-0-1',
490
+ // 'last_deep': true
491
+ // }
492
+ // ],
493
+ // 'is_disabled': false,
494
+ // 'is_last': false,
495
+ // 'index': '0-0-0',
496
+ // 'last_deep': false
497
+ // },
498
+ // {
499
+ // 'data': {
500
+ // 'forecast_units_affected': 77.5,
501
+ // 'forecast_emissions_savings': 1427.3145433224304,
502
+ // 'forecast_therms_savings': 296624.89395,
503
+ // 'forecast_kwh_savings': -2102697.449999999,
504
+ // 'forecast_lifecycle_savings': 19620.35775000001,
505
+ // 'forecast_initial_cost': 408160,
506
+ // 'initial_cost': 2014,
507
+ // 'annual_bill_savings_avg': null,
508
+ // 'annual_bill_savings': -439.0199999999999,
509
+ // 'emissions_savings': 2.045,
510
+ // 'kwh_savings': -3999,
511
+ // 'therms_savings': 400.1415,
512
+ // 'lifecycle_savings': -4160.687805,
513
+ // 'compliance_margin': 29.6,
514
+ // 'baseline_fuel_type': 'Mixed-fuel',
515
+ // 'energy_savings_combined': 26.36819047,
516
+ // 'on_bill_cost_ratio': 1.460322707,
517
+ // 'tdv_benefit_to_cost_ratio': 1.42,
518
+ // 'simple_payback': 0,
519
+ // 'tdv2022_benefit_to_cost_ratio': 0
520
+ // },
521
+ // 'deep': 2,
522
+ // 'id': 'policy:container-2459:climateZone-2-PGE',
523
+ // 'title': 'Climate Zone 2',
524
+ // 'items': [
525
+ // {
526
+ // 'data': {
527
+ // 'forecast_units_affected': 77.5,
528
+ // 'forecast_emissions_savings': 1427.3145433224304,
529
+ // 'forecast_therms_savings': 296624.89395,
530
+ // 'forecast_kwh_savings': -2102697.449999999,
531
+ // 'forecast_lifecycle_savings': 19620.35775000001,
532
+ // 'forecast_initial_cost': 408160,
533
+ // 'initial_cost': 2014,
534
+ // 'annual_bill_savings': -439.02,
535
+ // 'emissions_savings': 2.045,
536
+ // 'kwh_savings': -3999,
537
+ // 'therms_savings': 400.1415,
538
+ // 'lifecycle_savings': -4160.687805,
539
+ // 'compliance_margin': 29.6,
540
+ // 'baseline_fuel_type': 'Mixed-fuel',
541
+ // 'energy_savings_combined': 26.36819047,
542
+ // 'on_bill_cost_ratio': 1.460322707,
543
+ // 'tdv_benefit_to_cost_ratio': 1.42,
544
+ // 'simple_payback': 0,
545
+ // 'tdv2022_benefit_to_cost_ratio': null
546
+ // },
547
+ // 'deep': 3,
548
+ // 'id': 'policy:container-2459:climateZone-2-PGE:fuel-all-electric',
549
+ // 'title': 'All Electric',
550
+ // 'items': null,
551
+ // 'is_disabled': false,
552
+ // 'is_last': false,
553
+ // 'index': '0-0-0-0',
554
+ // 'last_deep': true
555
+ // },
556
+ // {
557
+ // 'data': {
558
+ // 'initial_cost': 1806.25,
559
+ // 'annual_bill_savings': 186.04,
560
+ // 'emissions_savings': 0.42,
561
+ // 'kwh_savings': 89.395,
562
+ // 'therms_savings': 68.604,
563
+ // 'lifecycle_savings': 5647.744375,
564
+ // 'compliance_margin': 11.95,
565
+ // 'baseline_fuel_type': 'Mixed-fuel',
566
+ // 'energy_savings_combined': 7.16541574,
567
+ // 'on_bill_cost_ratio': 2.784541829,
568
+ // 'tdv_benefit_to_cost_ratio': 2.75,
569
+ // 'simple_payback': 9.708831573,
570
+ // 'tdv2022_benefit_to_cost_ratio': null
571
+ // },
572
+ // 'deep': 3,
573
+ // 'id': 'policy:container-2459:climateZone-2-PGE:fuel-mixed-fuel',
574
+ // 'title': 'Mixed-fuel',
575
+ // 'items': null,
576
+ // 'is_disabled': true,
577
+ // 'is_last': true,
578
+ // 'index': '0-0-0-1',
579
+ // 'last_deep': true
580
+ // }
581
+ // ],
582
+ // 'is_disabled': true,
583
+ // 'is_last': true,
584
+ // 'index': '0-0-1',
585
+ // 'last_deep': false
586
+ // }
587
+ // ],
588
+ // 'is_disabled': false,
589
+ // 'is_last': false,
590
+ // 'index': '0-0',
591
+ // 'last_deep': false
592
+ // },
593
+ // {
594
+ // 'data': {
595
+ // 'forecast_units_affected': 260,
596
+ // 'forecast_emissions_savings': -2897.5373860970467,
597
+ // 'forecast_therms_savings': -662408.3057812498,
598
+ // 'forecast_kwh_savings': 7893570.890625,
599
+ // 'forecast_lifecycle_savings': 1364733.3000000012,
600
+ // 'forecast_initial_cost': 432795.17237499997,
601
+ // 'initial_cost': -1567.1339524038463,
602
+ // 'annual_bill_savings_avg': null,
603
+ // 'annual_bill_savings': -166.54807692307693,
604
+ // 'emissions_savings': 0.16826923076923078,
605
+ // 'kwh_savings': -880.5528846153846,
606
+ // 'therms_savings': 54.902403846153845,
607
+ // 'lifecycle_savings': -3264.74441875,
608
+ // 'compliance_margin': 0,
609
+ // 'baseline_fuel_type': 'Mixed-fuel',
610
+ // 'energy_savings_combined': 2.4857939423076925,
611
+ // 'on_bill_cost_ratio': 0.435459354,
612
+ // 'tdv_benefit_to_cost_ratio': 1.2400000000000002,
613
+ // 'simple_payback': 9.409461647,
614
+ // 'tdv2022_benefit_to_cost_ratio': 0
615
+ // },
616
+ // 'deep': 1,
617
+ // 'id': 'policy:container-2539',
618
+ // 'title': 'New ADUs',
619
+ // 'items': [
620
+ // {
621
+ // 'data': {
622
+ // 'forecast_units_affected': 260,
623
+ // 'forecast_emissions_savings': -2897.5373860970467,
624
+ // 'forecast_therms_savings': -662408.3057812498,
625
+ // 'forecast_kwh_savings': 7893570.890625,
626
+ // 'forecast_lifecycle_savings': 1364733.3000000012,
627
+ // 'forecast_initial_cost': 432795.17237499997,
628
+ // 'initial_cost': -1567.1339524038463,
629
+ // 'annual_bill_savings_avg': null,
630
+ // 'annual_bill_savings': -166.54807692307693,
631
+ // 'emissions_savings': 0.16826923076923078,
632
+ // 'kwh_savings': -880.5528846153846,
633
+ // 'therms_savings': 54.902403846153845,
634
+ // 'lifecycle_savings': -3264.74441875,
635
+ // 'compliance_margin': 0,
636
+ // 'baseline_fuel_type': 'Mixed-fuel',
637
+ // 'energy_savings_combined': 2.4857939423076925,
638
+ // 'on_bill_cost_ratio': 0.435459354,
639
+ // 'tdv_benefit_to_cost_ratio': 1.2400000000000002,
640
+ // 'simple_payback': 9.409461647,
641
+ // 'tdv2022_benefit_to_cost_ratio': 0
642
+ // },
643
+ // 'deep': 2,
644
+ // 'id': 'policy:container-2539:climateZone-1-PGE',
645
+ // 'title': 'Climate Zone 1',
646
+ // 'items': [
647
+ // {
648
+ // 'data': {
649
+ // 'forecast_units_affected': 125,
650
+ // 'forecast_emissions_savings': -2897.5373860970467,
651
+ // 'forecast_therms_savings': -662408.3057812498,
652
+ // 'forecast_kwh_savings': 7893570.890625,
653
+ // 'forecast_lifecycle_savings': 1364733.3000000012,
654
+ // 'forecast_initial_cost': 432795.17237499997,
655
+ // 'initial_cost': -3259.638621,
656
+ // 'annual_bill_savings': -346.42,
657
+ // 'emissions_savings': 0.35,
658
+ // 'kwh_savings': -1831.55,
659
+ // 'therms_savings': 114.197,
660
+ // 'lifecycle_savings': -6790.668391,
661
+ // 'compliance_margin': 0,
662
+ // 'baseline_fuel_type': 'Mixed-fuel',
663
+ // 'energy_savings_combined': 5.1704514,
664
+ // 'on_bill_cost_ratio': 0.435459354,
665
+ // 'tdv_benefit_to_cost_ratio': 1.24,
666
+ // 'simple_payback': 9.409461647,
667
+ // 'tdv2022_benefit_to_cost_ratio': null
668
+ // },
669
+ // 'deep': 3,
670
+ // 'id': 'policy:container-2539:climateZone-1-PGE:fuel-all-electric',
671
+ // 'title': 'All Electric',
672
+ // 'items': null,
673
+ // 'is_disabled': false,
674
+ // 'is_last': false,
675
+ // 'index': '0-1-0-0',
676
+ // 'last_deep': true
677
+ // },
678
+ // {
679
+ // 'data': {
680
+ // 'forecast_units_affected': 135,
681
+ // 'initial_cost': 0,
682
+ // 'annual_bill_savings': 0,
683
+ // 'emissions_savings': 0,
684
+ // 'kwh_savings': 0,
685
+ // 'therms_savings': 0,
686
+ // 'lifecycle_savings': 0,
687
+ // 'compliance_margin': 0,
688
+ // 'baseline_fuel_type': 'Mixed-fuel',
689
+ // 'energy_savings_combined': 0,
690
+ // 'on_bill_cost_ratio': 0,
691
+ // 'tdv_benefit_to_cost_ratio': 0,
692
+ // 'simple_payback': 0,
693
+ // 'tdv2022_benefit_to_cost_ratio': null
694
+ // },
695
+ // 'deep': 3,
696
+ // 'id': 'policy:container-2539:climateZone-1-PGE:fuel-mixed-fuel',
697
+ // 'title': 'Mixed-fuel',
698
+ // 'items': null,
699
+ // 'is_disabled': false,
700
+ // 'is_last': true,
701
+ // 'index': '0-1-0-1',
702
+ // 'last_deep': true
703
+ // }
704
+ // ],
705
+ // 'is_disabled': false,
706
+ // 'is_last': true,
707
+ // 'index': '0-1-0',
708
+ // 'last_deep': false
709
+ // }
710
+ // ],
711
+ // 'is_disabled': false,
712
+ // 'is_last': true,
713
+ // 'index': '0-1',
714
+ // 'last_deep': false
715
+ // }
716
+ // ],
717
+ // 'is_disabled': false,
718
+ // 'index': '0',
719
+ // 'last_deep': false
720
+ // }
721
+ // ],
722
+ // footer: [],
723
+ // showRowsCollapsed: true,
724
+ // }