@policystudio/policy-studio-ui-vue 1.1.90-beta.12 → 1.1.90-beta.17

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 (224) hide show
  1. package/.eslintrc.js +2 -1
  2. package/.github/workflows/deploy-storybook.yml +4 -4
  3. package/.nvmrc +1 -0
  4. package/dist/css/psui_styles_output.css +6986 -0
  5. package/package.json +9 -23
  6. package/src/assets/scss/components/PsDataTable.scss +1 -1
  7. package/src/components/accordion/PsAccordionItem.vue +75 -75
  8. package/src/components/badges-and-tags/PsBadgeWithIcon.vue +31 -34
  9. package/src/components/badges-and-tags/PsCardInfos.vue +40 -41
  10. package/src/components/badges-and-tags/PsChartLegend.vue +47 -51
  11. package/src/components/badges-and-tags/PsClimateZoneBadge.vue +14 -19
  12. package/src/components/badges-and-tags/PsCostEffectBar.vue +24 -56
  13. package/src/components/badges-and-tags/PsDateCardInfo.vue +17 -18
  14. package/src/components/badges-and-tags/PsHighlightRippleDot.vue +3 -2
  15. package/src/components/badges-and-tags/PsMiniTag.vue +39 -41
  16. package/src/components/badges-and-tags/PsProgressBar.vue +72 -68
  17. package/src/components/badges-and-tags/PsTagScope.vue +17 -22
  18. package/src/components/badges-and-tags/PsTestimonialCard.vue +20 -26
  19. package/src/components/buttons/PsButton.vue +61 -62
  20. package/src/components/chips/PsChips.vue +98 -101
  21. package/src/components/controls/PsCheckbox.vue +84 -84
  22. package/src/components/controls/PsCheckboxSimple.vue +95 -95
  23. package/src/components/controls/PsDraggable.vue +53 -55
  24. package/src/components/controls/PsInlineSelector.vue +99 -99
  25. package/src/components/controls/PsRadioButton.vue +59 -58
  26. package/src/components/controls/PsRadioButtonSimple.vue +79 -75
  27. package/src/components/controls/PsSlider.vue +185 -176
  28. package/src/components/controls/PsSwitch.vue +51 -52
  29. package/src/components/controls/PsToggle.vue +53 -50
  30. package/src/components/data-graphics/PsBarChart.vue +19 -21
  31. package/src/components/datatable/PsDataTable.vue +56 -60
  32. package/src/components/datatable/PsDataTableItem.vue +14 -28
  33. package/src/components/forms/PsDropdown.vue +164 -162
  34. package/src/components/forms/PsDropdownList.vue +132 -129
  35. package/src/components/forms/PsInput.vue +155 -153
  36. package/src/components/forms/PsInputSelect.vue +91 -92
  37. package/src/components/forms/PsInputTextArea.vue +71 -71
  38. package/src/components/navigations/PsBreadcrumb.vue +26 -34
  39. package/src/components/notifications/PsDialog.vue +57 -56
  40. package/src/components/notifications/PsSimpleAlert.vue +28 -29
  41. package/src/components/notifications/PsToast.vue +40 -39
  42. package/src/components/table-results/PsTableResults.vue +452 -458
  43. package/src/components/table-results/PsTableResultsBody.vue +66 -67
  44. package/src/components/table-results/PsTableResultsHead.vue +62 -56
  45. package/src/components/table-results/PsTableResultsHeadComparison.vue +62 -56
  46. package/src/components/table-results/PsTableResultsHeadFlexible.vue +63 -56
  47. package/src/components/table-results/PsTableResultsRow.vue +55 -56
  48. package/src/components/tabs/PsTabHeader.vue +106 -100
  49. package/src/components/tooltip/PsDialogTooltip.vue +96 -101
  50. package/src/components/tooltip/PsRichTooltip.vue +42 -45
  51. package/src/components/tooltip/PsTooltip.vue +111 -116
  52. package/src/components/ui/PsDotLoader.vue +1 -5
  53. package/src/components/ui/PsIcon.vue +126 -129
  54. package/src/index.ts +57 -71
  55. package/src/tsconfig.json +12 -0
  56. package/src/{shims-vue.d.ts → types/index.d.ts} +0 -5
  57. package/src/util/{GeneralFunctions.ts → GeneralFunctions.js} +0 -3
  58. package/src/util/directives.ts +24 -0
  59. package/src/util/eventBus.js +10 -0
  60. package/src/util/{imageLoader.ts → imageLoader.js} +7 -8
  61. package/tailwind.config.js +1 -1
  62. package/tsconfig.json +15 -17
  63. package/.storybook/PolicyStudio.ts +0 -11
  64. package/.storybook/eventBus.ts +0 -26
  65. package/.storybook/main.ts +0 -21
  66. package/.storybook/manager.ts +0 -7
  67. package/.storybook/preview.ts +0 -17
  68. package/dist/contents/ComparisonData.js +0 -376
  69. package/dist/contents/ComparisonData.js.map +0 -1
  70. package/dist/contents/FlexibleData.js +0 -501
  71. package/dist/contents/FlexibleData.js.map +0 -1
  72. package/dist/contents/ResultsData.js +0 -530
  73. package/dist/contents/ResultsData.js.map +0 -1
  74. package/dist/css/psui_styles.css +0 -4647
  75. package/dist/index.js +0 -114
  76. package/dist/index.js.map +0 -1
  77. package/dist/stories/Accordion.stories.js +0 -56
  78. package/dist/stories/Accordion.stories.js.map +0 -1
  79. package/dist/stories/BadgeWithIcon.stories.js +0 -28
  80. package/dist/stories/BadgeWithIcon.stories.js.map +0 -1
  81. package/dist/stories/BarChart.stories.js +0 -16
  82. package/dist/stories/BarChart.stories.js.map +0 -1
  83. package/dist/stories/Breadcrumb.stories.js +0 -21
  84. package/dist/stories/Breadcrumb.stories.js.map +0 -1
  85. package/dist/stories/Button.stories.js +0 -44
  86. package/dist/stories/Button.stories.js.map +0 -1
  87. package/dist/stories/CardInfos.stories.js +0 -13
  88. package/dist/stories/CardInfos.stories.js.map +0 -1
  89. package/dist/stories/ChartLegend.stories.js +0 -13
  90. package/dist/stories/ChartLegend.stories.js.map +0 -1
  91. package/dist/stories/Checkbox.stories.js +0 -44
  92. package/dist/stories/Checkbox.stories.js.map +0 -1
  93. package/dist/stories/CheckboxSimple.stories.js +0 -48
  94. package/dist/stories/CheckboxSimple.stories.js.map +0 -1
  95. package/dist/stories/Chips.stories.js +0 -27
  96. package/dist/stories/Chips.stories.js.map +0 -1
  97. package/dist/stories/ClimateZoneBadge.stories.js +0 -15
  98. package/dist/stories/ClimateZoneBadge.stories.js.map +0 -1
  99. package/dist/stories/CostEffectBar.stories.js +0 -21
  100. package/dist/stories/CostEffectBar.stories.js.map +0 -1
  101. package/dist/stories/Datatable.stories.js +0 -45
  102. package/dist/stories/Datatable.stories.js.map +0 -1
  103. package/dist/stories/DateCardInfo.stories.js +0 -18
  104. package/dist/stories/DateCardInfo.stories.js.map +0 -1
  105. package/dist/stories/Dialog.stories.js +0 -127
  106. package/dist/stories/Dialog.stories.js.map +0 -1
  107. package/dist/stories/Draggable.stories.js +0 -20
  108. package/dist/stories/Draggable.stories.js.map +0 -1
  109. package/dist/stories/Dropdown.stories.js +0 -98
  110. package/dist/stories/Dropdown.stories.js.map +0 -1
  111. package/dist/stories/DropdownList.stories.js +0 -208
  112. package/dist/stories/DropdownList.stories.js.map +0 -1
  113. package/dist/stories/Header.stories.js +0 -39
  114. package/dist/stories/Header.stories.js.map +0 -1
  115. package/dist/stories/HighlightRippleDot.stories.js +0 -13
  116. package/dist/stories/HighlightRippleDot.stories.js.map +0 -1
  117. package/dist/stories/Icon.stories.js +0 -19
  118. package/dist/stories/Icon.stories.js.map +0 -1
  119. package/dist/stories/InlineSelector.stories.js +0 -16
  120. package/dist/stories/InlineSelector.stories.js.map +0 -1
  121. package/dist/stories/Input.stories.js +0 -235
  122. package/dist/stories/Input.stories.js.map +0 -1
  123. package/dist/stories/InputSelect.stories.js +0 -28
  124. package/dist/stories/InputSelect.stories.js.map +0 -1
  125. package/dist/stories/InputTextArea.stories.js +0 -23
  126. package/dist/stories/InputTextArea.stories.js.map +0 -1
  127. package/dist/stories/MiniTag.stories.js +0 -44
  128. package/dist/stories/MiniTag.stories.js.map +0 -1
  129. package/dist/stories/Playground.stories.js +0 -14
  130. package/dist/stories/Playground.stories.js.map +0 -1
  131. package/dist/stories/ProgressBar.stories.js +0 -21
  132. package/dist/stories/ProgressBar.stories.js.map +0 -1
  133. package/dist/stories/RadioButton.stories.js +0 -36
  134. package/dist/stories/RadioButton.stories.js.map +0 -1
  135. package/dist/stories/RadioButtonSimple.stories.js +0 -40
  136. package/dist/stories/RadioButtonSimple.stories.js.map +0 -1
  137. package/dist/stories/SimpleAlert.stories.js +0 -19
  138. package/dist/stories/SimpleAlert.stories.js.map +0 -1
  139. package/dist/stories/Slider.stories.js +0 -70
  140. package/dist/stories/Slider.stories.js.map +0 -1
  141. package/dist/stories/Switch.stories.js +0 -35
  142. package/dist/stories/Switch.stories.js.map +0 -1
  143. package/dist/stories/TabHeader.stories.js +0 -48
  144. package/dist/stories/TabHeader.stories.js.map +0 -1
  145. package/dist/stories/TableResults.stories.js +0 -717
  146. package/dist/stories/TableResults.stories.js.map +0 -1
  147. package/dist/stories/TagScope.stories.js +0 -16
  148. package/dist/stories/TagScope.stories.js.map +0 -1
  149. package/dist/stories/TestimonialCard.stories.js +0 -24
  150. package/dist/stories/TestimonialCard.stories.js.map +0 -1
  151. package/dist/stories/Toast.stories.js +0 -51
  152. package/dist/stories/Toast.stories.js.map +0 -1
  153. package/dist/stories/Toggle.stories.js +0 -42
  154. package/dist/stories/Toggle.stories.js.map +0 -1
  155. package/dist/stories/Tooltip.stories.js +0 -108
  156. package/dist/stories/Tooltip.stories.js.map +0 -1
  157. package/dist/util/GeneralFunctions.js +0 -29
  158. package/dist/util/GeneralFunctions.js.map +0 -1
  159. package/dist/util/imageLoader.js +0 -52
  160. package/dist/util/imageLoader.js.map +0 -1
  161. package/postcss.config.js +0 -8
  162. package/src/assets/images/multifamily-units.svg +0 -10
  163. package/src/assets/images/policy-studio.svg +0 -15
  164. package/src/components/playground/PsScrollBar.vue +0 -320
  165. package/src/contents/ComparisonData.ts +0 -378
  166. package/src/contents/FlexibleData.ts +0 -502
  167. package/src/contents/ResultsData.ts +0 -531
  168. package/src/stories/Accordion.stories.ts +0 -59
  169. package/src/stories/BadgeWithIcon.stories.ts +0 -31
  170. package/src/stories/BarChart.stories.ts +0 -17
  171. package/src/stories/Breadcrumb.stories.ts +0 -22
  172. package/src/stories/Button.stories.ts +0 -48
  173. package/src/stories/Button.vue +0 -59
  174. package/src/stories/CardInfos.stories.ts +0 -15
  175. package/src/stories/ChartLegend.stories.ts +0 -15
  176. package/src/stories/Checkbox.stories.ts +0 -45
  177. package/src/stories/CheckboxSimple.stories.ts +0 -49
  178. package/src/stories/Chips.stories.ts +0 -33
  179. package/src/stories/ClimateZoneBadge.stories.ts +0 -18
  180. package/src/stories/Colors.mdx +0 -70
  181. package/src/stories/CostEffectBar.stories.ts +0 -24
  182. package/src/stories/Datatable.stories.ts +0 -53
  183. package/src/stories/DateCardInfo.stories.ts +0 -20
  184. package/src/stories/Dialog.stories.ts +0 -131
  185. package/src/stories/Draggable.stories.ts +0 -23
  186. package/src/stories/Dropdown.stories.ts +0 -100
  187. package/src/stories/DropdownList.stories.ts +0 -213
  188. package/src/stories/ElevationSystem.mdx +0 -41
  189. package/src/stories/Header.stories.ts +0 -42
  190. package/src/stories/Header.vue +0 -77
  191. package/src/stories/HighlightRippleDot.stories.ts +0 -16
  192. package/src/stories/Icon.stories.ts +0 -23
  193. package/src/stories/InlineSelector.stories.ts +0 -18
  194. package/src/stories/Input.stories.ts +0 -243
  195. package/src/stories/InputSelect.stories.ts +0 -31
  196. package/src/stories/InputTextArea.stories.ts +0 -25
  197. package/src/stories/Introduction.mdx +0 -211
  198. package/src/stories/MiniTag.stories.ts +0 -59
  199. package/src/stories/Playground.stories.ts +0 -16
  200. package/src/stories/ProgressBar.stories.ts +0 -24
  201. package/src/stories/RadioButton.stories.ts +0 -40
  202. package/src/stories/RadioButtonSimple.stories.ts +0 -43
  203. package/src/stories/SimpleAlert.stories.ts +0 -22
  204. package/src/stories/Slider.stories.ts +0 -79
  205. package/src/stories/Switch.stories.ts +0 -39
  206. package/src/stories/TabHeader.stories.ts +0 -57
  207. package/src/stories/TableResults.stories.ts +0 -728
  208. package/src/stories/TagScope.stories.ts +0 -17
  209. package/src/stories/TestimonialCard.stories.ts +0 -27
  210. package/src/stories/Toast.stories.ts +0 -52
  211. package/src/stories/Toggle.stories.ts +0 -48
  212. package/src/stories/Tooltip.stories.ts +0 -114
  213. package/src/stories/Typography.mdx +0 -212
  214. package/src/stories/assets/code-brackets.svg +0 -1
  215. package/src/stories/assets/colors.svg +0 -1
  216. package/src/stories/assets/comments.svg +0 -1
  217. package/src/stories/assets/direction.svg +0 -1
  218. package/src/stories/assets/flow.svg +0 -1
  219. package/src/stories/assets/plugin.svg +0 -1
  220. package/src/stories/assets/repo.svg +0 -1
  221. package/src/stories/assets/stackalt.svg +0 -1
  222. package/src/stories/button.css +0 -30
  223. package/src/stories/header.css +0 -32
  224. package/webpack.config.js +0 -36
@@ -1,320 +0,0 @@
1
- <template>
2
- <div class="wrapper psui-flex psui-gap-4">
3
- <div
4
- class="visible-scrollbar psui-flex psui-flex-col psui-h-full psui-w-56 psui-bg-gray-30 psui-p-2"
5
- @click="onClick"
6
- >
7
- <h2 class="psui-font-bold">
8
- Scrollbar Playground (click over here to copy the computed style to clipboard)
9
- </h2>
10
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem, id.</p>
11
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem, id.</p>
12
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem, id.</p>
13
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem, id.</p>
14
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem, id.</p>
15
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem, id.</p>
16
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem, id.</p>
17
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem, id.</p>
18
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem, id.</p>
19
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem, id.</p>
20
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem, id.</p>
21
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem, id.</p>
22
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem, id.</p>
23
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem, id.</p>
24
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem, id.</p>
25
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem, id.</p>
26
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem, id.</p>
27
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem, id.</p>
28
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem, id.</p>
29
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem, id.</p>
30
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem, id.</p>
31
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem, id.</p>
32
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem, id.</p>
33
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem, id.</p>
34
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem, id.</p>
35
- </div>
36
- <div class="psui-flex psui-bg-gray-60 psui-p-2 psui-gap-4">
37
- <div class="psui-flex psui-flex-col">
38
- <div class="psui-flex psui-flex-col psui-w-48">
39
- <label for="width">Scroll Width (px)</label>
40
- <input
41
- type="text"
42
- id="width"
43
- name="width"
44
- @change="onChange"
45
- >
46
- </div>
47
- <div class="psui-flex psui-flex-col psui-w-48">
48
- <label for="width">Scroll Height (px)</label>
49
- <input
50
- type="text"
51
- id="height"
52
- name="height"
53
- @change="onChange"
54
- >
55
- </div>
56
- <div class="psui-flex psui-flex-col psui-w-48">
57
- <label for="width">ScrollTrack Color</label>
58
- <input
59
- type="text"
60
- id="track"
61
- name="track"
62
- @change="onChange"
63
- >
64
- </div>
65
- <div class="psui-flex psui-flex-col psui-w-48">
66
- <label for="width">Thumb Color</label>
67
- <input
68
- type="text"
69
- id="thumb"
70
- name="thumb"
71
- @change="onChange"
72
- >
73
- </div>
74
- <div class="psui-flex psui-flex-col psui-w-48">
75
- <label for="width">Thumb Border-Radius (px)</label>
76
- <input
77
- type="text"
78
- id="thumb-radius"
79
- name="thumb-radius"
80
- @change="onChange"
81
- >
82
- </div>
83
- <div class="psui-flex psui-flex-col psui-w-48">
84
- <label for="width">Thumb Border Size(px)</label>
85
- <input
86
- type="text"
87
- id="thumb-border"
88
- name="thumb-border"
89
- @change="onChange"
90
- >
91
- </div>
92
- <div class="psui-flex psui-flex-col psui-w-48">
93
- <label for="width">Thumb Border Color</label>
94
- <input
95
- type="text"
96
- id="thumb-border-color"
97
- name="thumb-border-color"
98
- @change="onChange"
99
- >
100
- </div>
101
- <div class="psui-flex psui-flex-col psui-w-48">
102
- <label for="width">Thumb Border Style</label>
103
- <select
104
- id="thumb-border-style"
105
- name="thumb-border-style"
106
- v-model="selectedStyle"
107
- >
108
- <option
109
- value=""
110
- hidden
111
- selected
112
- />
113
- <option
114
- v-for="(style, index) in borderStyle"
115
- :value="style"
116
- :key="index"
117
- >
118
- {{ style }}
119
- </option>
120
- </select>
121
- </div>
122
- </div>
123
- <div class="psui-flex psui-flex-col">
124
- <div class="psui-flex psui-flex-col psui-w-48">
125
- <label for="width">Thumb Hover Color</label>
126
- <input
127
- type="text"
128
- id="thumb-hover-color"
129
- name="thumb-hover-color"
130
- @change="onChange"
131
- >
132
- </div>
133
- <div class="psui-flex psui-flex-col psui-w-48">
134
- <label for="width">Thumb Hover Border Size</label>
135
- <input
136
- type="text"
137
- id="thumb-hover-border-size"
138
- name="thumb-hover-border-size"
139
- @change="onChange"
140
- >
141
- </div>
142
- <div class="psui-flex psui-flex-col psui-w-48">
143
- <label for="width">Thumb Hover Border Color</label>
144
- <input
145
- type="text"
146
- id="thumb-hover-border-color"
147
- name="thumb-hover-border-color"
148
- @change="onChange"
149
- >
150
- </div>
151
- <div class="psui-flex psui-flex-col psui-w-48">
152
- <label for="width">Thumb Border Style</label>
153
- <select
154
- id="thumb-border-style"
155
- name="thumb-border-style"
156
- v-model="selectedHoverStyle"
157
- >
158
- <option
159
- value=""
160
- hidden
161
- selected
162
- />
163
- <option
164
- v-for="(style, index) in borderStyle"
165
- :value="style"
166
- :key="index"
167
- >
168
- {{ style }}
169
- </option>
170
- </select>
171
- </div>
172
- </div>
173
- </div>
174
- </div>
175
- </template>
176
-
177
- <script>
178
-
179
- export default {
180
- name: 'PsScrollBar',
181
- data(){
182
- return {
183
- borderStyle: ['dotted', 'dashed', 'solid', 'double', 'groove', 'ridge', 'inset', 'ouset'],
184
- selectedStyle: null,
185
- selectedHoverStyle: null
186
- }
187
- },
188
- watch:{
189
- selectedStyle(){
190
- const visibleScrollBar = document.querySelector('.visible-scrollbar')
191
- visibleScrollBar.style.setProperty('--scrollbar-thumb-border-style', this.selectedStyle)
192
- },
193
- selectedHoverStyle(){
194
- const visibleScrollBar = document.querySelector('.visible-scrollbar')
195
- visibleScrollBar.style.setProperty('--scrollbar-thumb-hover-border-style', this.selectedHoverStyle)
196
- }
197
- },
198
- methods:{
199
- onChange(event){
200
-
201
- const visibleScrollBar = document.querySelector('.visible-scrollbar')
202
-
203
- switch(event.target.id){
204
- case 'width':
205
- visibleScrollBar.style.setProperty('--scrollbar-width', `${event.target.value}px`)
206
- break
207
- case 'thumb':
208
- visibleScrollBar.style.setProperty('--scrollbar-thumb-color', event.target.value)
209
- break
210
- case 'track':
211
- visibleScrollBar.style.setProperty('--scrollbar-track-color', event.target.value)
212
- break
213
- case 'thumb-radius':
214
- visibleScrollBar.style.setProperty('--scrollbar-thumb-radius', `${event.target.value}px`)
215
- break
216
- case 'thumb-border':
217
- visibleScrollBar.style.setProperty('--scrollbar-thumb-border', `${event.target.value}px`)
218
- break
219
- case 'thumb-border-color':
220
- visibleScrollBar.style.setProperty('--scrollbar-thumb-border-color', event.target.value)
221
- break
222
- case 'height':
223
- visibleScrollBar.style.setProperty('--scrollbar-height', `${event.target.value}px`)
224
- break
225
- case 'thumb-hover-color':
226
- visibleScrollBar.style.setProperty('--scrollbar-thumb-hover-color', event.target.value)
227
- break
228
- case 'thumb-hover-border-size':
229
- visibleScrollBar.style.setProperty('--scrollbar-thumb-hover-border-size', `${event.target.value}px`)
230
- break
231
- case 'thumb-hover-border-color':
232
- visibleScrollBar.style.setProperty('--scrollbar-thumb-hover-border-color', event.target.value)
233
- break
234
- }
235
-
236
- },
237
- onClick(){
238
- const visibleScrollBar = document.querySelector('.visible-scrollbar')
239
-
240
- const styleScrollBar = getComputedStyle(visibleScrollBar, '::-webkit-scrollbar')
241
- const styleScrollBarTrack = getComputedStyle(visibleScrollBar, '::-webkit-scrollbar-track')
242
- const styleScrollBarThumb = getComputedStyle(visibleScrollBar, '::-webkit-scrollbar-thumb')
243
- const styleScrollBarThumbHover = getComputedStyle(visibleScrollBar, '::-webkit-scrollbar-thumb:hover')
244
- const styleScrollBarCorner = getComputedStyle(visibleScrollBar, '::-webkit-scrollbar-corner')
245
-
246
- navigator.clipboard.writeText(`
247
- ::-webkit-scrollbar {
248
- display: ${styleScrollBar.display};
249
- width: ${styleScrollBar.width};
250
- }
251
-
252
- ::-webkit-scrollbar-track {
253
- background-color: ${styleScrollBarTrack.backgroundColor};
254
- }
255
-
256
- ::-webkit-scrollbar-thumb {
257
- background-color: ${styleScrollBarThumb.backgroundColor};
258
- border-radius: ${styleScrollBarThumb.borderRadius};
259
- border: ${styleScrollBarThumb.border};
260
- }
261
-
262
- ::-webkit-scrollbar-thumb:hover {
263
- background-color: ${styleScrollBarThumbHover.backgroundColor};
264
- border: ${styleScrollBarThumbHover.border};
265
- }
266
-
267
- ::-webkit-scrollbar-corner {
268
- display: ${styleScrollBarCorner.display};
269
- background-color: ${styleScrollBarCorner.backgroundColor};
270
- height: ${styleScrollBarCorner.height};
271
- width: ${styleScrollBarCorner.width};
272
- }
273
- `)
274
-
275
- window.alert('Copied to clipboard')
276
- }
277
- },
278
- }
279
-
280
- </script>
281
-
282
- <style scoped>
283
-
284
- .visible-scrollbar{
285
- overflow: scroll;
286
- white-space: nowrap;
287
- }
288
-
289
- .visible-scrollbar::-webkit-scrollbar {
290
- display: block;
291
- width: var(--scrollbar-width, 10px);
292
- height: var(--scrollbar-height, 10px);
293
- }
294
-
295
- .visible-scrollbar::-webkit-scrollbar-track {
296
- background: var(--scrollbar-track-color, gray);
297
- }
298
-
299
- .visible-scrollbar::-webkit-scrollbar-thumb {
300
- background: var(--scrollbar-thumb-color,black);
301
- border-radius: var(--scrollbar-thumb-radius);
302
- border: var(--scrollbar-thumb-border) var(--scrollbar-thumb-border-style) var(--scrollbar-thumb-border-color);
303
- }
304
-
305
- .visible-scrollbar::-webkit-scrollbar-thumb:hover {
306
- background: var(--scrollbar-thumb-hover-color, black);
307
- border: var(--scrollbar-thumb-hover-border-size) var(--scrollbar-thumb-hover-border-style) var(--scrollbar-thumb-hover-border-color);
308
- }
309
-
310
- .visible-scrollbar::-webkit-scrollbar-corner {
311
- display: none;
312
- background-color: var(--scrollbar-track-color, gray);
313
- height: var(--scrollbar-height, 10px);
314
- width: var(--scrollbar-width, 10px);
315
- }
316
-
317
- .wrapper {
318
- height: 450px;
319
- }
320
- </style>
@@ -1,378 +0,0 @@
1
- const RENDER_TYPE = {
2
- BAR_CHART : 'bar_chart',
3
- TAG_SCOPE : 'tag_scope',
4
- }
5
- const RENDER_BADGE = {
6
- EMISSION_REDICTIONS : 'trending_down',
7
- AFFECTED_UNITS : 'holiday_village',
8
- LOWEST_COST_PER_UNIT : 'price_check'
9
- }
10
-
11
- export const comparisonDataHeader = [
12
- {
13
- 'order': 0,
14
- 'key': 'city_wide_impact',
15
- 'title': 'City-wide Impact Estimates',
16
- 'columns': [
17
- {
18
- 'isActive': true,
19
- 'key': 'forecast_units_affected',
20
- 'title': 'Affected Units',
21
- 'description': '(lifecycle)',
22
- 'hasProjections': true,
23
- 'hasHelper': {
24
- 'type': 'helper',
25
- 'id': 17
26
- },
27
- 'chartProjection': {
28
- 'title': 'Number of Affected Units',
29
- 'subtitle': ''
30
- }
31
- },
32
- {
33
- 'isActive': true,
34
- 'key': 'forecast_initial_cost',
35
- 'title': 'Compliance Cost',
36
- 'description': '(lifecycle)',
37
- 'hasProjections': true,
38
- 'hasHelper': {
39
- 'type': 'helper',
40
- 'id': 20
41
- },
42
- 'chartProjection': {
43
- 'title': 'Compliance Cost',
44
- 'subtitle': ''
45
- }
46
- },
47
- {
48
- 'isActive': true,
49
- 'key': 'forecast_emissions_savings',
50
- 'title': 'Emissions Reductions',
51
- 'description': '(lifecycle MTCO2e)',
52
- 'hasProjections': true,
53
- 'hasHelper': {
54
- 'type': 'helper',
55
- 'id': 18
56
- },
57
- 'chartProjection': {
58
- 'title': 'Emissions Reductions',
59
- 'subtitle': 'MTCO2e'
60
- }
61
- },
62
- {
63
- 'isActive': true,
64
- 'key': 'forecast_lifecycle_savings',
65
- 'title': 'Lifecycle Savings',
66
- 'description': '(on-bill)',
67
- 'hasProjections': true,
68
- 'hasHelper': {
69
- 'type': 'helper',
70
- 'id': 19
71
- },
72
- 'chartProjection': {
73
- 'title': 'Bill Savings',
74
- 'subtitle': ''
75
- }
76
- },
77
- {
78
- 'isActive': true,
79
- 'key': 'forecast_kwh_savings',
80
- 'title': 'Electricity Savings',
81
- 'description': '(lifecycle kWh)',
82
- 'hasProjections': true,
83
- 'hasHelper': {
84
- 'type': 'helper',
85
- 'id': 21
86
- },
87
- 'chartProjection': {
88
- 'title': 'Electricity Savings',
89
- 'subtitle': 'kWh'
90
- }
91
- },
92
- {
93
- 'isActive': true,
94
- 'key': 'forecast_therms_savings',
95
- 'title': 'Gas Savings',
96
- 'description': '(lifecycle therms)',
97
- 'hasProjections': true,
98
- 'hasHelper': {
99
- 'type': 'helper',
100
- 'id': 22
101
- },
102
- 'chartProjection': {
103
- 'title': 'Gas Savings',
104
- 'subtitle': 'therms'
105
- }
106
- }
107
- ],
108
- 'hasHelper': {
109
- 'type': 'helper',
110
- 'id': 25
111
- }
112
- },
113
- {
114
- 'order': 1,
115
- 'key': 'fixed_columns',
116
- 'title': 'City-wide Impact Estimates',
117
- 'columns': [
118
- {
119
- 'isActive': true,
120
- 'key': 'tdv_benefit_to_cost_ratio',
121
- 'title': 'TDV',
122
- 'description': '≥ 1.0 is cost effective',
123
- 'isChart': true,
124
- 'hasHelper': {
125
- 'type': 'helper',
126
- 'id': 1
127
- }
128
- }
129
- ],
130
- 'hasHelper': {
131
- 'type': 'helper',
132
- 'id': 23
133
- }
134
- }
135
- ]
136
-
137
- export const comparisonDataSummary = [
138
- {
139
- 'data': {
140
- 'forecast_units_affected': 77.5,
141
- 'forecast_emissions_savings': 1427.3145433224304,
142
- 'forecast_lifecycle_savings': 296624.89395,
143
- 'multifamily': true,
144
- 'single_family': true,
145
- 'zone_7': true,
146
- 'zone_10': true,
147
- 'city_and_policy': 'Default',
148
- },
149
- 'deep': 1,
150
- 'id': 'policy:container-2459',
151
- 'title': 'Policy name lorem ipsum dolor',
152
- 'has_badge': RENDER_BADGE.AFFECTED_UNITS,
153
- 'items': [
154
- {
155
- 'data': {
156
- 'forecast_units_affected': 0,
157
- 'forecast_emissions_savings': 0,
158
- 'forecast_lifecycle_savings': 0,
159
- 'multifamily': true,
160
- 'single_family': true,
161
- 'zone_7': false,
162
- 'zone_10': false,
163
- 'city_and_policy': false,
164
- },
165
- 'deep': 2,
166
- 'id': 'policy:container-2459:climateZone-1-PGE',
167
- 'title': '',
168
- 'items': null,
169
- 'is_disabled': false,
170
- 'is_last': true,
171
- 'index': '0-0-0',
172
- 'last_deep': false
173
- }
174
- ],
175
- 'is_disabled': false,
176
- 'is_last': false,
177
- 'index': '0-0',
178
- 'last_deep': false
179
- },
180
- {
181
- 'data': {
182
- 'forecast_units_affected': 260,
183
- 'forecast_emissions_savings': -2897.5373860970467,
184
- 'forecast_lifecycle_savings': -662408.3057812498,
185
- 'multifamily': true,
186
- 'single_family': true,
187
- 'zone_7': true,
188
- 'zone_10': true,
189
- 'city_and_policy': 'Default',
190
- },
191
- 'deep': 1,
192
- 'id': 'policy:container-2539',
193
- 'title': 'Policy name lorem ipsum dolor',
194
- 'has_badge': RENDER_BADGE.EMISSION_REDICTIONS,
195
- 'items': [
196
- {
197
- 'data': {
198
- 'forecast_units_affected': 0,
199
- 'forecast_emissions_savings': 0,
200
- 'forecast_lifecycle_savings': 0,
201
- 'multifamily': true,
202
- 'single_family': false,
203
- 'zone_7': false,
204
- 'zone_10': false,
205
- 'city_and_policy': false,
206
- },
207
- 'deep': 2,
208
- 'id': 'policy:container-2539:climateZone-1-PGE',
209
- 'title': '',
210
- 'items': null,
211
- 'is_disabled': false,
212
- 'is_last': true,
213
- 'index': '0-1-0',
214
- 'last_deep': false
215
- }
216
- ],
217
- 'is_disabled': false,
218
- 'is_last': true,
219
- 'index': '0-1',
220
- 'last_deep': false
221
- }
222
- ]
223
-
224
- export const comparisonDataColumnGroup = [
225
- {
226
- 'order': 2,
227
- 'key': 'city_wide_estimates',
228
- 'title': 'City-wide Impact Estimates',
229
- 'columns': [
230
- {
231
- 'isActive': true,
232
- 'key': 'forecast_units_affected',
233
- 'title': 'Affected Units',
234
- 'description': '(lifecycle)',
235
- 'hasProjections': true,
236
- 'hasHelper': {
237
- 'type': 'helper',
238
- 'id': 17
239
- },
240
- 'isChart': false,
241
- 'renderType': RENDER_TYPE.BAR_CHART
242
- },
243
- {
244
- 'isActive': true,
245
- 'key': 'forecast_emissions_savings',
246
- 'title': 'Emissions Reductions',
247
- 'description': '(lifecycle MTCO2e)',
248
- 'hasProjections': true,
249
- 'hasHelper': {
250
- 'type': 'helper',
251
- 'id': 18
252
- },
253
- 'isChart': false,
254
- 'renderType': RENDER_TYPE.BAR_CHART
255
- },
256
- {
257
- 'isActive': true,
258
- 'key': 'forecast_lifecycle_savings',
259
- 'title': 'Lifecycle Savings',
260
- 'description': '(on-bill)',
261
- 'hasProjections': true,
262
- 'hasHelper': {
263
- 'type': 'helper',
264
- 'id': 19
265
- },
266
- 'isChart': false,
267
- 'renderType': RENDER_TYPE.BAR_CHART
268
- }
269
- ],
270
- 'hasHelper': {
271
- 'type': 'helper',
272
- 'slug': 'comparison-tables-city_wide_estimates'
273
- }
274
- },
275
- {
276
- 'order': 3,
277
- 'key': 'policy_requirements',
278
- 'title': 'Policy Requirements',
279
- 'columns': [
280
- {
281
- 'isActive': true,
282
- 'key': 'multifamily',
283
- 'title': 'Multifamily',
284
- 'description': '',
285
- 'hasHelper': {
286
- 'type': 'helper',
287
- 'id': 1
288
- },
289
- 'isScope': true,
290
- 'renderType': RENDER_TYPE.TAG_SCOPE
291
- },
292
- {
293
- 'isActive': true,
294
- 'key': 'single_family',
295
- 'title': 'Single Family',
296
- 'description': '',
297
- 'isChart': false,
298
- 'hasHelper': {
299
- 'type': 'helper',
300
- 'id': 2
301
- },
302
- 'renderType': RENDER_TYPE.TAG_SCOPE
303
- },
304
- {
305
- 'isActive': true,
306
- 'key': 'zone_7',
307
- 'title': 'Zone 7',
308
- 'description': '',
309
- 'isChart': false,
310
- 'hasHelper': {
311
- 'type': 'helper',
312
- 'id': 3
313
- },
314
- 'renderType': RENDER_TYPE.TAG_SCOPE
315
- },
316
- {
317
- 'isActive': true,
318
- 'key': 'zone_10',
319
- 'title': 'Zone 10',
320
- 'description': '',
321
- 'isChart': false,
322
- 'hasHelper': {
323
- 'type': 'helper',
324
- 'id': 4
325
- },
326
- 'renderType': RENDER_TYPE.TAG_SCOPE
327
- }
328
- ],
329
- 'hasHelper': {
330
- 'type': 'helper',
331
- 'id': 23
332
- }
333
- },
334
- {
335
- 'order': 4,
336
- 'key': 'city_wide_impact_assumptions',
337
- 'title': 'City-Wide Impact Assumptions',
338
- 'columns': [
339
- {
340
- 'isActive': true,
341
- 'key': 'multifamily',
342
- 'title': 'Multifamily',
343
- 'description': '',
344
- 'hasHelper': {
345
- 'type': 'helper',
346
- 'id': 1
347
- },
348
- 'renderType': RENDER_TYPE.TAG_SCOPE
349
- },
350
- {
351
- 'isActive': true,
352
- 'key': 'single_family',
353
- 'title': 'Single Family',
354
- 'description': '',
355
- 'hasHelper': {
356
- 'type': 'helper',
357
- 'id': 2
358
- },
359
- 'renderType': RENDER_TYPE.TAG_SCOPE
360
- },
361
- {
362
- 'isActive': true,
363
- 'key': 'city_and_policy',
364
- 'title': 'City and Policy',
365
- 'description': '',
366
- 'hasHelper': {
367
- 'type': 'helper',
368
- 'id': 3
369
- },
370
- 'renderType': RENDER_TYPE.TAG_SCOPE
371
- },
372
- ],
373
- 'hasHelper': {
374
- 'type': 'helper',
375
- 'id': 23
376
- }
377
- },
378
- ]