@biggive/components 1.0.96 → 1.0.98

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 (262) hide show
  1. package/dist/biggive/assets/images/biggive-triangle-green.svg +21 -0
  2. package/dist/biggive/assets/images/cross.svg +11 -0
  3. package/dist/biggive/assets/images/menu.svg +11 -0
  4. package/dist/biggive/biggive.esm.js +1 -1
  5. package/dist/biggive/p-063c44ce.entry.js +1 -0
  6. package/dist/biggive/p-0892aade.entry.js +1 -0
  7. package/dist/biggive/p-2330ffc8.entry.js +1 -0
  8. package/dist/biggive/{p-e39db89c.entry.js → p-38b36bc6.entry.js} +1 -1
  9. package/dist/biggive/p-41c6f1f3.entry.js +1 -0
  10. package/dist/biggive/p-42c41213.entry.js +1 -0
  11. package/dist/biggive/p-60872399.entry.js +1 -0
  12. package/dist/biggive/p-6d144f96.js +2 -0
  13. package/dist/biggive/p-8742102b.entry.js +1 -0
  14. package/dist/biggive/p-88faca11.js +1 -0
  15. package/dist/biggive/p-9916d987.entry.js +1 -0
  16. package/dist/biggive/p-9978ef51.entry.js +1 -0
  17. package/dist/biggive/p-99f15121.entry.js +1 -0
  18. package/dist/biggive/p-9fa2a9b2.entry.js +1 -0
  19. package/dist/biggive/p-a13e0f3e.entry.js +1 -0
  20. package/dist/biggive/p-aa4e1a2a.js +1 -0
  21. package/dist/biggive/p-bfaf1239.entry.js +1 -0
  22. package/dist/biggive/p-c1570c9f.entry.js +1 -0
  23. package/dist/biggive/p-d1c2b64d.entry.js +1 -0
  24. package/dist/biggive/p-de0f70ee.entry.js +1 -0
  25. package/dist/biggive/p-e3b0c4ae.entry.js +1 -0
  26. package/dist/biggive/p-e546fe69.entry.js +1 -0
  27. package/dist/cjs/biggive-article-card.cjs.entry.js +2 -35
  28. package/dist/cjs/biggive-back-to-top_23.cjs.entry.js +667 -0
  29. package/dist/cjs/biggive-basic-card.cjs.entry.js +2 -35
  30. package/dist/cjs/biggive-beneficiary-icon.cjs.entry.js +4 -19
  31. package/dist/cjs/biggive-boxed-content.cjs.entry.js +2 -17
  32. package/dist/cjs/biggive-branded-image.cjs.entry.js +2 -14
  33. package/dist/cjs/biggive-category-icon.cjs.entry.js +4 -19
  34. package/dist/cjs/biggive-form.cjs.entry.js +1 -1
  35. package/dist/cjs/biggive-formatted-text.cjs.entry.js +2 -8
  36. package/dist/cjs/biggive-icon-group.cjs.entry.js +2 -8
  37. package/dist/cjs/biggive-image.cjs.entry.js +2 -20
  38. package/dist/cjs/biggive-nav-group.cjs.entry.js +20 -0
  39. package/dist/cjs/biggive-nav-item.cjs.entry.js +22 -0
  40. package/dist/cjs/biggive-quote.cjs.entry.js +2 -14
  41. package/dist/cjs/biggive-search.cjs.entry.js +7 -5
  42. package/dist/cjs/biggive-tab.cjs.entry.js +2 -5
  43. package/dist/cjs/biggive-tabbed-content.cjs.entry.js +2 -8
  44. package/dist/cjs/biggive-text-input.cjs.entry.js +1 -1
  45. package/dist/cjs/biggive-video.cjs.entry.js +2 -11
  46. package/dist/cjs/biggive.cjs.js +3 -3
  47. package/dist/cjs/{fontawesome-icons-110f532d.js → fontawesome-icons-f33263c4.js} +45 -55
  48. package/dist/cjs/index-1fa2bbc6.js +196 -0
  49. package/dist/cjs/{index-87518c3f.js → index-ecfc2713.js} +734 -495
  50. package/dist/cjs/loader.cjs.js +3 -3
  51. package/dist/collection/assets/images/biggive-triangle-green.svg +21 -0
  52. package/dist/collection/assets/images/cross.svg +11 -0
  53. package/dist/collection/assets/images/menu.svg +11 -0
  54. package/dist/collection/collection-manifest.json +6 -2
  55. package/dist/collection/components/biggive-article-card/biggive-article-card.css +20 -0
  56. package/dist/collection/components/biggive-article-card/biggive-article-card.js +214 -253
  57. package/dist/collection/components/biggive-back-to-top/biggive-back-to-top.css +20 -0
  58. package/dist/collection/components/biggive-back-to-top/biggive-back-to-top.js +12 -11
  59. package/dist/collection/components/biggive-basic-card/biggive-basic-card.css +20 -0
  60. package/dist/collection/components/biggive-basic-card/biggive-basic-card.js +214 -251
  61. package/dist/collection/components/biggive-beneficiary-icon/biggive-beneficiary-icon.css +20 -0
  62. package/dist/collection/components/biggive-beneficiary-icon/biggive-beneficiary-icon.js +102 -116
  63. package/dist/collection/components/biggive-boxed-content/biggive-boxed-content.css +20 -0
  64. package/dist/collection/components/biggive-boxed-content/biggive-boxed-content.js +102 -112
  65. package/dist/collection/components/biggive-branded-image/biggive-branded-image.css +20 -0
  66. package/dist/collection/components/biggive-branded-image/biggive-branded-image.js +85 -96
  67. package/dist/collection/components/biggive-button/biggive-button.css +20 -0
  68. package/dist/collection/components/biggive-button/biggive-button.js +137 -153
  69. package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.css +20 -0
  70. package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.js +376 -440
  71. package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.css +22 -0
  72. package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.js +322 -385
  73. package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.css +57 -0
  74. package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.js +354 -118
  75. package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.stories.js +14 -3
  76. package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.css +22 -0
  77. package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.js +238 -292
  78. package/dist/collection/components/biggive-category-icon/biggive-category-icon.css +20 -0
  79. package/dist/collection/components/biggive-category-icon/biggive-category-icon.js +102 -116
  80. package/dist/collection/components/biggive-footer/biggive-footer.css +54 -1
  81. package/dist/collection/components/biggive-footer/biggive-footer.js +15 -39
  82. package/dist/collection/components/biggive-footer/biggive-footer.stories.js +8 -1
  83. package/dist/collection/components/biggive-form/biggive-form.js +12 -9
  84. package/dist/collection/components/biggive-form-field-select/biggive-form-field-select.css +557 -0
  85. package/dist/collection/components/biggive-form-field-select/biggive-form-field-select.js +126 -9
  86. package/dist/collection/components/biggive-form-field-select/biggive-form-field-select.stories.js +9 -0
  87. package/dist/collection/components/biggive-form-field-select-option/biggive-form-field-select-option.css +520 -0
  88. package/dist/collection/components/biggive-form-field-select-option/biggive-form-field-select-option.js +94 -0
  89. package/dist/collection/components/biggive-form-field-select-option/biggive-form-field-select-option.stories.js +23 -0
  90. package/dist/collection/components/biggive-form-field-text-input/biggive-text-input.js +12 -9
  91. package/dist/collection/components/biggive-formatted-text/biggive-formatted-text.css +20 -0
  92. package/dist/collection/components/biggive-formatted-text/biggive-formatted-text.js +51 -52
  93. package/dist/collection/components/biggive-grid/biggive-grid.css +35 -0
  94. package/dist/collection/components/biggive-grid/biggive-grid.js +68 -72
  95. package/dist/collection/components/biggive-header/biggive-header.css +90 -2
  96. package/dist/collection/components/biggive-header/biggive-header.js +64 -69
  97. package/dist/collection/components/biggive-header/biggive-header.stories.js +12 -2
  98. package/dist/collection/components/biggive-heading/biggive-heading.css +20 -0
  99. package/dist/collection/components/biggive-heading/biggive-heading.js +136 -152
  100. package/dist/collection/components/biggive-hero-image/biggive-hero-image.css +46 -13
  101. package/dist/collection/components/biggive-hero-image/biggive-hero-image.js +276 -281
  102. package/dist/collection/components/biggive-hero-image/biggive-hero-image.stories.js +15 -0
  103. package/dist/collection/components/biggive-icon-group/biggive-icon-group.css +20 -0
  104. package/dist/collection/components/biggive-icon-group/biggive-icon-group.js +51 -54
  105. package/dist/collection/components/biggive-image/biggive-image.css +20 -0
  106. package/dist/collection/components/biggive-image/biggive-image.js +119 -133
  107. package/dist/collection/components/biggive-image-feature/biggive-image-feature.css +39 -5
  108. package/dist/collection/components/biggive-image-feature/biggive-image-feature.js +232 -270
  109. package/dist/collection/components/biggive-misc-icon/biggive-misc-icon.css +20 -0
  110. package/dist/collection/components/biggive-misc-icon/biggive-misc-icon.js +85 -94
  111. package/dist/collection/components/biggive-nav-group/biggive-nav-group.css +517 -0
  112. package/dist/collection/components/biggive-nav-group/biggive-nav-group.js +43 -0
  113. package/dist/collection/components/biggive-nav-item/biggive-nav-item.css +522 -0
  114. package/dist/collection/components/biggive-nav-item/biggive-nav-item.js +81 -0
  115. package/dist/collection/components/biggive-page-column/biggive-page-column.css +506 -1
  116. package/dist/collection/components/biggive-page-column/biggive-page-column.js +11 -7
  117. package/dist/collection/components/biggive-page-columns/biggive-page-columns.css +30 -1
  118. package/dist/collection/components/biggive-page-columns/biggive-page-columns.js +34 -36
  119. package/dist/collection/components/biggive-page-section/biggive-page-section.css +20 -0
  120. package/dist/collection/components/biggive-page-section/biggive-page-section.js +85 -93
  121. package/dist/collection/components/biggive-popup/biggive-popup.css +547 -0
  122. package/dist/collection/components/biggive-popup/biggive-popup.js +47 -0
  123. package/dist/collection/components/biggive-popup/biggive-popup.stories.js +8 -0
  124. package/dist/collection/components/biggive-progress-bar/biggive-progress-bar.css +20 -0
  125. package/dist/collection/components/biggive-progress-bar/biggive-progress-bar.js +68 -76
  126. package/dist/collection/components/biggive-quote/biggive-quote.css +20 -0
  127. package/dist/collection/components/biggive-quote/biggive-quote.js +85 -93
  128. package/dist/collection/components/biggive-search/biggive-search.css +20 -0
  129. package/dist/collection/components/biggive-search/biggive-search.js +74 -74
  130. package/dist/collection/components/biggive-social-icon/biggive-social-icon.css +20 -0
  131. package/dist/collection/components/biggive-social-icon/biggive-social-icon.js +85 -94
  132. package/dist/collection/components/biggive-tab/biggive-tab.css +20 -0
  133. package/dist/collection/components/biggive-tab/biggive-tab.js +34 -34
  134. package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.css +20 -0
  135. package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.js +51 -52
  136. package/dist/collection/components/biggive-totalizer/biggive-totalizer.css +29 -1
  137. package/dist/collection/components/biggive-totalizer/biggive-totalizer.js +178 -208
  138. package/dist/collection/components/biggive-video/biggive-video.css +20 -0
  139. package/dist/collection/components/biggive-video/biggive-video.js +68 -72
  140. package/dist/collection/components/biggive-video-feature/biggive-video-feature.css +39 -5
  141. package/dist/collection/components/biggive-video-feature/biggive-video-feature.js +238 -278
  142. package/dist/components/biggive-article-card.js +1 -34
  143. package/dist/components/biggive-back-to-top.js +1 -1
  144. package/dist/components/biggive-basic-card.js +1 -34
  145. package/dist/components/biggive-beneficiary-icon.js +1 -16
  146. package/dist/components/biggive-boxed-content.js +1 -16
  147. package/dist/components/biggive-branded-image.js +1 -13
  148. package/dist/components/biggive-button2.js +2 -23
  149. package/dist/components/biggive-call-to-action.js +1 -61
  150. package/dist/components/biggive-campaign-card-filter-grid.js +103 -22
  151. package/dist/components/biggive-campaign-card.js +2 -49
  152. package/dist/components/biggive-campaign-highlights.js +1 -40
  153. package/dist/components/biggive-category-icon.js +1 -16
  154. package/dist/components/biggive-footer.js +4 -10
  155. package/dist/components/biggive-form-field-select-option.d.ts +11 -0
  156. package/dist/components/biggive-form-field-select-option.js +6 -0
  157. package/dist/components/biggive-form-field-select-option2.js +46 -0
  158. package/dist/components/biggive-form-field-select.js +1 -28
  159. package/dist/components/biggive-form-field-select2.js +45 -0
  160. package/dist/components/biggive-formatted-text.js +1 -7
  161. package/dist/components/biggive-grid.js +1 -10
  162. package/dist/components/biggive-header.js +13 -8
  163. package/dist/components/biggive-heading.js +1 -22
  164. package/dist/components/biggive-hero-image.js +6 -41
  165. package/dist/components/biggive-icon-group.js +1 -7
  166. package/dist/components/biggive-image-feature.js +1 -37
  167. package/dist/components/biggive-image.js +1 -19
  168. package/dist/components/biggive-misc-icon2.js +1 -13
  169. package/dist/components/biggive-nav-group.d.ts +11 -0
  170. package/dist/components/biggive-nav-group.js +36 -0
  171. package/dist/components/biggive-nav-item.d.ts +11 -0
  172. package/dist/components/biggive-nav-item.js +40 -0
  173. package/dist/components/biggive-page-column.js +1 -1
  174. package/dist/components/biggive-page-columns.js +1 -4
  175. package/dist/components/biggive-page-section.js +1 -13
  176. package/dist/components/biggive-popup.d.ts +11 -0
  177. package/dist/components/biggive-popup.js +6 -0
  178. package/dist/components/biggive-popup2.js +41 -0
  179. package/dist/components/biggive-progress-bar2.js +1 -10
  180. package/dist/components/biggive-quote.js +1 -13
  181. package/dist/components/biggive-search.js +5 -3
  182. package/dist/components/biggive-social-icon.js +41 -1
  183. package/dist/components/biggive-tab.js +1 -4
  184. package/dist/components/biggive-tabbed-content.js +1 -7
  185. package/dist/components/biggive-totalizer.js +1 -28
  186. package/dist/components/biggive-video-feature.js +1 -40
  187. package/dist/components/biggive-video.js +1 -10
  188. package/dist/components/fontawesome-icons.js +11 -21
  189. package/dist/components/index.d.ts +4 -0
  190. package/dist/components/index.js +4 -0
  191. package/dist/components/index2.js +164 -0
  192. package/dist/esm/biggive-article-card.entry.js +2 -35
  193. package/dist/esm/biggive-back-to-top_23.entry.js +641 -0
  194. package/dist/esm/biggive-basic-card.entry.js +2 -35
  195. package/dist/esm/biggive-beneficiary-icon.entry.js +4 -19
  196. package/dist/esm/biggive-boxed-content.entry.js +2 -17
  197. package/dist/esm/biggive-branded-image.entry.js +2 -14
  198. package/dist/esm/biggive-category-icon.entry.js +4 -19
  199. package/dist/esm/biggive-form.entry.js +1 -1
  200. package/dist/esm/biggive-formatted-text.entry.js +2 -8
  201. package/dist/esm/biggive-icon-group.entry.js +2 -8
  202. package/dist/esm/biggive-image.entry.js +2 -20
  203. package/dist/esm/biggive-nav-group.entry.js +16 -0
  204. package/dist/esm/biggive-nav-item.entry.js +18 -0
  205. package/dist/esm/biggive-quote.entry.js +2 -14
  206. package/dist/esm/biggive-search.entry.js +6 -4
  207. package/dist/esm/biggive-tab.entry.js +2 -5
  208. package/dist/esm/biggive-tabbed-content.entry.js +2 -8
  209. package/dist/esm/biggive-text-input.entry.js +1 -1
  210. package/dist/esm/biggive-video.entry.js +2 -11
  211. package/dist/esm/biggive.js +3 -3
  212. package/dist/esm/{fontawesome-icons-562459be.js → fontawesome-icons-ff9155ca.js} +11 -21
  213. package/dist/esm/index-7cfe62c2.js +164 -0
  214. package/dist/esm/{index-4395d470.js → index-b3c47751.js} +734 -495
  215. package/dist/esm/loader.js +3 -3
  216. package/dist/esm/polyfills/css-shim.js +1 -1
  217. package/dist/types/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.d.ts +28 -2
  218. package/dist/types/components/biggive-form-field-select/biggive-form-field-select.d.ts +17 -0
  219. package/dist/types/components/biggive-form-field-select/biggive-form-field-select.stories.d.ts +5 -0
  220. package/dist/types/components/biggive-form-field-select-option/biggive-form-field-select-option.d.ts +20 -0
  221. package/dist/types/components/biggive-form-field-select-option/biggive-form-field-select-option.stories.d.ts +13 -0
  222. package/dist/types/components/biggive-header/biggive-header.d.ts +1 -0
  223. package/dist/types/components/biggive-hero-image/biggive-hero-image.d.ts +8 -0
  224. package/dist/types/components/biggive-hero-image/biggive-hero-image.stories.d.ts +9 -0
  225. package/dist/types/components/biggive-nav-group/biggive-nav-group.d.ts +7 -0
  226. package/dist/types/components/biggive-nav-item/biggive-nav-item.d.ts +15 -0
  227. package/dist/types/components/biggive-popup/biggive-popup.d.ts +6 -0
  228. package/dist/types/components/biggive-popup/biggive-popup.stories.d.ts +5 -0
  229. package/dist/types/components.d.ts +199 -2
  230. package/dist/types/stencil-public-runtime.d.ts +20 -4
  231. package/hydrate/index.d.ts +1 -1
  232. package/hydrate/index.js +1225 -1548
  233. package/loader/package.json +1 -0
  234. package/package.json +4 -2
  235. package/dist/biggive/p-10ba977a.entry.js +0 -1
  236. package/dist/biggive/p-114fac7c.entry.js +0 -1
  237. package/dist/biggive/p-1788f27c.entry.js +0 -1
  238. package/dist/biggive/p-1805f9ab.js +0 -2
  239. package/dist/biggive/p-1bf2e39d.entry.js +0 -1
  240. package/dist/biggive/p-26de9586.entry.js +0 -1
  241. package/dist/biggive/p-3116f3df.entry.js +0 -1
  242. package/dist/biggive/p-4368caaa.entry.js +0 -1
  243. package/dist/biggive/p-512c15ed.entry.js +0 -1
  244. package/dist/biggive/p-78406754.entry.js +0 -1
  245. package/dist/biggive/p-871707f4.js +0 -6
  246. package/dist/biggive/p-9125d753.entry.js +0 -1
  247. package/dist/biggive/p-96ddb8d1.entry.js +0 -1
  248. package/dist/biggive/p-a423663d.entry.js +0 -1
  249. package/dist/biggive/p-afde0b4b.entry.js +0 -1
  250. package/dist/biggive/p-b15292fe.entry.js +0 -1
  251. package/dist/biggive/p-ec9b42b3.js +0 -6
  252. package/dist/biggive/p-faa619ad.entry.js +0 -1
  253. package/dist/biggive/p-faa6817c.entry.js +0 -1
  254. package/dist/biggive/p-fb8447d1.entry.js +0 -1
  255. package/dist/cjs/biggive-back-to-top_20.cjs.entry.js +0 -923
  256. package/dist/cjs/biggive-form-field-select.cjs.entry.js +0 -19
  257. package/dist/cjs/index.es-d3570170.js +0 -201
  258. package/dist/components/biggive-social-icon2.js +0 -55
  259. package/dist/components/index.es.js +0 -169
  260. package/dist/esm/biggive-back-to-top_20.entry.js +0 -900
  261. package/dist/esm/biggive-form-field-select.entry.js +0 -15
  262. package/dist/esm/index.es-5777380a.js +0 -169
@@ -218,6 +218,26 @@ a:hover {
218
218
  background-color: #FFFFFF;
219
219
  }
220
220
 
221
+ .button-white {
222
+ color: #2C089B;
223
+ background-color: #FFFFFF;
224
+ border-color: #FFFFFF;
225
+ }
226
+ .button-white:hover {
227
+ color: #FFFFFF;
228
+ background-color: #2C089B;
229
+ }
230
+
231
+ .button-black {
232
+ color: #FFFFFF;
233
+ background-color: #000000;
234
+ border-color: #000000;
235
+ }
236
+ .button-black:hover {
237
+ color: #000000;
238
+ background-color: #FFFFFF;
239
+ }
240
+
221
241
  .button-clear-primary {
222
242
  color: #2C089B;
223
243
  background-color: transparent;
@@ -499,6 +519,9 @@ a:hover {
499
519
  padding: 15px 30px;
500
520
  margin-bottom: 60px;
501
521
  }
522
+ .container .search-wrap h4 {
523
+ margin-bottom: 15px;
524
+ }
502
525
  .container .search-wrap .field-wrap {
503
526
  display: flex;
504
527
  justify-content: space-between;
@@ -516,6 +539,40 @@ a:hover {
516
539
  padding: 5px 30px;
517
540
  }
518
541
 
542
+ .sort-filter-wrap {
543
+ display: flex;
544
+ align-items: flex-end;
545
+ margin-bottom: 30px;
546
+ text-align: right;
547
+ }
548
+ .sort-filter-wrap .sort-wrap {
549
+ margin-left: auto;
550
+ }
551
+ .sort-filter-wrap .filter-wrap {
552
+ margin-left: 15px;
553
+ }
554
+ .sort-filter-wrap .filter-wrap .button.filter {
555
+ padding-left: 60px;
556
+ padding-right: 30px;
557
+ }
558
+ .sort-filter-wrap .filter-wrap .button.filter .filter-icon {
559
+ content: "";
560
+ display: block;
561
+ position: absolute;
562
+ left: 25px;
563
+ top: 17px;
564
+ width: 13px;
565
+ height: 13px;
566
+ }
567
+ .sort-filter-wrap .filter-wrap .button.filter .filter-icon svg {
568
+ width: 100%;
569
+ height: auto;
570
+ vertical-align: top;
571
+ }
572
+ .sort-filter-wrap .filter-wrap .button.filter .filter-icon svg:hover {
573
+ fill: #2C089B;
574
+ }
575
+
519
576
  .icon {
520
577
  height: 1rem;
521
578
  width: 2rem;
@@ -1,151 +1,387 @@
1
- import { Component, h, Prop, State, Event } from '@stencil/core';
1
+ import { h } from '@stencil/core';
2
2
  import { faMagnifyingGlass } from '@fortawesome/pro-solid-svg-icons';
3
3
  export class BiggiveCampaignCardFilterGrid {
4
4
  constructor() {
5
5
  this.searchText = null;
6
- /**
7
- * Space below component
8
- */
6
+ this.sortBy = null;
7
+ this.filterCategory = null;
8
+ this.filterBeneficary = null;
9
+ this.filterLocation = null;
10
+ this.filterFunding = null;
9
11
  this.spaceBelow = 0;
10
- /**
11
- * Intro
12
- */
13
12
  this.intro = 'Find a charity or project';
14
- /**
15
- * Defines the text displayed as the placeholder in the input field
16
- * before the user types anything
17
- */
18
13
  this.placeholderText = 'Search';
19
- /**
20
- * Defines the text on the search button
21
- */
22
14
  this.buttonText = 'Search';
15
+ this.categoryOptions = null;
16
+ this.beneficaryOptions = null;
17
+ this.locationOptions = null;
18
+ this.fundingOptions = null;
19
+ }
20
+ getSearchAndFilterObject() {
21
+ var obj = {
22
+ searchText: this.searchText,
23
+ sortBy: this.sortBy,
24
+ filterCategory: this.filterCategory,
25
+ filterBeneficary: this.filterBeneficary,
26
+ filterLocation: this.filterLocation,
27
+ filterFunding: this.filterFunding,
28
+ };
29
+ return obj;
30
+ }
31
+ doOptionSelectCompletedHandler() {
32
+ this.sortBy = this.el.shadowRoot.getElementById('sort-by').selectedValue;
33
+ this.filterCategory = this.el.shadowRoot.getElementById('categories').selectedValue;
34
+ this.filterBeneficary = this.el.shadowRoot.getElementById('beneficiaries').selectedValue;
35
+ this.filterLocation = this.el.shadowRoot.getElementById('locations').selectedValue;
36
+ this.filterFunding = this.el.shadowRoot.getElementById('funding').selectedValue;
37
+ }
38
+ handleApplyFilterButtonClick() {
39
+ this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
23
40
  }
24
41
  handleSearchTextChanged(event) {
25
42
  this.searchText = event.target.value;
43
+ this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
26
44
  }
27
45
  handleSearchButtonPressed() {
28
- this.doSearch.emit(this.searchText);
46
+ this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
29
47
  }
30
48
  handleEnterPressed(ev) {
31
49
  if (ev.key === 'Enter') {
32
- this.doSearch.emit(this.searchText);
50
+ this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
51
+ }
52
+ }
53
+ handleFilterButtonClick() {
54
+ this.el.shadowRoot.getElementById('filter-popup').open();
55
+ if (this.categoryOptions != null) {
56
+ var options = JSON.parse(this.categoryOptions);
57
+ this.el.shadowRoot.getElementById('categories').innerHTML = '';
58
+ for (var prop in options) {
59
+ this.el.shadowRoot.getElementById('categories').innerHTML +=
60
+ '<biggive-form-field-select-option value="' + options[prop] + '" label="' + options[prop] + '"></biggive-form-field-select-option>';
61
+ }
62
+ }
63
+ if (this.beneficaryOptions != null) {
64
+ var options = JSON.parse(this.beneficaryOptions);
65
+ this.el.shadowRoot.getElementById('beneficaries').innerHTML = '';
66
+ for (var prop in options) {
67
+ this.el.shadowRoot.getElementById('beneficaries').innerHTML +=
68
+ '<biggive-form-field-select-option value="' + options[prop] + '" label="' + options[prop] + '"></biggive-form-field-select-option>';
69
+ }
70
+ }
71
+ if (this.locationOptions != null) {
72
+ var options = JSON.parse(this.locationOptions);
73
+ this.el.shadowRoot.getElementById('locations').innerHTML = '';
74
+ for (var prop in options) {
75
+ this.el.shadowRoot.getElementById('locations').innerHTML +=
76
+ '<biggive-form-field-select-option value="' + options[prop] + '" label="' + options[prop] + '"></biggive-form-field-select-option>';
77
+ }
78
+ }
79
+ if (this.fundingOptions != null) {
80
+ var options = JSON.parse(this.fundingOptions);
81
+ this.el.shadowRoot.getElementById('funding').innerHTML = '';
82
+ for (var prop in options) {
83
+ this.el.shadowRoot.getElementById('funding').innerHTML +=
84
+ '<biggive-form-field-select-option value="' + options[prop] + '" label="' + options[prop] + '"></biggive-form-field-select-option>';
85
+ }
33
86
  }
34
87
  }
35
88
  render() {
36
- return (h("div", { class: 'container space-below-' + this.spaceBelow },
37
- h("div", { class: "sleeve" },
38
- h("div", { class: "search-wrap" },
39
- h("h4", null, this.intro),
40
- h("div", { class: "field-wrap" },
41
- h("div", { class: "input-wrap" },
42
- h("svg", { xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" },
43
- h("path", { d: faMagnifyingGlass.icon[4].toString() })),
44
- h("input", { type: "text", value: this.searchText, class: "input-text", placeholder: this.placeholderText, onInput: event => this.handleSearchTextChanged(event), onKeyDown: event => this.handleEnterPressed(event) })),
45
- h("button", { onClick: () => this.handleSearchButtonPressed(), class: "button button-primary" }, this.buttonText))),
46
- h("div", { class: "filter-wrap" }),
47
- h("div", { class: "campaign-grid" },
48
- h("slot", { name: "campaign-grid" })))));
89
+ return (h("div", { class: 'container space-below-' + this.spaceBelow }, h("div", { class: "sleeve" }, h("div", { class: "search-wrap" }, h("h4", null, this.intro), h("div", { class: "field-wrap" }, h("div", { class: "input-wrap" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" }, h("path", { d: faMagnifyingGlass.icon[4].toString() })), h("input", { type: "text", value: this.searchText, class: "input-text", placeholder: this.placeholderText, onInput: event => this.handleSearchTextChanged(event), onKeyDown: event => this.handleEnterPressed(event) })), h("button", { onClick: () => this.handleSearchButtonPressed(), class: "button button-primary" }, this.buttonText))), h("div", { class: "sort-filter-wrap" }, h("div", { class: "sort-wrap" }, h("biggive-form-field-select", { placeholder: "Sort by", id: "sort-by" }, h("biggive-form-field-select-option", { value: "most-raised", label: "Most raised" }), h("biggive-form-field-select-option", { value: "matched-funds-remaining", label: "Match funds remaining" }))), h("div", { class: "filter-wrap" }, h("div", { class: "button button-primary filter", onClick: () => this.handleFilterButtonClick() }, h("span", { class: "filter-icon" }, h("svg", { width: "16", height: "15", viewBox: "0 0 16 15", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M0.12042 0.76576C0.327224 0.298 0.766961 0 1.25014 0H14.7517C15.2361 0 15.6736 0.298 15.8799 0.76576C16.0893 1.23352 16.0237 1.787 15.6924 2.18745L10.0011 9.67328V13.929C10.0011 14.3341 9.7886 14.7058 9.44793 14.8866C9.1104 15.0674 8.7041 15.0306 8.40094 14.7862L6.40072 13.179C6.14756 12.9781 6.00067 12.66 6.00067 12.3218V9.67328L0.282594 2.18745C-0.023284 1.787 -0.0864161 1.23352 0.120451 0.76576H0.12042Z", fill: "white" }))), "Filters"), h("biggive-popup", { id: "filter-popup" }, h("h4", { class: "space-above-0 space-below-3 colour-primary" }, "Filters"), h("biggive-form-field-select", { placeholder: "Category", id: "categories", "space-below": "2" }), h("biggive-form-field-select", { placeholder: "Beneficiary", id: "beneficiaries", "space-below": "2" }), h("biggive-form-field-select", { placeholder: "Location", id: "locations", "space-below": "2" }), h("biggive-form-field-select", { placeholder: "Funding", id: "funding", "space-below": "2" }), h("div", { class: "align-right" }, h("a", { href: "#", class: "button button-primary", onClick: () => this.handleApplyFilterButtonClick() }, "Apply filters"))))), h("div", { class: "campaign-grid" }, h("slot", { name: "campaign-grid" })))));
49
90
  }
50
91
  static get is() { return "biggive-campaign-card-filter-grid"; }
51
92
  static get encapsulation() { return "shadow"; }
52
- static get originalStyleUrls() { return {
53
- "$": ["biggive-campaign-card-filter-grid.scss"]
54
- }; }
55
- static get styleUrls() { return {
56
- "$": ["biggive-campaign-card-filter-grid.css"]
57
- }; }
58
- static get properties() { return {
59
- "spaceBelow": {
60
- "type": "number",
61
- "mutable": false,
62
- "complexType": {
63
- "original": "number",
64
- "resolved": "number",
65
- "references": {}
93
+ static get originalStyleUrls() {
94
+ return {
95
+ "$": ["biggive-campaign-card-filter-grid.scss"]
96
+ };
97
+ }
98
+ static get styleUrls() {
99
+ return {
100
+ "$": ["biggive-campaign-card-filter-grid.css"]
101
+ };
102
+ }
103
+ static get properties() {
104
+ return {
105
+ "searchText": {
106
+ "type": "string",
107
+ "mutable": false,
108
+ "complexType": {
109
+ "original": "string",
110
+ "resolved": "string",
111
+ "references": {}
112
+ },
113
+ "required": false,
114
+ "optional": false,
115
+ "docs": {
116
+ "tags": [],
117
+ "text": ""
118
+ },
119
+ "attribute": "search-text",
120
+ "reflect": false,
121
+ "defaultValue": "null"
66
122
  },
67
- "required": false,
68
- "optional": false,
69
- "docs": {
70
- "tags": [],
71
- "text": "Space below component"
123
+ "sortBy": {
124
+ "type": "string",
125
+ "mutable": false,
126
+ "complexType": {
127
+ "original": "string",
128
+ "resolved": "string",
129
+ "references": {}
130
+ },
131
+ "required": false,
132
+ "optional": false,
133
+ "docs": {
134
+ "tags": [],
135
+ "text": ""
136
+ },
137
+ "attribute": "sort-by",
138
+ "reflect": false,
139
+ "defaultValue": "null"
72
140
  },
73
- "attribute": "space-below",
74
- "reflect": false,
75
- "defaultValue": "0"
76
- },
77
- "intro": {
78
- "type": "string",
79
- "mutable": false,
80
- "complexType": {
81
- "original": "string",
82
- "resolved": "string",
83
- "references": {}
141
+ "filterCategory": {
142
+ "type": "string",
143
+ "mutable": false,
144
+ "complexType": {
145
+ "original": "string",
146
+ "resolved": "string",
147
+ "references": {}
148
+ },
149
+ "required": false,
150
+ "optional": false,
151
+ "docs": {
152
+ "tags": [],
153
+ "text": ""
154
+ },
155
+ "attribute": "filter-category",
156
+ "reflect": false,
157
+ "defaultValue": "null"
84
158
  },
85
- "required": false,
86
- "optional": false,
87
- "docs": {
88
- "tags": [],
89
- "text": "Intro"
159
+ "filterBeneficary": {
160
+ "type": "string",
161
+ "mutable": false,
162
+ "complexType": {
163
+ "original": "string",
164
+ "resolved": "string",
165
+ "references": {}
166
+ },
167
+ "required": false,
168
+ "optional": false,
169
+ "docs": {
170
+ "tags": [],
171
+ "text": ""
172
+ },
173
+ "attribute": "filter-beneficary",
174
+ "reflect": false,
175
+ "defaultValue": "null"
90
176
  },
91
- "attribute": "intro",
92
- "reflect": false,
93
- "defaultValue": "'Find a charity or project'"
94
- },
95
- "placeholderText": {
96
- "type": "string",
97
- "mutable": false,
98
- "complexType": {
99
- "original": "string",
100
- "resolved": "string",
101
- "references": {}
177
+ "filterLocation": {
178
+ "type": "string",
179
+ "mutable": false,
180
+ "complexType": {
181
+ "original": "string",
182
+ "resolved": "string",
183
+ "references": {}
184
+ },
185
+ "required": false,
186
+ "optional": false,
187
+ "docs": {
188
+ "tags": [],
189
+ "text": ""
190
+ },
191
+ "attribute": "filter-location",
192
+ "reflect": false,
193
+ "defaultValue": "null"
102
194
  },
103
- "required": false,
104
- "optional": false,
105
- "docs": {
106
- "tags": [],
107
- "text": "Defines the text displayed as the placeholder in the input field\nbefore the user types anything"
195
+ "filterFunding": {
196
+ "type": "string",
197
+ "mutable": false,
198
+ "complexType": {
199
+ "original": "string",
200
+ "resolved": "string",
201
+ "references": {}
202
+ },
203
+ "required": false,
204
+ "optional": false,
205
+ "docs": {
206
+ "tags": [],
207
+ "text": ""
208
+ },
209
+ "attribute": "filter-funding",
210
+ "reflect": false,
211
+ "defaultValue": "null"
108
212
  },
109
- "attribute": "placeholder-text",
110
- "reflect": false,
111
- "defaultValue": "'Search'"
112
- },
113
- "buttonText": {
114
- "type": "string",
115
- "mutable": false,
116
- "complexType": {
117
- "original": "string",
118
- "resolved": "string",
119
- "references": {}
213
+ "spaceBelow": {
214
+ "type": "number",
215
+ "mutable": false,
216
+ "complexType": {
217
+ "original": "number",
218
+ "resolved": "number",
219
+ "references": {}
220
+ },
221
+ "required": false,
222
+ "optional": false,
223
+ "docs": {
224
+ "tags": [],
225
+ "text": "Space below component"
226
+ },
227
+ "attribute": "space-below",
228
+ "reflect": false,
229
+ "defaultValue": "0"
120
230
  },
121
- "required": false,
122
- "optional": false,
123
- "docs": {
124
- "tags": [],
125
- "text": "Defines the text on the search button"
231
+ "intro": {
232
+ "type": "string",
233
+ "mutable": false,
234
+ "complexType": {
235
+ "original": "string",
236
+ "resolved": "string",
237
+ "references": {}
238
+ },
239
+ "required": false,
240
+ "optional": false,
241
+ "docs": {
242
+ "tags": [],
243
+ "text": "Intro"
244
+ },
245
+ "attribute": "intro",
246
+ "reflect": false,
247
+ "defaultValue": "'Find a charity or project'"
126
248
  },
127
- "attribute": "button-text",
128
- "reflect": false,
129
- "defaultValue": "'Search'"
130
- }
131
- }; }
132
- static get states() { return {
133
- "searchText": {}
134
- }; }
135
- static get events() { return [{
136
- "method": "doSearch",
137
- "name": "doTextSearch",
138
- "bubbles": true,
139
- "cancelable": true,
140
- "composed": true,
141
- "docs": {
142
- "tags": [],
143
- "text": "This event `doTextSearch` event is emitted and propogates to the parent\ncomponent which handles it"
249
+ "placeholderText": {
250
+ "type": "string",
251
+ "mutable": false,
252
+ "complexType": {
253
+ "original": "string",
254
+ "resolved": "string",
255
+ "references": {}
256
+ },
257
+ "required": false,
258
+ "optional": false,
259
+ "docs": {
260
+ "tags": [],
261
+ "text": "Defines the text displayed as the placeholder in the input field\nbefore the user types anything"
262
+ },
263
+ "attribute": "placeholder-text",
264
+ "reflect": false,
265
+ "defaultValue": "'Search'"
266
+ },
267
+ "buttonText": {
268
+ "type": "string",
269
+ "mutable": false,
270
+ "complexType": {
271
+ "original": "string",
272
+ "resolved": "string",
273
+ "references": {}
274
+ },
275
+ "required": false,
276
+ "optional": false,
277
+ "docs": {
278
+ "tags": [],
279
+ "text": "Defines the text on the search button"
280
+ },
281
+ "attribute": "button-text",
282
+ "reflect": false,
283
+ "defaultValue": "'Search'"
284
+ },
285
+ "categoryOptions": {
286
+ "type": "string",
287
+ "mutable": false,
288
+ "complexType": {
289
+ "original": "string",
290
+ "resolved": "string",
291
+ "references": {}
292
+ },
293
+ "required": false,
294
+ "optional": false,
295
+ "docs": {
296
+ "tags": [],
297
+ "text": "JSON array of category key/values"
298
+ },
299
+ "attribute": "category-options",
300
+ "reflect": false,
301
+ "defaultValue": "null"
144
302
  },
145
- "complexType": {
146
- "original": "string",
147
- "resolved": "string",
148
- "references": {}
303
+ "beneficaryOptions": {
304
+ "type": "string",
305
+ "mutable": false,
306
+ "complexType": {
307
+ "original": "string",
308
+ "resolved": "string",
309
+ "references": {}
310
+ },
311
+ "required": false,
312
+ "optional": false,
313
+ "docs": {
314
+ "tags": [],
315
+ "text": "JSON array of beneficary key/values"
316
+ },
317
+ "attribute": "beneficary-options",
318
+ "reflect": false,
319
+ "defaultValue": "null"
320
+ },
321
+ "locationOptions": {
322
+ "type": "string",
323
+ "mutable": false,
324
+ "complexType": {
325
+ "original": "string",
326
+ "resolved": "string",
327
+ "references": {}
328
+ },
329
+ "required": false,
330
+ "optional": false,
331
+ "docs": {
332
+ "tags": [],
333
+ "text": "JSON array of location key/values"
334
+ },
335
+ "attribute": "location-options",
336
+ "reflect": false,
337
+ "defaultValue": "null"
338
+ },
339
+ "fundingOptions": {
340
+ "type": "string",
341
+ "mutable": false,
342
+ "complexType": {
343
+ "original": "string",
344
+ "resolved": "string",
345
+ "references": {}
346
+ },
347
+ "required": false,
348
+ "optional": false,
349
+ "docs": {
350
+ "tags": [],
351
+ "text": "JSON array of funding key/values"
352
+ },
353
+ "attribute": "funding-options",
354
+ "reflect": false,
355
+ "defaultValue": "null"
149
356
  }
150
- }]; }
357
+ };
358
+ }
359
+ static get events() {
360
+ return [{
361
+ "method": "doSearchAndFilterUpdate",
362
+ "name": "doSearchAndFilterUpdate",
363
+ "bubbles": true,
364
+ "cancelable": true,
365
+ "composed": true,
366
+ "docs": {
367
+ "tags": [],
368
+ "text": "This event `doChange` event is emitted and propogates to the parent\ncomponent which handles it"
369
+ },
370
+ "complexType": {
371
+ "original": "object",
372
+ "resolved": "object",
373
+ "references": {}
374
+ }
375
+ }];
376
+ }
377
+ static get elementRef() { return "el"; }
378
+ static get listeners() {
379
+ return [{
380
+ "name": "doSelectChange",
381
+ "method": "doOptionSelectCompletedHandler",
382
+ "target": undefined,
383
+ "capture": false,
384
+ "passive": false
385
+ }];
386
+ }
151
387
  }
@@ -3,10 +3,10 @@ export default {
3
3
  title: 'Components/Campaign Features',
4
4
  //subcomponents: {BiggiveCampaignCard}
5
5
  };
6
- const Template = () => `
7
- <biggive-campaign-card-filter-grid>
6
+ const Template = args => `
7
+ <biggive-campaign-card-filter-grid category-options="${args.categoryOptions}" beneficiary-options="${args.beneficaryOptions}" location-options="${args.locationOptions}" funding-options="${args.fundingOptions}">
8
8
  <biggive-grid slot="campaign-grid" column-count="3">
9
- <biggive-campaign-card
9
+ <biggive-campaign-card
10
10
  campaign-type="Match Funded"
11
11
  campaign-title="Oxford Piano Festival Fundraising Campaign for LGBTQ+ community"
12
12
  organisation-name="Oxford Philharmonic Orchestra"
@@ -18,6 +18,8 @@ const Template = () => `
18
18
  progress-bar-counter="75">
19
19
  </biggive-campaign-card>
20
20
  <biggive-campaign-card
21
+ data-filter-categories="[&quot;Healthcare&quot;]"
22
+ data-filter-beneficiaries="[&quot;Children&quot;]"
21
23
  campaign-type="Match Funded"
22
24
  campaign-title="Oxford Piano Festival Fundraising Campaign for LGBTQ+ community"
23
25
  organisation-name="Oxford Philharmonic Orchestra"
@@ -28,6 +30,8 @@ const Template = () => `
28
30
  secondary-figure-amount="76543">
29
31
  </biggive-campaign-card>
30
32
  <biggive-campaign-card
33
+ data-filter-categories="[&quot;Healthcare&quot;]"
34
+ data-filter-beneficiaries="[&quot;Children&quot;]"
31
35
  campaign-type="Match Funded"
32
36
  campaign-title="Oxford Piano Festival Fundraising Campaign for LGBTQ+ community"
33
37
  organisation-name="Oxford Philharmonic Orchestra"
@@ -40,4 +44,11 @@ const Template = () => `
40
44
  </biggive-grid>
41
45
  </biggive-campaign-card-filter-grid>
42
46
  `;
47
+ document.addEventListener('doSearchAndFilterUpdate', () => alert('doSearchAndFilterUpdate event emitted!'));
43
48
  export const CampaignCardFilterGridComponent = Template.bind({});
49
+ CampaignCardFilterGridComponent.args = {
50
+ categoryOptions: '[&quot;Children&quot;,&quot;Adults&quot;]',
51
+ beneficiaryOptions: '[&quot;Children&quot;,&quot;Adults&quot;]',
52
+ locationOptions: '[&quot;Children&quot;,&quot;Adults&quot;]',
53
+ fundingOptions: '[&quot;ABC&quot;,&quot;Adults&quot;]',
54
+ };
@@ -218,6 +218,26 @@ a:hover {
218
218
  background-color: #FFFFFF;
219
219
  }
220
220
 
221
+ .button-white {
222
+ color: #2C089B;
223
+ background-color: #FFFFFF;
224
+ border-color: #FFFFFF;
225
+ }
226
+ .button-white:hover {
227
+ color: #FFFFFF;
228
+ background-color: #2C089B;
229
+ }
230
+
231
+ .button-black {
232
+ color: #FFFFFF;
233
+ background-color: #000000;
234
+ border-color: #000000;
235
+ }
236
+ .button-black:hover {
237
+ color: #000000;
238
+ background-color: #FFFFFF;
239
+ }
240
+
221
241
  .button-clear-primary {
222
242
  color: #2C089B;
223
243
  background-color: transparent;
@@ -515,6 +535,8 @@ a:hover {
515
535
  margin-top: 2px;
516
536
  padding-bottom: 33.3%;
517
537
  background-color: #F1F1F1;
538
+ background-size: cover;
539
+ background-repeat: no-repeat;
518
540
  margin-bottom: 30px;
519
541
  }
520
542
  .container .banner img {