Skip to content

Commit

Permalink
Update to ENgrid v.17.20
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelT372 committed Mar 5, 2024
1 parent ba028c8 commit 74bdd3d
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 39 deletions.
13 changes: 10 additions & 3 deletions dist/engrid.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
*
* ENGRID PAGE TEMPLATE ASSETS
*
* Date: Friday, March 1, 2024 @ 18:35:58 ET
* Date: Tuesday, March 5, 2024 @ 11:22:09 ET
* By: michael
* ENGrid styles: v0.17.16
* ENGrid scripts: v0.17.18
* ENGrid styles: v0.17.19
* ENGrid scripts: v0.17.20
*
* Created by 4Site Studios
* Come work with us or join our team, we would love to hear from you
Expand Down Expand Up @@ -2076,6 +2076,13 @@ input.en__field__input:focus,input.en__field__input:hover,input:focus,input:hove
}

.en__field__input--vgs{
--en-vgs-width:100%;
--en-vgs-borderWidth:var(--input_border-width);
--en-vgs-borderStyle:solid;
--en-vgs-borderColor:var(--input_border-color);
--en-vgs-borderRadius:var(--input_border-radius);
--en-vgs-backgroundColor:var(--input_background-color);
--en-vgs-fontSize:var(--input_font-size);
transition:box-shadow .25s,border-color .25s ease-in-out;
width:100%;
}
Expand Down
39 changes: 23 additions & 16 deletions dist/engrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
*
* ENGRID PAGE TEMPLATE ASSETS
*
* Date: Friday, March 1, 2024 @ 18:35:58 ET
* Date: Tuesday, March 5, 2024 @ 11:22:09 ET
* By: michael
* ENGrid styles: v0.17.16
* ENGrid scripts: v0.17.18
* ENGrid styles: v0.17.19
* ENGrid scripts: v0.17.20
*
* Created by 4Site Studios
* Come work with us or join our team, we would love to hear from you
Expand Down Expand Up @@ -14051,10 +14051,10 @@ class Autocomplete {
this.logger = new EngridLogger("Autocomplete", "#330033", "#f0f0f0", "📇");
this.autoCompleteField('[name="supporter.firstName"]', "given-name");
this.autoCompleteField('[name="supporter.lastName"]', "family-name");
this.autoCompleteField('[name="transaction.ccnumber"]', "cc-number");
// this.autoCompleteField('[name="transaction.ccnumber"]', "cc-number");
this.autoCompleteField("#en__field_transaction_ccexpire", "cc-exp-month");
this.autoCompleteField('[name="transaction.ccexpire"]:not(#en__field_transaction_ccexpire)', "cc-exp-year");
this.autoCompleteField('[name="transaction.ccvv"]', "cc-csc");
// this.autoCompleteField('[name="transaction.ccvv"]', "cc-csc");
this.autoCompleteField('[name="supporter.emailAddress"]', "email");
this.autoCompleteField('[name="supporter.phoneNumber"]', "tel");
this.autoCompleteField('[name="supporter.country"]', "country");
Expand Down Expand Up @@ -21686,10 +21686,21 @@ class VGS {
return true;
}
setDefaults() {
const placeholderStyles = {
color: getComputedStyle(document.body).getPropertyValue("--input_placeholder-color") || "#a9a9a9",
opacity: getComputedStyle(document.body).getPropertyValue("--input_placeholder-opacity") || "1",
fontWeight: getComputedStyle(document.body).getPropertyValue("--input_placeholder-font-weight") || "normal",
//EN attempts to define a few default styles for VGS fields based on our text field styling
//This does not always work, so we will provide our own defaults
const bodyStyles = getComputedStyle(document.body);
const styles = {
fontFamily: bodyStyles.getPropertyValue("--input_font-family") ||
"-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
fontSize: bodyStyles.getPropertyValue("--input_font-size") || "16px",
color: bodyStyles.getPropertyValue("--input_color") || "#000",
padding: bodyStyles.getPropertyValue("--input_padding") || "10px",
"&::placeholder": {
color: bodyStyles.getPropertyValue("--input_placeholder-color") || "#a9a9a9",
opacity: bodyStyles.getPropertyValue("--input_placeholder-opacity") || "1",
fontWeight: bodyStyles.getPropertyValue("--input_placeholder-font-weight") ||
"normal",
},
};
const options = this.options;
const defaultOptions = {
Expand All @@ -21699,9 +21710,7 @@ class VGS {
icons: {
cardPlaceholder: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAABMCAYAAADHl1ErAAAACXBIWXMAABYlAAAWJQFJUiTwAAAB8ElEQVR4nO2c4W3CMBBGz1H/NyNkAzoCo2SDrkI3YJSOABt0g9IJXBnOqUkMyifUqkrek04RlvMjT2c7sc6EGKPBfBpcaSBMBGEiCBNBmAjCRBAmgjARhIkgTARhIggTQZhK2q0Yh5l1ZrYzs0PqsrI4+LN3VTeThkvntUm6Fbuxn2E/LITQmtm7mW08Sb/MbO9tpxhjui6WEMLWzJKDdO3N7Nmf9ZjaYoyn8y8X1o6GXxLV1lJyDeE+9oWPQ/ZRG4b9WkVVpqe+8LLLo7ErM6t248qllZnWBc+uV5+zumGsQjm3f/ic9tb4JGeeXcga4U723rptilVx0avgg2Q3m/JNn+y6zeAm+GSWUi/c7L5yfB77RJhACOHs6WnuLfmGpTI3YditEEGYCMJEECaCMJHZqySvHRfIMBGEiSBMBGEiCBNBmAjCRBAmgjARhIkgTGT2t+R/59EdYXZcfwmEiSBMBGEiCBNZzCr5VzvCZJjIIMxrPKFC6abMsHbaFcZuGq8StqKwDqZkN8emKBbrvawHCtxJ7y1nVxQF34lxUXBupOy8EtWy88jBhknUDjbkPhyd+Xn2l9lHZ8rgcNZVTA5nTYRFjv/dPf7HvzuJ8C0pgjARhIkgTARhIggTQZgIwkQQJoIwEYSJIEwEYQpm9g2Ro5zhLcuLBwAAAABJRU5ErkJggg==",
},
css: {
"&::placeholder": placeholderStyles,
},
css: styles,
// Autocomplete is not customizable
autoComplete: "cc-number",
validations: ["required", "validCardNumber"],
Expand All @@ -21713,9 +21722,7 @@ class VGS {
// Autocomplete is not customizable
autoComplete: "cc-csc",
validations: ["required", "validCardSecurityCode"],
css: {
"&::placeholder": placeholderStyles,
},
css: styles,
},
};
// Deep merge the default options with the options set in the theme
Expand Down Expand Up @@ -22078,7 +22085,7 @@ class EcardToTarget {
}

;// CONCATENATED MODULE: ./node_modules/@4site/engrid-common/dist/version.js
const AppVersion = "0.17.18";
const AppVersion = "0.17.20";

;// CONCATENATED MODULE: ./node_modules/@4site/engrid-common/dist/index.js
// Runs first so it can change the DOM markup before any markup dependent code fires
Expand Down
8 changes: 4 additions & 4 deletions dist/engrid.min.css

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/engrid.min.js

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 74bdd3d

Please sign in to comment.