@biggive/components 1.0.125 → 1.0.127

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 (44) hide show
  1. package/dist/biggive/biggive.esm.js +1 -1
  2. package/dist/biggive/p-192c138d.entry.js +1 -0
  3. package/dist/biggive/p-88faca11.js +1 -0
  4. package/dist/biggive/{p-d413b5f4.js → p-aa4e1a2a.js} +1 -1
  5. package/dist/biggive/{p-504602da.entry.js → p-badd5542.entry.js} +1 -1
  6. package/dist/biggive/{p-b4f34aec.entry.js → p-dd174c64.entry.js} +1 -1
  7. package/dist/biggive/{p-33c7e2c3.entry.js → p-dfc522af.entry.js} +1 -1
  8. package/dist/cjs/{biggive-back-to-top_21.cjs.entry.js → biggive-back-to-top_24.cjs.entry.js} +134 -75
  9. package/dist/cjs/biggive.cjs.js +1 -1
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.js +20 -1
  12. package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.js +152 -73
  13. package/dist/collection/components/biggive-hero-image/biggive-hero-image.css +11 -1
  14. package/dist/collection/components/biggive-hero-image/biggive-hero-image.js +1 -1
  15. package/dist/components/biggive-campaign-card-filter-grid.js +93 -75
  16. package/dist/components/biggive-campaign-card.js +16 -2
  17. package/dist/components/biggive-form-field-select-option.js +1 -44
  18. package/dist/{esm/biggive-form-field-select-option.entry.js → components/biggive-form-field-select-option2.js} +27 -7
  19. package/dist/components/biggive-form-field-select.js +1 -43
  20. package/dist/{esm/biggive-form-field-select.entry.js → components/biggive-form-field-select2.js} +27 -7
  21. package/dist/components/biggive-hero-image.js +2 -2
  22. package/dist/components/biggive-popup.js +1 -39
  23. package/dist/{esm/biggive-popup.entry.js → components/biggive-popup2.js} +25 -8
  24. package/dist/esm/{biggive-back-to-top_21.entry.js → biggive-back-to-top_24.entry.js} +134 -78
  25. package/dist/esm/biggive-beneficiary-icon.entry.js +2 -2
  26. package/dist/esm/biggive-category-icon.entry.js +2 -2
  27. package/dist/esm/biggive-search.entry.js +1 -1
  28. package/dist/esm/biggive.js +1 -1
  29. package/dist/esm/{fontawesome-icons-ceecc882.js → fontawesome-icons-ff9155ca.js} +1 -1
  30. package/dist/esm/{index-6b1d9b0a.js → index-7cfe62c2.js} +1 -1
  31. package/dist/esm/loader.js +1 -1
  32. package/dist/types/components/biggive-campaign-card/biggive-campaign-card.d.ts +4 -0
  33. package/dist/types/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.d.ts +44 -0
  34. package/dist/types/components.d.ts +55 -0
  35. package/hydrate/index.js +71 -77
  36. package/package.json +1 -1
  37. package/dist/biggive/p-648bdc60.entry.js +0 -1
  38. package/dist/biggive/p-ac0b2479.entry.js +0 -1
  39. package/dist/biggive/p-cc38e81b.entry.js +0 -1
  40. package/dist/biggive/p-cfc3ec2c.entry.js +0 -1
  41. package/dist/biggive/p-e417ec44.js +0 -1
  42. package/dist/cjs/biggive-form-field-select-option.cjs.entry.js +0 -30
  43. package/dist/cjs/biggive-form-field-select.cjs.entry.js +0 -29
  44. package/dist/cjs/biggive-popup.cjs.entry.js +0 -28
@@ -1,84 +1,71 @@
1
- import { h /*, Element*/ } from '@stencil/core';
2
- // import { faMagnifyingGlass } from '@fortawesome/pro-solid-svg-icons';
1
+ import { h } from '@stencil/core';
2
+ import { faMagnifyingGlass } from '@fortawesome/pro-solid-svg-icons';
3
3
  export class BiggiveCampaignCardFilterGrid {
4
4
  constructor() {
5
+ this.searchText = null;
6
+ this.sortBy = null;
7
+ this.filterCategory = null;
8
+ this.filterBeneficiary = null;
9
+ this.filterLocation = null;
10
+ this.filterFunding = null;
11
+ this.handleSortByChanged = (event) => {
12
+ this.sortBy = event.target.value;
13
+ this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
14
+ };
15
+ this.handleApplyFilterButtonClick = () => {
16
+ this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
17
+ };
18
+ this.handleSearchButtonPressed = () => {
19
+ this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
20
+ };
21
+ this.handleSearchTextChanged = (event) => {
22
+ this.searchText = event.target.value;
23
+ };
24
+ this.handleEnterPressed = (ev) => {
25
+ if (ev.key === 'Enter') {
26
+ this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
27
+ }
28
+ };
29
+ this.handleFilterButtonClick = () => {
30
+ this.el.shadowRoot.getElementById('filter-popup').open();
31
+ };
5
32
  this.spaceBelow = 0;
6
33
  this.intro = 'Find a charity or project';
7
34
  this.placeholderText = 'Search';
8
35
  this.buttonText = 'Search';
36
+ this.categoryOptions = [];
37
+ this.beneficiaryOptions = [];
38
+ this.locationOptions = [];
39
+ this.fundingOptions = [];
40
+ }
41
+ getSearchAndFilterObject() {
42
+ const event = {
43
+ searchText: this.searchText,
44
+ sortBy: this.sortBy,
45
+ filterCategory: this.filterCategory,
46
+ filterBeneficiary: this.filterBeneficiary,
47
+ filterFunding: this.filterFunding,
48
+ filterLocation: this.filterLocation,
49
+ };
50
+ return event;
51
+ }
52
+ doOptionSelectCompletedHandler() {
53
+ this.sortBy = this.el.shadowRoot.getElementById('sort-by').selectedValue;
54
+ this.filterCategory = this.el.shadowRoot.getElementById('categories').selectedValue;
55
+ this.filterBeneficiary = this.el.shadowRoot.getElementById('beneficiaries').selectedValue;
56
+ this.filterLocation = this.el.shadowRoot.getElementById('locations').selectedValue;
57
+ this.filterFunding = this.el.shadowRoot.getElementById('funding').selectedValue;
9
58
  }
10
- // /**
11
- // * JSON array of category key/values
12
- // */
13
- // @Prop() categoryOptions: string[] = [];
14
- // /**
15
- // * JSON array of beneficiary key/values
16
- // */
17
- // @Prop() beneficiaryOptions: string[] = [];
18
- // /**
19
- // * JSON array of location key/values
20
- // */
21
- // @Prop() locationOptions: string[] = [];
22
- // /**
23
- // * JSON array of funding key/values
24
- // */
25
- // @Prop() fundingOptions: string[] = [];
26
- // private getSearchAndFilterObject(): {
27
- // searchText: string;
28
- // sortBy: string;
29
- // filterCategory: string;
30
- // filterBeneficiary: string;
31
- // filterLocation: string;
32
- // filterFunding: string;
33
- // } {
34
- // const event: {
35
- // searchText: string;
36
- // sortBy: string;
37
- // filterCategory: string;
38
- // filterBeneficiary: string;
39
- // filterLocation: string;
40
- // filterFunding: string;
41
- // } = {
42
- // searchText: this.searchText,
43
- // sortBy: this.sortBy,
44
- // filterCategory: this.filterCategory,
45
- // filterBeneficiary: this.filterBeneficiary,
46
- // filterFunding: this.filterFunding,
47
- // filterLocation: this.filterLocation,
48
- // };
49
- // return event;
50
- // }
51
- // @Listen('doSelectChange')
52
- // doOptionSelectCompletedHandler() {
53
- // this.sortBy = this.el.shadowRoot.getElementById('sort-by').selectedValue;
54
- // this.filterCategory = this.el.shadowRoot.getElementById('categories').selectedValue;
55
- // this.filterBeneficiary = this.el.shadowRoot.getElementById('beneficiaries').selectedValue;
56
- // this.filterLocation = this.el.shadowRoot.getElementById('locations').selectedValue;
57
- // this.filterFunding = this.el.shadowRoot.getElementById('funding').selectedValue;
58
- // }
59
- // private handleSortByChanged = (event: any) => {
60
- // this.sortBy = event.target.value;
61
- // this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
62
- // };
63
- // private handleApplyFilterButtonClick = () => {
64
- // this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
65
- // };
66
- // private handleSearchButtonPressed = () => {
67
- // this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
68
- // };
69
- // private handleSearchTextChanged = (event: any) => {
70
- // this.searchText = event.target.value;
71
- // };
72
- // private handleEnterPressed = (ev: KeyboardEvent) => {
73
- // if (ev.key === 'Enter') {
74
- // this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
75
- // }
76
- // };
77
- // private handleFilterButtonClick = () => {
78
- // this.el.shadowRoot.getElementById('filter-popup').open();
79
- // };
80
59
  render() {
81
- return (h("div", { class: 'container space-below-' + this.spaceBelow }, h("div", { class: "sleeve" }, h("div", { class: "campaign-grid" }, h("slot", { name: "campaign-grid" })))));
60
+ 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: this.handleSearchTextChanged, onKeyDown: this.handleEnterPressed })), h("biggive-button", { onClick: this.handleSearchButtonPressed, label: this.buttonText }))), h("div", { class: "sort-filter-wrap" }, h("div", { class: "sort-wrap" }, h("biggive-form-field-select", { placeholder: "Sort by", id: "sort-by", onDoSelectChange: this.handleSortByChanged }, h("biggive-form-field-select-option", { value: "amountRaised", label: "Most raised" }), h("biggive-form-field-select-option", { value: "matchFundsRemaining", label: "Match funds remaining" }))), h("div", { class: "filter-wrap" }, h("biggive-button", { class: "filter", onClick: this.handleFilterButtonClick, label: "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" }, this.categoryOptions.length === 0
61
+ ? undefined
62
+ : this.categoryOptions.map(option => h("biggive-form-field-select-option", { value: option, label: option }))), h("biggive-form-field-select", { placeholder: "Beneficiary", id: "beneficiaries", "space-below": "2" }, this.beneficiaryOptions.length === 0
63
+ ? undefined
64
+ : this.beneficiaryOptions.map(option => h("biggive-form-field-select-option", { value: option, label: option }))), h("biggive-form-field-select", { placeholder: "Location", id: "locations", "space-below": "2" }, this.locationOptions.length === 0
65
+ ? undefined
66
+ : this.locationOptions.map(option => h("biggive-form-field-select-option", { value: option, label: option }))), h("biggive-form-field-select", { placeholder: "Funding", id: "funding", "space-below": "2" }, this.fundingOptions.length === 0
67
+ ? undefined
68
+ : this.fundingOptions.map(option => h("biggive-form-field-select-option", { value: option, label: option }))), h("div", { class: "align-right" }, h("biggive-button", { label: "Apply filters", onClick: this.handleApplyFilterButtonClick }))))), h("div", { class: "campaign-grid" }, h("slot", { name: "campaign-grid" })))));
82
69
  }
83
70
  static get is() { return "biggive-campaign-card-filter-grid"; }
84
71
  static get encapsulation() { return "shadow"; }
@@ -165,7 +152,99 @@ export class BiggiveCampaignCardFilterGrid {
165
152
  "attribute": "button-text",
166
153
  "reflect": false,
167
154
  "defaultValue": "'Search'"
155
+ },
156
+ "categoryOptions": {
157
+ "type": "unknown",
158
+ "mutable": false,
159
+ "complexType": {
160
+ "original": "string[]",
161
+ "resolved": "string[]",
162
+ "references": {}
163
+ },
164
+ "required": false,
165
+ "optional": false,
166
+ "docs": {
167
+ "tags": [],
168
+ "text": "JSON array of category key/values"
169
+ },
170
+ "defaultValue": "[]"
171
+ },
172
+ "beneficiaryOptions": {
173
+ "type": "unknown",
174
+ "mutable": false,
175
+ "complexType": {
176
+ "original": "string[]",
177
+ "resolved": "string[]",
178
+ "references": {}
179
+ },
180
+ "required": false,
181
+ "optional": false,
182
+ "docs": {
183
+ "tags": [],
184
+ "text": "JSON array of beneficiary key/values"
185
+ },
186
+ "defaultValue": "[]"
187
+ },
188
+ "locationOptions": {
189
+ "type": "unknown",
190
+ "mutable": false,
191
+ "complexType": {
192
+ "original": "string[]",
193
+ "resolved": "string[]",
194
+ "references": {}
195
+ },
196
+ "required": false,
197
+ "optional": false,
198
+ "docs": {
199
+ "tags": [],
200
+ "text": "JSON array of location key/values"
201
+ },
202
+ "defaultValue": "[]"
203
+ },
204
+ "fundingOptions": {
205
+ "type": "unknown",
206
+ "mutable": false,
207
+ "complexType": {
208
+ "original": "string[]",
209
+ "resolved": "string[]",
210
+ "references": {}
211
+ },
212
+ "required": false,
213
+ "optional": false,
214
+ "docs": {
215
+ "tags": [],
216
+ "text": "JSON array of funding key/values"
217
+ },
218
+ "defaultValue": "[]"
168
219
  }
169
220
  };
170
221
  }
222
+ static get events() {
223
+ return [{
224
+ "method": "doSearchAndFilterUpdate",
225
+ "name": "doSearchAndFilterUpdate",
226
+ "bubbles": true,
227
+ "cancelable": true,
228
+ "composed": true,
229
+ "docs": {
230
+ "tags": [],
231
+ "text": "This event `doSearchAndFilterUpdate` event is emitted and propogates to the parent\ncomponent which handles it"
232
+ },
233
+ "complexType": {
234
+ "original": "{\n searchText: string;\n sortBy: string;\n filterCategory: string;\n filterBeneficiary: string;\n filterLocation: string;\n filterFunding: string;\n }",
235
+ "resolved": "{ searchText: string; sortBy: string; filterCategory: string; filterBeneficiary: string; filterLocation: string; filterFunding: string; }",
236
+ "references": {}
237
+ }
238
+ }];
239
+ }
240
+ static get elementRef() { return "el"; }
241
+ static get listeners() {
242
+ return [{
243
+ "name": "doSelectChange",
244
+ "method": "doOptionSelectCompletedHandler",
245
+ "target": undefined,
246
+ "capture": false,
247
+ "passive": false
248
+ }];
249
+ }
171
250
  }
@@ -547,8 +547,10 @@ a:hover {
547
547
  white-space: pre-wrap;
548
548
  padding: 180px 60px 60px 0;
549
549
  }
550
- .container .content-wrap .logo {
550
+ .container .content-wrap .logo, .container .content-wrap .logo-space {
551
551
  height: 75px;
552
+ }
553
+ .container .content-wrap .logo {
552
554
  margin-bottom: 30px;
553
555
  background-size: contain;
554
556
  background-repeat: no-repeat;
@@ -561,6 +563,7 @@ a:hover {
561
563
  font-size: 20px;
562
564
  line-height: 24px;
563
565
  font-weight: bold;
566
+ min-height: 24px;
564
567
  margin: 0;
565
568
  padding: 0;
566
569
  }
@@ -571,6 +574,13 @@ a:hover {
571
574
  margin: 0 0 15px 0;
572
575
  padding: 0;
573
576
  }
577
+ @media (max-width: 768px) {
578
+ .container .content-wrap h1 {
579
+ font-size: 38px;
580
+ line-height: 45px;
581
+ font-weight: bold;
582
+ }
583
+ }
574
584
  .container .content-wrap .teaser {
575
585
  margin: 0 0 45px 0;
576
586
  padding: 0;
@@ -19,7 +19,7 @@ export class BiggiveHeroImage {
19
19
  this.buttonColourScheme = 'primary';
20
20
  }
21
21
  render() {
22
- return (h("div", { class: 'container colour-scheme-' + this.colourScheme + ' space-below-' + this.spaceBelow }, h("div", { class: "sleeve" }, h("div", { class: "content-wrap" }, this.logo.length > 0 ? (h("div", { class: "logo image-wrap", style: { 'background-image': 'url(' + this.logo + ')' } }, h("img", { src: this.logo }))) : null, h("div", { class: 'slug text-colour-' + this.slugColour }, this.slug), h("h1", { class: 'main-title text-colour-' + this.mainTitleColour }, this.mainTitle), h("div", { class: 'teaser text-colour-' + this.teaserColour }, this.teaser), this.buttonLabel != null && this.buttonUrl != null
22
+ return (h("div", { class: 'container colour-scheme-' + this.colourScheme + ' space-below-' + this.spaceBelow }, h("div", { class: "sleeve" }, h("div", { class: "content-wrap" }, this.logo.length > 0 ? (h("div", { class: "logo image-wrap", style: { 'background-image': 'url(' + this.logo + ')' } }, h("img", { src: this.logo }))) : h("div", { class: "logo-space" }), h("div", { class: 'slug text-colour-' + this.slugColour }, this.slug), h("h1", { class: 'main-title text-colour-' + this.mainTitleColour }, this.mainTitle), h("div", { class: 'teaser text-colour-' + this.teaserColour }, this.teaser), this.buttonLabel != null && this.buttonUrl != null
23
23
  ? h("biggive-button", { "colour-scheme": this.buttonColourScheme, url: this.buttonUrl, label: this.buttonLabel })
24
24
  : null), h("div", { class: "graphic-wrap" }, this.mainImage !== null ? (h("div", { class: "image-wrap", style: { 'background-image': 'url(' + this.mainImage + ')', 'background-position': this.mainImageAlignHorizontal + ' ' + this.mainImageAlignVertical } }, h("img", { src: this.mainImage }))) : null))));
25
25
  }
@@ -1,4 +1,9 @@
1
- import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
1
+ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+ import { f as faMagnifyingGlass } from './index2.js';
3
+ import { d as defineCustomElement$5 } from './biggive-button2.js';
4
+ import { d as defineCustomElement$4 } from './biggive-form-field-select2.js';
5
+ import { d as defineCustomElement$3 } from './biggive-form-field-select-option2.js';
6
+ import { d as defineCustomElement$2 } from './biggive-popup2.js';
2
7
 
3
8
  const biggiveCampaignCardFilterGridCss = "body{background-color:#D7D7D7}h1,h3,h4,h5,h6{margin-bottom:0}h1,.heading-1{font-size:47px;line-height:60px;font-weight:bold}h2,.heading-2{font-size:38px;line-height:45px;font-weight:bold}h3,.heading-3{font-size:25px;line-height:32px;font-weight:bold}h4,.heading-4{font-size:20px;line-height:24px;font-weight:bold}h5,.heading-5{font-size:17px;line-height:24px;font-weight:bold}a{color:inherit;text-decoration:underline}a:hover{text-decoration:none}.colour-primary{color:#2C089B}.colour-secondary{color:#2AF135}.colour-tertiary{color:#FF7272}.colour-white{color:#FFFFFF}.colour-black{color:#000000}.text-colour-hover-primary:hover,.text-colour-primary{color:#2C089B}.text-colour-hover-secondary:hover,.text-colour-secondary{color:#2AF135}.text-colour-hover-tertiary:hover,.text-colour-tertiary{color:#FF7272}.text-colour-hover-white:hover,.text-colour-white{color:#FFFFFF}.text-colour-hover-black:hover,.text-colour-black{color:#000000}.fill-primary{fill:#2C089B}.fill-secondary{fill:#2AF135}.fill-tertiary{fill:#FF7272}.fill-white{fill:#FFFFFF}.fill-black{fill:#000000}.fill-red{fill:red}.background-colour-hover-primary:hover,.background-colour-primary{background-color:#2C089B}.background-colour-hover-secondary:hover,.background-colour-secondary{background-color:#2AF135}.background-colour-hover-tertiary:hover,.background-colour-tertiary{background-color:#FF7272}.background-colour-hover-white:hover,.background-colour-white{background-color:#FFFFFF}.background-colour-hover-black:hover,.background-colour-black{background-color:#000000}.input-wrap{display:flex;justify-content:space-between}.input-text{font-family:\"Euclid Triangle\", sans-serif;font-size:17px;line-height:24px;color:#000000;padding:5px 10px;box-sizing:border-box;width:100%}.input-text:focus{outline:0}.input-text:placeholder{color:#4A4A4A}.button{font-size:17px;line-height:24px;padding:10px 30px;border-radius:5px;border:1px solid #000000;background-color:#000000;filter:drop-shadow(0px 8px 20px rgba(0, 0, 0, 0.22));color:#FFFFFF;display:inline-block;text-decoration:none;text-align:center;transition:all ease-in-out 0.5s;cursor:pointer}.button:hover{background-color:#FFFFFF;color:#000000}.button.size-small{font-size:13px;line-height:17px;padding:5px 15px}.button.button.rounded-true{border-radius:27.5px}.button.button.rounded-true.size-small{border-radius:20px}.button-primary{color:#FFFFFF;background-color:#2C089B;border-color:#2C089B}.button-primary:hover{color:#2C089B;background-color:#FFFFFF}.button-secondary{color:#2C089B;background-color:#2AF135;border-color:#2AF135}.button-secondary:hover{background-color:#FFFFFF}.button-tertiary{color:#FFFFFF;background-color:#FF7272;border-color:#FF7272}.button-tertiary:hover{background-color:#FFFFFF}.button-white{color:#2C089B;background-color:#FFFFFF;border-color:#FFFFFF}.button-white:hover{color:#FFFFFF;background-color:#2C089B}.button-black{color:#FFFFFF;background-color:#000000;border-color:#000000}.button-black:hover{color:#000000;background-color:#FFFFFF}.button-clear-primary{color:#2C089B;background-color:transparent;text-decoration:underline;box-shadow:none;border:0;padding-left:0;padding-right:0}.button-clear-primary:hover{text-decoration:none;background-color:transparent}.button-clear-secondary{color:#2AF135;background-color:transparent;text-decoration:underline;box-shadow:none;border:0;padding-left:0;padding-right:0}.button-clear-secondary:hover{text-decoration:none;background-color:transparent}.button-clear-tertiary{color:#FF7272;background-color:transparent;text-decoration:underline;box-shadow:none;border:0;padding-left:0;padding-right:0}.button-clear-tertiary:hover{text-decoration:none;background-color:transparent}.button-clear-white{color:#FFFFFF;background-color:transparent;text-decoration:underline;box-shadow:none;border:0;padding-left:0;padding-right:0}.button-clear-white:hover{color:#FFFFFF;text-decoration:none;background-color:transparent}.button-rounded{border-radius:27.5px}.button-rounded.size-small{border-radius:20px}.progress-bar{display:flex}.progress-bar .slider{margin:auto 15px auto 0;position:relative;flex-grow:1}.progress-bar .slider:before{content:\"\";position:absolute;display:block;top:0;left:0;bottom:0;right:0;background-color:#E8E8E8;border-radius:4px}.progress-bar .slider .progress{position:relative;border-radius:4px;background-color:#000000;height:8px}.progress-bar .counter{font-weight:700;color:#000000;font-size:14px;line-height:18px}.progress-bar-primary .slider .progress{background-color:#2C089B}.progress-bar-primary .counter{color:#2C089B}.progress-bar-secondary .slider .progress{background-color:#2AF135}.progress-bar-secondary .counter{color:#2AF135}.video-wrap{position:relative;padding-bottom:56.25%}.video-wrap iframe,.video-wrap video{position:absolute;border:0;display:block;left:0;right:0;top:0;bottom:0;width:100%;height:100%}.image-wrap img{width:100%;height:auto}.align-left{text-align:left}.align-right{text-align:right}.align-center{text-align:center}.align-justify{text-align:justify}.space-below-0{margin-bottom:0}.space-below-1{margin-bottom:5px}.space-below-2{margin-bottom:10px}.space-below-3{margin-bottom:15px}.space-below-4{margin-bottom:30px}.space-below-5{margin-bottom:45px}.space-below-6{margin-bottom:60px}.space-above-0{margin-top:0}.space-above-1{margin-top:5px}.space-above-2{margin-top:10px}.space-above-3{margin-top:15px}.space-above-4{margin-top:30px}.space-above-5{margin-top:45px}.space-above-6{margin-top:60px}.horizontal-padding-1{padding-left:5px;padding-right:5px}.horizontal-padding-2{padding-left:10px;padding-right:10px}.horizontal-padding-3{padding-left:15px;padding-right:15px}.horizontal-padding-4{padding-left:30px;padding-right:30px}.horizontal-padding-5{padding-left:45px;padding-right:45px}.horizontal-padding-6{padding-left:60px;padding-right:60px}.vertical-padding-1{padding-top:5px;padding-bottom:5px}.vertical-padding-2{padding-top:10px;padding-bottom:10px}.vertical-padding-3{padding-top:15px;padding-bottom:15px}.vertical-padding-4{padding-top:30px;padding-bottom:30px}.vertical-padding-5{padding-top:45px;padding-bottom:45px}.vertical-padding-6{padding-top:60px;padding-bottom:60px}:host{display:content}.container{font-family:\"Euclid Triangle\", sans-serif;font-size:17px;line-height:24px;position:relative}.container .search-wrap{filter:drop-shadow(-1px 3px 12px rgba(0, 0, 0, 0.25));background-color:#FFFFFF;padding:15px 30px;margin-bottom:60px}.container .search-wrap h4{margin-bottom:15px}.container .search-wrap .field-wrap{display:flex;justify-content:space-between}.container .search-wrap .field-wrap .input-wrap{padding-bottom:5px;border-bottom:1px solid #000000;margin-right:30px;flex-grow:1}.container .search-wrap .field-wrap .input-wrap input{border:0}.container .search-wrap .field-wrap button{padding:5px 30px}.sort-filter-wrap{display:flex;align-items:flex-end;margin-bottom:30px;text-align:right}.sort-filter-wrap .sort-wrap{margin-left:auto}.sort-filter-wrap .filter-wrap{margin-left:15px}.sort-filter-wrap .filter-wrap .button.filter{padding-left:60px;padding-right:30px}.sort-filter-wrap .filter-wrap .button.filter .filter-icon{content:\"\";display:block;position:absolute;left:25px;top:17px;width:13px;height:13px}.sort-filter-wrap .filter-wrap .button.filter .filter-icon svg{width:100%;height:auto;vertical-align:top}.sort-filter-wrap .filter-wrap .button.filter .filter-icon svg:hover{fill:#2C089B}.icon{height:1rem;width:2rem;vertical-align:-0.125rem;margin:auto}.icon>path{fill:#2C089B}";
4
9
 
@@ -7,102 +12,115 @@ const BiggiveCampaignCardFilterGrid$1 = /*@__PURE__*/ proxyCustomElement(class e
7
12
  super();
8
13
  this.__registerHost();
9
14
  this.__attachShadow();
15
+ this.doSearchAndFilterUpdate = createEvent(this, "doSearchAndFilterUpdate", 7);
16
+ this.searchText = null;
17
+ this.sortBy = null;
18
+ this.filterCategory = null;
19
+ this.filterBeneficiary = null;
20
+ this.filterLocation = null;
21
+ this.filterFunding = null;
22
+ this.handleSortByChanged = (event) => {
23
+ this.sortBy = event.target.value;
24
+ this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
25
+ };
26
+ this.handleApplyFilterButtonClick = () => {
27
+ this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
28
+ };
29
+ this.handleSearchButtonPressed = () => {
30
+ this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
31
+ };
32
+ this.handleSearchTextChanged = (event) => {
33
+ this.searchText = event.target.value;
34
+ };
35
+ this.handleEnterPressed = (ev) => {
36
+ if (ev.key === 'Enter') {
37
+ this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
38
+ }
39
+ };
40
+ this.handleFilterButtonClick = () => {
41
+ this.el.shadowRoot.getElementById('filter-popup').open();
42
+ };
10
43
  this.spaceBelow = 0;
11
44
  this.intro = 'Find a charity or project';
12
45
  this.placeholderText = 'Search';
13
46
  this.buttonText = 'Search';
47
+ this.categoryOptions = [];
48
+ this.beneficiaryOptions = [];
49
+ this.locationOptions = [];
50
+ this.fundingOptions = [];
51
+ }
52
+ getSearchAndFilterObject() {
53
+ const event = {
54
+ searchText: this.searchText,
55
+ sortBy: this.sortBy,
56
+ filterCategory: this.filterCategory,
57
+ filterBeneficiary: this.filterBeneficiary,
58
+ filterFunding: this.filterFunding,
59
+ filterLocation: this.filterLocation,
60
+ };
61
+ return event;
62
+ }
63
+ doOptionSelectCompletedHandler() {
64
+ this.sortBy = this.el.shadowRoot.getElementById('sort-by').selectedValue;
65
+ this.filterCategory = this.el.shadowRoot.getElementById('categories').selectedValue;
66
+ this.filterBeneficiary = this.el.shadowRoot.getElementById('beneficiaries').selectedValue;
67
+ this.filterLocation = this.el.shadowRoot.getElementById('locations').selectedValue;
68
+ this.filterFunding = this.el.shadowRoot.getElementById('funding').selectedValue;
14
69
  }
15
- // /**
16
- // * JSON array of category key/values
17
- // */
18
- // @Prop() categoryOptions: string[] = [];
19
- // /**
20
- // * JSON array of beneficiary key/values
21
- // */
22
- // @Prop() beneficiaryOptions: string[] = [];
23
- // /**
24
- // * JSON array of location key/values
25
- // */
26
- // @Prop() locationOptions: string[] = [];
27
- // /**
28
- // * JSON array of funding key/values
29
- // */
30
- // @Prop() fundingOptions: string[] = [];
31
- // private getSearchAndFilterObject(): {
32
- // searchText: string;
33
- // sortBy: string;
34
- // filterCategory: string;
35
- // filterBeneficiary: string;
36
- // filterLocation: string;
37
- // filterFunding: string;
38
- // } {
39
- // const event: {
40
- // searchText: string;
41
- // sortBy: string;
42
- // filterCategory: string;
43
- // filterBeneficiary: string;
44
- // filterLocation: string;
45
- // filterFunding: string;
46
- // } = {
47
- // searchText: this.searchText,
48
- // sortBy: this.sortBy,
49
- // filterCategory: this.filterCategory,
50
- // filterBeneficiary: this.filterBeneficiary,
51
- // filterFunding: this.filterFunding,
52
- // filterLocation: this.filterLocation,
53
- // };
54
- // return event;
55
- // }
56
- // @Listen('doSelectChange')
57
- // doOptionSelectCompletedHandler() {
58
- // this.sortBy = this.el.shadowRoot.getElementById('sort-by').selectedValue;
59
- // this.filterCategory = this.el.shadowRoot.getElementById('categories').selectedValue;
60
- // this.filterBeneficiary = this.el.shadowRoot.getElementById('beneficiaries').selectedValue;
61
- // this.filterLocation = this.el.shadowRoot.getElementById('locations').selectedValue;
62
- // this.filterFunding = this.el.shadowRoot.getElementById('funding').selectedValue;
63
- // }
64
- // private handleSortByChanged = (event: any) => {
65
- // this.sortBy = event.target.value;
66
- // this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
67
- // };
68
- // private handleApplyFilterButtonClick = () => {
69
- // this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
70
- // };
71
- // private handleSearchButtonPressed = () => {
72
- // this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
73
- // };
74
- // private handleSearchTextChanged = (event: any) => {
75
- // this.searchText = event.target.value;
76
- // };
77
- // private handleEnterPressed = (ev: KeyboardEvent) => {
78
- // if (ev.key === 'Enter') {
79
- // this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
80
- // }
81
- // };
82
- // private handleFilterButtonClick = () => {
83
- // this.el.shadowRoot.getElementById('filter-popup').open();
84
- // };
85
70
  render() {
86
- return (h("div", { class: 'container space-below-' + this.spaceBelow }, h("div", { class: "sleeve" }, h("div", { class: "campaign-grid" }, h("slot", { name: "campaign-grid" })))));
71
+ 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: this.handleSearchTextChanged, onKeyDown: this.handleEnterPressed })), h("biggive-button", { onClick: this.handleSearchButtonPressed, label: this.buttonText }))), h("div", { class: "sort-filter-wrap" }, h("div", { class: "sort-wrap" }, h("biggive-form-field-select", { placeholder: "Sort by", id: "sort-by", onDoSelectChange: this.handleSortByChanged }, h("biggive-form-field-select-option", { value: "amountRaised", label: "Most raised" }), h("biggive-form-field-select-option", { value: "matchFundsRemaining", label: "Match funds remaining" }))), h("div", { class: "filter-wrap" }, h("biggive-button", { class: "filter", onClick: this.handleFilterButtonClick, label: "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" }, this.categoryOptions.length === 0
72
+ ? undefined
73
+ : this.categoryOptions.map(option => h("biggive-form-field-select-option", { value: option, label: option }))), h("biggive-form-field-select", { placeholder: "Beneficiary", id: "beneficiaries", "space-below": "2" }, this.beneficiaryOptions.length === 0
74
+ ? undefined
75
+ : this.beneficiaryOptions.map(option => h("biggive-form-field-select-option", { value: option, label: option }))), h("biggive-form-field-select", { placeholder: "Location", id: "locations", "space-below": "2" }, this.locationOptions.length === 0
76
+ ? undefined
77
+ : this.locationOptions.map(option => h("biggive-form-field-select-option", { value: option, label: option }))), h("biggive-form-field-select", { placeholder: "Funding", id: "funding", "space-below": "2" }, this.fundingOptions.length === 0
78
+ ? undefined
79
+ : this.fundingOptions.map(option => h("biggive-form-field-select-option", { value: option, label: option }))), h("div", { class: "align-right" }, h("biggive-button", { label: "Apply filters", onClick: this.handleApplyFilterButtonClick }))))), h("div", { class: "campaign-grid" }, h("slot", { name: "campaign-grid" })))));
87
80
  }
81
+ get el() { return this; }
88
82
  static get style() { return biggiveCampaignCardFilterGridCss; }
89
83
  }, [1, "biggive-campaign-card-filter-grid", {
90
84
  "spaceBelow": [2, "space-below"],
91
85
  "intro": [1],
92
86
  "placeholderText": [1, "placeholder-text"],
93
- "buttonText": [1, "button-text"]
94
- }]);
87
+ "buttonText": [1, "button-text"],
88
+ "categoryOptions": [16],
89
+ "beneficiaryOptions": [16],
90
+ "locationOptions": [16],
91
+ "fundingOptions": [16]
92
+ }, [[0, "doSelectChange", "doOptionSelectCompletedHandler"]]]);
95
93
  function defineCustomElement$1() {
96
94
  if (typeof customElements === "undefined") {
97
95
  return;
98
96
  }
99
- const components = ["biggive-campaign-card-filter-grid"];
97
+ const components = ["biggive-campaign-card-filter-grid", "biggive-button", "biggive-form-field-select", "biggive-form-field-select-option", "biggive-popup"];
100
98
  components.forEach(tagName => { switch (tagName) {
101
99
  case "biggive-campaign-card-filter-grid":
102
100
  if (!customElements.get(tagName)) {
103
101
  customElements.define(tagName, BiggiveCampaignCardFilterGrid$1);
104
102
  }
105
103
  break;
104
+ case "biggive-button":
105
+ if (!customElements.get(tagName)) {
106
+ defineCustomElement$5();
107
+ }
108
+ break;
109
+ case "biggive-form-field-select":
110
+ if (!customElements.get(tagName)) {
111
+ defineCustomElement$4();
112
+ }
113
+ break;
114
+ case "biggive-form-field-select-option":
115
+ if (!customElements.get(tagName)) {
116
+ defineCustomElement$3();
117
+ }
118
+ break;
119
+ case "biggive-popup":
120
+ if (!customElements.get(tagName)) {
121
+ defineCustomElement$2();
122
+ }
123
+ break;
106
124
  } });
107
125
  }
108
126
 
@@ -1,4 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+ import { d as defineCustomElement$3 } from './biggive-button2.js';
3
+ import { d as defineCustomElement$2 } from './biggive-progress-bar2.js';
2
4
 
3
5
  const biggiveCampaignCardCss = "body{background-color:#D7D7D7}h1,h3,h4,h5,h6{margin-bottom:0}h1,.heading-1{font-size:47px;line-height:60px;font-weight:bold}h2,.heading-2{font-size:38px;line-height:45px;font-weight:bold}h3,.heading-3{font-size:25px;line-height:32px;font-weight:bold}h4,.heading-4{font-size:20px;line-height:24px;font-weight:bold}h5,.heading-5{font-size:17px;line-height:24px;font-weight:bold}a{color:inherit;text-decoration:underline}a:hover{text-decoration:none}.colour-primary{color:#2C089B}.colour-secondary{color:#2AF135}.colour-tertiary{color:#FF7272}.colour-white{color:#FFFFFF}.colour-black{color:#000000}.text-colour-hover-primary:hover,.text-colour-primary{color:#2C089B}.text-colour-hover-secondary:hover,.text-colour-secondary{color:#2AF135}.text-colour-hover-tertiary:hover,.text-colour-tertiary{color:#FF7272}.text-colour-hover-white:hover,.text-colour-white{color:#FFFFFF}.text-colour-hover-black:hover,.text-colour-black{color:#000000}.fill-primary{fill:#2C089B}.fill-secondary{fill:#2AF135}.fill-tertiary{fill:#FF7272}.fill-white{fill:#FFFFFF}.fill-black{fill:#000000}.fill-red{fill:red}.background-colour-hover-primary:hover,.background-colour-primary{background-color:#2C089B}.background-colour-hover-secondary:hover,.background-colour-secondary{background-color:#2AF135}.background-colour-hover-tertiary:hover,.background-colour-tertiary{background-color:#FF7272}.background-colour-hover-white:hover,.background-colour-white{background-color:#FFFFFF}.background-colour-hover-black:hover,.background-colour-black{background-color:#000000}.input-wrap{display:flex;justify-content:space-between}.input-text{font-family:\"Euclid Triangle\", sans-serif;font-size:17px;line-height:24px;color:#000000;padding:5px 10px;box-sizing:border-box;width:100%}.input-text:focus{outline:0}.input-text:placeholder{color:#4A4A4A}.button{font-size:17px;line-height:24px;padding:10px 30px;border-radius:5px;border:1px solid #000000;background-color:#000000;filter:drop-shadow(0px 8px 20px rgba(0, 0, 0, 0.22));color:#FFFFFF;display:inline-block;text-decoration:none;text-align:center;transition:all ease-in-out 0.5s;cursor:pointer}.button:hover{background-color:#FFFFFF;color:#000000}.button.size-small{font-size:13px;line-height:17px;padding:5px 15px}.button.button.rounded-true{border-radius:27.5px}.button.button.rounded-true.size-small{border-radius:20px}.button-primary{color:#FFFFFF;background-color:#2C089B;border-color:#2C089B}.button-primary:hover{color:#2C089B;background-color:#FFFFFF}.button-secondary{color:#2C089B;background-color:#2AF135;border-color:#2AF135}.button-secondary:hover{background-color:#FFFFFF}.button-tertiary{color:#FFFFFF;background-color:#FF7272;border-color:#FF7272}.button-tertiary:hover{background-color:#FFFFFF}.button-white{color:#2C089B;background-color:#FFFFFF;border-color:#FFFFFF}.button-white:hover{color:#FFFFFF;background-color:#2C089B}.button-black{color:#FFFFFF;background-color:#000000;border-color:#000000}.button-black:hover{color:#000000;background-color:#FFFFFF}.button-clear-primary{color:#2C089B;background-color:transparent;text-decoration:underline;box-shadow:none;border:0;padding-left:0;padding-right:0}.button-clear-primary:hover{text-decoration:none;background-color:transparent}.button-clear-secondary{color:#2AF135;background-color:transparent;text-decoration:underline;box-shadow:none;border:0;padding-left:0;padding-right:0}.button-clear-secondary:hover{text-decoration:none;background-color:transparent}.button-clear-tertiary{color:#FF7272;background-color:transparent;text-decoration:underline;box-shadow:none;border:0;padding-left:0;padding-right:0}.button-clear-tertiary:hover{text-decoration:none;background-color:transparent}.button-clear-white{color:#FFFFFF;background-color:transparent;text-decoration:underline;box-shadow:none;border:0;padding-left:0;padding-right:0}.button-clear-white:hover{color:#FFFFFF;text-decoration:none;background-color:transparent}.button-rounded{border-radius:27.5px}.button-rounded.size-small{border-radius:20px}.progress-bar{display:flex}.progress-bar .slider{margin:auto 15px auto 0;position:relative;flex-grow:1}.progress-bar .slider:before{content:\"\";position:absolute;display:block;top:0;left:0;bottom:0;right:0;background-color:#E8E8E8;border-radius:4px}.progress-bar .slider .progress{position:relative;border-radius:4px;background-color:#000000;height:8px}.progress-bar .counter{font-weight:700;color:#000000;font-size:14px;line-height:18px}.progress-bar-primary .slider .progress{background-color:#2C089B}.progress-bar-primary .counter{color:#2C089B}.progress-bar-secondary .slider .progress{background-color:#2AF135}.progress-bar-secondary .counter{color:#2AF135}.video-wrap{position:relative;padding-bottom:56.25%}.video-wrap iframe,.video-wrap video{position:absolute;border:0;display:block;left:0;right:0;top:0;bottom:0;width:100%;height:100%}.image-wrap img{width:100%;height:auto}.align-left{text-align:left}.align-right{text-align:right}.align-center{text-align:center}.align-justify{text-align:justify}.space-below-0{margin-bottom:0}.space-below-1{margin-bottom:5px}.space-below-2{margin-bottom:10px}.space-below-3{margin-bottom:15px}.space-below-4{margin-bottom:30px}.space-below-5{margin-bottom:45px}.space-below-6{margin-bottom:60px}.space-above-0{margin-top:0}.space-above-1{margin-top:5px}.space-above-2{margin-top:10px}.space-above-3{margin-top:15px}.space-above-4{margin-top:30px}.space-above-5{margin-top:45px}.space-above-6{margin-top:60px}.horizontal-padding-1{padding-left:5px;padding-right:5px}.horizontal-padding-2{padding-left:10px;padding-right:10px}.horizontal-padding-3{padding-left:15px;padding-right:15px}.horizontal-padding-4{padding-left:30px;padding-right:30px}.horizontal-padding-5{padding-left:45px;padding-right:45px}.horizontal-padding-6{padding-left:60px;padding-right:60px}.vertical-padding-1{padding-top:5px;padding-bottom:5px}.vertical-padding-2{padding-top:10px;padding-bottom:10px}.vertical-padding-3{padding-top:15px;padding-bottom:15px}.vertical-padding-4{padding-top:30px;padding-bottom:30px}.vertical-padding-5{padding-top:45px;padding-bottom:45px}.vertical-padding-6{padding-top:60px;padding-bottom:60px}:host{display:contents}.container{display:flex;flex-direction:column;font-family:\"Euclid Triangle\", sans-serif;font-size:17px;line-height:24px;filter:drop-shadow(-1px 3px 12px rgba(0, 0, 0, 0.25));position:relative;height:100%;background-color:#FFFFFF;padding:15px;box-sizing:border-box}.container .sleeve{display:flex;flex-direction:column;height:100%}.container .campaign-type{position:absolute;top:0;left:0;right:0;text-align:center;font-weight:bold}.container .campaign-type span{background-color:#2AF135;color:#000000;padding:5px 15px;display:inline-block}.container .banner{top:0;margin-top:2px;padding-bottom:33.3%;background-color:#F1F1F1;background-size:cover;background-repeat:no-repeat}.container .banner img{display:none}.container h3{font-size:20px;line-height:24px;font-weight:bold}.container .button{display:block}.container .organisation-name{margin-bottom:30px;color:#2C089B}.container .meta-wrap{display:flex;justify-content:space-between;margin-top:auto;margin-bottom:15px}.container .meta-wrap .meta-item{width:calc(50% - 15px)}.container .meta-wrap .meta-item .label{font-size:11px;line-height:14px;display:block}.container .meta-wrap .meta-item .text{font-size:25px;line-height:32px;font-weight:bold;display:block}.container .meta-wrap .meta-item:last-child{text-align:right}.container .meta-wrap .meta-item:last-child .text{color:#2C089B}.container .progress-bar-wrap{padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid #E8E8E8}";
4
6
 
@@ -9,6 +11,7 @@ const BiggiveCampaignCard$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
9
11
  this.__attachShadow();
10
12
  this.spaceBelow = 4;
11
13
  this.campaignType = null;
14
+ this.banner = null;
12
15
  this.campaignTitle = null;
13
16
  this.organisationName = null;
14
17
  this.primaryFigureLabel = null;
@@ -24,12 +27,13 @@ const BiggiveCampaignCard$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
24
27
  this.moreInfoButtonColourScheme = 'clear-primary';
25
28
  }
26
29
  render() {
27
- return (h("div", { class: 'container space-below-' + this.spaceBelow.toString() }, h("div", { class: "sleeve" }, this.campaignType !== null ? (h("div", { class: "campaign-type" }, h("span", null, this.campaignType))) : null, h("div", { class: "title-wrap" }, h("h3", null, this.campaignTitle), h("div", { class: "organisation-name" }, "By ", this.organisationName)), h("div", { class: "meta-wrap" }, h("div", { class: "meta-item" }, h("span", { class: "label" }, this.primaryFigureLabel), h("span", { class: "text" }, this.primaryFigureAmount)), h("div", { class: "meta-item" }, h("span", { class: "label" }, this.secondaryFigureLabel), h("span", { class: "text" }, this.secondaryFigureAmount))))));
30
+ return (h("div", { class: 'container space-below-' + this.spaceBelow.toString() }, h("div", { class: "sleeve" }, this.campaignType !== null ? (h("div", { class: "campaign-type" }, h("span", null, this.campaignType))) : null, this.banner !== null ? (h("div", { class: "image-wrap banner", style: { 'background-image': 'url(' + this.banner + ')' } }, h("img", { src: this.banner, class: "banner" }))) : (h("div", { class: "image-wrap banner" })), h("div", { class: "title-wrap" }, h("h3", null, this.campaignTitle), h("div", { class: "organisation-name" }, "By ", this.organisationName)), h("div", { class: "meta-wrap" }, h("div", { class: "meta-item" }, h("span", { class: "label" }, this.primaryFigureLabel), h("span", { class: "text" }, this.primaryFigureAmount)), h("div", { class: "meta-item" }, h("span", { class: "label" }, this.secondaryFigureLabel), h("span", { class: "text" }, this.secondaryFigureAmount))), h("div", { class: "progress-bar-wrap" }, h("biggive-progress-bar", { counter: this.progressBarCounter, "colour-scheme": "primary" })), h("div", { class: "button-wrap" }, h("biggive-button", { "full-width": "true", "colour-scheme": this.donateButtonColourScheme, url: this.donateButtonUrl, label: this.donateButtonLabel }), h("biggive-button", { "full-width": "true", "colour-scheme": this.moreInfoButtonColourScheme, url: this.moreInfoButtonUrl, label: this.moreInfoButtonLabel })))));
28
31
  }
29
32
  static get style() { return biggiveCampaignCardCss; }
30
33
  }, [1, "biggive-campaign-card", {
31
34
  "spaceBelow": [2, "space-below"],
32
35
  "campaignType": [1, "campaign-type"],
36
+ "banner": [1],
33
37
  "campaignTitle": [1, "campaign-title"],
34
38
  "organisationName": [1, "organisation-name"],
35
39
  "primaryFigureLabel": [1, "primary-figure-label"],
@@ -48,13 +52,23 @@ function defineCustomElement$1() {
48
52
  if (typeof customElements === "undefined") {
49
53
  return;
50
54
  }
51
- const components = ["biggive-campaign-card"];
55
+ const components = ["biggive-campaign-card", "biggive-button", "biggive-progress-bar"];
52
56
  components.forEach(tagName => { switch (tagName) {
53
57
  case "biggive-campaign-card":
54
58
  if (!customElements.get(tagName)) {
55
59
  customElements.define(tagName, BiggiveCampaignCard$1);
56
60
  }
57
61
  break;
62
+ case "biggive-button":
63
+ if (!customElements.get(tagName)) {
64
+ defineCustomElement$3();
65
+ }
66
+ break;
67
+ case "biggive-progress-bar":
68
+ if (!customElements.get(tagName)) {
69
+ defineCustomElement$2();
70
+ }
71
+ break;
58
72
  } });
59
73
  }
60
74
 
@@ -1,47 +1,4 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
-
3
- const biggiveFormFieldSelectOptionCss = "body{background-color:#D7D7D7}h1,h3,h4,h5,h6{margin-bottom:0}h1,.heading-1{font-size:47px;line-height:60px;font-weight:bold}h2,.heading-2{font-size:38px;line-height:45px;font-weight:bold}h3,.heading-3{font-size:25px;line-height:32px;font-weight:bold}h4,.heading-4{font-size:20px;line-height:24px;font-weight:bold}h5,.heading-5{font-size:17px;line-height:24px;font-weight:bold}a{color:inherit;text-decoration:underline}a:hover{text-decoration:none}.colour-primary{color:#2C089B}.colour-secondary{color:#2AF135}.colour-tertiary{color:#FF7272}.colour-white{color:#FFFFFF}.colour-black{color:#000000}.text-colour-hover-primary:hover,.text-colour-primary{color:#2C089B}.text-colour-hover-secondary:hover,.text-colour-secondary{color:#2AF135}.text-colour-hover-tertiary:hover,.text-colour-tertiary{color:#FF7272}.text-colour-hover-white:hover,.text-colour-white{color:#FFFFFF}.text-colour-hover-black:hover,.text-colour-black{color:#000000}.fill-primary{fill:#2C089B}.fill-secondary{fill:#2AF135}.fill-tertiary{fill:#FF7272}.fill-white{fill:#FFFFFF}.fill-black{fill:#000000}.fill-red{fill:red}.background-colour-hover-primary:hover,.background-colour-primary{background-color:#2C089B}.background-colour-hover-secondary:hover,.background-colour-secondary{background-color:#2AF135}.background-colour-hover-tertiary:hover,.background-colour-tertiary{background-color:#FF7272}.background-colour-hover-white:hover,.background-colour-white{background-color:#FFFFFF}.background-colour-hover-black:hover,.background-colour-black{background-color:#000000}.input-wrap{display:flex;justify-content:space-between}.input-text{font-family:\"Euclid Triangle\", sans-serif;font-size:17px;line-height:24px;color:#000000;padding:5px 10px;box-sizing:border-box;width:100%}.input-text:focus{outline:0}.input-text:placeholder{color:#4A4A4A}.button{font-size:17px;line-height:24px;padding:10px 30px;border-radius:5px;border:1px solid #000000;background-color:#000000;filter:drop-shadow(0px 8px 20px rgba(0, 0, 0, 0.22));color:#FFFFFF;display:inline-block;text-decoration:none;text-align:center;transition:all ease-in-out 0.5s;cursor:pointer}.button:hover{background-color:#FFFFFF;color:#000000}.button.size-small{font-size:13px;line-height:17px;padding:5px 15px}.button.button.rounded-true{border-radius:27.5px}.button.button.rounded-true.size-small{border-radius:20px}.button-primary{color:#FFFFFF;background-color:#2C089B;border-color:#2C089B}.button-primary:hover{color:#2C089B;background-color:#FFFFFF}.button-secondary{color:#2C089B;background-color:#2AF135;border-color:#2AF135}.button-secondary:hover{background-color:#FFFFFF}.button-tertiary{color:#FFFFFF;background-color:#FF7272;border-color:#FF7272}.button-tertiary:hover{background-color:#FFFFFF}.button-white{color:#2C089B;background-color:#FFFFFF;border-color:#FFFFFF}.button-white:hover{color:#FFFFFF;background-color:#2C089B}.button-black{color:#FFFFFF;background-color:#000000;border-color:#000000}.button-black:hover{color:#000000;background-color:#FFFFFF}.button-clear-primary{color:#2C089B;background-color:transparent;text-decoration:underline;box-shadow:none;border:0;padding-left:0;padding-right:0}.button-clear-primary:hover{text-decoration:none;background-color:transparent}.button-clear-secondary{color:#2AF135;background-color:transparent;text-decoration:underline;box-shadow:none;border:0;padding-left:0;padding-right:0}.button-clear-secondary:hover{text-decoration:none;background-color:transparent}.button-clear-tertiary{color:#FF7272;background-color:transparent;text-decoration:underline;box-shadow:none;border:0;padding-left:0;padding-right:0}.button-clear-tertiary:hover{text-decoration:none;background-color:transparent}.button-clear-white{color:#FFFFFF;background-color:transparent;text-decoration:underline;box-shadow:none;border:0;padding-left:0;padding-right:0}.button-clear-white:hover{color:#FFFFFF;text-decoration:none;background-color:transparent}.button-rounded{border-radius:27.5px}.button-rounded.size-small{border-radius:20px}.progress-bar{display:flex}.progress-bar .slider{margin:auto 15px auto 0;position:relative;flex-grow:1}.progress-bar .slider:before{content:\"\";position:absolute;display:block;top:0;left:0;bottom:0;right:0;background-color:#E8E8E8;border-radius:4px}.progress-bar .slider .progress{position:relative;border-radius:4px;background-color:#000000;height:8px}.progress-bar .counter{font-weight:700;color:#000000;font-size:14px;line-height:18px}.progress-bar-primary .slider .progress{background-color:#2C089B}.progress-bar-primary .counter{color:#2C089B}.progress-bar-secondary .slider .progress{background-color:#2AF135}.progress-bar-secondary .counter{color:#2AF135}.video-wrap{position:relative;padding-bottom:56.25%}.video-wrap iframe,.video-wrap video{position:absolute;border:0;display:block;left:0;right:0;top:0;bottom:0;width:100%;height:100%}.image-wrap img{width:100%;height:auto}.align-left{text-align:left}.align-right{text-align:right}.align-center{text-align:center}.align-justify{text-align:justify}.space-below-0{margin-bottom:0}.space-below-1{margin-bottom:5px}.space-below-2{margin-bottom:10px}.space-below-3{margin-bottom:15px}.space-below-4{margin-bottom:30px}.space-below-5{margin-bottom:45px}.space-below-6{margin-bottom:60px}.space-above-0{margin-top:0}.space-above-1{margin-top:5px}.space-above-2{margin-top:10px}.space-above-3{margin-top:15px}.space-above-4{margin-top:30px}.space-above-5{margin-top:45px}.space-above-6{margin-top:60px}.horizontal-padding-1{padding-left:5px;padding-right:5px}.horizontal-padding-2{padding-left:10px;padding-right:10px}.horizontal-padding-3{padding-left:15px;padding-right:15px}.horizontal-padding-4{padding-left:30px;padding-right:30px}.horizontal-padding-5{padding-left:45px;padding-right:45px}.horizontal-padding-6{padding-left:60px;padding-right:60px}.vertical-padding-1{padding-top:5px;padding-bottom:5px}.vertical-padding-2{padding-top:10px;padding-bottom:10px}.vertical-padding-3{padding-top:15px;padding-bottom:15px}.vertical-padding-4{padding-top:30px;padding-bottom:30px}.vertical-padding-5{padding-top:45px;padding-bottom:45px}.vertical-padding-6{padding-top:60px;padding-bottom:60px}:host{display:contents}.option{font-family:\"Euclid Triangle\", sans-serif;font-size:17px;line-height:24px;padding:2px 10px}.option:hover{background-color:#2C089B;color:#FFFFFF;cursor:pointer}";
4
-
5
- const BiggiveFormFieldSelectOption$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
- constructor() {
7
- super();
8
- this.__registerHost();
9
- this.__attachShadow();
10
- this.doOptionSelect = createEvent(this, "doOptionSelect", 7);
11
- this.optionSelected = (event) => {
12
- this.selectedValue = event.target.getAttribute('data-value');
13
- this.selectedLabel = event.target.innerText;
14
- var keyValuePair = { value: this.selectedValue, label: this.selectedLabel };
15
- this.doOptionSelect.emit(keyValuePair);
16
- };
17
- this.selectedValue = null;
18
- this.selectedLabel = null;
19
- this.label = null;
20
- this.value = null;
21
- }
22
- render() {
23
- return (h("div", { class: "option", "data-value": this.value, onClick: this.optionSelected }, this.label));
24
- }
25
- static get style() { return biggiveFormFieldSelectOptionCss; }
26
- }, [1, "biggive-form-field-select-option", {
27
- "label": [1],
28
- "value": [1],
29
- "selectedValue": [32],
30
- "selectedLabel": [32]
31
- }]);
32
- function defineCustomElement$1() {
33
- if (typeof customElements === "undefined") {
34
- return;
35
- }
36
- const components = ["biggive-form-field-select-option"];
37
- components.forEach(tagName => { switch (tagName) {
38
- case "biggive-form-field-select-option":
39
- if (!customElements.get(tagName)) {
40
- customElements.define(tagName, BiggiveFormFieldSelectOption$1);
41
- }
42
- break;
43
- } });
44
- }
1
+ import { B as BiggiveFormFieldSelectOption$1, d as defineCustomElement$1 } from './biggive-form-field-select-option2.js';
45
2
 
46
3
  const BiggiveFormFieldSelectOption = BiggiveFormFieldSelectOption$1;
47
4
  const defineCustomElement = defineCustomElement$1;