@biggive/components 202409030845.0.0 → 202409131555.0.0

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 (131) hide show
  1. package/dist/biggive/biggive.esm.js +1 -1
  2. package/dist/biggive/p-084b7da4.entry.js +2 -0
  3. package/dist/biggive/{p-cdd16217.entry.js.map → p-084b7da4.entry.js.map} +1 -1
  4. package/dist/biggive/{p-9c79176f.entry.js → p-197f4346.entry.js} +2 -2
  5. package/dist/biggive/{p-7b31ecab.entry.js → p-26d59dde.entry.js} +2 -2
  6. package/dist/biggive/p-2bd31925.entry.js +2 -0
  7. package/dist/biggive/{p-52e1d027.entry.js → p-3a70550e.entry.js} +2 -2
  8. package/dist/biggive/{p-19f1231d.entry.js → p-515510b4.entry.js} +2 -2
  9. package/dist/biggive/{p-a2c75002.entry.js → p-76a72b20.entry.js} +2 -2
  10. package/dist/biggive/p-85da0744.entry.js +2 -0
  11. package/dist/biggive/{p-0db98bc4.entry.js → p-a819de05.entry.js} +2 -2
  12. package/dist/biggive/{p-6c6e271c.entry.js → p-da3ff44b.entry.js} +2 -2
  13. package/dist/cjs/biggive-accordion_41.cjs.entry.js +40 -39
  14. package/dist/cjs/biggive-accordion_41.cjs.entry.js.map +1 -1
  15. package/dist/cjs/biggive-category-icon.cjs.entry.js +1 -1
  16. package/dist/cjs/biggive-cookie-banner.cjs.entry.js +1 -1
  17. package/dist/cjs/biggive-form.cjs.entry.js +1 -1
  18. package/dist/cjs/biggive-icon-group.cjs.entry.js +1 -1
  19. package/dist/cjs/biggive-image-card.cjs.entry.js +2 -2
  20. package/dist/cjs/biggive-nav-group.cjs.entry.js +1 -1
  21. package/dist/cjs/biggive-nav-item.cjs.entry.js +1 -1
  22. package/dist/cjs/biggive-table.cjs.entry.js +2 -2
  23. package/dist/cjs/biggive-video.cjs.entry.js +1 -1
  24. package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.js +13 -7
  25. package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.js.map +1 -1
  26. package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.stories.js +1 -1
  27. package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.stories.js.map +1 -1
  28. package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.js +1 -1
  29. package/dist/collection/components/biggive-category-icon/biggive-category-icon.js +1 -1
  30. package/dist/collection/components/biggive-container-card/biggive-container-card.js +1 -1
  31. package/dist/collection/components/biggive-cookie-banner/biggive-cookie-banner.js +1 -1
  32. package/dist/collection/components/biggive-form/biggive-form.js +1 -1
  33. package/dist/collection/components/biggive-form-field-select/biggive-form-field-select.js +2 -2
  34. package/dist/collection/components/biggive-formatted-text/biggive-formatted-text.js +1 -1
  35. package/dist/collection/components/biggive-generic-icon/biggive-generic-icon.js +1 -1
  36. package/dist/collection/components/biggive-grid/biggive-grid.js +1 -1
  37. package/dist/collection/components/biggive-heading/biggive-heading.js +1 -1
  38. package/dist/collection/components/biggive-hero-image/biggive-hero-image.js +2 -2
  39. package/dist/collection/components/biggive-icon-button/biggive-icon-button.js +2 -2
  40. package/dist/collection/components/biggive-icon-group/biggive-icon-group.js +1 -1
  41. package/dist/collection/components/biggive-image/biggive-image.js +1 -1
  42. package/dist/collection/components/biggive-image-button/biggive-image-button.js +2 -2
  43. package/dist/collection/components/biggive-image-card/biggive-image-card.js +2 -2
  44. package/dist/collection/components/biggive-image-feature/biggive-image-feature.js +1 -1
  45. package/dist/collection/components/biggive-main-menu/biggive-main-menu.js +1 -1
  46. package/dist/collection/components/biggive-misc-icon/biggive-misc-icon.js +1 -1
  47. package/dist/collection/components/biggive-nav-group/biggive-nav-group.js +1 -1
  48. package/dist/collection/components/biggive-nav-item/biggive-nav-item.js +1 -1
  49. package/dist/collection/components/biggive-page-column/biggive-page-column.js +1 -1
  50. package/dist/collection/components/biggive-page-columns/biggive-page-columns.js +1 -1
  51. package/dist/collection/components/biggive-page-section/biggive-page-section.js +2 -2
  52. package/dist/collection/components/biggive-popup/biggive-popup.js +1 -1
  53. package/dist/collection/components/biggive-quote/biggive-quote.js +1 -1
  54. package/dist/collection/components/biggive-sheet/biggive-sheet.js +1 -1
  55. package/dist/collection/components/biggive-social-icon/biggive-social-icon.js +1 -1
  56. package/dist/collection/components/biggive-tab/biggive-tab.js +1 -1
  57. package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.js +2 -2
  58. package/dist/collection/components/biggive-table/biggive-table.js +2 -2
  59. package/dist/collection/components/biggive-text-input/biggive-text-input.js +1 -1
  60. package/dist/collection/components/biggive-timeline/biggive-timeline.js +2 -2
  61. package/dist/collection/components/biggive-totalizer/biggive-totalizer.js +1 -1
  62. package/dist/collection/components/biggive-totalizer-ticker-item/biggive-totalizer-ticker-item.js +1 -1
  63. package/dist/collection/components/biggive-video/biggive-video.js +1 -1
  64. package/dist/collection/components/biggive-video-feature/biggive-video-feature.js +1 -1
  65. package/dist/components/biggive-campaign-card-filter-grid.js +5 -4
  66. package/dist/components/biggive-campaign-card-filter-grid.js.map +1 -1
  67. package/dist/components/biggive-campaign-highlights.js +1 -1
  68. package/dist/components/biggive-category-icon.js +1 -1
  69. package/dist/components/biggive-container-card.js +1 -1
  70. package/dist/components/biggive-cookie-banner.js +1 -1
  71. package/dist/components/biggive-form-field-select2.js +2 -2
  72. package/dist/components/biggive-form.js +1 -1
  73. package/dist/components/biggive-formatted-text.js +1 -1
  74. package/dist/components/biggive-generic-icon2.js +1 -1
  75. package/dist/components/biggive-grid.js +1 -1
  76. package/dist/components/biggive-heading.js +1 -1
  77. package/dist/components/biggive-hero-image.js +2 -2
  78. package/dist/components/biggive-icon-button.js +2 -2
  79. package/dist/components/biggive-icon-group.js +1 -1
  80. package/dist/components/biggive-image-button.js +2 -2
  81. package/dist/components/biggive-image-card.js +2 -2
  82. package/dist/components/biggive-image-feature.js +1 -1
  83. package/dist/components/biggive-image.js +1 -1
  84. package/dist/components/biggive-main-menu.js +1 -1
  85. package/dist/components/biggive-misc-icon2.js +1 -1
  86. package/dist/components/biggive-nav-group.js +1 -1
  87. package/dist/components/biggive-nav-item.js +1 -1
  88. package/dist/components/biggive-page-column.js +1 -1
  89. package/dist/components/biggive-page-columns.js +1 -1
  90. package/dist/components/biggive-page-section.js +2 -2
  91. package/dist/components/biggive-popup2.js +1 -1
  92. package/dist/components/biggive-quote.js +1 -1
  93. package/dist/components/biggive-sheet.js +1 -1
  94. package/dist/components/biggive-social-icon2.js +1 -1
  95. package/dist/components/biggive-tab.js +1 -1
  96. package/dist/components/biggive-tabbed-content.js +2 -2
  97. package/dist/components/biggive-table.js +2 -2
  98. package/dist/components/biggive-text-input.js +1 -1
  99. package/dist/components/biggive-timeline.js +2 -2
  100. package/dist/components/biggive-totalizer-ticker-item.js +1 -1
  101. package/dist/components/biggive-totalizer.js +1 -1
  102. package/dist/components/biggive-video-feature.js +1 -1
  103. package/dist/components/biggive-video.js +1 -1
  104. package/dist/esm/biggive-accordion_41.entry.js +40 -39
  105. package/dist/esm/biggive-accordion_41.entry.js.map +1 -1
  106. package/dist/esm/biggive-category-icon.entry.js +1 -1
  107. package/dist/esm/biggive-cookie-banner.entry.js +1 -1
  108. package/dist/esm/biggive-form.entry.js +1 -1
  109. package/dist/esm/biggive-icon-group.entry.js +1 -1
  110. package/dist/esm/biggive-image-card.entry.js +2 -2
  111. package/dist/esm/biggive-nav-group.entry.js +1 -1
  112. package/dist/esm/biggive-nav-item.entry.js +1 -1
  113. package/dist/esm/biggive-table.entry.js +2 -2
  114. package/dist/esm/biggive-video.entry.js +1 -1
  115. package/dist/types/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.d.ts +10 -1
  116. package/dist/types/components.d.ts +2 -2
  117. package/hydrate/index.js +51 -50
  118. package/hydrate/index.mjs +51 -50
  119. package/package.json +1 -1
  120. package/dist/biggive/p-35738fb9.entry.js +0 -2
  121. package/dist/biggive/p-56bcd870.entry.js +0 -2
  122. package/dist/biggive/p-cdd16217.entry.js +0 -2
  123. /package/dist/biggive/{p-9c79176f.entry.js.map → p-197f4346.entry.js.map} +0 -0
  124. /package/dist/biggive/{p-7b31ecab.entry.js.map → p-26d59dde.entry.js.map} +0 -0
  125. /package/dist/biggive/{p-35738fb9.entry.js.map → p-2bd31925.entry.js.map} +0 -0
  126. /package/dist/biggive/{p-52e1d027.entry.js.map → p-3a70550e.entry.js.map} +0 -0
  127. /package/dist/biggive/{p-19f1231d.entry.js.map → p-515510b4.entry.js.map} +0 -0
  128. /package/dist/biggive/{p-a2c75002.entry.js.map → p-76a72b20.entry.js.map} +0 -0
  129. /package/dist/biggive/{p-56bcd870.entry.js.map → p-85da0744.entry.js.map} +0 -0
  130. /package/dist/biggive/{p-0db98bc4.entry.js.map → p-a819de05.entry.js.map} +0 -0
  131. /package/dist/biggive/{p-6c6e271c.entry.js.map → p-da3ff44b.entry.js.map} +0 -0
@@ -22,7 +22,7 @@ const BiggiveCategoryIcon = class {
22
22
  return icon;
23
23
  }
24
24
  render() {
25
- return (index.h("div", { key: 'dd8aaaf26599d4efa7f3e4307c28c2abf93f428a', class: "container" }, index.h("div", { key: 'd47e5f9e3ca4ec677c1231c418415f8c4bacc459', class: 'category-icon-item background-colour-' + this.backgroundColour }, index.h("a", { key: '749a1281eea652790f5e32249d471f2b35d0ceb6', href: this.url }, index.h("svg", { key: 'ffaa6013742a1c426465e34aafb20f54e63f5db6', width: this.getCategoryIcon().icon[0], height: this.getCategoryIcon().icon[1], xmlns: "http://www.w3.org/2000/svg", class: 'fill-' + this.iconColour, viewBox: '0 0 ' + this.getCategoryIcon().icon[0] + ' ' + this.getCategoryIcon().icon[1] }, index.h("path", { key: 'b61ff115f5c9b2045e6eda0e8ad5d6b09e0a39b9', d: this.getCategoryIcon().icon[4].toString() })))), index.h("div", { key: 'dc3c8aa3cf1468287657fac7001db3da9d73e235', class: "label" }, this.label)));
25
+ return (index.h("div", { key: 'ce172b6817815385d15af1702a32224fffde02cd', class: "container" }, index.h("div", { key: '9e3a5de2d46c5e27b95ad6c1e15df09c745a1f72', class: 'category-icon-item background-colour-' + this.backgroundColour }, index.h("a", { key: 'e2047b9364836f1313a078ef2b5617f66c7ebdc1', href: this.url }, index.h("svg", { key: '1268a0041ac6541943f7fd695367f99244fd35a6', width: this.getCategoryIcon().icon[0], height: this.getCategoryIcon().icon[1], xmlns: "http://www.w3.org/2000/svg", class: 'fill-' + this.iconColour, viewBox: '0 0 ' + this.getCategoryIcon().icon[0] + ' ' + this.getCategoryIcon().icon[1] }, index.h("path", { key: '27c43d05e026925752b68d924d372bad1f0554ff', d: this.getCategoryIcon().icon[4].toString() })))), index.h("div", { key: 'fda1acba40281361299e67f839916ee90abac8af', class: "label" }, this.label)));
26
26
  }
27
27
  };
28
28
  BiggiveCategoryIcon.style = BiggiveCategoryIconStyle0;
@@ -58,7 +58,7 @@ const BiggiveCookieBanner = class {
58
58
  // then the app may only pass a partial set of them in for a time. Any preference not passed will be treated as
59
59
  // declined.
60
60
  const cookiesCurrentlyAllowed = this.previouslyAgreedCookiePreferences || {};
61
- return (index.h("div", { key: '715def3ec5b6fa0f3a3ee3f019ea9dfc1f376eb9', class: "cooke-consent-container" }, index.h("biggive-popup", { key: '4a1e1b69cfc3cd872d89a4b601c4e6516c40f47f', id: "cookie-preferences-popup", modalClosedCallback: this.preferenceModalClosed.emit }, index.h("div", { key: 'a131a687dab90c9d5858bb4a9f28f11f31149487', class: "content" }, index.h("h4", { key: '188f6ae6fb5a66ffe7b8a2e3f9da4cec3df6a243', class: "space-above-0 space-below-3 text-colour-primary" }, "Manage your cookie preferences"), index.h("form", { key: '31046d5b9b5ed2d7840d739513d6c6475c93f1d6' }, index.h("div", { key: '01e608a3be653c6902df36e24deec643a9ef6287', class: "radio-group" }, index.h("h5", { key: 'c318c00f209817a7f7c3a73f7e75ef9fdbfea723' }, "Essential Cookies"), index.h("p", { key: '7910040742a0da5f993c2a3a04bda55812a0f6c5' }, "These cookies are necessary to ensure our website functions correctly and include required cookies from third parties."), index.h("input", { key: 'd5ad3664d9aa7e797764b15fa221635173c8c30b', type: "radio", name: "necassary", id: "necassary-off", disabled: true }), index.h("label", { key: 'f19f04bdbff4683c74c348970bf620c915d282a7', htmlFor: "necassary-on" }, "Off"), index.h("input", { key: '98c5cc0b9b329241833c8d0f744eda7f90fd8550', type: "radio", name: "necassary", id: "necassary-on", disabled: true, checked: true }), index.h("label", { key: '95a8d5651e97b5a8e7645e34f7301cbda63f26ce', htmlFor: "necassary-on" }, "On")), index.h("div", { key: 'f519c29fb135bdc7464300ef611ffe7de1dff98e', class: "radio-group" }, index.h("h5", { key: '457709d079810b13a73535f1b620d2c367a84c44' }, "Analytics & Testing Cookies"), index.h("p", { key: '573893435daf5a3c9b9d3a0665ffd18b0aee6822' }, "We use analytics cookies to track activity on our website. For example, the pages you\u2019ve visited, the content you\u2019ve engaged with and the search terms you\u2019ve used. This allows us to personalise and improve our content."), index.h("p", { key: 'aaf730fb65e04d4151a7e3ca9c3c261a64b92fda' }, "We use testing cookies to collect data on how you interact with website features. These insights allow us to update our website and build features that enhance your user experience."), index.h("input", { key: 'ac3977d920e46c7130b7dcf91c0b5c53eb9a040c', type: "radio", name: "a-and-t", id: "a-and-t-off", checked: !cookiesCurrentlyAllowed.analyticsAndTesting }), index.h("label", { key: 'efe467dc5297de55aaf87e9bf8f5fc96580930fa', htmlFor: "a-and-t-off" }, "Off"), index.h("input", { key: 'da2d3be8700a179c2e2e18d56b6e19c80034ca89', type: "radio", name: "a-and-t", id: "a-and-t-on", checked: !!cookiesCurrentlyAllowed.analyticsAndTesting }), index.h("label", { key: '7936811c007e1721eb48b63735a2c979a2c70be3', htmlFor: "a-and-t-on" }, "On")), index.h("div", { key: '0c7501a1c16d7947d74c757acd066d10e97db1c8', class: "radio-group" }, index.h("h5", { key: '10068c6a98eae8bdc06dcb5b30081c08b6129154' }, "Third-party Cookies "), index.h("p", { key: 'a3c2d794d046f607c9041a78c124862ee98bec69' }, "These cookies are used to track activity, which can help to provide a better experience and improve functionality across various applications. For example, our donation experience survey."), index.h("input", { key: '8e729db7d255c123401f9494340ada09ced12858', type: "radio", name: "third-party", id: "third-party-off", checked: !cookiesCurrentlyAllowed.thirdParty }), index.h("label", { key: 'f348931f582047949283a9c0268d19f84308f3dc', htmlFor: "third-party-off" }, "Off"), index.h("input", { key: '1d293558c97cb24742cab1c06a1ad0a972cf70fa', type: "radio", name: "third-party", id: "third-party-on", checked: !!cookiesCurrentlyAllowed.thirdParty }), index.h("label", { key: 'b7c03be13c4f3b919e8f788ddeae6d054e709fd1', htmlFor: "third-party-on" }, "On")), index.h("biggive-button", { key: '18c1a69134aa10318d78b68535827358554dbd08', "space-below": "0", "space-above": "2", "colour-scheme": "secondary", "is-past-campaign": "false", "is-future-campaign": "false", label: "Accept Selected Cookies", "open-in-new-tab": "false", "full-width": "false", size: "small", rounded: false, centered: false, "button-id": "accept-selected-button", onClick: this.handleAcceptSelectedCookies })), index.h("p", { key: '6c0cc30fcb04a422fa14294b49b17b02d60579bb' }, "You can change the above settings for this browser at any time by clicking the privacy settings link in the footer of the page."))), index.h("h2", { key: '318e16c617f05bb6d6de9407ac941f466b12cfd1' }, "Our website uses cookies"), index.h("p", { key: 'd0a69145ed978cd6885da3e996ba072e23de0c4f' }, "We use some essential cookies to make our website work. We'd also like to share data with our analytics platform and use analytics cookies to understand how you use the website and make improvements."), index.h("p", { key: '2cf683d569f7a8b1810034d61f7a9a619d519e31' }, index.h("a", { key: '1ba8d026f31b9bc84f3656c2cb2a1d11973f591c', href: this.blogUriPrefix + '/privacy#cookies', target: "_blank" }, "Find out more in our Cookies Statement")), index.h("div", { key: '1e0e74ec93a442578b0aa934cd21751edf72c27e', class: "button-group" }, index.h("biggive-button", { key: '7960eadc62266d5638fb6c4efd73209906f51278', onClick: this.handleAcceptAllClick, "space-below": "0", "colour-scheme": "secondary", "is-past-campaign": "false", "is-future-campaign": "false", label: "Accept All", "open-in-new-tab": "false", "full-width": "true", size: "medium", rounded: false, centered: false, "button-id": "accept-all-button" }), index.h("biggive-button", { key: '8b8c566f36dbafa5e6688d95e0aad526df8eeb65', onClick: this.handleRejectAllClicked, "space-below": "0", "colour-scheme": "grey-light", "is-past-campaign": "false", "is-future-campaign": "false", label: "Essential Cookies Only", "open-in-new-tab": "false", "full-width": "true", size: "medium", rounded: false, centered: false, "button-id": "choose-preferences-button" }), index.h("biggive-button", { key: 'eeb5f9a1dd0ef3ec59dfd07b70fefa5273143155', onClick: this.handleChoosePrefencesClick, "space-below": "0", "colour-scheme": "grey-light", "is-past-campaign": "false", "is-future-campaign": "false", label: "Choose Preferences", "open-in-new-tab": "false", "full-width": "true", size: "medium", rounded: false, centered: false, "button-id": "choose-preferences-button" }))));
61
+ return (index.h("div", { key: '9784b16fc6cd006a733b5be07a8186370c5ff792', class: "cooke-consent-container" }, index.h("biggive-popup", { key: 'd95bb0102f66aed28b38b928dda5f5d7aed52015', id: "cookie-preferences-popup", modalClosedCallback: this.preferenceModalClosed.emit }, index.h("div", { key: '152c896e04e8a2fa04beec6b9ff98a75b4b669ee', class: "content" }, index.h("h4", { key: '0948cb48cffea9edfbab1f16500dfa77571b4916', class: "space-above-0 space-below-3 text-colour-primary" }, "Manage your cookie preferences"), index.h("form", { key: '49d6ce7febba14d0e85a5fbd38797f934d2d21e0' }, index.h("div", { key: 'ee87825504107c0d50a9f3b8d3e9736e0a7b1cc2', class: "radio-group" }, index.h("h5", { key: '3a1cac95a6a2b3678372589d9af5c8601e8ebcf7' }, "Essential Cookies"), index.h("p", { key: '1377c090cad010486429bc93d46ca7ff2566d569' }, "These cookies are necessary to ensure our website functions correctly and include required cookies from third parties."), index.h("input", { key: '82be9341d46c0900f079f9ae8f3f71270624e08b', type: "radio", name: "necassary", id: "necassary-off", disabled: true }), index.h("label", { key: '16777e2433d4f37dff80fe55e4013155be7788ee', htmlFor: "necassary-on" }, "Off"), index.h("input", { key: '1d6f376e5ae2ff18208bd7d7ff1ca1536b4c9339', type: "radio", name: "necassary", id: "necassary-on", disabled: true, checked: true }), index.h("label", { key: 'dfdce2f35a6c041267ed8b21811e6b7a648eb39c', htmlFor: "necassary-on" }, "On")), index.h("div", { key: 'e7884526b5851f11cbb43b488588e3b523c99471', class: "radio-group" }, index.h("h5", { key: '2a3bcec397fd731e387356015a24a667bd838c06' }, "Analytics & Testing Cookies"), index.h("p", { key: '336be4d15931f7749bbd965ca8a2fa84eaa5c482' }, "We use analytics cookies to track activity on our website. For example, the pages you\u2019ve visited, the content you\u2019ve engaged with and the search terms you\u2019ve used. This allows us to personalise and improve our content."), index.h("p", { key: '7b0d3aa9e3b9e48929e7d1c2bfc8cb4c3609c474' }, "We use testing cookies to collect data on how you interact with website features. These insights allow us to update our website and build features that enhance your user experience."), index.h("input", { key: '616cd2b1198d594f59066569172b4c028b6eeafd', type: "radio", name: "a-and-t", id: "a-and-t-off", checked: !cookiesCurrentlyAllowed.analyticsAndTesting }), index.h("label", { key: 'f795987604b0f72c7d23ce421fc01a41aaa001d4', htmlFor: "a-and-t-off" }, "Off"), index.h("input", { key: 'e3d24289c254f98b361faf58997ea9cb972aa4c2', type: "radio", name: "a-and-t", id: "a-and-t-on", checked: !!cookiesCurrentlyAllowed.analyticsAndTesting }), index.h("label", { key: '1ab7a71a5b32e4696d9b930889dd721bb9d99863', htmlFor: "a-and-t-on" }, "On")), index.h("div", { key: '3c37a45d331d9cf94251f1b952370a26f3bfcbc4', class: "radio-group" }, index.h("h5", { key: '4c0d2c5c8e9fc955732c2d1f5e35fb0548bf8f8c' }, "Third-party Cookies "), index.h("p", { key: 'd3625bcec9afabfbd3ad3827cd64112cee4cd6cb' }, "These cookies are used to track activity, which can help to provide a better experience and improve functionality across various applications. For example, our donation experience survey."), index.h("input", { key: 'c7e11c30079a05606120788709dd8b6eb57d4bf3', type: "radio", name: "third-party", id: "third-party-off", checked: !cookiesCurrentlyAllowed.thirdParty }), index.h("label", { key: '24e2a31c5928e506706b02c57dfa89df9d95a311', htmlFor: "third-party-off" }, "Off"), index.h("input", { key: '776af14bc2e2877c1cc03d340e099708e1672fbf', type: "radio", name: "third-party", id: "third-party-on", checked: !!cookiesCurrentlyAllowed.thirdParty }), index.h("label", { key: 'd2c2b99591a1db38590db7220450a33a816da5df', htmlFor: "third-party-on" }, "On")), index.h("biggive-button", { key: '890b4e83fff50914f9158d496d9c3445a714eb0f', "space-below": "0", "space-above": "2", "colour-scheme": "secondary", "is-past-campaign": "false", "is-future-campaign": "false", label: "Accept Selected Cookies", "open-in-new-tab": "false", "full-width": "false", size: "small", rounded: false, centered: false, "button-id": "accept-selected-button", onClick: this.handleAcceptSelectedCookies })), index.h("p", { key: '7f0972f7d9c3f6957fffd11c8c85f5e4da50e8e4' }, "You can change the above settings for this browser at any time by clicking the privacy settings link in the footer of the page."))), index.h("h2", { key: 'f821cbf0a9622dc5ab423296a75532b44d3f1b0e' }, "Our website uses cookies"), index.h("p", { key: 'a9890820b2f7558c0258c898dce3bb93b6092754' }, "We use some essential cookies to make our website work. We'd also like to share data with our analytics platform and use analytics cookies to understand how you use the website and make improvements."), index.h("p", { key: 'e2bb8230bcf4ddef201dd3c202f401265baba7b6' }, index.h("a", { key: '84497e6512ff828a5dfccfc933439eae93cda7db', href: this.blogUriPrefix + '/privacy#cookies', target: "_blank" }, "Find out more in our Cookies Statement")), index.h("div", { key: '6f119b90ba4657fd5c5dfc0ede5e84e94b88ff20', class: "button-group" }, index.h("biggive-button", { key: '59caeec146f2eccdd32eccb7e5b1ba082e46ce8e', onClick: this.handleAcceptAllClick, "space-below": "0", "colour-scheme": "secondary", "is-past-campaign": "false", "is-future-campaign": "false", label: "Accept All", "open-in-new-tab": "false", "full-width": "true", size: "medium", rounded: false, centered: false, "button-id": "accept-all-button" }), index.h("biggive-button", { key: '290a72efc921fba08e363a1745d96470b7afce9c', onClick: this.handleRejectAllClicked, "space-below": "0", "colour-scheme": "grey-light", "is-past-campaign": "false", "is-future-campaign": "false", label: "Essential Cookies Only", "open-in-new-tab": "false", "full-width": "true", size: "medium", rounded: false, centered: false, "button-id": "choose-preferences-button" }), index.h("biggive-button", { key: '00a5e3adc85c814683ad590008c590d142e592b1', onClick: this.handleChoosePrefencesClick, "space-below": "0", "colour-scheme": "grey-light", "is-past-campaign": "false", "is-future-campaign": "false", label: "Choose Preferences", "open-in-new-tab": "false", "full-width": "true", size: "medium", rounded: false, centered: false, "button-id": "choose-preferences-button" }))));
62
62
  }
63
63
  get el() { return index.getElement(this); }
64
64
  static get watchers() { return {
@@ -12,7 +12,7 @@ const BiggiveForm = class {
12
12
  index.registerInstance(this, hostRef);
13
13
  }
14
14
  render() {
15
- return (index.h(index.Host, { key: '70c1f8efdede765a6f323ed9aef453b5c398e1a9' }, index.h("slot", { key: '4b519504bc188ef13375616470a98872b26c9819' })));
15
+ return (index.h(index.Host, { key: '30710027ff6c7fe2ef4727e1172397663253b430' }, index.h("slot", { key: '001703aabbf0c497616622cf7863a7c9128bca63' })));
16
16
  }
17
17
  };
18
18
  BiggiveForm.style = BiggiveFormStyle0;
@@ -14,7 +14,7 @@ const BiggiveIconGroup = class {
14
14
  this.label = undefined;
15
15
  }
16
16
  render() {
17
- return (index.h("div", { key: '4f7d0532cdc68cac14a7d2a7f856474cce0ba480', class: 'container space-below-' + this.spaceBelow }, this.label != null ? index.h("div", { class: "label" }, this.label) : null, index.h("div", { key: '408c8363fb57cfebb95979bef7a22f47ac5082ad', class: "sleeve" }, index.h("slot", { key: '21730ee8dedd9e537998f692469d6faaee6cd1eb' }))));
17
+ return (index.h("div", { key: '5160c48c4cd14c7cdd5a5f1d16aa9b8d9b7cc06b', class: 'container space-below-' + this.spaceBelow }, this.label != null ? index.h("div", { class: "label" }, this.label) : null, index.h("div", { key: '20cdf1004def10075d6a1396e0f6d9e6fc48e80c', class: "sleeve" }, index.h("slot", { key: '79c24ea8ba3435f576e2387027d1fb7bf610550d' }))));
18
18
  }
19
19
  };
20
20
  BiggiveIconGroup.style = BiggiveIconGroupStyle0;
@@ -27,7 +27,7 @@ const BiggiveImageCard = class {
27
27
  this.addAnimation = false;
28
28
  }
29
29
  render() {
30
- return (index.h("div", { key: '030a273501a2946f158f0f718647778644f6b423', class: 'container space-below-' +
30
+ return (index.h("div", { key: '8d1ef3a6eefba63d793413b65219bcd1508e0697', class: 'container space-below-' +
31
31
  this.spaceBelow +
32
32
  ' background-colour-' +
33
33
  this.backgroundColour +
@@ -36,7 +36,7 @@ const BiggiveImageCard = class {
36
36
  ' clip-top-right-corner-' +
37
37
  this.clipTopRightCorner +
38
38
  ' add-animation-' +
39
- this.addAnimation }, index.h("a", { key: 'a18fe4d5c5c9c034bd829d993e531b03293f358a', href: this.buttonUrl }, index.h("div", { key: '4efdbb725adebc355312c905d1d4b4f56302405f', class: 'sleeve text-colour-' + this.teaserColour + ' text-align-' + this.textAlign }, index.h("div", { key: '3bb0b7a1b5a951db2856b5c8207d9e93df041700', class: "content-wrap" }, this.mainImageUrl != '' ? (index.h("div", { class: "main-image-container" }, index.h("div", { class: "image-wrap" }, index.h("img", { src: this.mainImageUrl, alt: this.mainImageAltText, title: this.mainImageAltText })))) : null, index.h("div", { key: '02cea0e349dcf9cf2d04e5ce1836c9293a2f8fcd', class: "teaser" }, this.teaser), this.buttonLabel != null && this.buttonUrl != null && this.buttonUrl != '' ? (index.h("div", { class: 'button-wrap align-' + this.buttonAlign }, index.h("biggive-button", { "colour-scheme": this.buttonColourScheme, label: this.buttonLabel }))) : null)))));
39
+ this.addAnimation }, index.h("a", { key: '169002b8d2090ef888dab0774e8e4e05eab5f2e5', href: this.buttonUrl }, index.h("div", { key: 'e0d89b29abe66c06ac483d4e1a7f633a3564dd24', class: 'sleeve text-colour-' + this.teaserColour + ' text-align-' + this.textAlign }, index.h("div", { key: 'd6c5120383e51e4ff893ce7a15e00ecd1a6dc3eb', class: "content-wrap" }, this.mainImageUrl != '' ? (index.h("div", { class: "main-image-container" }, index.h("div", { class: "image-wrap" }, index.h("img", { src: this.mainImageUrl, alt: this.mainImageAltText, title: this.mainImageAltText })))) : null, index.h("div", { key: '98624d20ab322096b967f22b80b5f0e90fafd09d', class: "teaser" }, this.teaser), this.buttonLabel != null && this.buttonUrl != null && this.buttonUrl != '' ? (index.h("div", { class: 'button-wrap align-' + this.buttonAlign }, index.h("biggive-button", { "colour-scheme": this.buttonColourScheme, label: this.buttonLabel }))) : null)))));
40
40
  }
41
41
  };
42
42
  BiggiveImageCard.style = BiggiveImageCardStyle0;
@@ -13,7 +13,7 @@ const BiggiveNavGroup = class {
13
13
  this.inline = true;
14
14
  }
15
15
  render() {
16
- return (index.h("ul", { key: '08bee5e37350d4cb297b6c2b27034632c7000fc9' }, index.h("slot", { key: 'b56feeb806466f9ddd79147bda38099e3d45fd81' })));
16
+ return (index.h("ul", { key: '49b2376d24d37ac7af1ab8d499d166baf4268a03' }, index.h("slot", { key: 'b15cfcc1791660ced330af8cf471332f7ca10f49' })));
17
17
  }
18
18
  };
19
19
  BiggiveNavGroup.style = BiggiveNavGroupStyle0;
@@ -15,7 +15,7 @@ const BiggiveNavItem = class {
15
15
  this.iconColour = undefined;
16
16
  }
17
17
  render() {
18
- return (index.h("li", { key: '5ab82d3d872d9a4b24f88f1d986320227462893c', class: 'icon-' + this.iconColour }, index.h("a", { key: '15c7596173ca0997b90d916789fdf75dec72fafa', href: this.url }, this.label), index.h("slot", { key: '58e4b57c0702fb164f7b1c2e5969377aaf44eec2' })));
18
+ return (index.h("li", { key: '090f304495cea3310a9e00e33b66a5beb70b0bbc', class: 'icon-' + this.iconColour }, index.h("a", { key: '7ed939de7267b6fd0c24cb7f34e1683594031cba', href: this.url }, this.label), index.h("slot", { key: 'f2cd30f28afe1bb4f63d30f658cb1866b9cee98a' })));
19
19
  }
20
20
  };
21
21
  BiggiveNavItem.style = BiggiveNavItemStyle0;
@@ -17,7 +17,7 @@ const BiggiveTable = class {
17
17
  this.bodyBackgroundColour = 'grey-light';
18
18
  }
19
19
  render() {
20
- return (index.h("div", { key: 'c00aa60e345740990c99b5fe69318e3a383d5aa8', class: 'container header-text-colour-' +
20
+ return (index.h("div", { key: '3113e1e0f25a9484452e48ae77f7f715a997c15b', class: 'container header-text-colour-' +
21
21
  this.headerTextColour +
22
22
  ' header-background-colour-' +
23
23
  this.headerBackgroundColour +
@@ -26,7 +26,7 @@ const BiggiveTable = class {
26
26
  ' body-background-colour-' +
27
27
  this.bodyBackgroundColour +
28
28
  ' space-below-' +
29
- this.spaceBelow }, index.h("slot", { key: '7705d00d498d7551a4bb347f64004e382a568fee' })));
29
+ this.spaceBelow }, index.h("slot", { key: '3f0c914570a0319d25ce31ca8e3d245f3f1ab77f' })));
30
30
  }
31
31
  };
32
32
  BiggiveTable.style = BiggiveTableStyle0;
@@ -16,7 +16,7 @@ const BiggiveVideo = class {
16
16
  this.videoUrl = '';
17
17
  }
18
18
  render() {
19
- return (index.h("div", { key: 'd301bd182941db9ece6b1fd8a9cc4df04f040b5b', class: 'container space-above-' + this.spaceAbove + ' space-below-' + this.spaceBelow }, index.h("div", { key: '62573706db3f5177de2e1955f6dca7143389744d', class: "video-wrap", innerHTML: video.VideoService.getEmbedHtml(this.videoUrl, null) })));
19
+ return (index.h("div", { key: 'aed8d0e823c00b293652aea2230fdca54abdb83c', class: 'container space-above-' + this.spaceAbove + ' space-below-' + this.spaceBelow }, index.h("div", { key: 'a2c455aca784a837a525356502e90f5621b8fd3e', class: "video-wrap", innerHTML: video.VideoService.getEmbedHtml(this.videoUrl, null) })));
20
20
  }
21
21
  };
22
22
  BiggiveVideo.style = BiggiveVideoStyle0;
@@ -3,6 +3,7 @@ import { faMagnifyingGlass } from "@fortawesome/pro-solid-svg-icons";
3
3
  const sortOptionLabels = {
4
4
  relevance: 'Relevance',
5
5
  amountRaised: 'Most raised',
6
+ leastRaised: 'Least raised',
6
7
  matchFundsRemaining: 'Match funds remaining',
7
8
  };
8
9
  export class BiggiveCampaignCardFilterGrid {
@@ -159,13 +160,13 @@ export class BiggiveCampaignCardFilterGrid {
159
160
  render() {
160
161
  var _a;
161
162
  const sortOptions = this.getSortOptions();
162
- return (h("div", { key: '8365ed3c9b4cfe2a595a2dcb70419ee753469bf8', class: 'container space-below-' + this.spaceBelow }, h("div", { key: 'dc3ee6370b973efc5151d2b3b47c9ae2dd43f33b', class: "sleeve" }, h("div", { key: '4be0eea4245fdb2428c000ee05f1414dc34e5e3c', class: "search-wrap" }, h("h4", { key: 'a7a44685574b70eae8fcf1341654cfaae6d9b08d' }, this.intro), h("div", { key: '77a488f6b4a40190a976e89a9f794f90f0490597', class: "field-wrap" }, h("div", { key: '17aed0a3f8d921af3532e2715bb6926ce3d55f3f', class: "input-wrap" }, h("svg", { key: '4271069514f6b069bbc51c88e42d7647c5887d00', xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" }, h("path", { key: '234ab96b40dcecba396ee7594c7395c1143d4680', d: faMagnifyingGlass.icon[4].toString() })), h("input", { key: '1fdc398be25246a5c1d8b8bf8a8d19c08a523ce2', type: "text", value: (_a = this.searchText) !== null && _a !== void 0 ? _a : '', class: "input-text", placeholder: this.placeholderText, onInput: this.handleSearchTextChanged, onKeyDown: this.handleEnterPressed })), h("biggive-button", { key: '113ba0a0cbbfbc07084969aab0ae64f8cf1b508f', onClick: this.handleSearchButtonPressed, label: this.buttonText }))), h("div", { key: '9fab39fb3f248d4d63b04103afb2971504036289', class: "sort-filter-wrap" }, h("div", { key: 'dcaf19bb5be04370a669c40e349f601ee7b2d717', class: "filter-wrap" }, h("biggive-button", { key: '0408192262b87b45d646778f4a005e803f3e3544', class: "filter", colourScheme: "primary", onClick: this.handleFilterButtonClick, label: "Filter", fullWidth: true, "space-below": "0" }), h("biggive-popup", { key: '67da1ed09c70ae8ef8d53829865033f86a7a8c1b', id: "filter-popup" }, h("h4", { key: 'a8efd21c0ea44fe31d1b919cb99ea83ae1be5bbc', class: "space-above-0 space-below-3 text-colour-primary" }, "Filters"), h("div", { key: 'b4a58acc0f69ec2c6a484041759221332356916e', class: "select-wrapper-1" }, h("biggive-form-field-select", { key: '2da6dd301967e828a0b34b5c335de6c6f24d52de', backgroundColour: "white", prompt: "Category", placeholder: this.categoriesPlaceHolderText, selectedLabel: this.selectedFilterCategory, selectedValue: this.selectedFilterCategory, options: this.optionsToArray(this.categoryOptions || []), selectionChanged: this.categoryFilterSelectionChanged, id: "categories", "space-below": "2" })), h("div", { key: 'edb6c2c12c36ffcb6667b2c6c44021bdd2f8af47', class: "select-wrapper-2" }, h("biggive-form-field-select", { key: '8dd623795d25ad09cd3602754a7924eda53afc00', backgroundColour: "white", prompt: "Beneficiary", placeholder: this.beneficiariesPlaceHolderText, selectedLabel: this.selectedFilterBeneficiary, selectedValue: this.selectedFilterBeneficiary, options: this.optionsToArray(this.beneficiaryOptions || []), selectionChanged: this.beneficiarySelectionChanged, id: "beneficiaries", "space-below": "2" })), h("div", { key: '4597c0c911afc2d4fb1843a0991f0d66b814246a', class: "select-wrapper-3" }, h("biggive-form-field-select", { key: 'ab19535adfecb846ab1457b2d83e717e9e6dfe19', backgroundColour: "white", prompt: "Location", placeholder: this.locationsPlaceHolderText, selectedLabel: this.selectedFilterLocation, selectedValue: this.selectedFilterLocation, options: this.optionsToArray(this.locationOptions || []), selectionChanged: this.locationSelectionChanged, id: "locations", "space-below": "2" })), h("div", { key: '5690d95c7f29d9832124782dee7e9f68e9ac0887', class: "align-right" }, h("biggive-button", { key: '20632f88d1958193a8c8194f1400b635e1193cbe', label: "Apply filters", onClick: this.handleApplyFilterButtonClick })))), h("div", { key: 'bf28b042dd6336d00e2140962dd5ddca12062d08', class: "sort-wrap" }, h("biggive-form-field-select", { key: 'c899f90a969b92043b16a46d4325b3c312ef8327', options: sortOptions, prompt: null, "select-style": "underlined", placeholder: this.sortByPlaceholderText, selectedLabel: this.selectedSortByOption, selectedValue: this.getSelectedValue(), selectionChanged: this.sortBySelectionChanged, id: "sort-by" }, h("biggive-form-field-select-option", { key: '8155f00ba6ffd47e4504939067cf302a3bd87dfd', value: "amountRaised", label: "Most raised" }), h("biggive-form-field-select-option", { key: 'ff58f3a3ba1fe69d45f6eee50f2e3a9cde5be6e3', value: "matchFundsRemaining", label: "Match funds remaining" }), (this.searchText || '').length > 0 ? h("biggive-form-field-select-option", { value: "Relevance", label: "Relevance" }) : null))), h("div", { key: '7ab2fc3ff68eaede6d971b42e283474c3136f364', class: "selected-filter-wrap" }, h("div", { key: 'e135cc4471f6f935d53f14f23ce47d6c2a82e610', class: "selected-filters" }, this.selectedFilterCategory && (h("span", { key: '524c312af19c5e95edc1043bceb6639b86d7035e', class: "button", onClick: () => {
163
+ return (h("div", { key: '67264d56fc7bfd43fbfa62777c9925e229765bca', class: 'container space-below-' + this.spaceBelow }, h("div", { key: 'ba9c8a6948e2a44c3ea5b9b8c0e608d58df65b3f', class: "sleeve" }, h("div", { key: '5c65ef21bcc6954382f45d107f1151db8f2dd9a4', class: "search-wrap" }, h("h4", { key: '67cada14d6ebf27777d8fbb141b38b53878a9ee0' }, this.intro), h("div", { key: 'f7f31fd2598d1268d720aa2ac50155f80a09449e', class: "field-wrap" }, h("div", { key: 'e423747ad2763843187129477bbd434d646bb1d6', class: "input-wrap" }, h("svg", { key: 'b5b2e6cfa9cbad77d08cc5b5fccaeb6309d6775d', xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" }, h("path", { key: '35d42363461df259bff18c8577baa23574ae14e6', d: faMagnifyingGlass.icon[4].toString() })), h("input", { key: '56f3d019fd1e323dc9ececbe6b17a8407e9941d6', type: "text", value: (_a = this.searchText) !== null && _a !== void 0 ? _a : '', class: "input-text", placeholder: this.placeholderText, onInput: this.handleSearchTextChanged, onKeyDown: this.handleEnterPressed })), h("biggive-button", { key: '80941f24d830c1b0011a80cbea6fed35b3ebfed8', onClick: this.handleSearchButtonPressed, label: this.buttonText }))), h("div", { key: '4e5a2696822f44d4e943547c7581d198ba7f7141', class: "sort-filter-wrap" }, h("div", { key: 'e769639e7d9fd21572cf24cbeda9422482eeb6b2', class: "filter-wrap" }, h("biggive-button", { key: '5a8bddcffd662c27b6106a67f1f41547f10085a5', class: "filter", colourScheme: "primary", onClick: this.handleFilterButtonClick, label: "Filter", fullWidth: true, "space-below": "0" }), h("biggive-popup", { key: '297c9384b2f4c49234385258896e10af93ebf179', id: "filter-popup" }, h("h4", { key: '30fe0b002278df67c4901cf5d9785520778c4a3a', class: "space-above-0 space-below-3 text-colour-primary" }, "Filters"), h("div", { key: '36bbc600e1b5780917ffcb07b7922d302a375f5b', class: "select-wrapper-1" }, h("biggive-form-field-select", { key: 'cec4ee0f0df64df281afcb0a7b3ddec64f2d2e3b', backgroundColour: "white", prompt: "Category", placeholder: this.categoriesPlaceHolderText, selectedLabel: this.selectedFilterCategory, selectedValue: this.selectedFilterCategory, options: this.optionsToArray(this.categoryOptions || []), selectionChanged: this.categoryFilterSelectionChanged, id: "categories", "space-below": "2" })), h("div", { key: '4a1f2590fd7fb3ede74d1087b9adaccc5e7e1910', class: "select-wrapper-2" }, h("biggive-form-field-select", { key: '41e403cdbc22314a0c49106025856dae04ae6751', backgroundColour: "white", prompt: "Beneficiary", placeholder: this.beneficiariesPlaceHolderText, selectedLabel: this.selectedFilterBeneficiary, selectedValue: this.selectedFilterBeneficiary, options: this.optionsToArray(this.beneficiaryOptions || []), selectionChanged: this.beneficiarySelectionChanged, id: "beneficiaries", "space-below": "2" })), h("div", { key: '3798cfad565438bbac90cf100565fee1d3262e27', class: "select-wrapper-3" }, h("biggive-form-field-select", { key: 'c360faa3accdea496ff54eabab9ba7216380b45a', backgroundColour: "white", prompt: "Location", placeholder: this.locationsPlaceHolderText, selectedLabel: this.selectedFilterLocation, selectedValue: this.selectedFilterLocation, options: this.optionsToArray(this.locationOptions || []), selectionChanged: this.locationSelectionChanged, id: "locations", "space-below": "2" })), h("div", { key: 'b2d3282013f28157f371c111a75dd18e32f0eaef', class: "align-right" }, h("biggive-button", { key: '6110c0b1d0c75aa23818e550cbd9cd082fad8583', label: "Apply filters", onClick: this.handleApplyFilterButtonClick })))), h("div", { key: 'f696e688980fc00f6c8131199169115803dc58fc', class: "sort-wrap" }, h("biggive-form-field-select", { key: '848eae08e866d842f4902f8a04151f4fa8128f16', options: sortOptions, prompt: null, "select-style": "underlined", placeholder: this.sortByPlaceholderText, selectedLabel: this.selectedSortByOption, selectedValue: this.getSelectedValue(), selectionChanged: this.sortBySelectionChanged, id: "sort-by" }, h("biggive-form-field-select-option", { key: 'fe1a332da686a93d09a8c3ad3935f91f9e801e46', value: "amountRaised", label: "Most raised" }), h("biggive-form-field-select-option", { key: '674d5b1f9c6a1ae7751db9aafefaf32bc26d9356', value: "leastRaised", label: "Least raised" }), h("biggive-form-field-select-option", { key: '89cd48de20c64fdbe9528f5a2ccfa1bdc7f8e681', value: "matchFundsRemaining", label: "Match funds remaining" }), (this.searchText || '').length > 0 ? h("biggive-form-field-select-option", { value: "Relevance", label: "Relevance" }) : null))), h("div", { key: '7ddc7839f5970d095e6f7efb325ede44c7a4026f', class: "selected-filter-wrap" }, h("div", { key: '01d04e415d36d7d82a9e0042e979d1725a81d42d', class: "selected-filters" }, this.selectedFilterCategory && (h("span", { key: '53f8daf65ae2261962d035612a11982b9de87c40', class: "button", onClick: () => {
163
164
  this.removeFilter('categories');
164
- } }, this.selectedFilterCategory)), this.selectedFilterBeneficiary && (h("span", { key: 'a6f64e4339178f1f5afd28fbc73e26759e0828e6', class: "button", onClick: () => {
165
+ } }, this.selectedFilterCategory)), this.selectedFilterBeneficiary && (h("span", { key: '9623d151849e3eddec0516b96931f20573d4389b', class: "button", onClick: () => {
165
166
  this.removeFilter('beneficiaries');
166
- } }, this.selectedFilterBeneficiary)), this.selectedFilterLocation && (h("span", { key: '6c674a9bb314deec33af58aded3e3b3dc43cdccf', class: "button", onClick: () => {
167
+ } }, this.selectedFilterBeneficiary)), this.selectedFilterLocation && (h("span", { key: '3d65533e3633a0394551706f29e8173e28cabca2', class: "button", onClick: () => {
167
168
  this.removeFilter('locations');
168
- } }, this.selectedFilterLocation))), h("div", { key: '5a63719ad2f7dde27ac1d1d01dc3d0bcffec01fd', class: "clear-all" }, h("a", { key: 'ee5415f6dd13b76120ba037d80bfb43d50380c2e', onClick: this.handleClearAll }, "Clear all"))), h("div", { key: '88d1f1aa98d74e7519eb9c844f6cd59951bbfe4b', class: "campaign-grid" }, h("slot", { key: '0dc83f71480cd53966ef61f93e9fc31fb3794016', name: "campaign-grid" })))));
169
+ } }, this.selectedFilterLocation))), h("div", { key: '47e2adf81f3853b9990d0720f8362a7a985f96e2', class: "clear-all" }, h("a", { key: 'b94db5e306101c0fb2547f9392e29dcd1822a08b', onClick: this.handleClearAll }, "Clear all"))), h("div", { key: 'b95cfb970c0fdcbd6c6ccc1891bd0169e12f75b6', class: "campaign-grid" }, h("slot", { key: '6e4f800362a3befb87d90a1214f07be22b9291c8', name: "campaign-grid" })))));
169
170
  }
170
171
  // I'm not sure if I understand the reasoning for own-methods-must-be-private. I made the method below public to unit
171
172
  // test it. Maybe the idea is that we should move anything with enough logic to test outside the component class? I
@@ -375,9 +376,14 @@ export class BiggiveCampaignCardFilterGrid {
375
376
  "type": "string",
376
377
  "mutable": true,
377
378
  "complexType": {
378
- "original": "'Most raised' | 'Match funds remaining' | 'Relevance'",
379
- "resolved": "\"Match funds remaining\" | \"Most raised\" | \"Relevance\"",
380
- "references": {}
379
+ "original": "sortOptionLabel",
380
+ "resolved": "\"Least raised\" | \"Match funds remaining\" | \"Most raised\" | \"Relevance\"",
381
+ "references": {
382
+ "sortOptionLabel": {
383
+ "location": "global",
384
+ "id": "global::sortOptionLabel"
385
+ }
386
+ }
381
387
  },
382
388
  "required": false,
383
389
  "optional": false,
@@ -1 +1 @@
1
- {"version":3,"file":"biggive-campaign-card-filter-grid.js","sourceRoot":"","sources":["../../../src/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACxF,OAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Prop, State } from '@stencil/core';\nimport { faMagnifyingGlass } from '@fortawesome/pro-solid-svg-icons';\n\nconst sortOptionLabels = {\n relevance: 'Relevance',\n amountRaised: 'Most raised',\n matchFundsRemaining: 'Match funds remaining',\n} as const;\n\ntype sortOptionKey = keyof typeof sortOptionLabels;\ntype sortOptionLabel = (typeof sortOptionLabels)[sortOptionKey];\n\n@Component({\n tag: 'biggive-campaign-card-filter-grid',\n styleUrl: 'biggive-campaign-card-filter-grid.scss',\n shadow: true,\n})\nexport class BiggiveCampaignCardFilterGrid {\n @Element() el: HTMLBiggiveCampaignCardFilterGridElement;\n\n /**\n * This event `doSearchAndFilterUpdate` event is emitted and propogates to the parent\n * component which handles it\n */\n @Event({\n eventName: 'doSearchAndFilterUpdate',\n bubbles: true,\n cancelable: true,\n composed: true,\n })\n doSearchAndFilterUpdate: EventEmitter<{\n searchText: string | null;\n sortBy: string | null;\n filterCategory: string | null;\n filterBeneficiary: string | null;\n filterLocation: string | null;\n }>;\n\n private sortByPlaceholderText = 'Sort by';\n private beneficiariesPlaceHolderText = 'Select beneficiary';\n private categoriesPlaceHolderText = 'Select category';\n private locationsPlaceHolderText = 'Select location';\n\n /**\n * Space below component\n */\n @Prop() spaceBelow: number = 0;\n\n /**\n * Intro\n */\n @Prop() intro: string = 'Find a charity or project';\n\n /**\n * Optional search text prop. Useful for pre-populating the search field\n * when the page is loaded with a search term already existing in the URL.\n * This can happen when sharing links, or if a donor goes to a campaign page\n * after searching, and then returns to the search results. In such a case,\n * the search box text will clear, unless we use this prop to populate it on\n * rendering. DON-652.\n */\n @Prop() searchText: string | null = null;\n\n /**\n * Defines the text displayed as the placeholder in the input field\n * before the user types anything\n */\n @Prop() placeholderText: string = 'Search';\n\n /**\n * Defines the text on the search button\n */\n @Prop() buttonText: string = 'Search';\n\n /**\n * JSON array of category key/values, or takes a stringified equiavalent (for Storybook)\n */\n @Prop() categoryOptions: string | Record<string, string> | string[];\n\n /**\n * JSON array of beneficiary key/values, or takes a stringified equiavalent (for Storybook)\n */\n @Prop() beneficiaryOptions: string | Record<string, string> | string[];\n\n /**\n * JSON array of location key/values, or takes a stringified equiavalent (for Storybook)\n */\n @Prop() locationOptions: string | Record<string, string> | string[];\n\n /**\n * This helps us inject a pre-selected dropdown value from outside of this component.\n * This is especially helpful for the Meta campaign and Explore pages, where searching\n * by text wipes out previous sort options and re-uses Relevance, or where one of those\n * two pages is loaded directly with URL parameters - in such a scenario the dropdown\n * shows that it's pre-selected. DON-558.\n */\n @Prop({ mutable: true })\n selectedSortByOption: 'Most raised' | 'Match funds remaining' | 'Relevance';\n\n /**\n * For injecting the chosen category to filter by, as per the comment above for `selectedSortByOption`.\n */\n @Prop({ mutable: true }) selectedFilterCategory: string | null = null;\n\n /**\n * For injecting the chosen beneficiary to filter by, as per the comment above for `selectedSortByOption`.\n */\n @Prop({ mutable: true }) selectedFilterBeneficiary: string | null = null;\n\n /**\n * For injecting the chosen location to filter by, as per the comment above for `selectedSortByOption`.\n */\n @Prop({ mutable: true }) selectedFilterLocation: string | null = null;\n\n /**\n * State variable - causes re-render on change\n */\n @State() filtersApplied: boolean;\n\n private initialSortByOption: 'Most raised' | 'Match funds remaining' | 'Relevance';\n\n /**\n * This and similar properties represent selections made in the popup but not yet applied.\n */\n private newSelectedFilterCategory: string | null = null;\n private newSelectedFilterBeneficiary: string | null = null;\n private newSelectedFilterLocation: string | null = null;\n\n private categoryFilterSelectionChanged = (value: string) => {\n this.newSelectedFilterCategory = value;\n };\n\n private beneficiarySelectionChanged = (value: string) => {\n this.newSelectedFilterBeneficiary = value;\n };\n\n private locationSelectionChanged = (value: string) => {\n this.newSelectedFilterLocation = value;\n };\n\n private sortBySelectionChanged = (value: 'Most raised' | 'Match funds remaining' | 'Relevance') => {\n this.selectedSortByOption = value;\n this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());\n };\n\n private getSearchAndFilterObject() {\n return {\n searchText: this.searchText,\n sortBy: this.selectedSortByOption,\n filterCategory: this.selectedFilterCategory,\n filterBeneficiary: this.selectedFilterBeneficiary,\n filterLocation: this.selectedFilterLocation,\n };\n }\n\n private handleApplyFilterButtonClick = () => {\n this.selectedFilterCategory = this.newSelectedFilterCategory ?? this.selectedFilterCategory;\n this.selectedFilterBeneficiary = this.newSelectedFilterBeneficiary ?? this.selectedFilterBeneficiary;\n this.selectedFilterLocation = this.newSelectedFilterLocation ?? this.selectedFilterLocation;\n\n const searchAndFilterObj = this.getSearchAndFilterObject();\n this.doSearchAndFilterUpdate.emit(searchAndFilterObj);\n\n const filterPopup = this.el.shadowRoot?.getElementById('filter-popup') as HTMLBiggivePopupElement | undefined;\n if (filterPopup) {\n filterPopup.closeFromOutside();\n }\n\n this.filtersApplied =\n typeof searchAndFilterObj.filterBeneficiary === 'string' || typeof searchAndFilterObj.filterCategory === 'string' || typeof searchAndFilterObj.filterLocation === 'string';\n };\n\n private removeFilter(filterKey: 'locations' | 'categories' | 'beneficiaries') {\n switch (filterKey) {\n case 'beneficiaries':\n this.selectedFilterBeneficiary = null;\n break;\n case 'categories':\n this.selectedFilterCategory = null;\n break;\n case 'locations':\n this.selectedFilterLocation = null;\n break;\n default:\n // This asks the compiler to check that we are in dead code, i.e. we covered all the possible filter keys\n // above. If we missed one we would get a compile error trying to assign a string to a never.\n const exhaustiveSwitch: never = filterKey;\n console.error(exhaustiveSwitch);\n }\n\n const selectEl = this.el.shadowRoot?.getElementById(filterKey) as HTMLBiggiveFormFieldSelectElement | undefined;\n if (!selectEl) {\n return;\n }\n\n selectEl.selectedLabel = null;\n selectEl.selectedValue = null;\n this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());\n }\n\n private handleSearchButtonPressed = () => {\n this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());\n\n if (this.hasSearchTerm()) {\n this.selectedSortByOption = 'Relevance';\n }\n };\n\n private handleSearchTextChanged = (event: any) => {\n this.searchText = event.target.value;\n };\n\n private handleEnterPressed = (ev: KeyboardEvent) => {\n if (ev.key === 'Enter') {\n this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());\n }\n };\n\n private handleFilterButtonClick = () => {\n this.newSelectedFilterBeneficiary = this.selectedFilterBeneficiary;\n this.newSelectedFilterCategory = this.selectedFilterCategory;\n this.newSelectedFilterLocation = this.selectedFilterLocation;\n\n const filterPopup = this.el.shadowRoot?.getElementById('filter-popup') as HTMLBiggivePopupElement | undefined;\n if (filterPopup) {\n filterPopup.openFromOutside();\n }\n };\n\n private handleClearAll = () => {\n // Set the 'Filters' button back to the primary background colour\n this.filtersApplied = false;\n\n // Clear all\n this.searchText = null;\n this.selectedSortByOption = this.initialSortByOption;\n this.selectedFilterBeneficiary = null;\n this.selectedFilterCategory = null;\n this.selectedFilterLocation = null;\n\n // Clear <biggive-form-field-select> components' internal selectedValue and selectedLabel. DON-654.\n ['sort-by', 'categories', 'beneficiaries', 'locations', 'funding'].forEach(id => {\n const theEl = this.el.shadowRoot?.getElementById(id) as HTMLBiggiveFormFieldSelectElement | undefined;\n if (!theEl) {\n return;\n }\n\n theEl.selectedValue = null;\n theEl.selectedLabel = null;\n });\n\n const selectedFilters = this.el.shadowRoot?.querySelector('.selected-filters');\n if (selectedFilters) {\n selectedFilters.querySelectorAll('.button').forEach(button => {\n button.remove();\n });\n }\n\n // Emit the doSearchAndFilterUpdate event with null values. DON-654\n this.doSearchAndFilterUpdate.emit({\n searchText: null,\n sortBy: null,\n filterCategory: null,\n filterBeneficiary: null,\n filterLocation: null,\n });\n };\n\n componentWillRender() {\n this.filtersApplied = this.selectedFilterCategory !== null || this.selectedFilterBeneficiary !== null || this.selectedFilterLocation !== null;\n this.initialSortByOption = this.selectedSortByOption;\n }\n\n render() {\n const sortOptions = this.getSortOptions();\n\n return (\n <div class={'container space-below-' + this.spaceBelow}>\n <div class=\"sleeve\">\n <div class=\"search-wrap\">\n <h4>{this.intro}</h4>\n <div class=\"field-wrap\">\n <div class=\"input-wrap\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon\" viewBox=\"0 0 512 512\">\n <path d={faMagnifyingGlass.icon[4].toString()} />\n </svg>\n <input\n type=\"text\"\n value={this.searchText ?? ''}\n class=\"input-text\"\n placeholder={this.placeholderText}\n onInput={this.handleSearchTextChanged}\n onKeyDown={this.handleEnterPressed}\n />\n </div>\n <biggive-button onClick={this.handleSearchButtonPressed} label={this.buttonText} />\n </div>\n </div>\n <div class=\"sort-filter-wrap\">\n <div class=\"filter-wrap\">\n <biggive-button class=\"filter\" colourScheme=\"primary\" onClick={this.handleFilterButtonClick} label=\"Filter\" fullWidth={true} space-below=\"0\"></biggive-button>\n <biggive-popup id=\"filter-popup\">\n <h4 class=\"space-above-0 space-below-3 text-colour-primary\">Filters</h4>\n <div class=\"select-wrapper-1\">\n <biggive-form-field-select\n backgroundColour=\"white\"\n prompt=\"Category\"\n placeholder={this.categoriesPlaceHolderText}\n selectedLabel={this.selectedFilterCategory}\n selectedValue={this.selectedFilterCategory}\n options={this.optionsToArray(this.categoryOptions || [])}\n selectionChanged={this.categoryFilterSelectionChanged}\n id=\"categories\"\n space-below=\"2\"\n ></biggive-form-field-select>\n </div>\n\n <div class=\"select-wrapper-2\">\n <biggive-form-field-select\n backgroundColour=\"white\"\n prompt=\"Beneficiary\"\n placeholder={this.beneficiariesPlaceHolderText}\n selectedLabel={this.selectedFilterBeneficiary}\n selectedValue={this.selectedFilterBeneficiary}\n options={this.optionsToArray(this.beneficiaryOptions || [])}\n selectionChanged={this.beneficiarySelectionChanged}\n id=\"beneficiaries\"\n space-below=\"2\"\n ></biggive-form-field-select>\n </div>\n\n <div class=\"select-wrapper-3\">\n <biggive-form-field-select\n backgroundColour=\"white\"\n prompt=\"Location\"\n placeholder={this.locationsPlaceHolderText}\n selectedLabel={this.selectedFilterLocation}\n selectedValue={this.selectedFilterLocation}\n options={this.optionsToArray(this.locationOptions || [])}\n selectionChanged={this.locationSelectionChanged}\n id=\"locations\"\n space-below=\"2\"\n ></biggive-form-field-select>\n </div>\n\n <div class=\"align-right\">\n <biggive-button label=\"Apply filters\" onClick={this.handleApplyFilterButtonClick} />\n </div>\n </biggive-popup>\n </div>\n\n <div class=\"sort-wrap\">\n <biggive-form-field-select\n options={sortOptions}\n prompt={null}\n select-style=\"underlined\"\n placeholder={this.sortByPlaceholderText}\n selectedLabel={this.selectedSortByOption}\n selectedValue={this.getSelectedValue()}\n selectionChanged={this.sortBySelectionChanged}\n id=\"sort-by\"\n >\n <biggive-form-field-select-option value=\"amountRaised\" label=\"Most raised\"></biggive-form-field-select-option>\n <biggive-form-field-select-option value=\"matchFundsRemaining\" label=\"Match funds remaining\"></biggive-form-field-select-option>\n {(this.searchText || '').length > 0 ? <biggive-form-field-select-option value=\"Relevance\" label=\"Relevance\"></biggive-form-field-select-option> : null}\n </biggive-form-field-select>\n </div>\n </div>\n <div class=\"selected-filter-wrap\">\n <div class=\"selected-filters\">\n {this.selectedFilterCategory && (\n <span\n class=\"button\"\n onClick={() => {\n this.removeFilter('categories');\n }}\n >\n {this.selectedFilterCategory}\n </span>\n )}\n {this.selectedFilterBeneficiary && (\n <span\n class=\"button\"\n onClick={() => {\n this.removeFilter('beneficiaries');\n }}\n >\n {this.selectedFilterBeneficiary}\n </span>\n )}\n {this.selectedFilterLocation && (\n <span\n class=\"button\"\n onClick={() => {\n this.removeFilter('locations');\n }}\n >\n {this.selectedFilterLocation}\n </span>\n )}\n </div>\n <div class=\"clear-all\">\n <a onClick={this.handleClearAll}>Clear all</a>\n </div>\n </div>\n <div class=\"campaign-grid\">\n <slot name=\"campaign-grid\"></slot>\n </div>\n </div>\n </div>\n );\n }\n\n // I'm not sure if I understand the reasoning for own-methods-must-be-private. I made the method below public to unit\n // test it. Maybe the idea is that we should move anything with enough logic to test outside the component class? I\n // can do that if people think it's better.\n //\n // eslint-disable-next-line @stencil-community/own-methods-must-be-private\n public getSelectedValue(): undefined | string {\n const sortByOption = this.selectedSortByOption;\n if (sortByOption === undefined) {\n return undefined;\n }\n const sortOptions = this.getSortOptions();\n const selected = sortOptions.filter(option => {\n return option.label.toLowerCase() === sortByOption.toLowerCase();\n })[0];\n\n return selected?.value;\n }\n\n private getSortOptions(): {\n label: sortOptionLabel;\n value: sortOptionKey;\n }[] {\n // @ts-ignore - see https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208\n const sortOptionKeys: sortOptionKey[] = Object.getOwnPropertyNames(sortOptionLabels);\n const relevantOptionKeys = sortOptionKeys.filter(key => key !== 'relevance' || this.hasSearchTerm());\n\n return relevantOptionKeys.map((key: sortOptionKey) => ({ value: key, label: sortOptionLabels[key] }));\n }\n\n private hasSearchTerm() {\n return typeof this.searchText === 'string' && this.searchText.length > 0;\n }\n\n private optionsToArray(options: string | Record<string, string> | string[]): {\n label: string;\n value: string;\n }[] {\n if (typeof options === 'string') {\n options = JSON.parse(options);\n }\n if (Array.isArray(options)) {\n return options.map((option: string) => ({ value: option, label: option }));\n }\n\n return Object.entries(options).map(entry => ({ value: entry[0], label: entry[1] }));\n }\n}\n"]}
1
+ {"version":3,"file":"biggive-campaign-card-filter-grid.js","sourceRoot":"","sources":["../../../src/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACxF,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,MAAM,gBAAgB,GAAG;IACvB,SAAS,EAAE,WAAW;IACtB,YAAY,EAAE,aAAa;IAC3B,WAAW,EAAE,cAAc;IAC3B,mBAAmB,EAAE,uBAAuB;CACpC,CAAC;AAUX,MAAM,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Prop, State } from '@stencil/core';\nimport { faMagnifyingGlass } from '@fortawesome/pro-solid-svg-icons';\n\nconst sortOptionLabels = {\n relevance: 'Relevance',\n amountRaised: 'Most raised',\n leastRaised: 'Least raised',\n matchFundsRemaining: 'Match funds remaining',\n} as const;\n\ntype sortOptionKey = keyof typeof sortOptionLabels;\ntype sortOptionLabel = (typeof sortOptionLabels)[sortOptionKey];\n\n@Component({\n tag: 'biggive-campaign-card-filter-grid',\n styleUrl: 'biggive-campaign-card-filter-grid.scss',\n shadow: true,\n})\nexport class BiggiveCampaignCardFilterGrid {\n @Element() el: HTMLBiggiveCampaignCardFilterGridElement;\n\n /**\n * This event `doSearchAndFilterUpdate` event is emitted and propogates to the parent\n * component which handles it\n */\n @Event({\n eventName: 'doSearchAndFilterUpdate',\n bubbles: true,\n cancelable: true,\n composed: true,\n })\n doSearchAndFilterUpdate: EventEmitter<{\n searchText: string | null;\n sortBy: string | null;\n filterCategory: string | null;\n filterBeneficiary: string | null;\n filterLocation: string | null;\n }>;\n\n private sortByPlaceholderText = 'Sort by';\n private beneficiariesPlaceHolderText = 'Select beneficiary';\n private categoriesPlaceHolderText = 'Select category';\n private locationsPlaceHolderText = 'Select location';\n\n /**\n * Space below component\n */\n @Prop() spaceBelow: number = 0;\n\n /**\n * Intro\n */\n @Prop() intro: string = 'Find a charity or project';\n\n /**\n * Optional search text prop. Useful for pre-populating the search field\n * when the page is loaded with a search term already existing in the URL.\n * This can happen when sharing links, or if a donor goes to a campaign page\n * after searching, and then returns to the search results. In such a case,\n * the search box text will clear, unless we use this prop to populate it on\n * rendering. DON-652.\n */\n @Prop() searchText: string | null = null;\n\n /**\n * Defines the text displayed as the placeholder in the input field\n * before the user types anything\n */\n @Prop() placeholderText: string = 'Search';\n\n /**\n * Defines the text on the search button\n */\n @Prop() buttonText: string = 'Search';\n\n /**\n * JSON array of category key/values, or takes a stringified equiavalent (for Storybook)\n */\n @Prop() categoryOptions: string | Record<string, string> | string[];\n\n /**\n * JSON array of beneficiary key/values, or takes a stringified equiavalent (for Storybook)\n */\n @Prop() beneficiaryOptions: string | Record<string, string> | string[];\n\n /**\n * JSON array of location key/values, or takes a stringified equiavalent (for Storybook)\n */\n @Prop() locationOptions: string | Record<string, string> | string[];\n\n /**\n * This helps us inject a pre-selected dropdown value from outside of this component.\n * This is especially helpful for the Meta campaign and Explore pages, where searching\n * by text wipes out previous sort options and re-uses Relevance, or where one of those\n * two pages is loaded directly with URL parameters - in such a scenario the dropdown\n * shows that it's pre-selected. DON-558.\n */\n @Prop({ mutable: true })\n selectedSortByOption: sortOptionLabel;\n\n /**\n * For injecting the chosen category to filter by, as per the comment above for `selectedSortByOption`.\n */\n @Prop({ mutable: true }) selectedFilterCategory: string | null = null;\n\n /**\n * For injecting the chosen beneficiary to filter by, as per the comment above for `selectedSortByOption`.\n */\n @Prop({ mutable: true }) selectedFilterBeneficiary: string | null = null;\n\n /**\n * For injecting the chosen location to filter by, as per the comment above for `selectedSortByOption`.\n */\n @Prop({ mutable: true }) selectedFilterLocation: string | null = null;\n\n /**\n * State variable - causes re-render on change\n */\n @State() filtersApplied: boolean;\n\n private initialSortByOption: sortOptionLabel;\n\n /**\n * This and similar properties represent selections made in the popup but not yet applied.\n */\n private newSelectedFilterCategory: string | null = null;\n private newSelectedFilterBeneficiary: string | null = null;\n private newSelectedFilterLocation: string | null = null;\n\n private categoryFilterSelectionChanged = (value: string) => {\n this.newSelectedFilterCategory = value;\n };\n\n private beneficiarySelectionChanged = (value: string) => {\n this.newSelectedFilterBeneficiary = value;\n };\n\n private locationSelectionChanged = (value: string) => {\n this.newSelectedFilterLocation = value;\n };\n\n private sortBySelectionChanged = (value: sortOptionLabel) => {\n this.selectedSortByOption = value;\n this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());\n };\n\n private getSearchAndFilterObject() {\n return {\n searchText: this.searchText,\n sortBy: this.selectedSortByOption,\n filterCategory: this.selectedFilterCategory,\n filterBeneficiary: this.selectedFilterBeneficiary,\n filterLocation: this.selectedFilterLocation,\n };\n }\n\n private handleApplyFilterButtonClick = () => {\n this.selectedFilterCategory = this.newSelectedFilterCategory ?? this.selectedFilterCategory;\n this.selectedFilterBeneficiary = this.newSelectedFilterBeneficiary ?? this.selectedFilterBeneficiary;\n this.selectedFilterLocation = this.newSelectedFilterLocation ?? this.selectedFilterLocation;\n\n const searchAndFilterObj = this.getSearchAndFilterObject();\n this.doSearchAndFilterUpdate.emit(searchAndFilterObj);\n\n const filterPopup = this.el.shadowRoot?.getElementById('filter-popup') as HTMLBiggivePopupElement | undefined;\n if (filterPopup) {\n filterPopup.closeFromOutside();\n }\n\n this.filtersApplied =\n typeof searchAndFilterObj.filterBeneficiary === 'string' || typeof searchAndFilterObj.filterCategory === 'string' || typeof searchAndFilterObj.filterLocation === 'string';\n };\n\n private removeFilter(filterKey: 'locations' | 'categories' | 'beneficiaries') {\n switch (filterKey) {\n case 'beneficiaries':\n this.selectedFilterBeneficiary = null;\n break;\n case 'categories':\n this.selectedFilterCategory = null;\n break;\n case 'locations':\n this.selectedFilterLocation = null;\n break;\n default:\n // This asks the compiler to check that we are in dead code, i.e. we covered all the possible filter keys\n // above. If we missed one we would get a compile error trying to assign a string to a never.\n const exhaustiveSwitch: never = filterKey;\n console.error(exhaustiveSwitch);\n }\n\n const selectEl = this.el.shadowRoot?.getElementById(filterKey) as HTMLBiggiveFormFieldSelectElement | undefined;\n if (!selectEl) {\n return;\n }\n\n selectEl.selectedLabel = null;\n selectEl.selectedValue = null;\n this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());\n }\n\n private handleSearchButtonPressed = () => {\n this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());\n\n if (this.hasSearchTerm()) {\n this.selectedSortByOption = 'Relevance';\n }\n };\n\n private handleSearchTextChanged = (event: any) => {\n this.searchText = event.target.value;\n };\n\n private handleEnterPressed = (ev: KeyboardEvent) => {\n if (ev.key === 'Enter') {\n this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());\n }\n };\n\n private handleFilterButtonClick = () => {\n this.newSelectedFilterBeneficiary = this.selectedFilterBeneficiary;\n this.newSelectedFilterCategory = this.selectedFilterCategory;\n this.newSelectedFilterLocation = this.selectedFilterLocation;\n\n const filterPopup = this.el.shadowRoot?.getElementById('filter-popup') as HTMLBiggivePopupElement | undefined;\n if (filterPopup) {\n filterPopup.openFromOutside();\n }\n };\n\n private handleClearAll = () => {\n // Set the 'Filters' button back to the primary background colour\n this.filtersApplied = false;\n\n // Clear all\n this.searchText = null;\n this.selectedSortByOption = this.initialSortByOption;\n this.selectedFilterBeneficiary = null;\n this.selectedFilterCategory = null;\n this.selectedFilterLocation = null;\n\n // Clear <biggive-form-field-select> components' internal selectedValue and selectedLabel. DON-654.\n ['sort-by', 'categories', 'beneficiaries', 'locations', 'funding'].forEach(id => {\n const theEl = this.el.shadowRoot?.getElementById(id) as HTMLBiggiveFormFieldSelectElement | undefined;\n if (!theEl) {\n return;\n }\n\n theEl.selectedValue = null;\n theEl.selectedLabel = null;\n });\n\n const selectedFilters = this.el.shadowRoot?.querySelector('.selected-filters');\n if (selectedFilters) {\n selectedFilters.querySelectorAll('.button').forEach(button => {\n button.remove();\n });\n }\n\n // Emit the doSearchAndFilterUpdate event with null values. DON-654\n this.doSearchAndFilterUpdate.emit({\n searchText: null,\n sortBy: null,\n filterCategory: null,\n filterBeneficiary: null,\n filterLocation: null,\n });\n };\n\n componentWillRender() {\n this.filtersApplied = this.selectedFilterCategory !== null || this.selectedFilterBeneficiary !== null || this.selectedFilterLocation !== null;\n this.initialSortByOption = this.selectedSortByOption;\n }\n\n render() {\n const sortOptions = this.getSortOptions();\n\n return (\n <div class={'container space-below-' + this.spaceBelow}>\n <div class=\"sleeve\">\n <div class=\"search-wrap\">\n <h4>{this.intro}</h4>\n <div class=\"field-wrap\">\n <div class=\"input-wrap\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon\" viewBox=\"0 0 512 512\">\n <path d={faMagnifyingGlass.icon[4].toString()} />\n </svg>\n <input\n type=\"text\"\n value={this.searchText ?? ''}\n class=\"input-text\"\n placeholder={this.placeholderText}\n onInput={this.handleSearchTextChanged}\n onKeyDown={this.handleEnterPressed}\n />\n </div>\n <biggive-button onClick={this.handleSearchButtonPressed} label={this.buttonText} />\n </div>\n </div>\n <div class=\"sort-filter-wrap\">\n <div class=\"filter-wrap\">\n <biggive-button class=\"filter\" colourScheme=\"primary\" onClick={this.handleFilterButtonClick} label=\"Filter\" fullWidth={true} space-below=\"0\"></biggive-button>\n <biggive-popup id=\"filter-popup\">\n <h4 class=\"space-above-0 space-below-3 text-colour-primary\">Filters</h4>\n <div class=\"select-wrapper-1\">\n <biggive-form-field-select\n backgroundColour=\"white\"\n prompt=\"Category\"\n placeholder={this.categoriesPlaceHolderText}\n selectedLabel={this.selectedFilterCategory}\n selectedValue={this.selectedFilterCategory}\n options={this.optionsToArray(this.categoryOptions || [])}\n selectionChanged={this.categoryFilterSelectionChanged}\n id=\"categories\"\n space-below=\"2\"\n ></biggive-form-field-select>\n </div>\n\n <div class=\"select-wrapper-2\">\n <biggive-form-field-select\n backgroundColour=\"white\"\n prompt=\"Beneficiary\"\n placeholder={this.beneficiariesPlaceHolderText}\n selectedLabel={this.selectedFilterBeneficiary}\n selectedValue={this.selectedFilterBeneficiary}\n options={this.optionsToArray(this.beneficiaryOptions || [])}\n selectionChanged={this.beneficiarySelectionChanged}\n id=\"beneficiaries\"\n space-below=\"2\"\n ></biggive-form-field-select>\n </div>\n\n <div class=\"select-wrapper-3\">\n <biggive-form-field-select\n backgroundColour=\"white\"\n prompt=\"Location\"\n placeholder={this.locationsPlaceHolderText}\n selectedLabel={this.selectedFilterLocation}\n selectedValue={this.selectedFilterLocation}\n options={this.optionsToArray(this.locationOptions || [])}\n selectionChanged={this.locationSelectionChanged}\n id=\"locations\"\n space-below=\"2\"\n ></biggive-form-field-select>\n </div>\n\n <div class=\"align-right\">\n <biggive-button label=\"Apply filters\" onClick={this.handleApplyFilterButtonClick} />\n </div>\n </biggive-popup>\n </div>\n\n <div class=\"sort-wrap\">\n <biggive-form-field-select\n options={sortOptions}\n prompt={null}\n select-style=\"underlined\"\n placeholder={this.sortByPlaceholderText}\n selectedLabel={this.selectedSortByOption}\n selectedValue={this.getSelectedValue()}\n selectionChanged={this.sortBySelectionChanged}\n id=\"sort-by\"\n >\n <biggive-form-field-select-option value=\"amountRaised\" label=\"Most raised\"></biggive-form-field-select-option>\n <biggive-form-field-select-option value=\"leastRaised\" label=\"Least raised\"></biggive-form-field-select-option>\n <biggive-form-field-select-option value=\"matchFundsRemaining\" label=\"Match funds remaining\"></biggive-form-field-select-option>\n {(this.searchText || '').length > 0 ? <biggive-form-field-select-option value=\"Relevance\" label=\"Relevance\"></biggive-form-field-select-option> : null}\n </biggive-form-field-select>\n </div>\n </div>\n <div class=\"selected-filter-wrap\">\n <div class=\"selected-filters\">\n {this.selectedFilterCategory && (\n <span\n class=\"button\"\n onClick={() => {\n this.removeFilter('categories');\n }}\n >\n {this.selectedFilterCategory}\n </span>\n )}\n {this.selectedFilterBeneficiary && (\n <span\n class=\"button\"\n onClick={() => {\n this.removeFilter('beneficiaries');\n }}\n >\n {this.selectedFilterBeneficiary}\n </span>\n )}\n {this.selectedFilterLocation && (\n <span\n class=\"button\"\n onClick={() => {\n this.removeFilter('locations');\n }}\n >\n {this.selectedFilterLocation}\n </span>\n )}\n </div>\n <div class=\"clear-all\">\n <a onClick={this.handleClearAll}>Clear all</a>\n </div>\n </div>\n <div class=\"campaign-grid\">\n <slot name=\"campaign-grid\"></slot>\n </div>\n </div>\n </div>\n );\n }\n\n // I'm not sure if I understand the reasoning for own-methods-must-be-private. I made the method below public to unit\n // test it. Maybe the idea is that we should move anything with enough logic to test outside the component class? I\n // can do that if people think it's better.\n //\n // eslint-disable-next-line @stencil-community/own-methods-must-be-private\n public getSelectedValue(): undefined | string {\n const sortByOption = this.selectedSortByOption;\n if (sortByOption === undefined) {\n return undefined;\n }\n const sortOptions = this.getSortOptions();\n const selected = sortOptions.filter(option => {\n return option.label.toLowerCase() === sortByOption.toLowerCase();\n })[0];\n\n return selected?.value;\n }\n\n private getSortOptions(): {\n label: sortOptionLabel;\n value: sortOptionKey;\n }[] {\n // @ts-ignore - see https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208\n const sortOptionKeys: sortOptionKey[] = Object.getOwnPropertyNames(sortOptionLabels);\n const relevantOptionKeys = sortOptionKeys.filter(key => key !== 'relevance' || this.hasSearchTerm());\n\n return relevantOptionKeys.map((key: sortOptionKey) => ({ value: key, label: sortOptionLabels[key] }));\n }\n\n private hasSearchTerm() {\n return typeof this.searchText === 'string' && this.searchText.length > 0;\n }\n\n private optionsToArray(options: string | Record<string, string> | string[]): {\n label: string;\n value: string;\n }[] {\n if (typeof options === 'string') {\n options = JSON.parse(options);\n }\n if (Array.isArray(options)) {\n return options.map((option: string) => ({ value: option, label: option }));\n }\n\n return Object.entries(options).map(entry => ({ value: entry[0], label: entry[1] }));\n }\n}\n"]}
@@ -15,7 +15,7 @@ export default {
15
15
  },
16
16
  selectedSortByOption: {
17
17
  name: 'Selected Sort By Option',
18
- options: ['Match funds remaining', 'Most raised', 'Relevance'],
18
+ options: ['Match funds remaining', 'Most raised', 'Least Raised', 'Relevance'],
19
19
  control: {
20
20
  type: 'select',
21
21
  },
@@ -1 +1 @@
1
- {"version":3,"file":"biggive-campaign-card-filter-grid.stories.js","sourceRoot":"","sources":["../../../src/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.stories.tsx"],"names":[],"mappings":"AAAA,eAAe;IACb,KAAK,EAAE,8BAA8B;IACrC,QAAQ,EAAE;QACR,eAAe,EAAE;YACf,IAAI,EAAE,kBAAkB;SACzB;QACD,kBAAkB,EAAE;YAClB,IAAI,EAAE,qBAAqB;SAC5B;QACD,eAAe,EAAE;YACf,IAAI,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UACrG,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC,2BAA2B,GAAG,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwC/F,CAAC;AAER,QAAQ,CAAC,gBAAgB,CAAC,yBAAyB,EAAE,CAAC,MAAmB,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;AAE1G,MAAM,CAAC,MAAM,+BAA+B,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACjE,+BAA+B,CAAC,IAAI,GAAG;IACrC,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC/C,kBAAkB,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAClD,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC/C,UAAU,EAAE,EAAE;IACd,oBAAoB,EAAE,IAAI;IAC1B,sBAAsB,EAAE,IAAI;IAC5B,yBAAyB,EAAE,IAAI;IAC/B,sBAAsB,EAAE,IAAI;CAC7B,CAAC","sourcesContent":["export default {\n title: 'Components/Campaign Features',\n argTypes: {\n categoryOptions: {\n name: 'Category Options',\n },\n beneficiaryOptions: {\n name: 'Beneficiary Options',\n },\n locationOptions: {\n name: 'Location Options',\n },\n searchText: {\n name: 'Search Text',\n },\n selectedSortByOption: {\n name: 'Selected Sort By Option',\n options: ['Match funds remaining', 'Most raised', 'Relevance'],\n control: {\n type: 'select',\n },\n },\n selectedFilterCategory: {\n name: 'Selected Filter Category',\n options: ['Health', 'Disaster Relief', 'Cancer'],\n control: {\n type: 'select',\n },\n },\n selectedFilterBeneficiary: {\n name: 'Selected Filter Beneficiary',\n options: ['General Public', 'Animals', 'Veterans'],\n control: {\n type: 'select',\n },\n },\n selectedFilterLocation: {\n name: 'Selected Filter Location',\n options: ['United Kingdom', 'Spain', 'France'],\n control: {\n type: 'select',\n },\n },\n },\n};\n\nconst Template = (args: any) => `\n <biggive-campaign-card-filter-grid\n category-options='${args.categoryOptions}'\n beneficiary-options='${args.beneficiaryOptions}'\n location-options='${args.locationOptions}'\n search-text=\"${args.searchText}\"\n filters-applied=\"${args.filtersApplied}\",\n ${args.selectedSortByOption ? 'selected-sort-by-option=' + args.selectedSortByOption : ''}\n ${args.selectedFilterCategory ? 'selected-filter-category=' + args.selectedFilterCategory : ''}\n ${args.selectedFilterBeneficiary ? 'selected-filter-beneficiary=' + args.selectedFilterBeneficiary : ''}\n ${args.selectedFilterLocation ? 'selected-filter-location=' + args.selectedFilterLocation : ''}\n >\n <biggive-grid slot=\"campaign-grid\" column-count=\"3\">\n <biggive-campaign-card\n campaign-type=\"Match Funded\"\n campaign-title=\"Oxford Piano Festival Fundraising Campaign for LGBTQ+ community\"\n organisation-name=\"Oxford Philharmonic Orchestra\"\n currency-code=\"GBP\"\n primary-figure-label=\"Total Raised\"\n primary-figure-amount=\"76543\"\n secondary-figure-label=\"Total Raised\"\n secondary-figure-amount=\"76543\"\n progress-bar-counter=\"75\">\n </biggive-campaign-card>\n <biggive-campaign-card\n data-filter-categories=\"[&quot;Healthcare&quot;]\"\n data-filter-beneficiaries=\"[&quot;Children&quot;]\"\n campaign-type=\"Match Funded\"\n campaign-title=\"Oxford Piano Festival Fundraising Campaign for LGBTQ+ community\"\n organisation-name=\"Oxford Philharmonic Orchestra\"\n currency-code=\"GBP\"\n primary-figure-label=\"Total Raised\"\n primary-figure-amount=\"76543\"\n secondary-figure-label=\"Total Raised\"\n secondary-figure-amount=\"76543\">\n </biggive-campaign-card>\n <biggive-campaign-card\n data-filter-categories=\"[&quot;Healthcare&quot;]\"\n data-filter-beneficiaries=\"[&quot;Children&quot;]\"\n campaign-type=\"Match Funded\"\n campaign-title=\"Oxford Piano Festival Fundraising Campaign for LGBTQ+ community\"\n organisation-name=\"Oxford Philharmonic Orchestra\"\n currency-code=\"GBP\"\n primary-figure-label=\"Total Raised\"\n primary-figure-amount=\"76543\"\n secondary-figure-label=\"Total Raised\"\n secondary-figure-amount=\"76543\">\n </biggive-campaign-card>\n </biggive-grid>\n </biggive-campaign-card-filter-grid>\n `;\n\ndocument.addEventListener('doSearchAndFilterUpdate', ($event: CustomEvent) => console.log($event.detail));\n\nexport const CampaignCardFilterGridComponent = Template.bind({});\nCampaignCardFilterGridComponent.args = {\n categoryOptions: JSON.stringify(['ABC', 'DEF']),\n beneficiaryOptions: JSON.stringify(['ABC', 'DEF']),\n locationOptions: JSON.stringify(['ABC', 'DEF']),\n searchText: '',\n selectedSortByOption: null,\n selectedFilterCategory: null,\n selectedFilterBeneficiary: null,\n selectedFilterLocation: null,\n};\n"]}
1
+ {"version":3,"file":"biggive-campaign-card-filter-grid.stories.js","sourceRoot":"","sources":["../../../src/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.stories.tsx"],"names":[],"mappings":"AAAA,eAAe;IACb,KAAK,EAAE,8BAA8B;IACrC,QAAQ,EAAE;QACR,eAAe,EAAE;YACf,IAAI,EAAE,kBAAkB;SACzB;QACD,kBAAkB,EAAE;YAClB,IAAI,EAAE,qBAAqB;SAC5B;QACD,eAAe,EAAE;YACf,IAAI,EAAE,kBAAkB;SACzB;QACD,UAAU,EAAE;YACV,IAAI,EAAE,aAAa;SACpB;QACD,oBAAoB,EAAE;YACpB,IAAI,EAAE,yBAAyB;YAC/B,OAAO,EAAE,CAAC,uBAAuB,EAAE,aAAa,EAAE,cAAc,EAAE,WAAW,CAAC;YAC9E,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;aACf;SACF;QACD,sBAAsB,EAAE;YACtB,IAAI,EAAE,0BAA0B;YAChC,OAAO,EAAE,CAAC,QAAQ,EAAE,iBAAiB,EAAE,QAAQ,CAAC;YAChD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;aACf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ACjE,+BAA+B,CAAC,IAAI,GAAG;IACrC,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC/C,kBAAkB,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAClD,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC/C,UAAU,EAAE,EAAE;IACd,oBAAoB,EAAE,IAAI;IAC1B,sBAAsB,EAAE,IAAI;IAC5B,yBAAyB,EAAE,IAAI;IAC/B,sBAAsB,EAAE,IAAI;CAC7B,CAAC","sourcesContent":["export default {\n title: 'Components/Campaign Features',\n argTypes: {\n categoryOptions: {\n name: 'Category Options',\n },\n beneficiaryOptions: {\n name: 'Beneficiary Options',\n },\n locationOptions: {\n name: 'Location Options',\n },\n searchText: {\n name: 'Search Text',\n },\n selectedSortByOption: {\n name: 'Selected Sort By Option',\n options: ['Match funds remaining', 'Most raised', 'Least Raised', 'Relevance'],\n control: {\n type: 'select',\n },\n },\n selectedFilterCategory: {\n name: 'Selected Filter Category',\n options: ['Health', 'Disaster Relief', 'Cancer'],\n control: {\n type: 'select',\n },\n },\n selectedFilterBeneficiary: {\n name: 'Selected Filter Beneficiary',\n options: ['General Public', 'Animals', 'Veterans'],\n control: {\n type: 'select',\n },\n },\n selectedFilterLocation: {\n name: 'Selected Filter Location',\n options: ['United Kingdom', 'Spain', 'France'],\n control: {\n type: 'select',\n },\n },\n },\n};\n\nconst Template = (args: any) => `\n <biggive-campaign-card-filter-grid\n category-options='${args.categoryOptions}'\n beneficiary-options='${args.beneficiaryOptions}'\n location-options='${args.locationOptions}'\n search-text=\"${args.searchText}\"\n filters-applied=\"${args.filtersApplied}\",\n ${args.selectedSortByOption ? 'selected-sort-by-option=' + args.selectedSortByOption : ''}\n ${args.selectedFilterCategory ? 'selected-filter-category=' + args.selectedFilterCategory : ''}\n ${args.selectedFilterBeneficiary ? 'selected-filter-beneficiary=' + args.selectedFilterBeneficiary : ''}\n ${args.selectedFilterLocation ? 'selected-filter-location=' + args.selectedFilterLocation : ''}\n >\n <biggive-grid slot=\"campaign-grid\" column-count=\"3\">\n <biggive-campaign-card\n campaign-type=\"Match Funded\"\n campaign-title=\"Oxford Piano Festival Fundraising Campaign for LGBTQ+ community\"\n organisation-name=\"Oxford Philharmonic Orchestra\"\n currency-code=\"GBP\"\n primary-figure-label=\"Total Raised\"\n primary-figure-amount=\"76543\"\n secondary-figure-label=\"Total Raised\"\n secondary-figure-amount=\"76543\"\n progress-bar-counter=\"75\">\n </biggive-campaign-card>\n <biggive-campaign-card\n data-filter-categories=\"[&quot;Healthcare&quot;]\"\n data-filter-beneficiaries=\"[&quot;Children&quot;]\"\n campaign-type=\"Match Funded\"\n campaign-title=\"Oxford Piano Festival Fundraising Campaign for LGBTQ+ community\"\n organisation-name=\"Oxford Philharmonic Orchestra\"\n currency-code=\"GBP\"\n primary-figure-label=\"Total Raised\"\n primary-figure-amount=\"76543\"\n secondary-figure-label=\"Total Raised\"\n secondary-figure-amount=\"76543\">\n </biggive-campaign-card>\n <biggive-campaign-card\n data-filter-categories=\"[&quot;Healthcare&quot;]\"\n data-filter-beneficiaries=\"[&quot;Children&quot;]\"\n campaign-type=\"Match Funded\"\n campaign-title=\"Oxford Piano Festival Fundraising Campaign for LGBTQ+ community\"\n organisation-name=\"Oxford Philharmonic Orchestra\"\n currency-code=\"GBP\"\n primary-figure-label=\"Total Raised\"\n primary-figure-amount=\"76543\"\n secondary-figure-label=\"Total Raised\"\n secondary-figure-amount=\"76543\">\n </biggive-campaign-card>\n </biggive-grid>\n </biggive-campaign-card-filter-grid>\n `;\n\ndocument.addEventListener('doSearchAndFilterUpdate', ($event: CustomEvent) => console.log($event.detail));\n\nexport const CampaignCardFilterGridComponent = Template.bind({});\nCampaignCardFilterGridComponent.args = {\n categoryOptions: JSON.stringify(['ABC', 'DEF']),\n beneficiaryOptions: JSON.stringify(['ABC', 'DEF']),\n locationOptions: JSON.stringify(['ABC', 'DEF']),\n searchText: '',\n selectedSortByOption: null,\n selectedFilterCategory: null,\n selectedFilterBeneficiary: null,\n selectedFilterLocation: null,\n};\n"]}
@@ -17,7 +17,7 @@ export class BiggiveCampaignHighlights {
17
17
  this.championUrl = undefined;
18
18
  }
19
19
  render() {
20
- return (h("div", { key: 'b0357c81263beb2277985a0793f455a248187134', class: 'container space-below-' + this.spaceBelow }, h("div", { key: 'e55e2401cfdb26448bb40f02edf70bb2c135d5b3', class: "sleeve" }, this.campaignTitle != null ? (h("div", { class: "campaign-title" }, h("span", null, this.campaignTitle))) : null, this.banner !== null && this.banner !== undefined ? (h("div", { class: "image-wrap banner", style: { 'background-image': 'url(' + this.banner + ')' } }, h("img", { src: this.banner, class: "banner" }))) : null, h("div", { key: 'fa828f6b43e8963423328082c331cc9881e9f56e', class: "meta-wrap" }, h("div", { key: 'cf44139ef09edc237b43547e2980334ba700e573', class: "meta-item" }, h("span", { key: '110e506e0323711ec2a0a721813465097d039224', class: "label" }, this.primaryFigureLabel), h("span", { key: '4f7e1e04a962bb7fb027c6a06d2ee1714a1d0a85', class: "text" }, this.primaryFigureAmount)), h("div", { key: '925c7866f64026d14217583e886d2c9fa34ab3f5', class: "meta-item" }, h("span", { key: 'ad0a802c3ab0d9a4adebb6b195bf955a75cf70e6', class: "label" }, this.secondaryFigureLabel), h("span", { key: 'c0ec0cc87b6953db0ad072c853a918fc0188a423', class: "text" }, this.secondaryFigureAmount))), h("div", { key: 'fd425ebdc06f9e5e14722700de400c1f67d3e1d2', class: "progress-bar-wrap" }, h("biggive-progress-bar", { key: 'ab66eac351b9b00edcd405fd8acc3be49dc960c1', counter: this.progressBarCounter, "colour-scheme": "primary" })), h("div", { key: 'fbe28fe65217d92efa9731972b583b9696794dd5', class: "stat-wrap" }, this.primaryStatIcon != null ? (h("div", { class: "stat-item" }, h("biggive-misc-icon", { icon: this.primaryStatIcon, "background-colour": "white", "icon-colour": "tertiary" }), h("span", { class: "label" }, this.primaryStatText))) : null, this.secondaryStatIcon != null ? (h("div", { class: "stat-item" }, h("biggive-misc-icon", { icon: this.secondaryStatIcon, "background-colour": "white", "icon-colour": "tertiary" }), h("span", { class: "label" }, this.secondaryStatText))) : null), this.championName != null ? (h("div", { class: "championed-by" }, "Championed by ", h("a", { href: this.championUrl }, this.championName))) : null)));
20
+ return (h("div", { key: 'add93be878549fc1c8f00b8dc3001896724cfe34', class: 'container space-below-' + this.spaceBelow }, h("div", { key: 'd5577539172f56e51540d03e53c91327bed96143', class: "sleeve" }, this.campaignTitle != null ? (h("div", { class: "campaign-title" }, h("span", null, this.campaignTitle))) : null, this.banner !== null && this.banner !== undefined ? (h("div", { class: "image-wrap banner", style: { 'background-image': 'url(' + this.banner + ')' } }, h("img", { src: this.banner, class: "banner" }))) : null, h("div", { key: 'c7029df25a46f19e84057d4e9db469ba6325d1ec', class: "meta-wrap" }, h("div", { key: '877452b98dd3d64bfa132da71797e6f00bc5696d', class: "meta-item" }, h("span", { key: '4c373ec8b3e8d53754280b5fabecc0986a57f6f8', class: "label" }, this.primaryFigureLabel), h("span", { key: 'c354468bd49fb84a9b5317c7cfb7dc363b0b7b54', class: "text" }, this.primaryFigureAmount)), h("div", { key: '49ba302a5c22f674bd45478607afe5e57c40ad98', class: "meta-item" }, h("span", { key: '8f8c8e3935542794e7ba3e9624cedf5bacd89be1', class: "label" }, this.secondaryFigureLabel), h("span", { key: '952ee3945423ac3f129d59f466b98c7f5b1f9f26', class: "text" }, this.secondaryFigureAmount))), h("div", { key: '76bf79668d1c1f737d400d9d85816310de2147ee', class: "progress-bar-wrap" }, h("biggive-progress-bar", { key: 'cb43751f5905000bb6c294d472a43c89e660447e', counter: this.progressBarCounter, "colour-scheme": "primary" })), h("div", { key: 'af9a81b3c9ca0b15fa44e45df0aa7068ddb9249d', class: "stat-wrap" }, this.primaryStatIcon != null ? (h("div", { class: "stat-item" }, h("biggive-misc-icon", { icon: this.primaryStatIcon, "background-colour": "white", "icon-colour": "tertiary" }), h("span", { class: "label" }, this.primaryStatText))) : null, this.secondaryStatIcon != null ? (h("div", { class: "stat-item" }, h("biggive-misc-icon", { icon: this.secondaryStatIcon, "background-colour": "white", "icon-colour": "tertiary" }), h("span", { class: "label" }, this.secondaryStatText))) : null), this.championName != null ? (h("div", { class: "championed-by" }, "Championed by ", h("a", { href: this.championUrl }, this.championName))) : null)));
21
21
  }
22
22
  static get is() { return "biggive-campaign-highlights"; }
23
23
  static get encapsulation() { return "shadow"; }
@@ -13,7 +13,7 @@ export class BiggiveCategoryIcon {
13
13
  return icon;
14
14
  }
15
15
  render() {
16
- return (h("div", { key: 'dd8aaaf26599d4efa7f3e4307c28c2abf93f428a', class: "container" }, h("div", { key: 'd47e5f9e3ca4ec677c1231c418415f8c4bacc459', class: 'category-icon-item background-colour-' + this.backgroundColour }, h("a", { key: '749a1281eea652790f5e32249d471f2b35d0ceb6', href: this.url }, h("svg", { key: 'ffaa6013742a1c426465e34aafb20f54e63f5db6', width: this.getCategoryIcon().icon[0], height: this.getCategoryIcon().icon[1], xmlns: "http://www.w3.org/2000/svg", class: 'fill-' + this.iconColour, viewBox: '0 0 ' + this.getCategoryIcon().icon[0] + ' ' + this.getCategoryIcon().icon[1] }, h("path", { key: 'b61ff115f5c9b2045e6eda0e8ad5d6b09e0a39b9', d: this.getCategoryIcon().icon[4].toString() })))), h("div", { key: 'dc3c8aa3cf1468287657fac7001db3da9d73e235', class: "label" }, this.label)));
16
+ return (h("div", { key: 'ce172b6817815385d15af1702a32224fffde02cd', class: "container" }, h("div", { key: '9e3a5de2d46c5e27b95ad6c1e15df09c745a1f72', class: 'category-icon-item background-colour-' + this.backgroundColour }, h("a", { key: 'e2047b9364836f1313a078ef2b5617f66c7ebdc1', href: this.url }, h("svg", { key: '1268a0041ac6541943f7fd695367f99244fd35a6', width: this.getCategoryIcon().icon[0], height: this.getCategoryIcon().icon[1], xmlns: "http://www.w3.org/2000/svg", class: 'fill-' + this.iconColour, viewBox: '0 0 ' + this.getCategoryIcon().icon[0] + ' ' + this.getCategoryIcon().icon[1] }, h("path", { key: '27c43d05e026925752b68d924d372bad1f0554ff', d: this.getCategoryIcon().icon[4].toString() })))), h("div", { key: 'fda1acba40281361299e67f839916ee90abac8af', class: "label" }, this.label)));
17
17
  }
18
18
  static get is() { return "biggive-category-icon"; }
19
19
  static get originalStyleUrls() {
@@ -11,7 +11,7 @@ export class BiggiveContainerCard {
11
11
  this.headingLevel = 3;
12
12
  }
13
13
  render() {
14
- return (h("div", { key: '54e90bb85001ff49b4b15f2d9ab6592d3db99548', class: 'container space-below-' + this.spaceBelow + ' background-colour-' + this.backgroundColour, style: { 'background-image': "url('" + this.backgroundImageUrl + "')" } }, h("div", { key: '5bdd9a5f7a803c16af5564ff2c7eb0bddc1fb34d', class: 'sleeve background-colour-' + this.cardColour + ' text-colour-' + this.textColour }, h("slot", { key: '0afb365e3d6c1b9b959d69f4079bea30b72a2c03' }))));
14
+ return (h("div", { key: '924eae2dea76e245b62055d97124c46ac33f9a49', class: 'container space-below-' + this.spaceBelow + ' background-colour-' + this.backgroundColour, style: { 'background-image': "url('" + this.backgroundImageUrl + "')" } }, h("div", { key: '4665ba1b41809c3cda8b79ff258b620bd7f4f1e1', class: 'sleeve background-colour-' + this.cardColour + ' text-colour-' + this.textColour }, h("slot", { key: 'c61aa1777400b860f1cf084f093df6bdf22633e4' }))));
15
15
  }
16
16
  static get is() { return "biggive-container-card"; }
17
17
  static get encapsulation() { return "shadow"; }
@@ -46,7 +46,7 @@ export class BiggiveCookieBanner {
46
46
  // then the app may only pass a partial set of them in for a time. Any preference not passed will be treated as
47
47
  // declined.
48
48
  const cookiesCurrentlyAllowed = this.previouslyAgreedCookiePreferences || {};
49
- return (h("div", { key: '715def3ec5b6fa0f3a3ee3f019ea9dfc1f376eb9', class: "cooke-consent-container" }, h("biggive-popup", { key: '4a1e1b69cfc3cd872d89a4b601c4e6516c40f47f', id: "cookie-preferences-popup", modalClosedCallback: this.preferenceModalClosed.emit }, h("div", { key: 'a131a687dab90c9d5858bb4a9f28f11f31149487', class: "content" }, h("h4", { key: '188f6ae6fb5a66ffe7b8a2e3f9da4cec3df6a243', class: "space-above-0 space-below-3 text-colour-primary" }, "Manage your cookie preferences"), h("form", { key: '31046d5b9b5ed2d7840d739513d6c6475c93f1d6' }, h("div", { key: '01e608a3be653c6902df36e24deec643a9ef6287', class: "radio-group" }, h("h5", { key: 'c318c00f209817a7f7c3a73f7e75ef9fdbfea723' }, "Essential Cookies"), h("p", { key: '7910040742a0da5f993c2a3a04bda55812a0f6c5' }, "These cookies are necessary to ensure our website functions correctly and include required cookies from third parties."), h("input", { key: 'd5ad3664d9aa7e797764b15fa221635173c8c30b', type: "radio", name: "necassary", id: "necassary-off", disabled: true }), h("label", { key: 'f19f04bdbff4683c74c348970bf620c915d282a7', htmlFor: "necassary-on" }, "Off"), h("input", { key: '98c5cc0b9b329241833c8d0f744eda7f90fd8550', type: "radio", name: "necassary", id: "necassary-on", disabled: true, checked: true }), h("label", { key: '95a8d5651e97b5a8e7645e34f7301cbda63f26ce', htmlFor: "necassary-on" }, "On")), h("div", { key: 'f519c29fb135bdc7464300ef611ffe7de1dff98e', class: "radio-group" }, h("h5", { key: '457709d079810b13a73535f1b620d2c367a84c44' }, "Analytics & Testing Cookies"), h("p", { key: '573893435daf5a3c9b9d3a0665ffd18b0aee6822' }, "We use analytics cookies to track activity on our website. For example, the pages you\u2019ve visited, the content you\u2019ve engaged with and the search terms you\u2019ve used. This allows us to personalise and improve our content."), h("p", { key: 'aaf730fb65e04d4151a7e3ca9c3c261a64b92fda' }, "We use testing cookies to collect data on how you interact with website features. These insights allow us to update our website and build features that enhance your user experience."), h("input", { key: 'ac3977d920e46c7130b7dcf91c0b5c53eb9a040c', type: "radio", name: "a-and-t", id: "a-and-t-off", checked: !cookiesCurrentlyAllowed.analyticsAndTesting }), h("label", { key: 'efe467dc5297de55aaf87e9bf8f5fc96580930fa', htmlFor: "a-and-t-off" }, "Off"), h("input", { key: 'da2d3be8700a179c2e2e18d56b6e19c80034ca89', type: "radio", name: "a-and-t", id: "a-and-t-on", checked: !!cookiesCurrentlyAllowed.analyticsAndTesting }), h("label", { key: '7936811c007e1721eb48b63735a2c979a2c70be3', htmlFor: "a-and-t-on" }, "On")), h("div", { key: '0c7501a1c16d7947d74c757acd066d10e97db1c8', class: "radio-group" }, h("h5", { key: '10068c6a98eae8bdc06dcb5b30081c08b6129154' }, "Third-party Cookies "), h("p", { key: 'a3c2d794d046f607c9041a78c124862ee98bec69' }, "These cookies are used to track activity, which can help to provide a better experience and improve functionality across various applications. For example, our donation experience survey."), h("input", { key: '8e729db7d255c123401f9494340ada09ced12858', type: "radio", name: "third-party", id: "third-party-off", checked: !cookiesCurrentlyAllowed.thirdParty }), h("label", { key: 'f348931f582047949283a9c0268d19f84308f3dc', htmlFor: "third-party-off" }, "Off"), h("input", { key: '1d293558c97cb24742cab1c06a1ad0a972cf70fa', type: "radio", name: "third-party", id: "third-party-on", checked: !!cookiesCurrentlyAllowed.thirdParty }), h("label", { key: 'b7c03be13c4f3b919e8f788ddeae6d054e709fd1', htmlFor: "third-party-on" }, "On")), h("biggive-button", { key: '18c1a69134aa10318d78b68535827358554dbd08', "space-below": "0", "space-above": "2", "colour-scheme": "secondary", "is-past-campaign": "false", "is-future-campaign": "false", label: "Accept Selected Cookies", "open-in-new-tab": "false", "full-width": "false", size: "small", rounded: false, centered: false, "button-id": "accept-selected-button", onClick: this.handleAcceptSelectedCookies })), h("p", { key: '6c0cc30fcb04a422fa14294b49b17b02d60579bb' }, "You can change the above settings for this browser at any time by clicking the privacy settings link in the footer of the page."))), h("h2", { key: '318e16c617f05bb6d6de9407ac941f466b12cfd1' }, "Our website uses cookies"), h("p", { key: 'd0a69145ed978cd6885da3e996ba072e23de0c4f' }, "We use some essential cookies to make our website work. We'd also like to share data with our analytics platform and use analytics cookies to understand how you use the website and make improvements."), h("p", { key: '2cf683d569f7a8b1810034d61f7a9a619d519e31' }, h("a", { key: '1ba8d026f31b9bc84f3656c2cb2a1d11973f591c', href: this.blogUriPrefix + '/privacy#cookies', target: "_blank" }, "Find out more in our Cookies Statement")), h("div", { key: '1e0e74ec93a442578b0aa934cd21751edf72c27e', class: "button-group" }, h("biggive-button", { key: '7960eadc62266d5638fb6c4efd73209906f51278', onClick: this.handleAcceptAllClick, "space-below": "0", "colour-scheme": "secondary", "is-past-campaign": "false", "is-future-campaign": "false", label: "Accept All", "open-in-new-tab": "false", "full-width": "true", size: "medium", rounded: false, centered: false, "button-id": "accept-all-button" }), h("biggive-button", { key: '8b8c566f36dbafa5e6688d95e0aad526df8eeb65', onClick: this.handleRejectAllClicked, "space-below": "0", "colour-scheme": "grey-light", "is-past-campaign": "false", "is-future-campaign": "false", label: "Essential Cookies Only", "open-in-new-tab": "false", "full-width": "true", size: "medium", rounded: false, centered: false, "button-id": "choose-preferences-button" }), h("biggive-button", { key: 'eeb5f9a1dd0ef3ec59dfd07b70fefa5273143155', onClick: this.handleChoosePrefencesClick, "space-below": "0", "colour-scheme": "grey-light", "is-past-campaign": "false", "is-future-campaign": "false", label: "Choose Preferences", "open-in-new-tab": "false", "full-width": "true", size: "medium", rounded: false, centered: false, "button-id": "choose-preferences-button" }))));
49
+ return (h("div", { key: '9784b16fc6cd006a733b5be07a8186370c5ff792', class: "cooke-consent-container" }, h("biggive-popup", { key: 'd95bb0102f66aed28b38b928dda5f5d7aed52015', id: "cookie-preferences-popup", modalClosedCallback: this.preferenceModalClosed.emit }, h("div", { key: '152c896e04e8a2fa04beec6b9ff98a75b4b669ee', class: "content" }, h("h4", { key: '0948cb48cffea9edfbab1f16500dfa77571b4916', class: "space-above-0 space-below-3 text-colour-primary" }, "Manage your cookie preferences"), h("form", { key: '49d6ce7febba14d0e85a5fbd38797f934d2d21e0' }, h("div", { key: 'ee87825504107c0d50a9f3b8d3e9736e0a7b1cc2', class: "radio-group" }, h("h5", { key: '3a1cac95a6a2b3678372589d9af5c8601e8ebcf7' }, "Essential Cookies"), h("p", { key: '1377c090cad010486429bc93d46ca7ff2566d569' }, "These cookies are necessary to ensure our website functions correctly and include required cookies from third parties."), h("input", { key: '82be9341d46c0900f079f9ae8f3f71270624e08b', type: "radio", name: "necassary", id: "necassary-off", disabled: true }), h("label", { key: '16777e2433d4f37dff80fe55e4013155be7788ee', htmlFor: "necassary-on" }, "Off"), h("input", { key: '1d6f376e5ae2ff18208bd7d7ff1ca1536b4c9339', type: "radio", name: "necassary", id: "necassary-on", disabled: true, checked: true }), h("label", { key: 'dfdce2f35a6c041267ed8b21811e6b7a648eb39c', htmlFor: "necassary-on" }, "On")), h("div", { key: 'e7884526b5851f11cbb43b488588e3b523c99471', class: "radio-group" }, h("h5", { key: '2a3bcec397fd731e387356015a24a667bd838c06' }, "Analytics & Testing Cookies"), h("p", { key: '336be4d15931f7749bbd965ca8a2fa84eaa5c482' }, "We use analytics cookies to track activity on our website. For example, the pages you\u2019ve visited, the content you\u2019ve engaged with and the search terms you\u2019ve used. This allows us to personalise and improve our content."), h("p", { key: '7b0d3aa9e3b9e48929e7d1c2bfc8cb4c3609c474' }, "We use testing cookies to collect data on how you interact with website features. These insights allow us to update our website and build features that enhance your user experience."), h("input", { key: '616cd2b1198d594f59066569172b4c028b6eeafd', type: "radio", name: "a-and-t", id: "a-and-t-off", checked: !cookiesCurrentlyAllowed.analyticsAndTesting }), h("label", { key: 'f795987604b0f72c7d23ce421fc01a41aaa001d4', htmlFor: "a-and-t-off" }, "Off"), h("input", { key: 'e3d24289c254f98b361faf58997ea9cb972aa4c2', type: "radio", name: "a-and-t", id: "a-and-t-on", checked: !!cookiesCurrentlyAllowed.analyticsAndTesting }), h("label", { key: '1ab7a71a5b32e4696d9b930889dd721bb9d99863', htmlFor: "a-and-t-on" }, "On")), h("div", { key: '3c37a45d331d9cf94251f1b952370a26f3bfcbc4', class: "radio-group" }, h("h5", { key: '4c0d2c5c8e9fc955732c2d1f5e35fb0548bf8f8c' }, "Third-party Cookies "), h("p", { key: 'd3625bcec9afabfbd3ad3827cd64112cee4cd6cb' }, "These cookies are used to track activity, which can help to provide a better experience and improve functionality across various applications. For example, our donation experience survey."), h("input", { key: 'c7e11c30079a05606120788709dd8b6eb57d4bf3', type: "radio", name: "third-party", id: "third-party-off", checked: !cookiesCurrentlyAllowed.thirdParty }), h("label", { key: '24e2a31c5928e506706b02c57dfa89df9d95a311', htmlFor: "third-party-off" }, "Off"), h("input", { key: '776af14bc2e2877c1cc03d340e099708e1672fbf', type: "radio", name: "third-party", id: "third-party-on", checked: !!cookiesCurrentlyAllowed.thirdParty }), h("label", { key: 'd2c2b99591a1db38590db7220450a33a816da5df', htmlFor: "third-party-on" }, "On")), h("biggive-button", { key: '890b4e83fff50914f9158d496d9c3445a714eb0f', "space-below": "0", "space-above": "2", "colour-scheme": "secondary", "is-past-campaign": "false", "is-future-campaign": "false", label: "Accept Selected Cookies", "open-in-new-tab": "false", "full-width": "false", size: "small", rounded: false, centered: false, "button-id": "accept-selected-button", onClick: this.handleAcceptSelectedCookies })), h("p", { key: '7f0972f7d9c3f6957fffd11c8c85f5e4da50e8e4' }, "You can change the above settings for this browser at any time by clicking the privacy settings link in the footer of the page."))), h("h2", { key: 'f821cbf0a9622dc5ab423296a75532b44d3f1b0e' }, "Our website uses cookies"), h("p", { key: 'a9890820b2f7558c0258c898dce3bb93b6092754' }, "We use some essential cookies to make our website work. We'd also like to share data with our analytics platform and use analytics cookies to understand how you use the website and make improvements."), h("p", { key: 'e2bb8230bcf4ddef201dd3c202f401265baba7b6' }, h("a", { key: '84497e6512ff828a5dfccfc933439eae93cda7db', href: this.blogUriPrefix + '/privacy#cookies', target: "_blank" }, "Find out more in our Cookies Statement")), h("div", { key: '6f119b90ba4657fd5c5dfc0ede5e84e94b88ff20', class: "button-group" }, h("biggive-button", { key: '59caeec146f2eccdd32eccb7e5b1ba082e46ce8e', onClick: this.handleAcceptAllClick, "space-below": "0", "colour-scheme": "secondary", "is-past-campaign": "false", "is-future-campaign": "false", label: "Accept All", "open-in-new-tab": "false", "full-width": "true", size: "medium", rounded: false, centered: false, "button-id": "accept-all-button" }), h("biggive-button", { key: '290a72efc921fba08e363a1745d96470b7afce9c', onClick: this.handleRejectAllClicked, "space-below": "0", "colour-scheme": "grey-light", "is-past-campaign": "false", "is-future-campaign": "false", label: "Essential Cookies Only", "open-in-new-tab": "false", "full-width": "true", size: "medium", rounded: false, centered: false, "button-id": "choose-preferences-button" }), h("biggive-button", { key: '00a5e3adc85c814683ad590008c590d142e592b1', onClick: this.handleChoosePrefencesClick, "space-below": "0", "colour-scheme": "grey-light", "is-past-campaign": "false", "is-future-campaign": "false", label: "Choose Preferences", "open-in-new-tab": "false", "full-width": "true", size: "medium", rounded: false, centered: false, "button-id": "choose-preferences-button" }))));
50
50
  }
51
51
  static get is() { return "biggive-cookie-banner"; }
52
52
  static get encapsulation() { return "shadow"; }
@@ -1,7 +1,7 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  export class BiggiveForm {
3
3
  render() {
4
- return (h(Host, { key: '70c1f8efdede765a6f323ed9aef453b5c398e1a9' }, h("slot", { key: '4b519504bc188ef13375616470a98872b26c9819' })));
4
+ return (h(Host, { key: '30710027ff6c7fe2ef4727e1172397663253b430' }, h("slot", { key: '001703aabbf0c497616622cf7863a7c9128bca63' })));
5
5
  }
6
6
  static get is() { return "biggive-form"; }
7
7
  static get encapsulation() { return "shadow"; }
@@ -38,12 +38,12 @@ export class BiggiveFormFieldSelect {
38
38
  console.error('options undefined');
39
39
  options = [];
40
40
  }
41
- return (h("div", { key: '6da7aa947230f09540dc9aab87e37ae68f88d215', class: "selectWrapper" }, h("label", { key: '23e108bd92e1c74cbcf7baaee5b5da676e89a7b6', class: greyIfRequired }, h("div", { key: '584afc61b6ebaf8cc42979a84bde78f232badd4d', class: 'prompt' + greyIfRequired }, this.prompt), h("div", { key: 'd293c7b59ea33795a60008b3c895886deded30da', class: 'dropdown space-below-' +
41
+ return (h("div", { key: '886fe16b933884b2973867a6ab51f622449f8d04', class: "selectWrapper" }, h("label", { key: '17cee18650a9553f7596162c88c5ea529e37edbf', class: greyIfRequired }, h("div", { key: 'ff069e9fdd8a3bd1c635e4fe7e8267e23e4cc010', class: 'prompt' + greyIfRequired }, this.prompt), h("div", { key: 'ca933e0cbe3dbd9f3fafe04a1eb908f0ff0d108a', class: 'dropdown space-below-' +
42
42
  this.spaceBelow +
43
43
  ' select-style-' +
44
44
  this.selectStyle +
45
45
  (this.prompt === null ? ' noprompt' : '') +
46
- (this.selectedOptionColour === 'inherit' ? ' inherit-colour' : '') }, h("div", { key: 'dbd9e22f022522e5b49a71083dbf2fe1b8e36eed', class: "sleeve" }, h("select", { key: 'd71fa54228c22baf586cfb1a05de589dce54d1e0', class: greyIfRequired, onChange: this.doOptionSelectCompletedHandler }, options.map(option => (h("option", { selected: this.selectedValue === option.value, value: option.value }, option.label)))), h("div", { key: '18e70e7358cc82b49fa9b4e86b5230946737bb01', class: "arrow" }))))));
46
+ (this.selectedOptionColour === 'inherit' ? ' inherit-colour' : '') }, h("div", { key: 'd2bb00832f1a71ca48db9be5e6f16e454703f55d', class: "sleeve" }, h("select", { key: '489e201a31072a6f3d373545f0ac2d6e41b9f4be', class: greyIfRequired, onChange: this.doOptionSelectCompletedHandler }, options.map(option => (h("option", { selected: this.selectedValue === option.value, value: option.value }, option.label)))), h("div", { key: 'c682f35bb75204c88856489c585bea5b1f409e79', class: "arrow" }))))));
47
47
  }
48
48
  static get is() { return "biggive-form-field-select"; }
49
49
  static get encapsulation() { return "shadow"; }
@@ -6,7 +6,7 @@ export class BiggiveFormattedText {
6
6
  this.maxWidth = 100;
7
7
  }
8
8
  render() {
9
- return (h("div", { key: '819551388ab2e704f62177a9d1d6452e2ef796e9', class: 'container max-width-' + this.maxWidth + ' text-colour-' + this.defaultTextColour + ' space-below-' + this.spaceBelow }, h("slot", { key: '78079b493a49adbd78781667504db3ce0c30a708' })));
9
+ return (h("div", { key: 'b7ff15887da8516a3af5788e0696430b35d58940', class: 'container max-width-' + this.maxWidth + ' text-colour-' + this.defaultTextColour + ' space-below-' + this.spaceBelow }, h("slot", { key: '6f1646382a27476bb307348d6c9d77cc0eb97f3e' })));
10
10
  }
11
11
  static get is() { return "biggive-formatted-text"; }
12
12
  static get encapsulation() { return "shadow"; }
@@ -28,7 +28,7 @@ export class BiggiveGenericIcon {
28
28
  const iconDefinition = this.getIconDefinition();
29
29
  return (
30
30
  // Note: the icon name prop is set as a css class too for any styling specific to certain icons
31
- h("div", { key: '443fe74064bac6cef7a6ce319fd9fb26bc8993a9', class: 'generic-icon-item background-colour-' + this.backgroundColour + ' ' + this.icon }, h("a", { key: '86b7eb52ea7a20a1721d948eefe4b216a1e1f7c3', href: this.url }, iconDefinition ? (h("svg", { width: iconDefinition.icon[0], height: iconDefinition.icon[1], xmlns: "http://www.w3.org/2000/svg", class: 'fill-' + this.iconColour, viewBox: '0 0 ' + iconDefinition.icon[0] + ' ' + iconDefinition.icon[1] }, h("path", { d: iconDefinition.icon[4].toString() }))) : null)));
31
+ h("div", { key: 'f2022ed32b636865b547c86a3ae09c6af47ba7f0', class: 'generic-icon-item background-colour-' + this.backgroundColour + ' ' + this.icon }, h("a", { key: '59cc5d22c0c234ad5b55c8fbceb6d3ba86e10598', href: this.url }, iconDefinition ? (h("svg", { width: iconDefinition.icon[0], height: iconDefinition.icon[1], xmlns: "http://www.w3.org/2000/svg", class: 'fill-' + this.iconColour, viewBox: '0 0 ' + iconDefinition.icon[0] + ' ' + iconDefinition.icon[1] }, h("path", { d: iconDefinition.icon[4].toString() }))) : null)));
32
32
  }
33
33
  static get is() { return "biggive-generic-icon"; }
34
34
  static get originalStyleUrls() {
@@ -7,7 +7,7 @@ export class BiggiveGrid {
7
7
  this.columnGap = 0;
8
8
  }
9
9
  render() {
10
- return (h("div", { key: 'd5546015f64264d5b6873b7a94d74a4b275f7f1c', class: 'grid column-count-' + this.columnCount + ' space-below-' + this.spaceBelow + ' column-gap-' + this.columnGap + (this.spaceBetween ? ' space-between' : '') }, h("slot", { key: '4320b2c55ac6618bb9adad682029346aae300ed8' })));
10
+ return (h("div", { key: '416def4a0c08978e15974ce9af6618023b50f83b', class: 'grid column-count-' + this.columnCount + ' space-below-' + this.spaceBelow + ' column-gap-' + this.columnGap + (this.spaceBetween ? ' space-between' : '') }, h("slot", { key: 'b56f17f534fb1a33f628360dd7abfea3bda20264' })));
11
11
  }
12
12
  static get is() { return "biggive-grid"; }
13
13
  static get encapsulation() { return "shadow"; }