@biggive/components 1.0.175 → 1.0.177
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/biggive/biggive.esm.js +1 -1
- package/dist/biggive/{p-a4961f33.entry.js → p-5a769731.entry.js} +1 -1
- package/dist/biggive/{p-e4632001.entry.js → p-80637b3b.entry.js} +1 -1
- package/dist/biggive/p-ea4bd70b.js +1 -0
- package/dist/biggive/p-eb5b5786.entry.js +1 -0
- package/dist/cjs/biggive-back-to-top_27.cjs.entry.js +38 -23
- package/dist/cjs/biggive-beneficiary-icon.cjs.entry.js +1 -1
- package/dist/cjs/biggive-category-icon.cjs.entry.js +1 -1
- package/dist/cjs/biggive.cjs.js +1 -1
- package/dist/cjs/{fontawesome-icons-10fad8aa.js → fontawesome-icons-eeb8e0a4.js} +4 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/biggive-button/biggive-button.css +0 -16
- package/dist/collection/components/biggive-button/biggive-button.js +1 -57
- package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.css +16 -0
- package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.js +1 -1
- package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.js +62 -48
- package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.stories.js +19 -27
- package/dist/collection/util/fontawesome-icons.js +4 -5
- package/dist/components/biggive-article-card.js +2 -8
- package/dist/components/biggive-basic-card.js +2 -8
- package/dist/components/biggive-button2.js +4 -16
- package/dist/components/biggive-call-to-action.js +2 -8
- package/dist/components/biggive-campaign-card-filter-grid.js +46 -34
- package/dist/components/biggive-campaign-card.js +2 -2
- package/dist/components/biggive-footer.js +2 -8
- package/dist/components/biggive-hero-image.js +2 -8
- package/dist/components/biggive-image-feature.js +2 -8
- package/dist/components/biggive-search.js +3 -9
- package/dist/components/biggive-video-feature.js +2 -8
- package/dist/components/fontawesome-icons.js +7 -174
- package/dist/components/index2.js +169 -0
- package/dist/esm/biggive-back-to-top_27.entry.js +38 -23
- package/dist/esm/biggive-beneficiary-icon.entry.js +1 -1
- package/dist/esm/biggive-category-icon.entry.js +1 -1
- package/dist/esm/biggive.js +1 -1
- package/dist/esm/{fontawesome-icons-8656640d.js → fontawesome-icons-a9e6285c.js} +4 -5
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/biggive-button/biggive-button.d.ts +0 -15
- package/dist/types/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.d.ts +16 -9
- package/dist/types/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.stories.d.ts +0 -7
- package/dist/types/components.d.ts +16 -42
- package/hydrate/index.js +48 -37
- package/package.json +1 -1
- package/dist/biggive/p-9150c7c5.entry.js +0 -1
- package/dist/biggive/p-fc0de4b6.js +0 -1
|
@@ -13,12 +13,9 @@ export class BiggiveButton {
|
|
|
13
13
|
this.size = 'medium';
|
|
14
14
|
this.rounded = false;
|
|
15
15
|
this.centered = false;
|
|
16
|
-
this.isFutureCampaign = false;
|
|
17
|
-
this.isPastCampaign = false;
|
|
18
|
-
this.datetime = undefined;
|
|
19
16
|
}
|
|
20
17
|
render() {
|
|
21
|
-
return (h("div", { class: 'container space-below-' + this.spaceBelow + ' centered-' + this.centered },
|
|
18
|
+
return (h("div", { class: 'container space-below-' + this.spaceBelow + ' centered-' + this.centered }, h("a", { href: this.url, target: this.openInNewTab ? '_blank' : '_self', class: 'button button-' + this.colourScheme + ' full-width-' + this.fullWidth.toString() + ' size-' + this.size + ' rounded-' + this.rounded.toString() }, h("span", { onClick: this.handleButtonClick }, this.label))));
|
|
22
19
|
}
|
|
23
20
|
static get is() { return "biggive-button"; }
|
|
24
21
|
static get encapsulation() { return "shadow"; }
|
|
@@ -195,59 +192,6 @@ export class BiggiveButton {
|
|
|
195
192
|
"attribute": "centered",
|
|
196
193
|
"reflect": false,
|
|
197
194
|
"defaultValue": "false"
|
|
198
|
-
},
|
|
199
|
-
"isFutureCampaign": {
|
|
200
|
-
"type": "boolean",
|
|
201
|
-
"mutable": false,
|
|
202
|
-
"complexType": {
|
|
203
|
-
"original": "boolean",
|
|
204
|
-
"resolved": "boolean",
|
|
205
|
-
"references": {}
|
|
206
|
-
},
|
|
207
|
-
"required": false,
|
|
208
|
-
"optional": false,
|
|
209
|
-
"docs": {
|
|
210
|
-
"tags": [],
|
|
211
|
-
"text": "Boolean flag telling the component if the campaign is in the future (not open yet)."
|
|
212
|
-
},
|
|
213
|
-
"attribute": "is-future-campaign",
|
|
214
|
-
"reflect": false,
|
|
215
|
-
"defaultValue": "false"
|
|
216
|
-
},
|
|
217
|
-
"isPastCampaign": {
|
|
218
|
-
"type": "boolean",
|
|
219
|
-
"mutable": false,
|
|
220
|
-
"complexType": {
|
|
221
|
-
"original": "boolean",
|
|
222
|
-
"resolved": "boolean",
|
|
223
|
-
"references": {}
|
|
224
|
-
},
|
|
225
|
-
"required": false,
|
|
226
|
-
"optional": false,
|
|
227
|
-
"docs": {
|
|
228
|
-
"tags": [],
|
|
229
|
-
"text": "Boolean flag telling the component if the campaign is in the future (not open yet)."
|
|
230
|
-
},
|
|
231
|
-
"attribute": "is-past-campaign",
|
|
232
|
-
"reflect": false,
|
|
233
|
-
"defaultValue": "false"
|
|
234
|
-
},
|
|
235
|
-
"datetime": {
|
|
236
|
-
"type": "string",
|
|
237
|
-
"mutable": false,
|
|
238
|
-
"complexType": {
|
|
239
|
-
"original": "string",
|
|
240
|
-
"resolved": "string",
|
|
241
|
-
"references": {}
|
|
242
|
-
},
|
|
243
|
-
"required": false,
|
|
244
|
-
"optional": false,
|
|
245
|
-
"docs": {
|
|
246
|
-
"tags": [],
|
|
247
|
-
"text": "To be used alongside isFutureCampaign = true or isPastCampaign = true.\nIf either is true, we render out: 'Launches: ' + datetime or 'Closed: ' + datetime.\nPreferred format: DD/MM/YYYY, HH:MM\nDON-661."
|
|
248
|
-
},
|
|
249
|
-
"attribute": "datetime",
|
|
250
|
-
"reflect": false
|
|
251
195
|
}
|
|
252
196
|
};
|
|
253
197
|
}
|
|
@@ -857,4 +857,20 @@ a:hover {
|
|
|
857
857
|
padding-bottom: 10px;
|
|
858
858
|
margin-bottom: 10px;
|
|
859
859
|
border-bottom: 1px solid #E8E8E8;
|
|
860
|
+
}
|
|
861
|
+
.container .msg-wrapper {
|
|
862
|
+
display: flex;
|
|
863
|
+
justify-content: center;
|
|
864
|
+
}
|
|
865
|
+
.container .msg-wrapper biggive-misc-icon {
|
|
866
|
+
margin-top: auto;
|
|
867
|
+
margin-bottom: auto;
|
|
868
|
+
}
|
|
869
|
+
.container .msg-wrapper p {
|
|
870
|
+
text-align: center;
|
|
871
|
+
}
|
|
872
|
+
@media screen and (max-width: 1200px) {
|
|
873
|
+
.container .msg-wrapper p {
|
|
874
|
+
font-size: 15px;
|
|
875
|
+
}
|
|
860
876
|
}
|
|
@@ -25,7 +25,7 @@ export class BiggiveCampaignCard {
|
|
|
25
25
|
this.datetime = undefined;
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h("div", { class: 'container space-below-' + this.spaceBelow.toString(), onClick: this.handleCardGeneralClick }, 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", role: "presentation", style: { 'background-image': 'url(' + this.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-
|
|
28
|
+
return (h("div", { class: 'container space-below-' + this.spaceBelow.toString(), onClick: this.handleCardGeneralClick }, 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", role: "presentation", style: { 'background-image': 'url(' + this.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" }, this.isFutureCampaign || this.isPastCampaign ? (h("div", { class: "msg-wrapper" }, h("biggive-misc-icon", { "background-colour": "white", "icon-colour": "black", icon: "Timer" }), this.isFutureCampaign ? h("p", null, "Launches ", this.datetime) : h("p", null, "Closed ", this.datetime))) : (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 })))));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "biggive-campaign-card"; }
|
|
31
31
|
static get encapsulation() { return "shadow"; }
|
|
@@ -3,6 +3,10 @@ import { faFilterSlash, faMagnifyingGlass } from '@fortawesome/pro-solid-svg-ico
|
|
|
3
3
|
export class BiggiveCampaignCardFilterGrid {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.sortByPlaceholderText = 'Sort by';
|
|
6
|
+
this.beneficiariesPlaceHolderText = 'Beneficiary';
|
|
7
|
+
this.categoriesPlaceHolderText = 'Category';
|
|
8
|
+
this.locationsPlaceHolderText = 'Location';
|
|
9
|
+
this.fundingPlaceHolderText = 'Funding';
|
|
6
10
|
this.handleApplyFilterButtonClick = () => {
|
|
7
11
|
const searchAndFilterObj = this.getSearchAndFilterObject();
|
|
8
12
|
this.doSearchAndFilterUpdate.emit(searchAndFilterObj);
|
|
@@ -37,6 +41,11 @@ export class BiggiveCampaignCardFilterGrid {
|
|
|
37
41
|
this.selectedFilterCategory = null;
|
|
38
42
|
this.selectedFilterFunding = null;
|
|
39
43
|
this.selectedFilterLocation = null;
|
|
44
|
+
// Clear <biggive-form-field-select> components' internal selectedValue and selectedLabel. DON-654.
|
|
45
|
+
['sort-by', 'categories', 'beneficiaries', 'locations', 'funding'].forEach(id => {
|
|
46
|
+
this.el.shadowRoot.getElementById(id).selectedValue = null;
|
|
47
|
+
this.el.shadowRoot.getElementById(id).selectedLabel = null;
|
|
48
|
+
});
|
|
40
49
|
// Emit the doSearchAndFilterUpdate event with null values. DON-654
|
|
41
50
|
this.doSearchAndFilterUpdate.emit({
|
|
42
51
|
searchText: null,
|
|
@@ -56,12 +65,12 @@ export class BiggiveCampaignCardFilterGrid {
|
|
|
56
65
|
this.beneficiaryOptions = [];
|
|
57
66
|
this.locationOptions = [];
|
|
58
67
|
this.fundingOptions = [];
|
|
59
|
-
this.filtersApplied = undefined;
|
|
60
68
|
this.selectedSortByOption = null;
|
|
61
69
|
this.selectedFilterCategory = null;
|
|
62
70
|
this.selectedFilterBeneficiary = null;
|
|
63
71
|
this.selectedFilterLocation = null;
|
|
64
72
|
this.selectedFilterFunding = null;
|
|
73
|
+
this.filtersApplied = undefined;
|
|
65
74
|
}
|
|
66
75
|
getSearchAndFilterObject() {
|
|
67
76
|
const event = {
|
|
@@ -75,11 +84,7 @@ export class BiggiveCampaignCardFilterGrid {
|
|
|
75
84
|
return event;
|
|
76
85
|
}
|
|
77
86
|
doOptionSelectCompletedHandler(event) {
|
|
78
|
-
|
|
79
|
-
this.selectedFilterCategory = this.el.shadowRoot.getElementById('categories').selectedValue;
|
|
80
|
-
this.selectedFilterBeneficiary = this.el.shadowRoot.getElementById('beneficiaries').selectedValue;
|
|
81
|
-
this.selectedFilterLocation = this.el.shadowRoot.getElementById('locations').selectedValue;
|
|
82
|
-
this.selectedFilterFunding = this.el.shadowRoot.getElementById('funding').selectedValue;
|
|
87
|
+
const nameOfUpdatedDropdown = event.detail.placeholder;
|
|
83
88
|
// If this method was trigerred by the selection of a 'Sort by' dropdown option, then
|
|
84
89
|
// emit an event to search, but do NOT emit an event for example when filter options
|
|
85
90
|
// are selected, until the 'Apply filters' button is pressed which is handled separately
|
|
@@ -88,10 +93,23 @@ export class BiggiveCampaignCardFilterGrid {
|
|
|
88
93
|
// `<biggive-form-field-select placeholder="Sort by" id="sort-by" onDoSelectChange={this.someHandleMethod}>`
|
|
89
94
|
// but the problem with that is that `someHandleMethod` gets called first and then this
|
|
90
95
|
// method gets called, leading to two calls and more risk for error. DON-570.
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
96
|
+
switch (nameOfUpdatedDropdown) {
|
|
97
|
+
case this.sortByPlaceholderText:
|
|
98
|
+
this.selectedSortByOption = event.detail.value;
|
|
99
|
+
this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
|
|
100
|
+
break;
|
|
101
|
+
case this.beneficiariesPlaceHolderText:
|
|
102
|
+
this.selectedFilterBeneficiary = event.detail.value;
|
|
103
|
+
break;
|
|
104
|
+
case this.categoriesPlaceHolderText:
|
|
105
|
+
this.selectedFilterCategory = event.detail.value;
|
|
106
|
+
break;
|
|
107
|
+
case this.fundingPlaceHolderText:
|
|
108
|
+
this.selectedFilterFunding = event.detail.value;
|
|
109
|
+
break;
|
|
110
|
+
case this.locationsPlaceHolderText:
|
|
111
|
+
this.selectedFilterLocation = event.detail.value;
|
|
112
|
+
break;
|
|
95
113
|
}
|
|
96
114
|
}
|
|
97
115
|
componentWillRender() {
|
|
@@ -99,15 +117,15 @@ export class BiggiveCampaignCardFilterGrid {
|
|
|
99
117
|
this.selectedFilterCategory !== null || this.selectedFilterBeneficiary !== null || this.selectedFilterFunding !== null || this.selectedFilterLocation !== null;
|
|
100
118
|
}
|
|
101
119
|
render() {
|
|
102
|
-
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: "clear-all" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", class: "icon icon-clear-all", viewBox: "0 0 512 512" }, h("path", { d: faFilterSlash.icon[4].toString() })), h("a", { onClick: this.handleClearAll }, "Clear all")), h("div", { class: "sort-wrap" }, h("biggive-form-field-select", { placeholder:
|
|
120
|
+
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: "clear-all" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", class: "icon icon-clear-all", viewBox: "0 0 512 512" }, h("path", { d: faFilterSlash.icon[4].toString() })), h("a", { onClick: this.handleClearAll }, "Clear all")), h("div", { class: "sort-wrap" }, h("biggive-form-field-select", { placeholder: this.sortByPlaceholderText, selectedLabel: this.selectedSortByOption, id: "sort-by" }, h("biggive-form-field-select-option", { value: "amountRaised", label: "Most raised" }), h("biggive-form-field-select-option", { value: "matchFundsRemaining", label: "Match funds remaining" }), h("biggive-form-field-select-option", { value: "Relevance", label: "Relevance" }))), h("div", { class: "filter-wrap" }, h("biggive-button", { class: "filter", colourScheme: this.filtersApplied ? 'secondary' : 'primary', onClick: this.handleFilterButtonClick, label: "Filters", fullWidth: true, "space-below": "0" }), h("biggive-popup", { id: "filter-popup" }, h("h4", { class: "space-above-0 space-below-3 colour-primary" }, "Filters"), h("biggive-form-field-select", { placeholder: this.categoriesPlaceHolderText, selectedLabel: this.selectedFilterCategory, id: "categories", "space-below": "2" }, this.categoryOptions.length === 0
|
|
103
121
|
? undefined
|
|
104
|
-
: this.categoryOptions.map(option => h("biggive-form-field-select-option", { value: option, label: option }))), h("biggive-form-field-select", { placeholder:
|
|
122
|
+
: (Array.isArray(this.categoryOptions) ? this.categoryOptions : JSON.parse(this.categoryOptions)).map(option => (h("biggive-form-field-select-option", { value: option, label: option })))), h("biggive-form-field-select", { placeholder: this.beneficiariesPlaceHolderText, selectedLabel: this.selectedFilterBeneficiary, id: "beneficiaries", "space-below": "2" }, this.beneficiaryOptions.length === 0
|
|
105
123
|
? undefined
|
|
106
|
-
: this.beneficiaryOptions.map(option => h("biggive-form-field-select-option", { value: option, label: option }))), h("biggive-form-field-select", { placeholder:
|
|
124
|
+
: (Array.isArray(this.beneficiaryOptions) ? this.beneficiaryOptions : JSON.parse(this.beneficiaryOptions)).map(option => (h("biggive-form-field-select-option", { value: option, label: option })))), h("biggive-form-field-select", { placeholder: this.locationsPlaceHolderText, selectedLabel: this.selectedFilterLocation, id: "locations", "space-below": "2" }, this.locationOptions.length === 0
|
|
107
125
|
? undefined
|
|
108
|
-
: this.locationOptions.map(option => h("biggive-form-field-select-option", { value: option, label: option }))), h("biggive-form-field-select", { placeholder:
|
|
126
|
+
: (Array.isArray(this.locationOptions) ? this.locationOptions : JSON.parse(this.locationOptions)).map(option => (h("biggive-form-field-select-option", { value: option, label: option })))), h("biggive-form-field-select", { placeholder: this.fundingPlaceHolderText, selectedLabel: this.selectedFilterFunding, id: "funding", "space-below": "2" }, this.fundingOptions.length === 0
|
|
109
127
|
? undefined
|
|
110
|
-
: 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" })))));
|
|
128
|
+
: (Array.isArray(this.fundingOptions) ? this.fundingOptions : JSON.parse(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" })))));
|
|
111
129
|
}
|
|
112
130
|
static get is() { return "biggive-campaign-card-filter-grid"; }
|
|
113
131
|
static get encapsulation() { return "shadow"; }
|
|
@@ -214,86 +232,77 @@ export class BiggiveCampaignCardFilterGrid {
|
|
|
214
232
|
"defaultValue": "'Search'"
|
|
215
233
|
},
|
|
216
234
|
"categoryOptions": {
|
|
217
|
-
"type": "
|
|
235
|
+
"type": "string",
|
|
218
236
|
"mutable": false,
|
|
219
237
|
"complexType": {
|
|
220
|
-
"original": "string[]",
|
|
221
|
-
"resolved": "string[]",
|
|
238
|
+
"original": "string | string[]",
|
|
239
|
+
"resolved": "string | string[]",
|
|
222
240
|
"references": {}
|
|
223
241
|
},
|
|
224
242
|
"required": false,
|
|
225
243
|
"optional": false,
|
|
226
244
|
"docs": {
|
|
227
245
|
"tags": [],
|
|
228
|
-
"text": "JSON array of category key/values"
|
|
246
|
+
"text": "JSON array of category key/values, or takes a stringified equiavalent (for Storybook)"
|
|
229
247
|
},
|
|
248
|
+
"attribute": "category-options",
|
|
249
|
+
"reflect": false,
|
|
230
250
|
"defaultValue": "[]"
|
|
231
251
|
},
|
|
232
252
|
"beneficiaryOptions": {
|
|
233
|
-
"type": "
|
|
253
|
+
"type": "string",
|
|
234
254
|
"mutable": false,
|
|
235
255
|
"complexType": {
|
|
236
|
-
"original": "string[]",
|
|
237
|
-
"resolved": "string[]",
|
|
256
|
+
"original": "string | string[]",
|
|
257
|
+
"resolved": "string | string[]",
|
|
238
258
|
"references": {}
|
|
239
259
|
},
|
|
240
260
|
"required": false,
|
|
241
261
|
"optional": false,
|
|
242
262
|
"docs": {
|
|
243
263
|
"tags": [],
|
|
244
|
-
"text": "JSON array of beneficiary key/values"
|
|
264
|
+
"text": "JSON array of beneficiary key/values, or takes a stringified equiavalent (for Storybook)"
|
|
245
265
|
},
|
|
266
|
+
"attribute": "beneficiary-options",
|
|
267
|
+
"reflect": false,
|
|
246
268
|
"defaultValue": "[]"
|
|
247
269
|
},
|
|
248
270
|
"locationOptions": {
|
|
249
|
-
"type": "
|
|
271
|
+
"type": "string",
|
|
250
272
|
"mutable": false,
|
|
251
273
|
"complexType": {
|
|
252
|
-
"original": "string[]",
|
|
253
|
-
"resolved": "string[]",
|
|
274
|
+
"original": "string | string[]",
|
|
275
|
+
"resolved": "string | string[]",
|
|
254
276
|
"references": {}
|
|
255
277
|
},
|
|
256
278
|
"required": false,
|
|
257
279
|
"optional": false,
|
|
258
280
|
"docs": {
|
|
259
281
|
"tags": [],
|
|
260
|
-
"text": "JSON array of location key/values"
|
|
282
|
+
"text": "JSON array of location key/values, or takes a stringified equiavalent (for Storybook)"
|
|
261
283
|
},
|
|
284
|
+
"attribute": "location-options",
|
|
285
|
+
"reflect": false,
|
|
262
286
|
"defaultValue": "[]"
|
|
263
287
|
},
|
|
264
288
|
"fundingOptions": {
|
|
265
|
-
"type": "
|
|
289
|
+
"type": "string",
|
|
266
290
|
"mutable": false,
|
|
267
291
|
"complexType": {
|
|
268
|
-
"original": "string[]",
|
|
269
|
-
"resolved": "string[]",
|
|
292
|
+
"original": "string | string[]",
|
|
293
|
+
"resolved": "string | string[]",
|
|
270
294
|
"references": {}
|
|
271
295
|
},
|
|
272
296
|
"required": false,
|
|
273
297
|
"optional": false,
|
|
274
298
|
"docs": {
|
|
275
299
|
"tags": [],
|
|
276
|
-
"text": "JSON array of funding key/values"
|
|
300
|
+
"text": "JSON array of funding key/values, or takes a stringified equiavalent (for Storybook)"
|
|
277
301
|
},
|
|
302
|
+
"attribute": "funding-options",
|
|
303
|
+
"reflect": false,
|
|
278
304
|
"defaultValue": "[]"
|
|
279
305
|
},
|
|
280
|
-
"filtersApplied": {
|
|
281
|
-
"type": "boolean",
|
|
282
|
-
"mutable": false,
|
|
283
|
-
"complexType": {
|
|
284
|
-
"original": "boolean",
|
|
285
|
-
"resolved": "boolean",
|
|
286
|
-
"references": {}
|
|
287
|
-
},
|
|
288
|
-
"required": false,
|
|
289
|
-
"optional": false,
|
|
290
|
-
"docs": {
|
|
291
|
-
"tags": [],
|
|
292
|
-
"text": ""
|
|
293
|
-
},
|
|
294
|
-
"attribute": "filters-applied",
|
|
295
|
-
"reflect": false
|
|
296
|
-
},
|
|
297
306
|
"selectedSortByOption": {
|
|
298
307
|
"type": "string",
|
|
299
308
|
"mutable": false,
|
|
@@ -386,6 +395,11 @@ export class BiggiveCampaignCardFilterGrid {
|
|
|
386
395
|
}
|
|
387
396
|
};
|
|
388
397
|
}
|
|
398
|
+
static get states() {
|
|
399
|
+
return {
|
|
400
|
+
"filtersApplied": {}
|
|
401
|
+
};
|
|
402
|
+
}
|
|
389
403
|
static get events() {
|
|
390
404
|
return [{
|
|
391
405
|
"method": "doSearchAndFilterUpdate",
|
|
@@ -51,28 +51,21 @@ export default {
|
|
|
51
51
|
type: 'select',
|
|
52
52
|
},
|
|
53
53
|
},
|
|
54
|
-
filtersApplied: {
|
|
55
|
-
name: 'Filters applied',
|
|
56
|
-
options: [true, false],
|
|
57
|
-
control: {
|
|
58
|
-
type: 'select',
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
54
|
},
|
|
62
55
|
};
|
|
63
56
|
const Template = args => `
|
|
64
57
|
<biggive-campaign-card-filter-grid
|
|
65
|
-
category-options=
|
|
66
|
-
beneficiary-options=
|
|
67
|
-
location-options=
|
|
68
|
-
funding-options=
|
|
58
|
+
category-options='${args.categoryOptions}'
|
|
59
|
+
beneficiary-options='${args.beneficiaryOptions}'
|
|
60
|
+
location-options='${args.locationOptions}'
|
|
61
|
+
funding-options='${args.fundingOptions}'
|
|
69
62
|
search-text="${args.searchText}"
|
|
70
63
|
filters-applied="${args.filtersApplied}",
|
|
71
|
-
selected-sort-by-option=
|
|
72
|
-
selected-filter-
|
|
73
|
-
selected-filter-beneficiary=
|
|
74
|
-
selected-filter-location=
|
|
75
|
-
selected-filter-funding=
|
|
64
|
+
${args.selectedSortByOption ? 'selected-sort-by-option=' + args.selectedSortByOption : ''}
|
|
65
|
+
${args.selectedFilterCategory ? 'selected-filter-category=' + args.selectedFilterCategory : ''}
|
|
66
|
+
${args.selectedFilterBeneficiary ? 'selected-filter-beneficiary=' + args.selectedFilterBeneficiary : ''}
|
|
67
|
+
${args.selectedFilterLocation ? 'selected-filter-location=' + args.selectedFilterLocation : ''}
|
|
68
|
+
${args.selectedFilterFunding ? 'selected-filter-funding=' + args.selectedFilterFunding : ''}
|
|
76
69
|
>
|
|
77
70
|
<biggive-grid slot="campaign-grid" column-count="3">
|
|
78
71
|
<biggive-campaign-card
|
|
@@ -113,18 +106,17 @@ const Template = args => `
|
|
|
113
106
|
</biggive-grid>
|
|
114
107
|
</biggive-campaign-card-filter-grid>
|
|
115
108
|
`;
|
|
116
|
-
document.addEventListener('doSearchAndFilterUpdate', $event => console.log($event));
|
|
109
|
+
document.addEventListener('doSearchAndFilterUpdate', ($event) => console.log($event.detail));
|
|
117
110
|
export const CampaignCardFilterGridComponent = Template.bind({});
|
|
118
111
|
CampaignCardFilterGridComponent.args = {
|
|
119
|
-
categoryOptions: ['ABC', 'DEF'],
|
|
120
|
-
beneficiaryOptions: ['ABC', 'DEF'],
|
|
121
|
-
locationOptions: ['ABC', 'DEF'],
|
|
122
|
-
fundingOptions: ['ABC', 'DEF'],
|
|
112
|
+
categoryOptions: JSON.stringify(['ABC', 'DEF']),
|
|
113
|
+
beneficiaryOptions: JSON.stringify(['ABC', 'DEF']),
|
|
114
|
+
locationOptions: JSON.stringify(['ABC', 'DEF']),
|
|
115
|
+
fundingOptions: JSON.stringify(['ABC', 'DEF']),
|
|
123
116
|
searchText: '',
|
|
124
|
-
selectedSortByOption:
|
|
125
|
-
selectedFilterCategory:
|
|
126
|
-
selectedFilterBeneficiary:
|
|
127
|
-
selectedFilterLocation:
|
|
128
|
-
selectedFilterFunding:
|
|
129
|
-
filtersApplied: false,
|
|
117
|
+
selectedSortByOption: null,
|
|
118
|
+
selectedFilterCategory: null,
|
|
119
|
+
selectedFilterBeneficiary: null,
|
|
120
|
+
selectedFilterLocation: null,
|
|
121
|
+
selectedFilterFunding: null,
|
|
130
122
|
};
|
|
@@ -175,22 +175,21 @@ export class FontAwesomeIconsService {
|
|
|
175
175
|
static getBeneficiaryIcon(beneficiary) {
|
|
176
176
|
const matchingItems = FontAwesomeIconsService.getBeneficiaries().filter(ii => ii.name === beneficiary);
|
|
177
177
|
// For an unknown/invalid beneficiary, show 'other' symbol.
|
|
178
|
-
return matchingItems[0].icon
|
|
178
|
+
return matchingItems.length > 0 ? matchingItems[0].icon : faPlus;
|
|
179
179
|
}
|
|
180
180
|
static getMiscIcon(misc) {
|
|
181
181
|
const matchingItems = FontAwesomeIconsService.getMisc().filter(ii => ii.name === misc);
|
|
182
182
|
// For an unknown/invalid beneficiary, show 'other' symbol.
|
|
183
|
-
return matchingItems[0].icon
|
|
183
|
+
return matchingItems.length > 0 ? matchingItems[0].icon : faPlus;
|
|
184
184
|
}
|
|
185
185
|
static getSocialIcon(social) {
|
|
186
186
|
const matchingItems = FontAwesomeIconsService.getSocials().filter(ii => ii.name === social);
|
|
187
187
|
// For an unknown/invalid beneficiary, show 'other' symbol.
|
|
188
|
-
return matchingItems[0].icon
|
|
188
|
+
return matchingItems.length > 0 ? matchingItems[0].icon : faPlus;
|
|
189
189
|
}
|
|
190
190
|
static getCategoryIcon(category) {
|
|
191
|
-
var _a;
|
|
192
191
|
const matchingItems = FontAwesomeIconsService.getCategories().filter(ii => ii.name === category);
|
|
193
192
|
// For an unknown/invalid category, show 'other' symbol.
|
|
194
|
-
return
|
|
193
|
+
return matchingItems.length > 0 ? matchingItems[0].icon : faPlus;
|
|
195
194
|
}
|
|
196
195
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { d as defineCustomElement$
|
|
3
|
-
import { d as defineCustomElement$2 } from './biggive-misc-icon2.js';
|
|
2
|
+
import { d as defineCustomElement$2 } from './biggive-button2.js';
|
|
4
3
|
|
|
5
4
|
const biggiveArticleCardCss = "body{background-color:#FFFFFF}body.background-primary{background-color:#2C089B}body.background-secondary{background-color:#2C089B}body.background-tertiary{background-color:#2C089B}body.background-brand-1{background-color:#B30510}body.background-brand-2{background-color:#B30510}body.background-brand-3{background-color:#B30510}body.background-brand-4{background-color:#B30510}body.background-brand-5{background-color:#B30510}body.background-brand-6{background-color:#B30510}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-brand-1{color:#B30510}.colour-brand-2{color:#6E0887}.colour-brand-3{color:#50B400}.colour-brand-4{color:#FFE500}.colour-brand-5{color:#F07D00}.colour-brand-6{color:#CBC8C8}.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-brand-1:hover,.text-colour-brand-1{color:#B30510}.text-colour-hover-brand-2:hover,.text-colour-brand-2{color:#6E0887}.text-colour-hover-brand-3:hover,.text-colour-brand-3{color:#50B400}.text-colour-hover-brand-4:hover,.text-colour-brand-4{color:#FFE500}.text-colour-hover-brand-5:hover,.text-colour-brand-5{color:#F07D00}.text-colour-hover-brand-6:hover,.text-colour-brand-6{color:#CBC8C8}.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-brand-1{fill:#B30510}.fill-brand-2{fill:#6E0887}.fill-brand-3{fill:#50B400}.fill-brand-4{fill:#FFE500}.fill-brand-5{fill:#F07D00}.fill-brand-6{fill:#CBC8C8}.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-brand-1:hover,.background-colour-brand-1{background-color:#B30510}.background-colour-hover-brand-2:hover,.background-colour-brand-2{background-color:#6E0887}.background-colour-hover-brand-3:hover,.background-colour-brand-3{background-color:#50B400}.background-colour-hover-brand-4:hover,.background-colour-brand-4{background-color:#FFE500}.background-colour-hover-brand-5:hover,.background-colour-brand-5{background-color:#F07D00}.background-colour-hover-brand-6:hover,.background-colour-brand-6{background-color:#CBC8C8}.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;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:#000000;background-color:#2AF135;border-color:#2AF135}.button-secondary:hover{background-color:#FFFFFF;border-color:#000000}.button-tertiary{color:#FFFFFF;background-color:#FF7272;border-color:#FF7272}.button-tertiary:hover{background-color:#FFFFFF}.button-brand-1{color:#FFFFFF;background-color:#B30510;border-color:#B30510}.button-brand-1:hover{background-color:#FFFFFF}.button-brand-2{color:#FFFFFF;background-color:#6E0887;border-color:#6E0887}.button-brand-2:hover{background-color:#FFFFFF}.button-brand-3{color:#FFFFFF;background-color:#50B400;border-color:#50B400}.button-brand-3:hover{background-color:#FFFFFF}.button-brand-4{color:#FFFFFF;background-color:#FFE500;border-color:#FFE500}.button-brand-4:hover{background-color:#000000}.button-brand-5{color:#FFFFFF;background-color:#F07D00;border-color:#F07D00}.button-brand-5:hover{background-color:#FFFFFF}.button-brand-6{color:#FFFFFF;background-color:#CBC8C8;border-color:#CBC8C8}.button-brand-6:hover{background-color:#000000}.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;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;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;border:0;padding-left:0;padding-right:0}.button-clear-tertiary:hover{text-decoration:none;background-color:transparent}.button-clear-brand-1{color:#B30510;background-color:transparent;text-decoration:underline;border:0;padding-left:0;padding-right:0}.button-clear-brand-1:hover{text-decoration:none;background-color:transparent}.button-clear-brand-2{color:#6E0887;background-color:transparent;text-decoration:underline;border:0;padding-left:0;padding-right:0}.button-clear-brand-2:hover{text-decoration:none;background-color:transparent}.button-clear-brand-3{color:#50B400;background-color:transparent;text-decoration:underline;border:0;padding-left:0;padding-right:0}.button-clear-brand-3:hover{text-decoration:none;background-color:transparent}.button-clear-brand-4{color:#FFE500;background-color:transparent;text-decoration:underline;border:0;padding-left:0;padding-right:0}.button-clear-brand-4:hover{text-decoration:none;background-color:transparent}.button-clear-brand-5{color:#F07D00;background-color:transparent;text-decoration:underline;border:0;padding-left:0;padding-right:0}.button-clear-brand-5:hover{text-decoration:none;background-color:transparent}.button-clear-brand-6{color:#CBC8C8;background-color:transparent;text-decoration:underline;border:0;padding-left:0;padding-right:0}.button-clear-brand-6:hover{text-decoration:none;background-color:transparent}.button-clear-white{color:#FFFFFF;background-color:transparent;text-decoration:underline;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{font-family:\"Euclid Triangle\", sans-serif;font-size:17px;line-height:24px;position:relative;text-align:left;padding:30px}.container .sleeve{padding:30px 30px 0 30px;clip-path:polygon(0% 0%, 0% 0%, 100% 0%, 100% 0, 100% 100%, 100% 100%, 50px 100%, 0 calc(100% - 50px))}.container .slug{margin-bottom:5px}.container .date{font-size:13px;line-height:17px;margin-bottom:15px}.container h3{font-size:20px;line-height:24px;font-weight:bold;margin-bottom:15px}.container h3 a,.container h3 a:hover{text-decoration:none}.container .image-group{margin-bottom:15px}.container .image-group .image-wrap{border-radius:50%;width:60px;height:60px;background-size:cover;background-position:center center;margin-bottom:5px}.container .image-group .image-wrap img{display:none}.container .image-group .image-label{font-size:13px;line-height:17px}";
|
|
6
5
|
|
|
@@ -44,7 +43,7 @@ function defineCustomElement$1() {
|
|
|
44
43
|
if (typeof customElements === "undefined") {
|
|
45
44
|
return;
|
|
46
45
|
}
|
|
47
|
-
const components = ["biggive-article-card", "biggive-button"
|
|
46
|
+
const components = ["biggive-article-card", "biggive-button"];
|
|
48
47
|
components.forEach(tagName => { switch (tagName) {
|
|
49
48
|
case "biggive-article-card":
|
|
50
49
|
if (!customElements.get(tagName)) {
|
|
@@ -52,11 +51,6 @@ function defineCustomElement$1() {
|
|
|
52
51
|
}
|
|
53
52
|
break;
|
|
54
53
|
case "biggive-button":
|
|
55
|
-
if (!customElements.get(tagName)) {
|
|
56
|
-
defineCustomElement$3();
|
|
57
|
-
}
|
|
58
|
-
break;
|
|
59
|
-
case "biggive-misc-icon":
|
|
60
54
|
if (!customElements.get(tagName)) {
|
|
61
55
|
defineCustomElement$2();
|
|
62
56
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { d as defineCustomElement$
|
|
3
|
-
import { d as defineCustomElement$2 } from './biggive-misc-icon2.js';
|
|
2
|
+
import { d as defineCustomElement$2 } from './biggive-button2.js';
|
|
4
3
|
|
|
5
4
|
const biggiveBasicCardCss = "body{background-color:#FFFFFF}body.background-primary{background-color:#2C089B}body.background-secondary{background-color:#2C089B}body.background-tertiary{background-color:#2C089B}body.background-brand-1{background-color:#B30510}body.background-brand-2{background-color:#B30510}body.background-brand-3{background-color:#B30510}body.background-brand-4{background-color:#B30510}body.background-brand-5{background-color:#B30510}body.background-brand-6{background-color:#B30510}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-brand-1{color:#B30510}.colour-brand-2{color:#6E0887}.colour-brand-3{color:#50B400}.colour-brand-4{color:#FFE500}.colour-brand-5{color:#F07D00}.colour-brand-6{color:#CBC8C8}.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-brand-1:hover,.text-colour-brand-1{color:#B30510}.text-colour-hover-brand-2:hover,.text-colour-brand-2{color:#6E0887}.text-colour-hover-brand-3:hover,.text-colour-brand-3{color:#50B400}.text-colour-hover-brand-4:hover,.text-colour-brand-4{color:#FFE500}.text-colour-hover-brand-5:hover,.text-colour-brand-5{color:#F07D00}.text-colour-hover-brand-6:hover,.text-colour-brand-6{color:#CBC8C8}.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-brand-1{fill:#B30510}.fill-brand-2{fill:#6E0887}.fill-brand-3{fill:#50B400}.fill-brand-4{fill:#FFE500}.fill-brand-5{fill:#F07D00}.fill-brand-6{fill:#CBC8C8}.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-brand-1:hover,.background-colour-brand-1{background-color:#B30510}.background-colour-hover-brand-2:hover,.background-colour-brand-2{background-color:#6E0887}.background-colour-hover-brand-3:hover,.background-colour-brand-3{background-color:#50B400}.background-colour-hover-brand-4:hover,.background-colour-brand-4{background-color:#FFE500}.background-colour-hover-brand-5:hover,.background-colour-brand-5{background-color:#F07D00}.background-colour-hover-brand-6:hover,.background-colour-brand-6{background-color:#CBC8C8}.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;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:#000000;background-color:#2AF135;border-color:#2AF135}.button-secondary:hover{background-color:#FFFFFF;border-color:#000000}.button-tertiary{color:#FFFFFF;background-color:#FF7272;border-color:#FF7272}.button-tertiary:hover{background-color:#FFFFFF}.button-brand-1{color:#FFFFFF;background-color:#B30510;border-color:#B30510}.button-brand-1:hover{background-color:#FFFFFF}.button-brand-2{color:#FFFFFF;background-color:#6E0887;border-color:#6E0887}.button-brand-2:hover{background-color:#FFFFFF}.button-brand-3{color:#FFFFFF;background-color:#50B400;border-color:#50B400}.button-brand-3:hover{background-color:#FFFFFF}.button-brand-4{color:#FFFFFF;background-color:#FFE500;border-color:#FFE500}.button-brand-4:hover{background-color:#000000}.button-brand-5{color:#FFFFFF;background-color:#F07D00;border-color:#F07D00}.button-brand-5:hover{background-color:#FFFFFF}.button-brand-6{color:#FFFFFF;background-color:#CBC8C8;border-color:#CBC8C8}.button-brand-6:hover{background-color:#000000}.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;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;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;border:0;padding-left:0;padding-right:0}.button-clear-tertiary:hover{text-decoration:none;background-color:transparent}.button-clear-brand-1{color:#B30510;background-color:transparent;text-decoration:underline;border:0;padding-left:0;padding-right:0}.button-clear-brand-1:hover{text-decoration:none;background-color:transparent}.button-clear-brand-2{color:#6E0887;background-color:transparent;text-decoration:underline;border:0;padding-left:0;padding-right:0}.button-clear-brand-2:hover{text-decoration:none;background-color:transparent}.button-clear-brand-3{color:#50B400;background-color:transparent;text-decoration:underline;border:0;padding-left:0;padding-right:0}.button-clear-brand-3:hover{text-decoration:none;background-color:transparent}.button-clear-brand-4{color:#FFE500;background-color:transparent;text-decoration:underline;border:0;padding-left:0;padding-right:0}.button-clear-brand-4:hover{text-decoration:none;background-color:transparent}.button-clear-brand-5{color:#F07D00;background-color:transparent;text-decoration:underline;border:0;padding-left:0;padding-right:0}.button-clear-brand-5:hover{text-decoration:none;background-color:transparent}.button-clear-brand-6{color:#CBC8C8;background-color:transparent;text-decoration:underline;border:0;padding-left:0;padding-right:0}.button-clear-brand-6:hover{text-decoration:none;background-color:transparent}.button-clear-white{color:#FFFFFF;background-color:transparent;text-decoration:underline;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{font-family:\"Euclid Triangle\", sans-serif;font-size:17px;line-height:24px;position:relative;text-align:center;background-size:cover;background-position:center center;padding:30px;height:100%;white-space:pre-wrap}.container .sleeve{padding:30px;height:100%;box-sizing:border-box}.container.clip-bottom-left-corner-false.clip-top-right-corner-true .sleeve{clip-path:polygon(0% 0%, 0% 0%, calc(100% - 50px) 0%, 100% 50px, 100% 100%, 100% 100%, 0% 100%, 0 100%)}.container.clip-bottom-left-corner-true.clip-top-right-corner-false .sleeve{clip-path:polygon(0% 0%, 0% 0%, 100% 0%, 100% 0, 100% 100%, 100% 100%, 50px 100%, 0 calc(100% - 50px))}.container.clip-bottom-left-corner-true.clip-top-right-corner-true .sleeve{clip-path:polygon(0% 0%, 0% 0%, calc(100% - 50px) 0%, 100% 50px, 100% 100%, 100% 100%, 50px 100%, 0 calc(100% - 50px))}.container .icon svg{width:50px;height:auto}.container h3{font-size:25px;line-height:32px;font-weight:bold;margin-bottom:15px}.container .subtitle{margin-bottom:15px}";
|
|
6
5
|
|
|
@@ -57,7 +56,7 @@ function defineCustomElement$1() {
|
|
|
57
56
|
if (typeof customElements === "undefined") {
|
|
58
57
|
return;
|
|
59
58
|
}
|
|
60
|
-
const components = ["biggive-basic-card", "biggive-button"
|
|
59
|
+
const components = ["biggive-basic-card", "biggive-button"];
|
|
61
60
|
components.forEach(tagName => { switch (tagName) {
|
|
62
61
|
case "biggive-basic-card":
|
|
63
62
|
if (!customElements.get(tagName)) {
|
|
@@ -65,11 +64,6 @@ function defineCustomElement$1() {
|
|
|
65
64
|
}
|
|
66
65
|
break;
|
|
67
66
|
case "biggive-button":
|
|
68
|
-
if (!customElements.get(tagName)) {
|
|
69
|
-
defineCustomElement$3();
|
|
70
|
-
}
|
|
71
|
-
break;
|
|
72
|
-
case "biggive-misc-icon":
|
|
73
67
|
if (!customElements.get(tagName)) {
|
|
74
68
|
defineCustomElement$2();
|
|
75
69
|
}
|