@biggive/components 202304281233.0.0 → 202305101345.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.
- package/dist/biggive/biggive.esm.js +1 -1
- package/dist/biggive/p-38bdfb0e.entry.js +1 -0
- package/dist/cjs/{biggive-accordion_43.cjs.entry.js → biggive-accordion_44.cjs.entry.js} +23 -3
- package/dist/cjs/biggive.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.js +8 -8
- package/dist/collection/components/biggive-form-field-text-input/biggive-text-input.css +120 -0
- package/dist/collection/components/biggive-form-field-text-input/biggive-text-input.js +106 -3
- package/dist/components/biggive-campaign-card-filter-grid.js +4 -3
- package/dist/components/biggive-text-input.js +16 -4
- package/dist/esm/{biggive-accordion_43.entry.js → biggive-accordion_44.entry.js} +23 -4
- package/dist/esm/biggive.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.d.ts +3 -2
- package/dist/types/components/biggive-form-field-text-input/biggive-text-input.d.ts +12 -0
- package/dist/types/components.d.ts +36 -4
- package/hydrate/index.js +23 -6
- package/package.json +1 -1
- package/dist/biggive/p-044de4a5.entry.js +0 -1
- package/dist/biggive/p-35625fdd.entry.js +0 -1
- package/dist/cjs/biggive-text-input.cjs.entry.js +0 -19
- package/dist/esm/biggive-text-input.entry.js +0 -15
package/hydrate/index.js
CHANGED
|
@@ -6814,7 +6814,7 @@ class BiggiveCampaignCardFilterGrid {
|
|
|
6814
6814
|
this.filtersApplied = false;
|
|
6815
6815
|
// Clear all
|
|
6816
6816
|
this.searchText = null;
|
|
6817
|
-
this.selectedSortByOption =
|
|
6817
|
+
this.selectedSortByOption = this.initialSortByOption;
|
|
6818
6818
|
this.selectedFilterBeneficiary = null;
|
|
6819
6819
|
this.selectedFilterCategory = null;
|
|
6820
6820
|
this.selectedFilterFunding = null;
|
|
@@ -6847,7 +6847,7 @@ class BiggiveCampaignCardFilterGrid {
|
|
|
6847
6847
|
this.beneficiaryOptions = [];
|
|
6848
6848
|
this.locationOptions = [];
|
|
6849
6849
|
this.fundingOptions = [];
|
|
6850
|
-
this.selectedSortByOption =
|
|
6850
|
+
this.selectedSortByOption = undefined;
|
|
6851
6851
|
this.selectedFilterCategory = null;
|
|
6852
6852
|
this.selectedFilterBeneficiary = null;
|
|
6853
6853
|
this.selectedFilterLocation = null;
|
|
@@ -6898,6 +6898,7 @@ class BiggiveCampaignCardFilterGrid {
|
|
|
6898
6898
|
componentWillRender() {
|
|
6899
6899
|
this.filtersApplied =
|
|
6900
6900
|
this.selectedFilterCategory !== null || this.selectedFilterBeneficiary !== null || this.selectedFilterFunding !== null || this.selectedFilterLocation !== null;
|
|
6901
|
+
this.initialSortByOption = this.selectedSortByOption;
|
|
6901
6902
|
}
|
|
6902
6903
|
render() {
|
|
6903
6904
|
var _a;
|
|
@@ -6909,7 +6910,7 @@ class BiggiveCampaignCardFilterGrid {
|
|
|
6909
6910
|
? undefined
|
|
6910
6911
|
: (Array.isArray(this.locationOptions) ? this.locationOptions : JSON.parse(this.locationOptions)).map(option => (hAsync("biggive-form-field-select-option", { value: option, label: option })))), hAsync("biggive-form-field-select", { placeholder: this.fundingPlaceHolderText, selectedLabel: this.selectedFilterFunding, id: "funding", "space-below": "2" }, this.fundingOptions.length === 0
|
|
6911
6912
|
? undefined
|
|
6912
|
-
: (Array.isArray(this.fundingOptions) ? this.fundingOptions : JSON.parse(this.fundingOptions)).map(option => (hAsync("biggive-form-field-select-option", { value: option, label: option })))), hAsync("div", { class: "align-right" }, hAsync("biggive-button", { label: "Apply filters", onClick: this.handleApplyFilterButtonClick })))), hAsync("div", { class: "sort-wrap" }, hAsync("biggive-form-field-select", { "select-style": "underlined", placeholder: this.sortByPlaceholderText, selectedLabel: this.selectedSortByOption, id: "sort-by" }, hAsync("biggive-form-field-select-option", { value: "amountRaised", label: "Most raised" }), hAsync("biggive-form-field-select-option", { value: "matchFundsRemaining", label: "Match funds remaining" }), hAsync("biggive-form-field-select-option", { value: "Relevance", label: "Relevance" })))), hAsync("div", { class: "selected-filter-wrap" }, hAsync("div", { class: "selected-filters" }), hAsync("div", { class: "clear-all" }, hAsync("a", { onClick: this.handleClearAll }, "Clear all"))), hAsync("div", { class: "campaign-grid" }, hAsync("slot", { name: "campaign-grid" })))));
|
|
6913
|
+
: (Array.isArray(this.fundingOptions) ? this.fundingOptions : JSON.parse(this.fundingOptions)).map(option => (hAsync("biggive-form-field-select-option", { value: option, label: option })))), hAsync("div", { class: "align-right" }, hAsync("biggive-button", { label: "Apply filters", onClick: this.handleApplyFilterButtonClick })))), hAsync("div", { class: "sort-wrap" }, hAsync("biggive-form-field-select", { "select-style": "underlined", placeholder: this.sortByPlaceholderText, selectedLabel: this.selectedSortByOption, id: "sort-by" }, hAsync("biggive-form-field-select-option", { value: "amountRaised", label: "Most raised" }), hAsync("biggive-form-field-select-option", { value: "matchFundsRemaining", label: "Match funds remaining" }), (this.searchText || '').length > 0 ? hAsync("biggive-form-field-select-option", { value: "Relevance", label: "Relevance" }) : null))), hAsync("div", { class: "selected-filter-wrap" }, hAsync("div", { class: "selected-filters" }), hAsync("div", { class: "clear-all" }, hAsync("a", { onClick: this.handleClearAll }, "Clear all"))), hAsync("div", { class: "campaign-grid" }, hAsync("slot", { name: "campaign-grid" })))));
|
|
6913
6914
|
}
|
|
6914
6915
|
get el() { return getElement(this); }
|
|
6915
6916
|
static get style() { return biggiveCampaignCardFilterGridCss; }
|
|
@@ -8554,20 +8555,36 @@ class BiggiveTable {
|
|
|
8554
8555
|
}; }
|
|
8555
8556
|
}
|
|
8556
8557
|
|
|
8557
|
-
const biggiveTextInputCss = "/*!@:host*/.sc-biggive-text-input-h{display:block}";
|
|
8558
|
+
const biggiveTextInputCss = "/*!@a*/a.sc-biggive-text-input{color:inherit;text-decoration:underline}/*!@a:hover*/a.sc-biggive-text-input:hover{text-decoration:none}/*!@.space-above-0*/.space-above-0.sc-biggive-text-input{margin-top:0}/*!@.space-above-1*/.space-above-1.sc-biggive-text-input{margin-top:5px}/*!@.space-above-2*/.space-above-2.sc-biggive-text-input{margin-top:10px}/*!@.space-above-3*/.space-above-3.sc-biggive-text-input{margin-top:15px}/*!@.space-above-4*/.space-above-4.sc-biggive-text-input{margin-top:30px}/*!@.space-above-5*/.space-above-5.sc-biggive-text-input{margin-top:45px}/*!@.space-above-6*/.space-above-6.sc-biggive-text-input{margin-top:60px}/*!@.space-below-0*/.space-below-0.sc-biggive-text-input{margin-bottom:0}/*!@.space-below-1*/.space-below-1.sc-biggive-text-input{margin-bottom:5px}/*!@.space-below-2*/.space-below-2.sc-biggive-text-input{margin-bottom:10px}/*!@.space-below-3*/.space-below-3.sc-biggive-text-input{margin-bottom:15px}/*!@.space-below-4*/.space-below-4.sc-biggive-text-input{margin-bottom:30px}/*!@.space-below-5*/.space-below-5.sc-biggive-text-input{margin-bottom:45px}/*!@.space-below-6*/.space-below-6.sc-biggive-text-input{margin-bottom:60px}/*!@:host*/.sc-biggive-text-input-h{display:contents}/*!@.text-input*/.text-input.sc-biggive-text-input{position:relative;font-family:\"Euclid Triangle\", sans-serif;font-size:17px;line-height:24px;position:relative;text-align:left}/*!@.text-input .currency-symbol*/.text-input.sc-biggive-text-input .currency-symbol.sc-biggive-text-input{float:left}/*!@.text-input .prompt*/.text-input.sc-biggive-text-input .prompt.sc-biggive-text-input{position:absolute;z-index:2;font-size:small;top:-1em;background-color:#F4F4F4;left:4em;padding-left:1em;padding-right:1em;color:#2C089B}/*!@.text-input.select-style-bordered .sleeve*/.text-input.select-style-bordered.sc-biggive-text-input .sleeve.sc-biggive-text-input{font-size:24px;line-height:30px;font-weight:bolder;padding:2px;position:relative;background-color:#2C089B;clip-path:polygon(0% 0%, 0% 0%, calc(100% - 15px) 0%, 100% 15px, 100% 100%, 100% 100%, 0 100%, 0 100%)}/*!@.text-input.select-style-bordered .sleeve .inner-sleave*/.text-input.select-style-bordered.sc-biggive-text-input .sleeve.sc-biggive-text-input .inner-sleave.sc-biggive-text-input{background-color:#F4F4F4;color:#2C089B;display:block;position:relative;padding:10px 30px 10px 10px;cursor:pointer;clip-path:polygon(0% 0%, 0% 0%, calc(100% - 14px) 0%, 100% 14px, 100% 100%, 100% 100%, 0 100%, 0 100%)}/*!@.text-input.select-style-bordered .sleeve .inner-sleave:after*/.text-input.select-style-bordered.sc-biggive-text-input .sleeve.sc-biggive-text-input .inner-sleave.sc-biggive-text-input:after{content:\"\";display:block;position:absolute;right:20px;top:18px;width:10px;height:10px;background-size:contain;background-repeat:no-repeat;background-position:center center}";
|
|
8558
8559
|
|
|
8560
|
+
/**
|
|
8561
|
+
* Initially developed for use within the new donate stepper design. Currently has a hard-coded background
|
|
8562
|
+
* of $colour-grey-background, intened to appear transparent when used on a page with a matching background.
|
|
8563
|
+
*/
|
|
8559
8564
|
class BiggiveTextInput {
|
|
8560
8565
|
constructor(hostRef) {
|
|
8561
8566
|
registerInstance(this, hostRef);
|
|
8567
|
+
this.value = undefined;
|
|
8568
|
+
this.currency = undefined;
|
|
8569
|
+
this.spaceBelow = 0;
|
|
8570
|
+
this.selectStyle = 'bordered';
|
|
8571
|
+
this.prompt = undefined;
|
|
8562
8572
|
}
|
|
8563
8573
|
render() {
|
|
8564
|
-
|
|
8574
|
+
const currencySymbol = this.currency === 'GBP' ? '£' : this.currency === 'USD' ? '$' : undefined;
|
|
8575
|
+
return (hAsync("div", { class: 'text-input space-below-' + this.spaceBelow + ' select-style-' + this.selectStyle }, hAsync("div", { class: "sleeve" }, hAsync("div", { class: "inner-sleave" }, currencySymbol && hAsync("span", { class: "currency-symbol" }, currencySymbol), hAsync("slot", { name: "input" }), hAsync("div", { style: { clear: 'both' } }))), hAsync("div", { class: "prompt" }, this.prompt)));
|
|
8565
8576
|
}
|
|
8566
8577
|
static get style() { return biggiveTextInputCss; }
|
|
8567
8578
|
static get cmpMeta() { return {
|
|
8568
8579
|
"$flags$": 9,
|
|
8569
8580
|
"$tagName$": "biggive-text-input",
|
|
8570
|
-
"$members$":
|
|
8581
|
+
"$members$": {
|
|
8582
|
+
"value": [1],
|
|
8583
|
+
"currency": [1],
|
|
8584
|
+
"spaceBelow": [2, "space-below"],
|
|
8585
|
+
"selectStyle": [1, "select-style"],
|
|
8586
|
+
"prompt": [1]
|
|
8587
|
+
},
|
|
8571
8588
|
"$listeners$": undefined,
|
|
8572
8589
|
"$lazyBundleId$": "-",
|
|
8573
8590
|
"$attrsToReflect$": []
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@biggive/components",
|
|
3
3
|
"_comment": "Version number below is automatically replaced during CircleCI build.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "202305101345.0.0",
|
|
5
5
|
"description": "Big Give Components",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,h as t,H as r}from"./p-740166e9.js";const o=class{constructor(t){s(this,t)}render(){return t(r,null,t("slot",null))}};o.style=":host{display:block}";export{o as biggive_text_input}
|