@biggive/components 1.0.120 → 1.0.122

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 (35) hide show
  1. package/dist/biggive/assets/fonts/EuclidTriangle/stylesheet.css +10 -0
  2. package/dist/biggive/biggive.esm.js +1 -1
  3. package/dist/biggive/p-648bdc60.entry.js +1 -0
  4. package/dist/biggive/p-8b2f6103.entry.js +1 -0
  5. package/dist/cjs/{biggive-back-to-top_24.cjs.entry.js → biggive-back-to-top_23.cjs.entry.js} +12 -76
  6. package/dist/cjs/biggive-popup.cjs.entry.js +28 -0
  7. package/dist/cjs/biggive.cjs.js +1 -1
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/collection/assets/fonts/EuclidTriangle/stylesheet.css +10 -0
  10. package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.js +9 -42
  11. package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.js +7 -15
  12. package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.js +9 -42
  13. package/dist/collection/components/biggive-footer/biggive-footer.js +1 -1
  14. package/dist/collection/components/biggive-progress-bar/biggive-progress-bar.js +2 -5
  15. package/dist/collection/components/biggive-social-icon/biggive-social-icon.js +3 -3
  16. package/dist/components/biggive-campaign-card-filter-grid.js +13 -27
  17. package/dist/components/biggive-campaign-card.js +3 -20
  18. package/dist/components/biggive-campaign-highlights.js +3 -19
  19. package/dist/components/biggive-footer.js +1 -1
  20. package/dist/components/biggive-popup.js +39 -1
  21. package/dist/components/biggive-progress-bar2.js +1 -4
  22. package/dist/components/biggive-social-icon.js +1 -1
  23. package/dist/esm/{biggive-back-to-top_24.entry.js → biggive-back-to-top_23.entry.js} +13 -76
  24. package/dist/{components/biggive-popup2.js → esm/biggive-popup.entry.js} +8 -25
  25. package/dist/esm/biggive.js +1 -1
  26. package/dist/esm/loader.js +1 -1
  27. package/dist/types/components/biggive-campaign-card/biggive-campaign-card.d.ts +4 -12
  28. package/dist/types/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.d.ts +0 -2
  29. package/dist/types/components/biggive-campaign-highlights/biggive-campaign-highlights.d.ts +4 -12
  30. package/dist/types/components/biggive-progress-bar/biggive-progress-bar.d.ts +1 -2
  31. package/dist/types/components/biggive-social-icon/biggive-social-icon.d.ts +2 -2
  32. package/dist/types/components.d.ts +22 -38
  33. package/hydrate/index.js +16 -60
  34. package/package.json +1 -1
  35. package/dist/biggive/p-429ef990.entry.js +0 -1
@@ -287,10 +287,6 @@ export namespace Components {
287
287
  * e.g. "Match Funded".
288
288
  */
289
289
  "campaignType": string;
290
- /**
291
- * e.g. 'GBP'.
292
- */
293
- "currencyCode": string;
294
290
  /**
295
291
  * Donate button colour scheme
296
292
  */
@@ -320,9 +316,9 @@ export namespace Components {
320
316
  */
321
317
  "organisationName": string;
322
318
  /**
323
- * Amount for the primary figure
319
+ * Amount for the primary figure, formatted with currency symbol
324
320
  */
325
- "primaryFigureAmount": number;
321
+ "primaryFigureAmount": string;
326
322
  /**
327
323
  * Label for the primary figure
328
324
  */
@@ -332,9 +328,9 @@ export namespace Components {
332
328
  */
333
329
  "progressBarCounter": number;
334
330
  /**
335
- * Amount for the secondary figure
331
+ * Amount for the secondary figure, formatted with currency symbol
336
332
  */
337
- "secondaryFigureAmount": number;
333
+ "secondaryFigureAmount": string;
338
334
  /**
339
335
  * Label for the secondary figure
340
336
  */
@@ -388,13 +384,9 @@ export namespace Components {
388
384
  */
389
385
  "campaignTitle": string;
390
386
  /**
391
- * e.g. 'GBP'.
392
- */
393
- "currencyCode": string;
394
- /**
395
- * Amount for the primary figure
387
+ * Amount for the primary figure, formatted with currency symbol
396
388
  */
397
- "primaryFigureAmount": number;
389
+ "primaryFigureAmount": string;
398
390
  /**
399
391
  * Label for the primary figure
400
392
  */
@@ -412,9 +404,9 @@ export namespace Components {
412
404
  */
413
405
  "progressBarCounter": number;
414
406
  /**
415
- * Amount for the secondary figure
407
+ * Amount for the secondary figure, formatted with currency symbol
416
408
  */
417
- "secondaryFigureAmount": number;
409
+ "secondaryFigureAmount": string;
418
410
  /**
419
411
  * Label for the secondary figure
420
412
  */
@@ -765,7 +757,7 @@ export namespace Components {
765
757
  */
766
758
  "colourScheme": string;
767
759
  /**
768
- * Text
760
+ * Percentage to show + use for CSS width; round before input if desired
769
761
  */
770
762
  "counter": number;
771
763
  /**
@@ -807,11 +799,11 @@ export namespace Components {
807
799
  */
808
800
  "backgroundColour": string;
809
801
  /**
810
- * Background colour
802
+ * Icon colour
811
803
  */
812
804
  "iconColour": string;
813
805
  /**
814
- * service
806
+ * Service name
815
807
  */
816
808
  "service": string;
817
809
  /**
@@ -1539,10 +1531,6 @@ declare namespace LocalJSX {
1539
1531
  * e.g. "Match Funded".
1540
1532
  */
1541
1533
  "campaignType"?: string;
1542
- /**
1543
- * e.g. 'GBP'.
1544
- */
1545
- "currencyCode"?: string;
1546
1534
  /**
1547
1535
  * Donate button colour scheme
1548
1536
  */
@@ -1572,9 +1560,9 @@ declare namespace LocalJSX {
1572
1560
  */
1573
1561
  "organisationName"?: string;
1574
1562
  /**
1575
- * Amount for the primary figure
1563
+ * Amount for the primary figure, formatted with currency symbol
1576
1564
  */
1577
- "primaryFigureAmount"?: number;
1565
+ "primaryFigureAmount"?: string;
1578
1566
  /**
1579
1567
  * Label for the primary figure
1580
1568
  */
@@ -1584,9 +1572,9 @@ declare namespace LocalJSX {
1584
1572
  */
1585
1573
  "progressBarCounter"?: number;
1586
1574
  /**
1587
- * Amount for the secondary figure
1575
+ * Amount for the secondary figure, formatted with currency symbol
1588
1576
  */
1589
- "secondaryFigureAmount"?: number;
1577
+ "secondaryFigureAmount"?: string;
1590
1578
  /**
1591
1579
  * Label for the secondary figure
1592
1580
  */
@@ -1651,13 +1639,9 @@ declare namespace LocalJSX {
1651
1639
  */
1652
1640
  "campaignTitle"?: string;
1653
1641
  /**
1654
- * e.g. 'GBP'.
1655
- */
1656
- "currencyCode"?: string;
1657
- /**
1658
- * Amount for the primary figure
1642
+ * Amount for the primary figure, formatted with currency symbol
1659
1643
  */
1660
- "primaryFigureAmount"?: number;
1644
+ "primaryFigureAmount"?: string;
1661
1645
  /**
1662
1646
  * Label for the primary figure
1663
1647
  */
@@ -1675,9 +1659,9 @@ declare namespace LocalJSX {
1675
1659
  */
1676
1660
  "progressBarCounter"?: number;
1677
1661
  /**
1678
- * Amount for the secondary figure
1662
+ * Amount for the secondary figure, formatted with currency symbol
1679
1663
  */
1680
- "secondaryFigureAmount"?: number;
1664
+ "secondaryFigureAmount"?: string;
1681
1665
  /**
1682
1666
  * Label for the secondary figure
1683
1667
  */
@@ -2035,7 +2019,7 @@ declare namespace LocalJSX {
2035
2019
  */
2036
2020
  "colourScheme"?: string;
2037
2021
  /**
2038
- * Text
2022
+ * Percentage to show + use for CSS width; round before input if desired
2039
2023
  */
2040
2024
  "counter"?: number;
2041
2025
  /**
@@ -2081,11 +2065,11 @@ declare namespace LocalJSX {
2081
2065
  */
2082
2066
  "backgroundColour"?: string;
2083
2067
  /**
2084
- * Background colour
2068
+ * Icon colour
2085
2069
  */
2086
2070
  "iconColour"?: string;
2087
2071
  /**
2088
- * service
2072
+ * Service name
2089
2073
  */
2090
2074
  "service"?: string;
2091
2075
  /**
package/hydrate/index.js CHANGED
@@ -6472,7 +6472,6 @@ class BiggiveCampaignCard {
6472
6472
  this.banner = null;
6473
6473
  this.campaignTitle = null;
6474
6474
  this.organisationName = null;
6475
- this.currencyCode = undefined;
6476
6475
  this.primaryFigureLabel = null;
6477
6476
  this.primaryFigureAmount = null;
6478
6477
  this.secondaryFigureLabel = null;
@@ -6485,23 +6484,8 @@ class BiggiveCampaignCard {
6485
6484
  this.moreInfoButtonUrl = null;
6486
6485
  this.moreInfoButtonColourScheme = 'clear-primary';
6487
6486
  }
6488
- /**
6489
- * @returns Whole large currency units (e.g. pounds) formatted with symbol.
6490
- */
6491
- formatCurrency(currencyCode, amount) {
6492
- if (amount === null || isNaN(amount)) {
6493
- return '–';
6494
- }
6495
- return Intl.NumberFormat('en-GB', {
6496
- style: 'currency',
6497
- currency: currencyCode,
6498
- currencyDisplay: 'symbol',
6499
- minimumFractionDigits: 0,
6500
- maximumFractionDigits: 0,
6501
- }).format(amount);
6502
- }
6503
6487
  render() {
6504
- return (hAsync("div", { class: 'container space-below-' + this.spaceBelow.toString() }, hAsync("div", { class: "sleeve" }, this.campaignType !== null ? (hAsync("div", { class: "campaign-type" }, hAsync("span", null, this.campaignType))) : null, this.banner !== null ? (hAsync("div", { class: "image-wrap banner", style: { 'background-image': 'url(' + this.banner + ')' } }, hAsync("img", { src: this.banner, class: "banner" }))) : (hAsync("div", { class: "image-wrap banner" })), hAsync("div", { class: "title-wrap" }, hAsync("h3", null, this.campaignTitle), hAsync("div", { class: "organisation-name" }, "By ", this.organisationName)), hAsync("div", { class: "meta-wrap" }, hAsync("div", { class: "meta-item" }, hAsync("span", { class: "label" }, this.primaryFigureLabel), hAsync("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.primaryFigureAmount))), hAsync("div", { class: "meta-item" }, hAsync("span", { class: "label" }, this.secondaryFigureLabel), hAsync("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.secondaryFigureAmount)))), hAsync("div", { class: "progress-bar-wrap" }, hAsync("biggive-progress-bar", { counter: this.progressBarCounter, "colour-scheme": "primary" })), hAsync("div", { class: "button-wrap" }, hAsync("biggive-button", { "full-width": "true", "colour-scheme": this.donateButtonColourScheme, url: this.donateButtonUrl, label: this.donateButtonLabel }), hAsync("biggive-button", { "full-width": "true", "colour-scheme": this.moreInfoButtonColourScheme, url: this.moreInfoButtonUrl, label: this.moreInfoButtonLabel })))));
6488
+ return (hAsync("div", { class: 'container space-below-' + this.spaceBelow.toString() }, hAsync("div", { class: "sleeve" }, this.campaignType !== null ? (hAsync("div", { class: "campaign-type" }, hAsync("span", null, this.campaignType))) : null, this.banner !== null ? (hAsync("div", { class: "image-wrap banner", style: { 'background-image': 'url(' + this.banner + ')' } }, hAsync("img", { src: this.banner, class: "banner" }))) : (hAsync("div", { class: "image-wrap banner" })), hAsync("div", { class: "title-wrap" }, hAsync("h3", null, this.campaignTitle), hAsync("div", { class: "organisation-name" }, "By ", this.organisationName)), hAsync("div", { class: "meta-wrap" }, hAsync("div", { class: "meta-item" }, hAsync("span", { class: "label" }, this.primaryFigureLabel), hAsync("span", { class: "text" }, this.primaryFigureAmount)), hAsync("div", { class: "meta-item" }, hAsync("span", { class: "label" }, this.secondaryFigureLabel), hAsync("span", { class: "text" }, this.secondaryFigureAmount))), hAsync("div", { class: "progress-bar-wrap" }, hAsync("biggive-progress-bar", { counter: this.progressBarCounter, "colour-scheme": "primary" })), hAsync("div", { class: "button-wrap" }, hAsync("biggive-button", { "full-width": "true", "colour-scheme": this.donateButtonColourScheme, url: this.donateButtonUrl, label: this.donateButtonLabel }), hAsync("biggive-button", { "full-width": "true", "colour-scheme": this.moreInfoButtonColourScheme, url: this.moreInfoButtonUrl, label: this.moreInfoButtonLabel })))));
6505
6489
  }
6506
6490
  static get style() { return biggiveCampaignCardCss; }
6507
6491
  static get cmpMeta() { return {
@@ -6513,11 +6497,10 @@ class BiggiveCampaignCard {
6513
6497
  "banner": [1],
6514
6498
  "campaignTitle": [1, "campaign-title"],
6515
6499
  "organisationName": [1, "organisation-name"],
6516
- "currencyCode": [1, "currency-code"],
6517
6500
  "primaryFigureLabel": [1, "primary-figure-label"],
6518
- "primaryFigureAmount": [2, "primary-figure-amount"],
6501
+ "primaryFigureAmount": [1, "primary-figure-amount"],
6519
6502
  "secondaryFigureLabel": [1, "secondary-figure-label"],
6520
- "secondaryFigureAmount": [2, "secondary-figure-amount"],
6503
+ "secondaryFigureAmount": [1, "secondary-figure-amount"],
6521
6504
  "progressBarCounter": [2, "progress-bar-counter"],
6522
6505
  "donateButtonLabel": [1, "donate-button-label"],
6523
6506
  "donateButtonUrl": [1, "donate-button-url"],
@@ -6548,9 +6531,9 @@ class BiggiveCampaignCardFilterGrid {
6548
6531
  this.sortBy = event.target.value;
6549
6532
  this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
6550
6533
  };
6551
- this.handleApplyFilterButtonClick = () => {
6552
- this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
6553
- };
6534
+ // private handleApplyFilterButtonClick = () => {
6535
+ // this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
6536
+ // };
6554
6537
  this.handleSearchButtonPressed = () => {
6555
6538
  this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
6556
6539
  };
@@ -6562,9 +6545,6 @@ class BiggiveCampaignCardFilterGrid {
6562
6545
  this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
6563
6546
  }
6564
6547
  };
6565
- this.handleFilterButtonClick = () => {
6566
- this.el.shadowRoot.getElementById('filter-popup').open();
6567
- };
6568
6548
  this.spaceBelow = 0;
6569
6549
  this.intro = 'Find a charity or project';
6570
6550
  this.placeholderText = 'Search';
@@ -6592,16 +6572,11 @@ class BiggiveCampaignCardFilterGrid {
6592
6572
  this.filterLocation = this.el.shadowRoot.getElementById('locations').selectedValue;
6593
6573
  this.filterFunding = this.el.shadowRoot.getElementById('funding').selectedValue;
6594
6574
  }
6575
+ // private handleFilterButtonClick = () => {
6576
+ // this.el.shadowRoot.getElementById('filter-popup').open();
6577
+ // };
6595
6578
  render() {
6596
- return (hAsync("div", { class: 'container space-below-' + this.spaceBelow }, hAsync("div", { class: "sleeve" }, hAsync("div", { class: "search-wrap" }, hAsync("h4", null, this.intro), hAsync("div", { class: "field-wrap" }, hAsync("div", { class: "input-wrap" }, hAsync("svg", { xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" }, hAsync("path", { d: faMagnifyingGlass.icon[4].toString() })), hAsync("input", { type: "text", value: this.searchText, class: "input-text", placeholder: this.placeholderText, onInput: this.handleSearchTextChanged, onKeyDown: this.handleEnterPressed })), hAsync("biggive-button", { onClick: this.handleSearchButtonPressed, label: this.buttonText }))), hAsync("div", { class: "sort-filter-wrap" }, hAsync("div", { class: "sort-wrap" }, hAsync("biggive-form-field-select", { placeholder: "Sort by", id: "sort-by", onDoSelectChange: this.handleSortByChanged }, hAsync("biggive-form-field-select-option", { value: "amountRaised", label: "Most raised" }), hAsync("biggive-form-field-select-option", { value: "matchFundsRemaining", label: "Match funds remaining" }))), hAsync("div", { class: "filter-wrap" }, hAsync("biggive-button", { class: "filter", onClick: this.handleFilterButtonClick, label: "Filters" }), hAsync("biggive-popup", { id: "filter-popup" }, hAsync("h4", { class: "space-above-0 space-below-3 colour-primary" }, "Filters"), hAsync("biggive-form-field-select", { placeholder: "Category", id: "categories", "space-below": "2" }, this.categoryOptions.length === 0
6597
- ? undefined
6598
- : this.categoryOptions.map(option => hAsync("biggive-form-field-select-option", { value: option, label: option }))), hAsync("biggive-form-field-select", { placeholder: "Beneficiary", id: "beneficiaries", "space-below": "2" }, this.beneficiaryOptions.length === 0
6599
- ? undefined
6600
- : this.beneficiaryOptions.map(option => hAsync("biggive-form-field-select-option", { value: option, label: option }))), hAsync("biggive-form-field-select", { placeholder: "Location", id: "locations", "space-below": "2" }, this.locationOptions.length === 0
6601
- ? undefined
6602
- : this.locationOptions.map(option => hAsync("biggive-form-field-select-option", { value: option, label: option }))), hAsync("biggive-form-field-select", { placeholder: "Funding", id: "funding", "space-below": "2" }, this.fundingOptions.length === 0
6603
- ? undefined
6604
- : this.fundingOptions.map(option => hAsync("biggive-form-field-select-option", { value: option, label: option }))), hAsync("div", { class: "align-right" }, hAsync("biggive-button", { label: "Apply filters", onClick: this.handleApplyFilterButtonClick }))))), hAsync("div", { class: "campaign-grid" }, hAsync("slot", { name: "campaign-grid" })))));
6579
+ return (hAsync("div", { class: 'container space-below-' + this.spaceBelow }, hAsync("div", { class: "sleeve" }, hAsync("div", { class: "search-wrap" }, hAsync("h4", null, this.intro), hAsync("div", { class: "field-wrap" }, hAsync("div", { class: "input-wrap" }, hAsync("svg", { xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" }, hAsync("path", { d: faMagnifyingGlass.icon[4].toString() })), hAsync("input", { type: "text", value: this.searchText, class: "input-text", placeholder: this.placeholderText, onInput: this.handleSearchTextChanged, onKeyDown: this.handleEnterPressed })), hAsync("biggive-button", { onClick: this.handleSearchButtonPressed, label: this.buttonText }))), hAsync("div", { class: "sort-filter-wrap" }, hAsync("div", { class: "sort-wrap" }, hAsync("biggive-form-field-select", { placeholder: "Sort by", id: "sort-by", onDoSelectChange: this.handleSortByChanged }, hAsync("biggive-form-field-select-option", { value: "amountRaised", label: "Most raised" }), hAsync("biggive-form-field-select-option", { value: "matchFundsRemaining", label: "Match funds remaining" })))), hAsync("div", { class: "campaign-grid" }, hAsync("slot", { name: "campaign-grid" })))));
6605
6580
  }
6606
6581
  get el() { return getElement(this); }
6607
6582
  static get style() { return biggiveCampaignCardFilterGridCss; }
@@ -6632,7 +6607,6 @@ class BiggiveCampaignHighlights {
6632
6607
  this.spaceBelow = 0;
6633
6608
  this.banner = '';
6634
6609
  this.campaignTitle = null;
6635
- this.currencyCode = 'GBP';
6636
6610
  this.primaryFigureLabel = null;
6637
6611
  this.primaryFigureAmount = null;
6638
6612
  this.secondaryFigureLabel = null;
@@ -6643,22 +6617,8 @@ class BiggiveCampaignHighlights {
6643
6617
  this.secondaryStatIcon = null;
6644
6618
  this.secondaryStatText = null;
6645
6619
  }
6646
- /**
6647
- * @returns Whole large currency units (e.g. pounds) formatted with symbol.
6648
- */
6649
- formatCurrency(currencyCode, amount) {
6650
- if (amount === null || isNaN(amount)) {
6651
- return '–';
6652
- }
6653
- return Intl.NumberFormat('en-GB', {
6654
- style: 'currency',
6655
- currency: currencyCode,
6656
- currencyDisplay: 'symbol',
6657
- maximumFractionDigits: 0,
6658
- }).format(amount);
6659
- }
6660
6620
  render() {
6661
- return (hAsync("div", { class: 'container space-below-' + this.spaceBelow }, hAsync("div", { class: "sleeve" }, this.campaignTitle != null ? (hAsync("div", { class: "campaign-title" }, hAsync("span", null, this.campaignTitle))) : null, this.banner.length > 0 ? (hAsync("div", { class: "image-wrap banner", style: { 'background-image': 'url(' + this.banner + ')' } }, hAsync("img", { src: this.banner, class: "banner" }))) : null, hAsync("div", { class: "meta-wrap" }, hAsync("div", { class: "meta-item" }, hAsync("span", { class: "label" }, this.primaryFigureLabel), hAsync("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.primaryFigureAmount))), hAsync("div", { class: "meta-item" }, hAsync("span", { class: "label" }, this.secondaryFigureLabel), hAsync("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.secondaryFigureAmount)))), hAsync("div", { class: "progress-bar-wrap" }, hAsync("biggive-progress-bar", { counter: this.progressBarCounter, "colour-scheme": "primary" })), hAsync("div", { class: "stat-wrap" }, this.primaryStatIcon != null ? (hAsync("div", { class: "stat-item" }, hAsync("biggive-misc-icon", { icon: this.primaryStatIcon, "background-colour": "white", "icon-colour": "tertiary" }), hAsync("span", { class: "label" }, this.primaryStatText))) : null, this.secondaryStatIcon != null ? (hAsync("div", { class: "stat-item" }, hAsync("biggive-misc-icon", { icon: this.secondaryStatIcon, "background-colour": "white", "icon-colour": "tertiary" }), hAsync("span", { class: "label" }, this.secondaryStatText))) : null))));
6621
+ return (hAsync("div", { class: 'container space-below-' + this.spaceBelow }, hAsync("div", { class: "sleeve" }, this.campaignTitle != null ? (hAsync("div", { class: "campaign-title" }, hAsync("span", null, this.campaignTitle))) : null, this.banner.length > 0 ? (hAsync("div", { class: "image-wrap banner", style: { 'background-image': 'url(' + this.banner + ')' } }, hAsync("img", { src: this.banner, class: "banner" }))) : null, hAsync("div", { class: "meta-wrap" }, hAsync("div", { class: "meta-item" }, hAsync("span", { class: "label" }, this.primaryFigureLabel), hAsync("span", { class: "text" }, this.primaryFigureAmount)), hAsync("div", { class: "meta-item" }, hAsync("span", { class: "label" }, this.secondaryFigureLabel), hAsync("span", { class: "text" }, this.secondaryFigureAmount))), hAsync("div", { class: "progress-bar-wrap" }, hAsync("biggive-progress-bar", { counter: this.progressBarCounter, "colour-scheme": "primary" })), hAsync("div", { class: "stat-wrap" }, this.primaryStatIcon != null ? (hAsync("div", { class: "stat-item" }, hAsync("biggive-misc-icon", { icon: this.primaryStatIcon, "background-colour": "white", "icon-colour": "tertiary" }), hAsync("span", { class: "label" }, this.primaryStatText))) : null, this.secondaryStatIcon != null ? (hAsync("div", { class: "stat-item" }, hAsync("biggive-misc-icon", { icon: this.secondaryStatIcon, "background-colour": "white", "icon-colour": "tertiary" }), hAsync("span", { class: "label" }, this.secondaryStatText))) : null))));
6662
6622
  }
6663
6623
  static get style() { return biggiveCampaignHighlightsCss; }
6664
6624
  static get cmpMeta() { return {
@@ -6668,11 +6628,10 @@ class BiggiveCampaignHighlights {
6668
6628
  "spaceBelow": [2, "space-below"],
6669
6629
  "banner": [1],
6670
6630
  "campaignTitle": [1, "campaign-title"],
6671
- "currencyCode": [1, "currency-code"],
6672
6631
  "primaryFigureLabel": [1, "primary-figure-label"],
6673
- "primaryFigureAmount": [2, "primary-figure-amount"],
6632
+ "primaryFigureAmount": [1, "primary-figure-amount"],
6674
6633
  "secondaryFigureLabel": [1, "secondary-figure-label"],
6675
- "secondaryFigureAmount": [2, "secondary-figure-amount"],
6634
+ "secondaryFigureAmount": [1, "secondary-figure-amount"],
6676
6635
  "progressBarCounter": [2, "progress-bar-counter"],
6677
6636
  "primaryStatIcon": [1, "primary-stat-icon"],
6678
6637
  "primaryStatText": [1, "primary-stat-text"],
@@ -6739,7 +6698,7 @@ class BiggiveFooter {
6739
6698
  this.appendMenu('nav-postscript');
6740
6699
  }
6741
6700
  render() {
6742
- return (hAsync("footer", { class: "footer" }, hAsync("div", { class: "row row-top" }, hAsync("nav", { class: "nav nav-primary" }, hAsync("h5", null, hAsync("slot", { name: "nav-primary-title" }))), hAsync("nav", { class: "nav nav-secondary" }, hAsync("h5", null, hAsync("slot", { name: "nav-secondary-title" }))), hAsync("nav", { class: "nav nav-tertiary" }, hAsync("h5", null, hAsync("slot", { name: "nav-tertiary-title" }))), hAsync("div", { class: "button-wrap" }, hAsync("biggive-button", { "colour-scheme": "white", url: "https://www.thebiggive.org.uk/s/charities", label: "For charities" }), hAsync("biggive-button", { "colour-scheme": "white", url: "https://www.thebiggive.org.uk/s/philanthropists", label: "For funders" }))), hAsync("div", { class: "row row-bottom" }, hAsync("div", { class: "postscript-wrap" }, hAsync("img", { class: "fr-logo", src: getAssetPath('../assets/images/fundraising-regulator.png') }), hAsync("nav", { class: "nav nav-postscript" })), hAsync("div", { class: "social-icon-wrap" }, hAsync("slot", { name: "social-icons" })), hAsync("p", null, "\u00A9 2007 \u2013 2022 The Big Give Trust (1136547) | Company number 07273065 | Dragon Court, 27-29 Macklin Street, London WC2B 5LX, United Kingdom"))));
6701
+ return (hAsync("footer", { class: "footer" }, hAsync("div", { class: "row row-top" }, hAsync("nav", { class: "nav nav-primary" }, hAsync("h5", null, hAsync("slot", { name: "nav-primary-title" }))), hAsync("nav", { class: "nav nav-secondary" }, hAsync("h5", null, hAsync("slot", { name: "nav-secondary-title" }))), hAsync("nav", { class: "nav nav-tertiary" }, hAsync("h5", null, hAsync("slot", { name: "nav-tertiary-title" }))), hAsync("div", { class: "button-wrap" }, hAsync("biggive-button", { "colour-scheme": "white", url: "https://www.thebiggive.org.uk/s/charities", label: "For charities" }), hAsync("biggive-button", { "colour-scheme": "white", url: "https://www.thebiggive.org.uk/s/philanthropists", label: "For funders" }))), hAsync("div", { class: "row row-bottom" }, hAsync("div", { class: "postscript-wrap" }, hAsync("img", { class: "fr-logo", src: getAssetPath('../assets/images/fundraising-regulator.png'), alt: "Fundraising Regulator" }), hAsync("nav", { class: "nav nav-postscript" })), hAsync("div", { class: "social-icon-wrap" }, hAsync("slot", { name: "social-icons" })), hAsync("p", null, "\u00A9 2007 \u2013 2022 The Big Give Trust (1136547) | Company number 07273065 | Dragon Court, 27-29 Macklin Street, London WC2B 5LX, United Kingdom"))));
6743
6702
  }
6744
6703
  get host() { return getElement(this); }
6745
6704
  static get style() { return biggiveFooterCss; }
@@ -7344,11 +7303,8 @@ class BiggiveProgressBar {
7344
7303
  this.colourScheme = 'primary';
7345
7304
  this.counter = 100;
7346
7305
  }
7347
- getPercentage() {
7348
- return Math.round(this.counter);
7349
- }
7350
7306
  render() {
7351
- return (hAsync("div", { class: 'progress-bar progress-bar-' + this.colourScheme + ' space-below-' + this.spaceBelow }, hAsync("div", { class: "slider" }, hAsync("div", { class: "progress", style: { width: this.getPercentage() + '%' } })), hAsync("div", { class: "counter" }, this.getPercentage(), "%")));
7307
+ return (hAsync("div", { class: 'progress-bar progress-bar-' + this.colourScheme + ' space-below-' + this.spaceBelow }, hAsync("div", { class: "slider" }, hAsync("div", { class: "progress", style: { width: `${this.counter}%` } })), hAsync("div", { class: "counter" }, this.counter, "%")));
7352
7308
  }
7353
7309
  static get style() { return biggiveProgressBarCss; }
7354
7310
  static get cmpMeta() { return {
@@ -7409,7 +7365,7 @@ class BiggiveSocialIcon {
7409
7365
  return icon;
7410
7366
  }
7411
7367
  render() {
7412
- return (hAsync("div", { class: 'social-icon-item background-colour-' + this.backgroundColour }, hAsync("a", { href: this.url, target: "_blank" }, hAsync("svg", { width: this.getSocialIcon().icon[0], height: this.getSocialIcon().icon[1], xmlns: "http://www.w3.org/2000/svg", class: 'fill-' + this.iconColour, viewBox: '0 0 ' + this.getSocialIcon().icon[0] + ' ' + this.getSocialIcon().icon[1] }, hAsync("path", { d: this.getSocialIcon().icon[4].toString() })))));
7368
+ return (hAsync("div", { class: 'social-icon-item background-colour-' + this.backgroundColour }, hAsync("a", { href: this.url, "aria-label": `Big Give on ${this.service}`, target: "_blank" }, hAsync("svg", { width: this.getSocialIcon().icon[0], height: this.getSocialIcon().icon[1], xmlns: "http://www.w3.org/2000/svg", class: 'fill-' + this.iconColour, viewBox: '0 0 ' + this.getSocialIcon().icon[0] + ' ' + this.getSocialIcon().icon[1] }, hAsync("path", { d: this.getSocialIcon().icon[4].toString() })))));
7413
7369
  }
7414
7370
  static get style() { return biggiveSocialIconCss; }
7415
7371
  static get cmpMeta() { return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biggive/components",
3
- "version": "1.0.120",
3
+ "version": "1.0.122",
4
4
  "description": "Big Give Components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",