@biggive/components 1.0.95 → 1.0.97
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/assets/images/biggive-triangle-green.svg +21 -0
- package/dist/biggive/assets/images/cross.svg +11 -0
- package/dist/biggive/assets/images/menu.svg +11 -0
- package/dist/biggive/biggive.esm.js +1 -1
- package/dist/biggive/p-063c44ce.entry.js +1 -0
- package/dist/biggive/p-0892aade.entry.js +1 -0
- package/dist/biggive/{p-e39db89c.entry.js → p-38b36bc6.entry.js} +1 -1
- package/dist/biggive/p-41c6f1f3.entry.js +1 -0
- package/dist/biggive/p-60872399.entry.js +1 -0
- package/dist/biggive/p-6d144f96.js +2 -0
- package/dist/biggive/p-8742102b.entry.js +1 -0
- package/dist/biggive/p-88faca11.js +1 -0
- package/dist/biggive/p-9916d987.entry.js +1 -0
- package/dist/biggive/p-99f15121.entry.js +1 -0
- package/dist/biggive/p-9fa2a9b2.entry.js +1 -0
- package/dist/biggive/p-a13e0f3e.entry.js +1 -0
- package/dist/biggive/p-aa4e1a2a.js +1 -0
- package/dist/biggive/p-bfaf1239.entry.js +1 -0
- package/dist/biggive/p-c1570c9f.entry.js +1 -0
- package/dist/biggive/p-d1c2b64d.entry.js +1 -0
- package/dist/biggive/p-da0a4725.entry.js +1 -0
- package/dist/biggive/p-de0f70ee.entry.js +1 -0
- package/dist/biggive/p-e3b0c4ae.entry.js +1 -0
- package/dist/biggive/p-e546fe69.entry.js +1 -0
- package/dist/cjs/biggive-article-card.cjs.entry.js +2 -35
- package/dist/cjs/biggive-back-to-top_23.cjs.entry.js +625 -0
- package/dist/cjs/biggive-basic-card.cjs.entry.js +2 -35
- package/dist/cjs/biggive-beneficiary-icon.cjs.entry.js +4 -19
- package/dist/cjs/biggive-boxed-content.cjs.entry.js +2 -17
- package/dist/cjs/biggive-branded-image.cjs.entry.js +2 -14
- package/dist/cjs/biggive-category-icon.cjs.entry.js +4 -19
- package/dist/cjs/biggive-form.cjs.entry.js +1 -1
- package/dist/cjs/biggive-formatted-text.cjs.entry.js +2 -8
- package/dist/cjs/biggive-icon-group.cjs.entry.js +2 -8
- package/dist/cjs/biggive-image.cjs.entry.js +2 -20
- package/dist/cjs/biggive-quote.cjs.entry.js +2 -14
- package/dist/cjs/biggive-search.cjs.entry.js +7 -5
- package/dist/cjs/biggive-tab.cjs.entry.js +2 -5
- package/dist/cjs/biggive-tabbed-content.cjs.entry.js +2 -8
- package/dist/cjs/biggive-text-input.cjs.entry.js +1 -1
- package/dist/cjs/biggive-video.cjs.entry.js +2 -11
- package/dist/cjs/biggive.cjs.js +3 -3
- package/dist/cjs/{fontawesome-icons-110f532d.js → fontawesome-icons-f33263c4.js} +45 -55
- package/dist/cjs/index-1fa2bbc6.js +196 -0
- package/dist/cjs/{index-87518c3f.js → index-ecfc2713.js} +734 -495
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/collection/assets/images/biggive-triangle-green.svg +21 -0
- package/dist/collection/assets/images/cross.svg +11 -0
- package/dist/collection/assets/images/menu.svg +11 -0
- package/dist/collection/collection-manifest.json +4 -2
- package/dist/collection/components/biggive-article-card/biggive-article-card.css +24 -0
- package/dist/collection/components/biggive-article-card/biggive-article-card.js +214 -253
- package/dist/collection/components/biggive-back-to-top/biggive-back-to-top.css +24 -0
- package/dist/collection/components/biggive-back-to-top/biggive-back-to-top.js +12 -11
- package/dist/collection/components/biggive-basic-card/biggive-basic-card.css +24 -0
- package/dist/collection/components/biggive-basic-card/biggive-basic-card.js +214 -251
- package/dist/collection/components/biggive-basic-card/biggive-basic-card.stories.js +1 -1
- package/dist/collection/components/biggive-beneficiary-icon/biggive-beneficiary-icon.css +24 -0
- package/dist/collection/components/biggive-beneficiary-icon/biggive-beneficiary-icon.js +102 -116
- package/dist/collection/components/biggive-boxed-content/biggive-boxed-content.css +24 -0
- package/dist/collection/components/biggive-boxed-content/biggive-boxed-content.js +102 -112
- package/dist/collection/components/biggive-branded-image/biggive-branded-image.css +24 -0
- package/dist/collection/components/biggive-branded-image/biggive-branded-image.js +85 -96
- package/dist/collection/components/biggive-button/biggive-button.css +24 -0
- package/dist/collection/components/biggive-button/biggive-button.js +137 -153
- package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.css +24 -0
- package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.js +376 -440
- package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.css +26 -0
- package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.js +322 -385
- package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.css +61 -0
- package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.js +123 -124
- package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.stories.js +6 -0
- package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.css +24 -0
- package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.js +238 -292
- package/dist/collection/components/biggive-category-icon/biggive-category-icon.css +24 -0
- package/dist/collection/components/biggive-category-icon/biggive-category-icon.js +102 -116
- package/dist/collection/components/biggive-footer/biggive-footer.css +58 -1
- package/dist/collection/components/biggive-footer/biggive-footer.js +15 -39
- package/dist/collection/components/biggive-footer/biggive-footer.stories.js +8 -1
- package/dist/collection/components/biggive-form/biggive-form.js +12 -9
- package/dist/collection/components/biggive-form-field-select/biggive-form-field-select.css +557 -0
- package/dist/collection/components/biggive-form-field-select/biggive-form-field-select.js +95 -9
- package/dist/collection/components/biggive-form-field-select/biggive-form-field-select.stories.js +9 -0
- package/dist/collection/components/biggive-form-field-select-option/biggive-form-field-select-option.css +520 -0
- package/dist/collection/components/biggive-form-field-select-option/biggive-form-field-select-option.js +94 -0
- package/dist/collection/components/biggive-form-field-select-option/biggive-form-field-select-option.stories.js +23 -0
- package/dist/collection/components/biggive-form-field-text-input/biggive-text-input.js +12 -9
- package/dist/collection/components/biggive-formatted-text/biggive-formatted-text.css +24 -0
- package/dist/collection/components/biggive-formatted-text/biggive-formatted-text.js +51 -52
- package/dist/collection/components/biggive-grid/biggive-grid.css +39 -0
- package/dist/collection/components/biggive-grid/biggive-grid.js +68 -72
- package/dist/collection/components/biggive-header/biggive-header.css +94 -2
- package/dist/collection/components/biggive-header/biggive-header.js +64 -69
- package/dist/collection/components/biggive-header/biggive-header.stories.js +2 -1
- package/dist/collection/components/biggive-heading/biggive-heading.css +24 -0
- package/dist/collection/components/biggive-heading/biggive-heading.js +136 -152
- package/dist/collection/components/biggive-hero-image/biggive-hero-image.css +48 -11
- package/dist/collection/components/biggive-hero-image/biggive-hero-image.js +240 -283
- package/dist/collection/components/biggive-icon-group/biggive-icon-group.css +24 -0
- package/dist/collection/components/biggive-icon-group/biggive-icon-group.js +51 -54
- package/dist/collection/components/biggive-image/biggive-image.css +24 -0
- package/dist/collection/components/biggive-image/biggive-image.js +119 -133
- package/dist/collection/components/biggive-image-feature/biggive-image-feature.css +43 -5
- package/dist/collection/components/biggive-image-feature/biggive-image-feature.js +232 -270
- package/dist/collection/components/biggive-misc-icon/biggive-misc-icon.css +24 -0
- package/dist/collection/components/biggive-misc-icon/biggive-misc-icon.js +85 -94
- package/dist/collection/components/biggive-page-column/biggive-page-column.css +506 -1
- package/dist/collection/components/biggive-page-column/biggive-page-column.js +11 -7
- package/dist/collection/components/biggive-page-columns/biggive-page-columns.css +34 -1
- package/dist/collection/components/biggive-page-columns/biggive-page-columns.js +34 -36
- package/dist/collection/components/biggive-page-section/biggive-page-section.css +24 -0
- package/dist/collection/components/biggive-page-section/biggive-page-section.js +85 -93
- package/dist/collection/components/biggive-popup/biggive-popup.css +547 -0
- package/dist/collection/components/biggive-popup/biggive-popup.js +47 -0
- package/dist/collection/components/biggive-popup/biggive-popup.stories.js +8 -0
- package/dist/collection/components/biggive-progress-bar/biggive-progress-bar.css +24 -0
- package/dist/collection/components/biggive-progress-bar/biggive-progress-bar.js +68 -76
- package/dist/collection/components/biggive-quote/biggive-quote.css +24 -0
- package/dist/collection/components/biggive-quote/biggive-quote.js +85 -93
- package/dist/collection/components/biggive-search/biggive-search.css +24 -0
- package/dist/collection/components/biggive-search/biggive-search.js +74 -74
- package/dist/collection/components/biggive-social-icon/biggive-social-icon.css +24 -0
- package/dist/collection/components/biggive-social-icon/biggive-social-icon.js +85 -94
- package/dist/collection/components/biggive-tab/biggive-tab.css +24 -0
- package/dist/collection/components/biggive-tab/biggive-tab.js +34 -34
- package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.css +24 -0
- package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.js +51 -52
- package/dist/collection/components/biggive-totalizer/biggive-totalizer.css +33 -1
- package/dist/collection/components/biggive-totalizer/biggive-totalizer.js +178 -208
- package/dist/collection/components/biggive-video/biggive-video.css +24 -0
- package/dist/collection/components/biggive-video/biggive-video.js +68 -72
- package/dist/collection/components/biggive-video-feature/biggive-video-feature.css +43 -5
- package/dist/collection/components/biggive-video-feature/biggive-video-feature.js +238 -278
- package/dist/components/biggive-article-card.js +1 -34
- package/dist/components/biggive-back-to-top.js +1 -1
- package/dist/components/biggive-basic-card.js +1 -34
- package/dist/components/biggive-beneficiary-icon.js +1 -16
- package/dist/components/biggive-boxed-content.js +1 -16
- package/dist/components/biggive-branded-image.js +1 -13
- package/dist/components/biggive-button2.js +2 -23
- package/dist/components/biggive-call-to-action.js +1 -61
- package/dist/components/biggive-campaign-card-filter-grid.js +55 -22
- package/dist/components/biggive-campaign-card.js +2 -49
- package/dist/components/biggive-campaign-highlights.js +1 -40
- package/dist/components/biggive-category-icon.js +1 -16
- package/dist/components/biggive-footer.js +4 -10
- package/dist/components/biggive-form-field-select-option.d.ts +11 -0
- package/dist/components/biggive-form-field-select-option.js +6 -0
- package/dist/components/biggive-form-field-select-option2.js +46 -0
- package/dist/components/biggive-form-field-select.js +1 -28
- package/dist/components/biggive-form-field-select2.js +44 -0
- package/dist/components/biggive-formatted-text.js +1 -7
- package/dist/components/biggive-grid.js +1 -10
- package/dist/components/biggive-header.js +13 -8
- package/dist/components/biggive-heading.js +1 -22
- package/dist/components/biggive-hero-image.js +1 -40
- package/dist/components/biggive-icon-group.js +1 -7
- package/dist/components/biggive-image-feature.js +1 -37
- package/dist/components/biggive-image.js +1 -19
- package/dist/components/biggive-misc-icon2.js +1 -13
- package/dist/components/biggive-page-column.js +1 -1
- package/dist/components/biggive-page-columns.js +1 -4
- package/dist/components/biggive-page-section.js +1 -13
- package/dist/components/biggive-popup.d.ts +11 -0
- package/dist/components/biggive-popup.js +6 -0
- package/dist/components/biggive-popup2.js +41 -0
- package/dist/components/biggive-progress-bar2.js +1 -10
- package/dist/components/biggive-quote.js +1 -13
- package/dist/components/biggive-search.js +5 -3
- package/dist/components/biggive-social-icon.js +41 -1
- package/dist/components/biggive-tab.js +1 -4
- package/dist/components/biggive-tabbed-content.js +1 -7
- package/dist/components/biggive-totalizer.js +1 -28
- package/dist/components/biggive-video-feature.js +1 -40
- package/dist/components/biggive-video.js +1 -10
- package/dist/components/fontawesome-icons.js +11 -21
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index2.js +164 -0
- package/dist/esm/biggive-article-card.entry.js +2 -35
- package/dist/esm/biggive-back-to-top_23.entry.js +599 -0
- package/dist/esm/biggive-basic-card.entry.js +2 -35
- package/dist/esm/biggive-beneficiary-icon.entry.js +4 -19
- package/dist/esm/biggive-boxed-content.entry.js +2 -17
- package/dist/esm/biggive-branded-image.entry.js +2 -14
- package/dist/esm/biggive-category-icon.entry.js +4 -19
- package/dist/esm/biggive-form.entry.js +1 -1
- package/dist/esm/biggive-formatted-text.entry.js +2 -8
- package/dist/esm/biggive-icon-group.entry.js +2 -8
- package/dist/esm/biggive-image.entry.js +2 -20
- package/dist/esm/biggive-quote.entry.js +2 -14
- package/dist/esm/biggive-search.entry.js +6 -4
- package/dist/esm/biggive-tab.entry.js +2 -5
- package/dist/esm/biggive-tabbed-content.entry.js +2 -8
- package/dist/esm/biggive-text-input.entry.js +1 -1
- package/dist/esm/biggive-video.entry.js +2 -11
- package/dist/esm/biggive.js +3 -3
- package/dist/esm/{fontawesome-icons-562459be.js → fontawesome-icons-ff9155ca.js} +11 -21
- package/dist/esm/index-7cfe62c2.js +164 -0
- package/dist/esm/{index-4395d470.js → index-b3c47751.js} +734 -495
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/types/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.d.ts +2 -6
- package/dist/types/components/biggive-form-field-select/biggive-form-field-select.d.ts +17 -0
- package/dist/types/components/biggive-form-field-select/biggive-form-field-select.stories.d.ts +5 -0
- package/dist/types/components/biggive-form-field-select-option/biggive-form-field-select-option.d.ts +20 -0
- package/dist/types/components/biggive-form-field-select-option/biggive-form-field-select-option.stories.d.ts +13 -0
- package/dist/types/components/biggive-header/biggive-header.d.ts +1 -0
- package/dist/types/components/biggive-popup/biggive-popup.d.ts +6 -0
- package/dist/types/components/biggive-popup/biggive-popup.stories.d.ts +5 -0
- package/dist/types/components.d.ts +73 -6
- package/dist/types/stencil-public-runtime.d.ts +20 -4
- package/hydrate/index.d.ts +1 -1
- package/hydrate/index.js +1133 -1561
- package/loader/package.json +1 -0
- package/package.json +4 -2
- package/dist/biggive/p-07962fc5.entry.js +0 -1
- package/dist/biggive/p-1024263c.entry.js +0 -1
- package/dist/biggive/p-1805f9ab.js +0 -2
- package/dist/biggive/p-1b78efa0.entry.js +0 -1
- package/dist/biggive/p-5dbda89c.entry.js +0 -1
- package/dist/biggive/p-5f1b0106.entry.js +0 -1
- package/dist/biggive/p-6326f936.entry.js +0 -1
- package/dist/biggive/p-72a6f0a8.entry.js +0 -1
- package/dist/biggive/p-74b5d4c7.entry.js +0 -1
- package/dist/biggive/p-7eee1e58.entry.js +0 -1
- package/dist/biggive/p-871707f4.js +0 -6
- package/dist/biggive/p-8f605036.entry.js +0 -1
- package/dist/biggive/p-9125d753.entry.js +0 -1
- package/dist/biggive/p-bdb476eb.entry.js +0 -1
- package/dist/biggive/p-c9aaa5c3.entry.js +0 -1
- package/dist/biggive/p-df6daa79.entry.js +0 -1
- package/dist/biggive/p-ec9b42b3.js +0 -6
- package/dist/biggive/p-f9388477.entry.js +0 -1
- package/dist/biggive/p-f98681a5.entry.js +0 -1
- package/dist/biggive/p-faa6817c.entry.js +0 -1
- package/dist/cjs/biggive-back-to-top_20.cjs.entry.js +0 -923
- package/dist/cjs/biggive-form-field-select.cjs.entry.js +0 -19
- package/dist/cjs/index.es-d3570170.js +0 -201
- package/dist/components/biggive-social-icon2.js +0 -55
- package/dist/components/index.es.js +0 -169
- package/dist/esm/biggive-back-to-top_20.entry.js +0 -900
- package/dist/esm/biggive-form-field-select.entry.js +0 -15
- package/dist/esm/index.es-5777380a.js +0 -169
|
@@ -109,6 +109,10 @@ a:hover {
|
|
|
109
109
|
fill: #000000;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
+
.fill-red {
|
|
113
|
+
fill: red;
|
|
114
|
+
}
|
|
115
|
+
|
|
112
116
|
.background-colour-hover-primary:hover,
|
|
113
117
|
.background-colour-primary {
|
|
114
118
|
background-color: #2C089B;
|
|
@@ -214,6 +218,26 @@ a:hover {
|
|
|
214
218
|
background-color: #FFFFFF;
|
|
215
219
|
}
|
|
216
220
|
|
|
221
|
+
.button-white {
|
|
222
|
+
color: #2C089B;
|
|
223
|
+
background-color: #FFFFFF;
|
|
224
|
+
border-color: #FFFFFF;
|
|
225
|
+
}
|
|
226
|
+
.button-white:hover {
|
|
227
|
+
color: #FFFFFF;
|
|
228
|
+
background-color: #2C089B;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.button-black {
|
|
232
|
+
color: #FFFFFF;
|
|
233
|
+
background-color: #000000;
|
|
234
|
+
border-color: #000000;
|
|
235
|
+
}
|
|
236
|
+
.button-black:hover {
|
|
237
|
+
color: #000000;
|
|
238
|
+
background-color: #FFFFFF;
|
|
239
|
+
}
|
|
240
|
+
|
|
217
241
|
.button-clear-primary {
|
|
218
242
|
color: #2C089B;
|
|
219
243
|
background-color: transparent;
|
|
@@ -495,6 +519,9 @@ a:hover {
|
|
|
495
519
|
padding: 15px 30px;
|
|
496
520
|
margin-bottom: 60px;
|
|
497
521
|
}
|
|
522
|
+
.container .search-wrap h4 {
|
|
523
|
+
margin-bottom: 15px;
|
|
524
|
+
}
|
|
498
525
|
.container .search-wrap .field-wrap {
|
|
499
526
|
display: flex;
|
|
500
527
|
justify-content: space-between;
|
|
@@ -512,6 +539,40 @@ a:hover {
|
|
|
512
539
|
padding: 5px 30px;
|
|
513
540
|
}
|
|
514
541
|
|
|
542
|
+
.sort-filter-wrap {
|
|
543
|
+
display: flex;
|
|
544
|
+
align-items: flex-end;
|
|
545
|
+
margin-bottom: 30px;
|
|
546
|
+
text-align: right;
|
|
547
|
+
}
|
|
548
|
+
.sort-filter-wrap .sort-wrap {
|
|
549
|
+
margin-left: auto;
|
|
550
|
+
}
|
|
551
|
+
.sort-filter-wrap .filter-wrap {
|
|
552
|
+
margin-left: 15px;
|
|
553
|
+
}
|
|
554
|
+
.sort-filter-wrap .filter-wrap .button {
|
|
555
|
+
padding-left: 60px;
|
|
556
|
+
padding-right: 30px;
|
|
557
|
+
}
|
|
558
|
+
.sort-filter-wrap .filter-wrap .button .filter-icon {
|
|
559
|
+
content: "";
|
|
560
|
+
display: block;
|
|
561
|
+
position: absolute;
|
|
562
|
+
left: 25px;
|
|
563
|
+
top: 17px;
|
|
564
|
+
width: 13px;
|
|
565
|
+
height: 13px;
|
|
566
|
+
}
|
|
567
|
+
.sort-filter-wrap .filter-wrap .button .filter-icon svg {
|
|
568
|
+
width: 100%;
|
|
569
|
+
height: auto;
|
|
570
|
+
vertical-align: top;
|
|
571
|
+
}
|
|
572
|
+
.sort-filter-wrap .filter-wrap .button .filter-icon svg:hover {
|
|
573
|
+
fill: #2C089B;
|
|
574
|
+
}
|
|
575
|
+
|
|
515
576
|
.icon {
|
|
516
577
|
height: 1rem;
|
|
517
578
|
width: 2rem;
|
|
@@ -1,151 +1,150 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
2
|
import { faMagnifyingGlass } from '@fortawesome/pro-solid-svg-icons';
|
|
3
3
|
export class BiggiveCampaignCardFilterGrid {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.searchText = null;
|
|
6
|
-
/**
|
|
7
|
-
* Space below component
|
|
8
|
-
*/
|
|
9
6
|
this.spaceBelow = 0;
|
|
10
|
-
/**
|
|
11
|
-
* Intro
|
|
12
|
-
*/
|
|
13
7
|
this.intro = 'Find a charity or project';
|
|
14
|
-
/**
|
|
15
|
-
* Defines the text displayed as the placeholder in the input field
|
|
16
|
-
* before the user types anything
|
|
17
|
-
*/
|
|
18
8
|
this.placeholderText = 'Search';
|
|
19
|
-
/**
|
|
20
|
-
* Defines the text on the search button
|
|
21
|
-
*/
|
|
22
9
|
this.buttonText = 'Search';
|
|
23
10
|
}
|
|
24
11
|
handleSearchTextChanged(event) {
|
|
25
12
|
this.searchText = event.target.value;
|
|
26
13
|
}
|
|
27
14
|
handleSearchButtonPressed() {
|
|
28
|
-
this.doSearch.emit(this.searchText);
|
|
15
|
+
//this.doSearch.emit(this.searchText);
|
|
29
16
|
}
|
|
30
17
|
handleEnterPressed(ev) {
|
|
31
18
|
if (ev.key === 'Enter') {
|
|
32
|
-
this.doSearch.emit(this.searchText);
|
|
19
|
+
//this.doSearch.emit(this.searchText);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
handleFilterButtonClick() {
|
|
23
|
+
this.el.shadowRoot.getElementById('filter-popup').open();
|
|
24
|
+
var filters = { categories: [], beneficiaries: [] };
|
|
25
|
+
var cards = this.el.querySelectorAll('biggive-campaign-card');
|
|
26
|
+
for (var i = 0; i < cards.length; i++) {
|
|
27
|
+
var categories = JSON.parse(cards[i].getAttribute('data-filter-categories'));
|
|
28
|
+
for (var p in categories) {
|
|
29
|
+
if (!filters.categories.includes(categories[p])) {
|
|
30
|
+
filters.categories.push(categories[p]);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
var beneficiaries = JSON.parse(cards[i].getAttribute('data-filter-beneficiaries'));
|
|
34
|
+
for (var p in beneficiaries) {
|
|
35
|
+
if (!filters.beneficiaries.includes(beneficiaries[p])) {
|
|
36
|
+
filters.beneficiaries.push(beneficiaries[p]);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
categories.sort();
|
|
41
|
+
this.el.shadowRoot.getElementById('categories').innerHTML = '';
|
|
42
|
+
for (var i = 0; i < filters.categories.length; i++) {
|
|
43
|
+
this.el.shadowRoot.getElementById('categories').innerHTML +=
|
|
44
|
+
'<biggive-form-field-select-option value="' + filters.categories[i] + '" label="' + filters.categories[i] + '"></biggive-form-field-select-option>';
|
|
45
|
+
}
|
|
46
|
+
beneficiaries.sort();
|
|
47
|
+
this.el.shadowRoot.getElementById('beneficiaries').innerHTML = '';
|
|
48
|
+
for (var i = 0; i < filters.beneficiaries.length; i++) {
|
|
49
|
+
this.el.shadowRoot.getElementById('beneficiaries').innerHTML +=
|
|
50
|
+
'<biggive-form-field-select-option value="' + filters.beneficiaries[i] + '" label="' + filters.beneficiaries[i] + '"></biggive-form-field-select-option>';
|
|
33
51
|
}
|
|
34
52
|
}
|
|
35
53
|
render() {
|
|
36
|
-
return (h("div", { class: 'container space-below-' + this.spaceBelow },
|
|
37
|
-
h("div", { class: "sleeve" },
|
|
38
|
-
h("div", { class: "search-wrap" },
|
|
39
|
-
h("h4", null, this.intro),
|
|
40
|
-
h("div", { class: "field-wrap" },
|
|
41
|
-
h("div", { class: "input-wrap" },
|
|
42
|
-
h("svg", { xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" },
|
|
43
|
-
h("path", { d: faMagnifyingGlass.icon[4].toString() })),
|
|
44
|
-
h("input", { type: "text", value: this.searchText, class: "input-text", placeholder: this.placeholderText, onInput: event => this.handleSearchTextChanged(event), onKeyDown: event => this.handleEnterPressed(event) })),
|
|
45
|
-
h("button", { onClick: () => this.handleSearchButtonPressed(), class: "button button-primary" }, this.buttonText))),
|
|
46
|
-
h("div", { class: "filter-wrap" }),
|
|
47
|
-
h("div", { class: "campaign-grid" },
|
|
48
|
-
h("slot", { name: "campaign-grid" })))));
|
|
54
|
+
return (h("div", { class: 'container space-below-' + this.spaceBelow }, h("div", { class: "sleeve" }, h("div", { class: "search-wrap" }, h("h4", null, this.intro), h("div", { class: "field-wrap" }, h("div", { class: "input-wrap" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" }, h("path", { d: faMagnifyingGlass.icon[4].toString() })), h("input", { type: "text", value: this.searchText, class: "input-text", placeholder: this.placeholderText, onInput: event => this.handleSearchTextChanged(event), onKeyDown: event => this.handleEnterPressed(event) })), h("button", { onClick: () => this.handleSearchButtonPressed(), class: "button button-primary" }, this.buttonText))), h("div", { class: "sort-filter-wrap" }, h("div", { class: "sort-wrap" }, h("biggive-form-field-select", { placeholder: "Sort by" }, h("biggive-form-field-select-option", { value: "name", label: "Name" }))), h("div", { class: "filter-wrap" }, h("div", { class: "button button-primary filter", onClick: () => this.handleFilterButtonClick() }, h("span", { class: "filter-icon" }, h("svg", { width: "16", height: "15", viewBox: "0 0 16 15", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M0.12042 0.76576C0.327224 0.298 0.766961 0 1.25014 0H14.7517C15.2361 0 15.6736 0.298 15.8799 0.76576C16.0893 1.23352 16.0237 1.787 15.6924 2.18745L10.0011 9.67328V13.929C10.0011 14.3341 9.7886 14.7058 9.44793 14.8866C9.1104 15.0674 8.7041 15.0306 8.40094 14.7862L6.40072 13.179C6.14756 12.9781 6.00067 12.66 6.00067 12.3218V9.67328L0.282594 2.18745C-0.023284 1.787 -0.0864161 1.23352 0.120451 0.76576H0.12042Z", fill: "white" }))), "Filters"), h("biggive-popup", { id: "filter-popup" }, h("h4", { class: "space-above-0 space-below-3 colour-primary" }, "Filters"), h("biggive-form-field-select", { placeholder: "Category", id: "categories", "space-below": "2" }), h("biggive-form-field-select", { placeholder: "Beneficiary", id: "beneficiaries", "space-below": "2" })))), h("div", { class: "campaign-grid" }, h("slot", { name: "campaign-grid" })))));
|
|
49
55
|
}
|
|
50
56
|
static get is() { return "biggive-campaign-card-filter-grid"; }
|
|
51
57
|
static get encapsulation() { return "shadow"; }
|
|
52
|
-
static get originalStyleUrls() {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"original": "string",
|
|
82
|
-
"resolved": "string",
|
|
83
|
-
"references": {}
|
|
84
|
-
},
|
|
85
|
-
"required": false,
|
|
86
|
-
"optional": false,
|
|
87
|
-
"docs": {
|
|
88
|
-
"tags": [],
|
|
89
|
-
"text": "Intro"
|
|
90
|
-
},
|
|
91
|
-
"attribute": "intro",
|
|
92
|
-
"reflect": false,
|
|
93
|
-
"defaultValue": "'Find a charity or project'"
|
|
94
|
-
},
|
|
95
|
-
"placeholderText": {
|
|
96
|
-
"type": "string",
|
|
97
|
-
"mutable": false,
|
|
98
|
-
"complexType": {
|
|
99
|
-
"original": "string",
|
|
100
|
-
"resolved": "string",
|
|
101
|
-
"references": {}
|
|
102
|
-
},
|
|
103
|
-
"required": false,
|
|
104
|
-
"optional": false,
|
|
105
|
-
"docs": {
|
|
106
|
-
"tags": [],
|
|
107
|
-
"text": "Defines the text displayed as the placeholder in the input field\nbefore the user types anything"
|
|
108
|
-
},
|
|
109
|
-
"attribute": "placeholder-text",
|
|
110
|
-
"reflect": false,
|
|
111
|
-
"defaultValue": "'Search'"
|
|
112
|
-
},
|
|
113
|
-
"buttonText": {
|
|
114
|
-
"type": "string",
|
|
115
|
-
"mutable": false,
|
|
116
|
-
"complexType": {
|
|
117
|
-
"original": "string",
|
|
118
|
-
"resolved": "string",
|
|
119
|
-
"references": {}
|
|
58
|
+
static get originalStyleUrls() {
|
|
59
|
+
return {
|
|
60
|
+
"$": ["biggive-campaign-card-filter-grid.scss"]
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
static get styleUrls() {
|
|
64
|
+
return {
|
|
65
|
+
"$": ["biggive-campaign-card-filter-grid.css"]
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
static get properties() {
|
|
69
|
+
return {
|
|
70
|
+
"spaceBelow": {
|
|
71
|
+
"type": "number",
|
|
72
|
+
"mutable": false,
|
|
73
|
+
"complexType": {
|
|
74
|
+
"original": "number",
|
|
75
|
+
"resolved": "number",
|
|
76
|
+
"references": {}
|
|
77
|
+
},
|
|
78
|
+
"required": false,
|
|
79
|
+
"optional": false,
|
|
80
|
+
"docs": {
|
|
81
|
+
"tags": [],
|
|
82
|
+
"text": "Space below component"
|
|
83
|
+
},
|
|
84
|
+
"attribute": "space-below",
|
|
85
|
+
"reflect": false,
|
|
86
|
+
"defaultValue": "0"
|
|
120
87
|
},
|
|
121
|
-
"
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
"
|
|
125
|
-
|
|
88
|
+
"intro": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"mutable": false,
|
|
91
|
+
"complexType": {
|
|
92
|
+
"original": "string",
|
|
93
|
+
"resolved": "string",
|
|
94
|
+
"references": {}
|
|
95
|
+
},
|
|
96
|
+
"required": false,
|
|
97
|
+
"optional": false,
|
|
98
|
+
"docs": {
|
|
99
|
+
"tags": [],
|
|
100
|
+
"text": "Intro"
|
|
101
|
+
},
|
|
102
|
+
"attribute": "intro",
|
|
103
|
+
"reflect": false,
|
|
104
|
+
"defaultValue": "'Find a charity or project'"
|
|
126
105
|
},
|
|
127
|
-
"
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
"
|
|
143
|
-
"
|
|
106
|
+
"placeholderText": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"mutable": false,
|
|
109
|
+
"complexType": {
|
|
110
|
+
"original": "string",
|
|
111
|
+
"resolved": "string",
|
|
112
|
+
"references": {}
|
|
113
|
+
},
|
|
114
|
+
"required": false,
|
|
115
|
+
"optional": false,
|
|
116
|
+
"docs": {
|
|
117
|
+
"tags": [],
|
|
118
|
+
"text": "Defines the text displayed as the placeholder in the input field\nbefore the user types anything"
|
|
119
|
+
},
|
|
120
|
+
"attribute": "placeholder-text",
|
|
121
|
+
"reflect": false,
|
|
122
|
+
"defaultValue": "'Search'"
|
|
144
123
|
},
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
124
|
+
"buttonText": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"mutable": false,
|
|
127
|
+
"complexType": {
|
|
128
|
+
"original": "string",
|
|
129
|
+
"resolved": "string",
|
|
130
|
+
"references": {}
|
|
131
|
+
},
|
|
132
|
+
"required": false,
|
|
133
|
+
"optional": false,
|
|
134
|
+
"docs": {
|
|
135
|
+
"tags": [],
|
|
136
|
+
"text": "Defines the text on the search button"
|
|
137
|
+
},
|
|
138
|
+
"attribute": "button-text",
|
|
139
|
+
"reflect": false,
|
|
140
|
+
"defaultValue": "'Search'"
|
|
149
141
|
}
|
|
150
|
-
}
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
static get states() {
|
|
145
|
+
return {
|
|
146
|
+
"searchText": {}
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
static get elementRef() { return "el"; }
|
|
151
150
|
}
|
|
@@ -7,6 +7,8 @@ const Template = () => `
|
|
|
7
7
|
<biggive-campaign-card-filter-grid>
|
|
8
8
|
<biggive-grid slot="campaign-grid" column-count="3">
|
|
9
9
|
<biggive-campaign-card
|
|
10
|
+
data-filter-categories="["Finance"]"
|
|
11
|
+
data-filter-beneficiaries="["Children","Adults"]"
|
|
10
12
|
campaign-type="Match Funded"
|
|
11
13
|
campaign-title="Oxford Piano Festival Fundraising Campaign for LGBTQ+ community"
|
|
12
14
|
organisation-name="Oxford Philharmonic Orchestra"
|
|
@@ -18,6 +20,8 @@ const Template = () => `
|
|
|
18
20
|
progress-bar-counter="75">
|
|
19
21
|
</biggive-campaign-card>
|
|
20
22
|
<biggive-campaign-card
|
|
23
|
+
data-filter-categories="["Healthcare"]"
|
|
24
|
+
data-filter-beneficiaries="["Children"]"
|
|
21
25
|
campaign-type="Match Funded"
|
|
22
26
|
campaign-title="Oxford Piano Festival Fundraising Campaign for LGBTQ+ community"
|
|
23
27
|
organisation-name="Oxford Philharmonic Orchestra"
|
|
@@ -28,6 +32,8 @@ const Template = () => `
|
|
|
28
32
|
secondary-figure-amount="76543">
|
|
29
33
|
</biggive-campaign-card>
|
|
30
34
|
<biggive-campaign-card
|
|
35
|
+
data-filter-categories="["Healthcare"]"
|
|
36
|
+
data-filter-beneficiaries="["Children"]"
|
|
31
37
|
campaign-type="Match Funded"
|
|
32
38
|
campaign-title="Oxford Piano Festival Fundraising Campaign for LGBTQ+ community"
|
|
33
39
|
organisation-name="Oxford Philharmonic Orchestra"
|
package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.css
CHANGED
|
@@ -109,6 +109,10 @@ a:hover {
|
|
|
109
109
|
fill: #000000;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
+
.fill-red {
|
|
113
|
+
fill: red;
|
|
114
|
+
}
|
|
115
|
+
|
|
112
116
|
.background-colour-hover-primary:hover,
|
|
113
117
|
.background-colour-primary {
|
|
114
118
|
background-color: #2C089B;
|
|
@@ -214,6 +218,26 @@ a:hover {
|
|
|
214
218
|
background-color: #FFFFFF;
|
|
215
219
|
}
|
|
216
220
|
|
|
221
|
+
.button-white {
|
|
222
|
+
color: #2C089B;
|
|
223
|
+
background-color: #FFFFFF;
|
|
224
|
+
border-color: #FFFFFF;
|
|
225
|
+
}
|
|
226
|
+
.button-white:hover {
|
|
227
|
+
color: #FFFFFF;
|
|
228
|
+
background-color: #2C089B;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.button-black {
|
|
232
|
+
color: #FFFFFF;
|
|
233
|
+
background-color: #000000;
|
|
234
|
+
border-color: #000000;
|
|
235
|
+
}
|
|
236
|
+
.button-black:hover {
|
|
237
|
+
color: #000000;
|
|
238
|
+
background-color: #FFFFFF;
|
|
239
|
+
}
|
|
240
|
+
|
|
217
241
|
.button-clear-primary {
|
|
218
242
|
color: #2C089B;
|
|
219
243
|
background-color: transparent;
|